GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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
|
|
Warning Review limit reachedYou'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. View limit details
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. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review SummaryThis 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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: a91ba97656
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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.
There was an error while loading. Please reload this page.
| func (f *fakeTB) Skipf(format string, args ...any) { | ||
| f.skipped = true | ||
| } | ||
| func (f *fakeTB) Fatalf(format string, args ...any) { f.failed = true } |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
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.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [ubuntu-latest, macos-latest] |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
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.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
| if err := ValidateQuarantine(issue, expiry, time.Now().UTC()); err != nil { | ||
| t.Fatalf("testsupport.Quarantine: %v", err) | ||
| } | ||
| t.Skipf("quarantined until %s (%s)", expiry, issue) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
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.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
… stress jobs, expiring Quarantine helper with guard
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.
a91ba97 to
364e8ff
Compare
|
@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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 364e8ffdf5
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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.
There was an error while loading. Please reload this page.
| // 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*\)`) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
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.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.