Repository navigation
Give the GPU summary probe test the AMD helpers its extracted block calls - #11472
Conversation
test_setup_gpu_summary_probe_sources.sh builds a runnable block by pulling named functions out of studio/setup.sh. #11437 added _amd_prefer_discrete_gfx and _amd_gfx_is_shadowing_integrated and called them from the selection block, but not from a function the test extracts, so the block ran with both undefined: 8 passed, 29 failed, every case that reaches a discrete versus integrated choice dying on command not found. Both helpers are now extracted into both halves the test builds, and a guard fails loudly if either stops arriving, the way the existing ones do for the record parsers. 37 passed, 0 failed on main, and every other suite under tests/sh stays green.
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 |
|
@codex security review |
|
You have reached your Codex usage limits for security reviews. Please try again later. |
|
Codex Review: Didn't find any major issues. Nice work! 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". |
…othai#11538) The harness builds a runnable block by sed-ing named functions out of studio/setup.sh. When setup.sh gains a helper and the selection block calls it, nothing here notices until the block runs with it undefined, and then every case that reaches the call dies on a bare "command not found". unslothai#11437 did exactly that with _amd_prefer_discrete_gfx: 8 passed, 29 failed, and not one of the 29 named the cause. unslothai#11472 added the helper to the sed lines and a named grep guard for it, which fixes that helper and only that helper. The next one repeats it. Give each extracted artifact a command_not_found_handle instead, so the first call that is actually reached says which function is missing and which sed line would supply it. Reached, not merely present: setup.sh arms this test never takes do call helpers it never extracts (the NVIDIA banner, the step/substep printers), so a static scan of the text reports those as defects when they are not. A static version of this guard failed the suite on all three.
…unslothai#11472) test_setup_gpu_summary_probe_sources.sh builds a runnable block by pulling named functions out of studio/setup.sh. unslothai#11437 added _amd_prefer_discrete_gfx and _amd_gfx_is_shadowing_integrated and called them from the selection block, but not from a function the test extracts, so the block ran with both undefined: 8 passed, 29 failed, every case that reaches a discrete versus integrated choice dying on command not found. Both helpers are now extracted into both halves the test builds, and a guard fails loudly if either stops arriving, the way the existing ones do for the record parsers. 37 passed, 0 failed on main, and every other suite under tests/sh stays green.
…othai#11538) The harness builds a runnable block by sed-ing named functions out of studio/setup.sh. When setup.sh gains a helper and the selection block calls it, nothing here notices until the block runs with it undefined, and then every case that reaches the call dies on a bare "command not found". unslothai#11437 did exactly that with _amd_prefer_discrete_gfx: 8 passed, 29 failed, and not one of the 29 named the cause. unslothai#11472 added the helper to the sed lines and a named grep guard for it, which fixes that helper and only that helper. The next one repeats it. Give each extracted artifact a command_not_found_handle instead, so the first call that is actually reached says which function is missing and which sed line would supply it. Reached, not merely present: setup.sh arms this test never takes do call helpers it never extracts (the NVIDIA banner, the step/substep printers), so a static scan of the text reports those as defects when they are not. A static version of this guard failed the suite on all three.
tests/sh/test_setup_gpu_summary_probe_sources.shis red on main: 8 passed, 29 failed, with every failing case reporting_amd_prefer_discrete_gfx: command not found.Cause
That test does not restate the probe logic, it pulls the real functions out of
studio/setup.shwithsedand assembles a runnable block. #11437 added_amd_prefer_discrete_gfxand_amd_gfx_is_shadowing_integratedand called them from the selection block, but neither is one of the functions the test extracts, so the assembled block runs with both undefined and every case that reaches a discrete versus integrated choice dies instead of answering.Bisected:
17e14909f~117e14909f(#11437)The product code is fine. Both helpers are defined in
studio/setup.shand reachable at runtime; it is only the test's extraction that is short.Fix
Both helpers are extracted into both halves the test builds (
block.sh, and the splitselect.shused by the arms that reach selection without probing), plus a guard that fails loudly if either stops arriving, the way the existing guards do for the record parsers.Verification
tests/sh/test_setup_gpu_summary_probe_sources.shon current main with this change: 37 passed, 0 failed.tests/sh: green.