forked from jnode/jnode
-
Notifications
You must be signed in to change notification settings - Fork 1
Add regression coverage for an unconfirmed merge response #690
Copy link
Copy link
Closed
Labels
agent/doneThe agent finished successfully; PR opened or comment posted.The agent finished successfully; PR opened or comment posted.agent/failedThe agent exhausted its retries without producing a result.The agent exhausted its retries without producing a result.area/testUnit tests, boot tests, QEMU test infrastructure.Unit tests, boot tests, QEMU test infrastructure.kind/choreRefactor, typo sweep, dead-code removal; no behavior change.Refactor, typo sweep, dead-code removal; no behavior change.
Description
Activity
Metadata
Metadata
Assignees
Labels
agent/doneThe agent finished successfully; PR opened or comment posted.The agent finished successfully; PR opened or comment posted.agent/failedThe agent exhausted its retries without producing a result.The agent exhausted its retries without producing a result.area/testUnit tests, boot tests, QEMU test infrastructure.Unit tests, boot tests, QEMU test infrastructure.kind/choreRefactor, typo sweep, dead-code removal; no behavior change.Refactor, typo sweep, dead-code removal; no behavior change.
Summary
The merge helper now tolerates GitHub empty responses and re-fetches the PR to confirm
merged: true. Add regression coverage for the opposite case: the merge call returns without error, but the follow-up PR read reportsmerged: false.Affected behavior
Both the ticket-runner and batch-orchestrator auto-merge paths should keep the task in
REVIEWand surface a merge failure rather than claiming success when the PR is not actually merged.Scope
mergePRverification behavior; do not change production semantics unless a test exposes a missing error path.DONEand a failure comment is recorded.Acceptance criteria
merged: falseis not treated as success.Test path
Run
node --test .github/scripts/tests/*.test.js.Merge signal
Auto-merge is appropriate:
kind/chore, regression-test hardening, no Java or build surface.Triage Addendum (auto, 2026-09-26)
.github/scripts/tests/*.test.js; no production module change intended).github/scripts/tests/ticket-runner.test.jsand.github/scripts/tests/orchestrator.test.js; stubpulls.mergeto resolve empty andpulls.getto returnmerged: false; assert phase never reachesDONE, plusmerge_failedhistory entry and failure comment. No-go:core/src/**,*.asm,all/build.xml,.github/workflows/**,mergePRsemantics.node --test .github/scripts/tests/*.test.jsmergePRthrow path leavesstate.phase = "MERGE", notREVIEW(.github/scripts/ticket-runner.js:718and:548catch blocks); assert "notDONE" rather than aREVIEWphase, or file a follow-up ifREVIEWrollback is the real intent.## Triagecomment below.❌ Ticket Runner Status