Repository navigation
setup.sh: keep the replaced-script handoff directly behind the dependency pass - #15747
Merged
Merged
Conversation
Member
Author
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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.
Summary
Shell installer testsfails on main, so every PR's staging CI run of that lane is red (e.g. #15725, a frontend-only change):#15646 (precompile bytecode after setup) added
_SETUP_VENV_CHANGED=truebetweeninstall_python_stackand_setup_rerun_if_replaced, and pinned that order in its owntests/python/test_installer_compile_bytecode.py.tests/sh/test_setup_rerun_after_replace.shpins the opposite: the handoff to a replacedsetup.shmust sit directly behind the dependency pass, so no line of the old copy runs after the update has swapped the file. The two tests now contradict each other on main.Both intents can hold at once:
UNSLOTH_SETUP_RERUN=1too:if { [ "${_SETUP_VENV_CHANGED:-false}" = true ] || [ "${UNSLOTH_SETUP_RERUN:-}" = 1 ]; }.So setting it after the handoff changes nothing:
UNSLOTH_SETUP_RERUN(an unexported shell variable would not have survived theexecanyway).Change
studio/setup.sh:_setup_rerun_if_replacedmoves back directly behindinstall_python_stack._SETUP_VENV_CHANGED=truefollows it, still inside the dependency-pass branch, with a one-line comment on why the order is safe.tests/python/test_installer_compile_bytecode.py: asserts the handoff is the line right after the dependency pass, and that the flag is set right behind it in the same branch. It keeps the existing checks on the gate and theUNSLOTH_SETUP_RERUNfallback.Testing
tests/sh/test_setup_rerun_after_replace.sh: 31 passed, 1 failed on main; 32 passed with this change.tests/python/test_installer_compile_bytecode.py: 30 passed, on both main and this change.test_setup_full_deps_override.sh,test_node_pin_update.sh, the CUDA / XPU / AMD fast-path escapes andtest_ci_shell_suite_coverage.py.bash -n studio/setup.shis clean.