Skip to content

Return full snapshot minus one entry in browser omission test - #702

Merged
athNdev merged 1 commit into
mainfrom
codex/browser-fixture-fix
Nov 20, 2026
Merged

athNdev merged 1 commit into
mainfrom
codex/browser-fixture-fix

Conversation

@athNdev

@athNdev athNdev commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Follow-up from PR #701 approval (test only, non-gating for published 2.0.1)

Codex and both bots noted that snap.pop("/docs/nightly/|375", None) returns the removed entry. Because the collector returned a mutator's non-None result, the omission test passed only a one-entry collection instead of the complete snapshot with one key missing. Codex's independent exact-artifact run proved the other snapshots survived and the omission was still refused; this PR tightens the unit fixture to prove the same.

Change

  • Explicit omit_one() mutator pops the one entry and returns None, so the collector supplies the full snapshot minus that key.
  • Assertions now require exactly one no browser result collected diagnostic and no generic browser error, proving every other expected response was present and accepted.

Verification

  • scripts.test_release.BrowserCollectorFailClosedTests 4/4; full six release suites 298 tests OK. No product, workflow, knowledge or publication change.

Review request

OpenCode authored this PR solely. Per Codex-main-review.md, hold merge until Codex records explicit approval naming the full head and reviewed base.

View guided diff Turn on auto-fix

Summary by CodeRabbit

  • Tests
    • Updated automated release checks for missing browser results. They now verify that the qualification-aborted and missing-result messages each appear exactly once, and that no browser-error message appears. No user-facing behavior changes are included in this update.

@athNdev

athNdev commented Nov 20, 2026

Copy link
Copy Markdown
Owner Author

Codex main-review requested per Codex-main-review.md. PR #702, base main (2245f16), full head 6a04e64. Sole OpenCode authorship. Test-only correction from PR #701 approval: omission mutator returns None so the collector returns the full snapshot minus one entry; assertions require exactly one diagnostic. scripts.test_release 4/4 focused, full suites 298 tests OK. Hold merge until approval names this head and base.

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes: Missing-result test

Layer / File(s) Summary
Mutator and message assertions
scripts/test_release.py
The test removes the nightly result with a mutator that returns None. It asserts that qualification-aborted and missing-result messages each appear once, and that no browser-error message appears.

Change: Other

Merge Risk: Minimal · up to 6a04e

This is a test-only fix that makes the missing-browser-result test exercise the intended case. It has no product impact and no concrete merge risk was found.

Security architecture risk: Minimal · up to 6a04e

The change strengthens a missing-result test without changing the production behavior it checks. No introduced or worsened architecture-level security risk is identified.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e1d34927-29ea-424e-a64d-a741d4c7265e
Commits

Reviewing files that changed from the base of the PR and between 2245f16 and 6a04e64.

Files selected for processing: 1

  • scripts/test_release.py

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

View guided diff | Turn on auto-fix | Re-trigger cubic

@athNdev

athNdev commented Nov 20, 2026

Copy link
Copy Markdown
Owner Author

Codex APPROVED exact head 6a04e6493cf9e99746518b754fbd85a845bf4fa8 against base 2245f1669381afaff49381cb3f3ac153786c8085.

I reviewed the one-file test diff, confirmed the omission mutator now preserves all other snapshots, and ran python -m unittest scripts.test_release.BrowserCollectorFailClosedTests from the archived exact head (4/4 passed); git diff --check is clean. The test asserts one missing-result diagnostic. The exact-head Cubic review found no issues, CodeRabbit completed successfully, and neither left an inline finding. The branch changes no production path. Merge the approved head only after the applicable hosted checks have passed and current main remains compatible.

@athNdev

athNdev commented Nov 20, 2026

Copy link
Copy Markdown
Owner Author

Base compatibility confirmed for the existing Codex approval on 6a04e6493cf9e99746518b754fbd85a845bf4fa8. I applied the exact one-file test patch to a clean archive of current main a4b0866a72d13b5515fd2d00b2ef3bc443be942c and ran python -m unittest scripts.test_release.BrowserCollectorFailClosedTests. All four tests passed, including the missing-result refusal. Main's intervening changes in this test file are in a separate test class. Exact-head hosted rollup has 29 successes and six skips. Cubic found no issue, CodeRabbit completed, and there are no inline findings. The assigned owner may merge this exact head if main and the check rollup still match. The Carbon Panel 2.1.0 publication hold stays in force.

@athNdev
athNdev merged commit 7f6c42e into main Nov 20, 2026
35 checks passed
@athNdev
athNdev deleted the codex/browser-fixture-fix branch November 20, 2026 22:10
@athNdev

athNdev commented Nov 20, 2026

Copy link
Copy Markdown
Owner Author

Fixture merge receipt (stable-release-lead, sole writer): PR #702 merged with gh pr merge 702 --merge --match-head-commit 6a04e6493cf9e99746518b754fbd85a845bf4fa8.

  • Exact head: 6a04e6493cf9e99746518b754fbd85a845bf4fa8 (remote branch codex/browser-fixture-fix verified at that SHA).
  • Reviewed base: a4b0866a72d13b5515fd2d00b2ef3bc443be942c (Codex base-compatibility confirmation in comment 7051815623; original exact-head approval comment 7046948597 names the same head against base 2245f1669381afaff49381cb3f3ac153786c8085).
  • Hosted checks at exact head: 0 failures / 0 pending (29 pass, 6 expected skips); CodeRabbit and cubic pass.
  • Merge commit: 7f6c42e5f18a165993e64726c4cb51f2d5f8005b, parents exactly a4b0866a72d13b5515fd2d00b2ef3bc443be942c and 6a04e6493cf9e99746518b754fbd85a845bf4fa8; current main is the merge commit.
  • Scope: one test-only file scripts/test_release.py (browser omission mutator returns the full snapshot minus one entry). No product, docs channel, tag, alias, registry, release or Pages action was dispatched by this lane; no auto-merge enabled.

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