GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — mcpx: implement #1973 flake policy — race/shuffle/repeat stress jobs + expiring Quarantine by dezren39 · Pull Request #2685 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Oct 30, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Implements the #1973 flake policy (approach C — detect by repetition off the critical path, fix-now by default, quarantine only with issue link + expiry). Closes the implementation task for #1973; the policy issue stays the tracking home.

What changed

  • .github/workflows/mcpx.yml
    • New triggers pull_request, schedule (nightly 03:23 UTC), workflow_dispatch — added only for the new jobs; the existing test job keeps its original push-only coverage via its own if:, and vendorhash-repair is unchanged.
    • stress-pr job (PRs only, parallel, not required): runs the packages the PR changed with -race -shuffle=<seed> -count=10 (unit) / -count=3 (internal/e2e). The seed is derived deterministically from the workflow run identity (SHA-256, mcpx-shuffle/v1: prefix — the run-seed programme's derivation style, mcpx testing: one seed per run -- format (UUIDv7), derivation, and how it reaches every test #1949) and printed in the log so a failing order reproduces; never -shuffle=on.
    • stress-nightly job (schedule/dispatch only): whole suite -race -shuffle=<seed> -count=3 on ubuntu-latest and macos-latest; on scheduled failure it opens or updates the single "mcpx nightly stress failure" issue with the seed + repro command. Never blocks a PR.
    • No retry-to-green anywhere: no --rerun-fails, no re-run merge path.
  • pkgs/mcpx/internal/testsupport/quarantine.go — Quarantine(t, issue, expiry): skips with the issue link + expiry until the date, fails after it. ValidateQuarantine shared with the guard.
  • quarantine_test.go — validator table tests (expired / link-less / non-issue link / bad date all fail; valid + expires-today pass), fake-TB skip/fail behaviour tests, and TestQuarantineGuard, which scans the whole module and fails on any Quarantine( call that is not a literal call site with a valid issue link and unexpired date — that is the demonstration that the guard fails on an expired/link-less call.
  • pkgs/mcpx/docs/testing.md — the Flakes section now records the implemented policy (where the repetition runs, the seed rule, fix-vs-quarantine, no retries) and the macOS line is updated for the nightly job.

Tests

  • YAML validated (yaml.safe_load): jobs = test, vendorhash-repair, stress-pr, stress-nightly.
  • Go tests run in CI on this PR per repo policy (no local builds): the main test job exercises the new testsupport tests; the stress-pr job itself runs the changed internal/testsupport package with -race -shuffle -count=10, which is also the guard's live demonstration.

Refs #1973, #1976 (policy recorded in the contributor test page that #1976 created), #1949 (seed derivation).


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@dezren39
dezren39 requested a review from a team as a code owner October 30, 2026 10:37
@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 46 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

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: 9143312d-9cd9-439e-a1c7-37e5502600d7
Commits

Reviewing files that changed from the base of the PR and between f1adaf8 and b3e9fb9.

Files selected for processing: 7
  • .github/workflows/mcpx.yml
  • pkgs/mcpx/docs/testing.md
  • pkgs/mcpx/internal/daemon/exec_watch_test.go
  • pkgs/mcpx/internal/e2e/keepalive_takeover_test.go
  • pkgs/mcpx/internal/testsupport/quarantine.go
  • pkgs/mcpx/internal/testsupport/quarantine_test.go
  • pkgs/mcpx/scripts/gotest-report.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T11:25:59.603900Z b3e9fb9 Manual request
ℹ️ 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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Oct 30, 2026
mcpx testing: flake policy -- race, shuffle, repeat runs, quarantine with expiry, a second OS #1973
Closed
mcpx testing: a contributor test page agents load, kept out of the user-facing AGENTS.md #1976
Closed
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Oct 30, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a91ba97656

ℹ️ 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".

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".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkgs/mcpx/internal/testsupport/quarantine_test.go Outdated
func (f *fakeTB) Skipf(format string, args ...any) {
f.skipped = true
}
func (f *fakeTB) Fatalf(format string, args ...any) { f.failed = true }

@chatgpt-codex-connector chatgpt-codex-connector Bot Oct 30, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

P1 Badge Make the fake fatal method terminate control flow

The expired-quarantine test fails on every run because this fake Fatalf returns normally, unlike testing.T.Fatalf. After setting failed, execution continues through Quarantine to Skipf, leaving both bad.failed and bad.skipped true and triggering the failure at line 57. This was reproduced with the isolated test and will fail the main test job and nightly stress suites, regardless of flakes. Make the test double model fatal termination and handle that termination in the test.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@dezren39 dezren39 Oct 30, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Fixed in 364e8ff: fakeTB.Fatalf now panics with a sentinel (errFakeFatal) modelling real Fatalf termination, and TestQuarantineSkipsAndFails calls Quarantine through a recovering wrapper. testsupport suite passes locally.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread .github/workflows/mcpx.yml
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]

@chatgpt-codex-connector chatgpt-codex-connector Bot Oct 30, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

P2 Badge Guard Linux-only tests before enabling the macOS stress leg

The new macOS leg runs the unfiltered suite, but several included tests unconditionally require Linux /proc files. In pkgs/mcpx/internal/daemon/exec_watch_test.go, TestExecChangeRestartsThatPoolAndNoOther calls exeBytes at line 188, which reads /proc/<pid>/exe and fatals on error at lines 136–138. Likewise, pkgs/mcpx/internal/e2e/keepalive_takeover_test.go:167 calls serverSocketInode, which fatals when /proc/net/tcp* is unavailable. Neither test has a platform guard. Make these cases platform-aware before enabling this leg; otherwise, even after fixing the separate quarantine test failure, nightly runs will continually report deterministic platform failures rather than flakes.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@dezren39 dezren39 Oct 30, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Fixed in 364e8ff: the /proc-dependent helpers now skip on non-linux — daemon exeBytes (internal/daemon/exec_watch_test.go) and e2e serverSocketInode (internal/e2e/keepalive_takeover_test.go) both guard on runtime.GOOS, so the macOS nightly leg skips these checks instead of failing deterministically.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkgs/mcpx/internal/testsupport/quarantine.go
if err := ValidateQuarantine(issue, expiry, time.Now().UTC()); err != nil {
t.Fatalf("testsupport.Quarantine: %v", err)
}
t.Skipf("quarantined until %s (%s)", expiry, issue)

@chatgpt-codex-connector chatgpt-codex-connector Bot Oct 30, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

P2 Badge Account for validated quarantines in the skip-count gate

When a previously non-skipping test receives a valid quarantine, this ordinary skip increases the suite's skip count. The main test job still invokes scripts/gotest-report.py, whose read function counts every skip and whose decide function rejects any increase above the stored MCPX_GO_TESTS ceiling. Unless another skip disappears, the next main verification therefore fails even though the quarantine has the required issue and expiry. Integrate validated quarantines with the skip-count policy so the documented exemption can actually be used without making main red. pkgs/mcpx/internal/AGENTS.md explicitly permits quarantine with an issue and expiry.

AGENTS.md reference: pkgs/mcpx/internal/AGENTS.md:L13-L14

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@dezren39 dezren39 Oct 30, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Fixed in 364e8ff: scripts/gotest-report.py now partitions skips whose reason is a testsupport.Quarantine notice (quarantined until ()) out of the skip-count record — they are still named in the summary as quarantined under #1973, but no longer count against the ceiling. Verified with a synthetic go-test JSON: quarantined skip reported, record skipped_count stays 0, exit 0.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dezren39 dezren39 mentioned this pull request Oct 30, 2026
mcpx testing: a CI time budget in the final job, and the over-budget runbook #1995
Closed
dezren39 added 2 commits October 30, 2026 06:16
@dezren39
mcpx: implement #1973 flake policy — PR + nightly race/shuffle/repeat…
537eb80
… stress jobs, expiring Quarantine helper with guard
@dezren39
fix(mcpx): disposition Codex findings on #1973 flake policy PR
364e8ff
P1: fakeTB.Fatalf now panics with a sentinel so Quarantines fatal path terminates like the real testing.T.Fatalf (the expired-quarantine test previously recorded fail+skip and failed every run).
P2: /proc-dependent helpers (daemon exeBytes, e2e serverSocketInode) skip on non-linux so the new macOS nightly leg reports flakes, not deterministic platform failures.
P2: gotest-report.py exempts validated Quarantine skips (issue + expiry, own guard test) from the skip-count record, so the documented quarantine path no longer makes main red on first use; quarantined tests are still named in the summary.
@dezren39
dezren39 force-pushed the queue/3270-1973-flake-policy branch from a91ba97 to 364e8ff Compare October 30, 2026 11:16
@dezren39

dezren39 commented Oct 30, 2026

Copy link
Copy Markdown
Member Author

@codex review

Rebased on current main; all three findings from the first round are fixed in 364e8ff (fake Fatalf termination, /proc guards for the macOS leg, quarantine exemption in the skip-count gate) with replies on each thread. Requesting a fresh review of the new head.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Oct 30, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 364e8ffdf5

ℹ️ 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".

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".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkgs/mcpx/internal/testsupport/quarantine_test.go Outdated
// literal pattern fails here too, so the audit cannot be dodged by
// passing a variable.
func TestQuarantineGuard(t *testing.T) {
call := regexp.MustCompile(`Quarantine\(\s*[A-Za-z_][A-Za-z0-9_.]*\s*,\s*"([^"]*)"\s*,\s*"([^"]*)"\s*\)`)

@chatgpt-codex-connector chatgpt-codex-connector Bot Oct 30, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

P2 Badge Accept trailing commas in quarantine call sites

When a quarantine call is formatted across multiple lines, Go requires a trailing comma after the expiry argument. This regex requires the closing parenthesis immediately after whitespace, so it rejects that valid literal call; the mention-count check then fails TestQuarantineGuard and the full CI suite despite the quarantine having a valid issue and expiry. Allow the trailing comma, or inspect Go call expressions instead of matching source text, so normal multiline formatting does not break the supported quarantine path.

AGENTS.md reference: pkgs/mcpx/internal/AGENTS.md:L13-L14

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@dezren39 dezren39 Oct 30, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Fixed in b3e9fb9: the guard regex now allows an optional trailing comma before the closing paren (\s*,?\s*)), so multiline-formatted literal calls match. testsupport suite passes.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dezren39
fix(mcpx): allow trailing comma in Quarantine guard regex (Codex roun…
b3e9fb9
…d 2)
@dezren39

dezren39 commented Oct 30, 2026

Copy link
Copy Markdown
Member Author

@codex review

Round-2 finding fixed in b3e9fb9 (trailing-comma in the Quarantine guard regex). Requesting review of the new head.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: b3e9fb9c84

ℹ️ 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".

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".

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 merged commit 7b76c79 into main Oct 30, 2026
4 of 5 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the queue/3270-1973-flake-policy branch October 30, 2026 11:28
This was referenced Oct 30, 2026
mcpx: internal/settings (scriptenv) and internal/conformance (TestAuthSplit, TestMatrix) failing on clean main #2716
Closed
mcpx conformance: validate upstream prompts/get results before passing them on (split of #1957) #2193
Closed
@dezren39 dezren39 mentioned this pull request Nov 8, 2026
mcpx testing: one seed per run -- format (UUIDv7), derivation, and how it reaches every test #1949
Closed
@dezren39 dezren39 mentioned this pull request Nov 21, 2026
Closure audit: every closed issue/PR verified; unmerged branches + unpushed worktrees inventoried #7079
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.