Repository navigation
SCA-1994: parse sweep-age deployment config once per test module - #25236
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis 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. |
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.
What changed and why
SCA-1994: the six served-provider age-boundary cases each parsed the entire deployment YAML during their measured call. Run 43481408115 attempt 2 crossed the 1.00 s CPU cap on a slow runner even though all assertions passed. Read that immutable config once in a module-scoped fixture, then run the existing boundary assertions against its actual value. This removes five redundant parses and keeps fixture preparation outside the policy calls being measured.
This is a separate, one-file test correction from quarantine PR #25221. All sweep-age tests stay in the fast lane. Product code, assertions, CPU thresholds, allowlists, and deployed settings are unchanged. The explicit
nowremains deterministic; a fake clock would not remove YAML parsing cost.Product invariants affected
none
How it was verified
BACKEND_FAST_UNIT_FAIL_SECONDS=0.1andBACKEND_FAST_UNIT_WARN_SECONDS=0.05. No threshold configuration is changed by this PR.OMI_PR_BODY_FILE=../sweep-age-pr-body.md make preflight: all 36 checks passed.scripts/pr-preflight --metadata-only --pr-body-file ../sweep-age-pr-body.md: all four checks passed.Tests
The existing six age-boundary cases and full 56-test file exercise the change. The fixture still reads the checked-in deployment manifest and enforces the unique-setting assertion; policy boundary assertions are unchanged.
UI evidence
UI-Evidence: none -- test-only correction.
Failure class (fixes)
Failure-Class: none
This corrects redundant test preparation rather than production timing or policy behavior.
Release boundary
Review-ready test correction only. No production writes, deployment, or release-queue entry while SCA-1894 remains open. This PR does not grant a waiver for #25226.