Repository navigation
recipe(cef): remove a half-cloned tree before a forced sync (#3062) - #29
Merged
Merged
Conversation
…#3062) automate-git.py reads the existing tree's version before it honours --force-update, so a sync killed mid-clone left a tree the next forced sync died on with `Path does not exist: .../chromium/src/chrome/VERSION` instead of re-cloning it. The test pins the guard the sync step needs, before the automate call.
A tick on #3062 hit job 56: the arm64 sync died at once with `Exception: Path does not exist: /cef/work/chromium/src/chrome/VERSION`. The previous attempt had been killed mid-clone, and automate-git.py checks the existing tree with read_chrome_version_file() before it reaches the --force-update path that would delete and re-clone chromium/src. The sync step now removes $WORK/chromium itself when chromium/src exists without chrome/VERSION and --force-update was requested. Without --force-update a partial tree is still a plain error, so a normal sync does not silently discard a checkout it did not ask to replace.
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.
Refs obs-rust/obs-studio#3062 (the arm64 CEF build; no new archive yet).
RED
test_sync_replaces_a_checkout_left_without_chrome_versionfails onmain:the sync step has no guard, so a tree left by a killed clone reaches
automate-git.py.
GREEN
recipes/cef/linux/build.sh syncnow removes$WORK/chromiumwhenchromium/srcexists withoutchrome/VERSIONand--force-updatewaspassed after the architecture.
tests/test_cef_recipe.py: 51 passed,ruff checkandruff format --checkclean,bash -nclean.Why
Job 56 (
cef-linux-sync-arm64-force, 2026-10-31) failed a second after itstarted:
The earlier sync had been cancelled mid-clone. automate-git.py calls
read_chrome_version_file()for the--no-chromium-historycheck before itreaches the
--force-updatebranch that woulddelete_directory()andre-clone, so the force flag never got a chance to work. The recipe clears the
broken tree itself, gated on
--force-updateso an ordinary sync stillreports a partial tree instead of silently discarding it.
Not part of this PR: the archive itself. The re-synced run (bosn job 58) is
in progress on the worker host.