Skip to content

Share the failed-child exit check across Kubernetes teardown tests - #2848

Merged
freeqaz-openai merged 1 commit into
mainfrom
test/share-kubernetes-teardown-child-exit
Oct 18, 2026
Merged

freeqaz-openai merged 1 commit into
mainfrom
test/share-kubernetes-teardown-child-exit

Conversation

@freeqaz-openai

Copy link
Copy Markdown
Collaborator

Six teardown tests need the same guarantee: the child test process exits on its own, within ten seconds, with status 1. They now share that check. Each test keeps its own assertions about the failure, cleanup, or timeout it exercises. An unrelated failure also exits 1.

All 37 tests passed before and after. As a negative check, I changed the child’s worker-stop error without changing its exit status. The owning test failed on the wrong error, as intended. I ran these in an isolated container, not against a live Kubernetes cluster.

@freeqaz-openai
freeqaz-openai requested a review from a team as a code owner October 18, 2026 13:09
@freeqaz-openai freeqaz-openai added the agent-created PR opened by an AI agent; does not identify the reviewer or approver. label Oct 18, 2026
@clawsweeper

clawsweeper Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 18, 2026
@clawsweeper

clawsweeper Bot commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR shares the child-process failure and prompt-exit checks across six Kubernetes teardown tests.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused and apparently correct test cleanup, supported by reported container validation and passing CI rather than shipped-entry-point evidence.
Proof confidence 🦐 gold shrimp (3/6) This collaborator-authored PR changes only conformance-test assertions; reported isolated-container runs and passing head CI support the extraction without claiming live Kubernetes proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
Reason: The maintainer-authored cleanup reduces repeated test machinery without weakening failure discrimination or changing platform behavior.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR is a focused test cleanup that preserves scenario-specific assertions, with no introduced defect found.

Priority: P3
Reviewed head: b958082785317194acf644fc8f30dcbbc5565837

Before merge

None.

Findings

None.

Agent review details

How this fits together

Kubernetes conformance tests launch isolated Node test processes, exercise teardown failures, and inspect their exit status, cleanup output, and diagnostics.

flowchart TD
A[Six teardown scenarios] --> B[Shared failing-script check]
B --> C[Existing script runner]
C --> D[Child Node test process]
D --> E[Teardown helpers]
D --> F[Exit and captured output]
F --> A
Loading

Technical review

Best possible solution:

Retain the shared exit check and the independent assertions owned by each teardown scenario.

Do we have a high-confidence way to reproduce the issue?

This is test refactoring rather than a reported product failure; inspection confirms the duplicated exit checks, and no target code was executed during review.

Is this the best way to solve the issue?

The small local helper appropriately reuses the existing runner while leaving scenario-specific expectations at their call sites.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against fb28ccf155ee.

Provenance checked

  • OpenShell child-process teardown assertions keeps the original intent (28207c6: Protect against stalled worker cleanup skipping other releases and keeping the test process alive.)
  • Topology child-process teardown assertions keeps the original intent (578365d: Verify every cleanup runs after worker-stop rejection and the original error still fails the child.)
  • Timeout, late-setup, and file-settlement assertions keeps the original intent (test: see the file's end when a file hook fails, and stop late setup safely #2799: Preserve bounded exit without interrupting later tests, hooks, or resource release after timed-out setup.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Free Wortley: Raw commit 75afa0d adds tests/conformance/kubernetes-real-kubectl.test.mjs:447 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 75afa0df8727; files: tests/conformance/kubernetes-real-kubectl.test.mjs)

Review metrics

Metric Value Why it matters
Change size Production: 0 lines; tests: +16/-48 The extraction removes 32 net lines while preserving six distinct teardown scenarios.

Labels

Label changes:

  • add P3: Behavior-preserving test maintenance with no production changes.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: Behavior-preserving test maintenance with no production changes.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 18, 2026, 9:21 AM ET / 13:21 UTC.

@freeqaz-openai
freeqaz-openai merged commit 23ad336 into main Oct 18, 2026
30 of 31 checks passed
@freeqaz-openai
freeqaz-openai deleted the test/share-kubernetes-teardown-child-exit branch October 18, 2026 13:26

This branch was previously deployed

1 inactive deployment
integration-qa-pr — b9580827 Deployed Oct 18, 2026 by freeqaz-openai via QA advisory (compose) #2209
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-created PR opened by an AI agent; does not identify the reviewer or approver. P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant