Repository navigation
jit-qa: the operator workflow must supply the candidate envelope the sweep code requires - #14402
Merged
Merged
Conversation
…ope the code requires #14393 raised QA_SWEEP_MAX_MODEL_CANDIDATES to 3 in both backend/utils/memory/daily_memory_sweep.py and backend/scripts/jit_qa_sweep_operator.py, but jit_qa_manual_operator.yml still hardcoded 1 in two places: the job env block and the --update-env-vars string. validate_qa_sweep_environment compares the running job's env against the code constant, so every sweep-verify dispatch now fails before doing any work: ValueError: QA sweep requires MEMORY_DAILY_MEMORY_SWEEP_MAX_MODEL_CANDIDATES='3' Observed on execution daily-memory-sweep-qa-job-8kqzc at the deployed SHA 0694d6b. check_workflow_contracts.py passed, so nothing pins this workflow's env to the code constants — that gap is worth closing separately. Co-Authored-By: Claude Opus 5 <[email protected]>
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
#14393 raised the QA sweep candidate envelope to 3, in both
backend/utils/memory/daily_memory_sweep.py(QA_SWEEP_MAX_MODEL_CANDIDATES = 3) andbackend/scripts/jit_qa_sweep_operator.py..github/workflows/jit_qa_manual_operator.ymlstill hardcoded1, in two places: the job env block (line 497) and the--update-env-varsstring that stamps the Cloud Run job before execution (line 547).validate_qa_sweep_environmentcompares the running job's environment against the code constant and refuses to proceed on any mismatch, so everysweep-verifydispatch failed before doing any work:Observed on execution
daily-memory-sweep-qa-job-8kqzcagainst the QA plane deployed at0694d6b103.This is the fail-closed validator working as designed — it caught a real environment/code divergence rather than running with the wrong envelope. The fix is to move the two stale literals.
Follow-up worth doing separately
backend/scripts/check_workflow_contracts.pypassed on #14393, so nothing pins this workflow's sweep env to the code constants. Every one of these values (MODEL_NAME,MAX_MODEL_COST_USD,COHORT_FLAG, and the candidate count) is duplicated between the validator'srequireddict and the workflow, and only the candidate count happened to diverge this time. A contract check that derives the workflow's expected sweep env from the code constants would make this class impossible.Failure-Class: FC-config-target-identified-by-count-not-identity
Evidence
Two-line change, values only:
Layer measured: the failing execution's own traceback names the required value, and both literals now match
QA_SWEEP_MAX_MODEL_CANDIDATES = 3indaily_memory_sweep.py:204andjit_qa_sweep_operator.py:41. Verification that the sweep then runs is the nextsweep-verifydispatch, which cannot happen until this merges.🤖 Generated with Claude Code