[ci] make the documentation build immune to the git-maintenance race - #1139
Merged
Conversation
`opam init` intermittently failed in the documentation workflow with
Could not update repository "default": lstat failed on
.git/objects/maintenance.lock: No such file or directory
Since git 2.46, fetch and clone spawn a detached `git maintenance run
--auto` job that races with opam scanning the repository it has just
cloned (ocaml/opam#7031). The opam-side fix (ocaml/opam#7073) only ships
in 2.6.0, still a release candidate, and does not cover the path pin on
the checkout.
Disable git background maintenance on the runner, and fetch the opam
repository over HTTP instead of git, which removes the clone the
maintenance job operates on. Also drop the deprecated `dune-cache`
input, superseded by `cache`.
strub
force-pushed
the
ci-docs-git-maintenance
branch
from
September 11, 2026 15:29
a677451 to
bad6502
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
opam initintermittently failed in the documentation workflow withSince git 2.46, fetch and clone spawn a detached
job that races with opam scanning the repository it has just
cloned (ocaml/opam#7031). The opam-side fix (ocaml/opam#7073) only ships
in 2.6.0, still a release candidate, and does not cover the path pin on
the checkout.
Disable git background maintenance on the runner, and fetch the opam
repository over HTTP instead of git, which removes the clone the
maintenance job operates on. Also drop the deprecated
dune-cacheinput, superseded by
cache.