Skip to content

SCA-1994: parse sweep-age deployment config once per test module - #25236

Merged
Git-on-my-level merged 1 commit into
mainfrom
agent/sol/sca-1994-sweep-age-fixture
Nov 14, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
agent/sol/sca-1994-sweep-age-fixture

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

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 now remains deterministic; a fake clock would not remove YAML parsing cost.

Product invariants affected

none

How it was verified

  • Before: all 56 tests passed locally in 2.01 s, with the six affected call phases taking 0.24–0.28 s and exceeding the 0.10 s advisory target.
  • After: all 56 tests passed locally in 0.68 s with the existing 0.10 s advisory / 1.00 s hard CPU thresholds. One config fixture setup took 0.26 s; affected call phases were below 0.005 s.
  • All six affected cases also passed with a temporary stricter BACKEND_FAST_UNIT_FAIL_SECONDS=0.1 and BACKEND_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.

View guided diff Turn on auto-fix

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T20:20:21.644664Z 596b12a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Git-on-my-level
Git-on-my-level merged commit 26981e3 into main Nov 14, 2026
67 checks passed
@Git-on-my-level
Git-on-my-level deleted the agent/sol/sca-1994-sweep-age-fixture branch November 14, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant