Skip to content

fix(test): warn instead of fail when a passing suite runs past its share in the local gate - #11098

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-10847-40979287865-1
Oct 30, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-10847-40979287865-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #10847

Summary

Opened by the work-resolve-issue lane. The run's own summary:

In the local verify gate, a suite that passes but runs past its time share is now a warning, not a failure. A suite that fails by exit code still fails, and the default for other --budget callers (CI's maintenance-audit-test-selection) is unchanged. scripts/run-plugin-tests.sh reads a new PLUGIN_TEST_SHARE_WARN_ONLY switch (0 or 1, default 0), and scripts/check-affected.sh sets it to 1 for the suites it runs. With --budget, the runner also prints a one-line stderr note for each selected suite with no median in suite-seconds.txt, naming the suite and the default share it gets, where it used to apply the floor silently. This follows the recorded decision; the post-merge-demotion-alert.test.sh baseline row was already on main (scripts/suite-seconds.txt).

Not verified

  • The shell suites scripts/run-plugin-tests.test.sh and scripts/check-affected.test.sh were not executed: this lane can run only the named wrappers, and the check-affected wrapper ran without --tests. They are left to the PR's CI, including confirming the stay-quiet test fails before the fix (by readi
  • Tidy skipped: every changed file is under scripts/, a listed shared path, so the change is not tidied.
  • Build/lint beyond check-affected (shellcheck and shell-portability run inside it) not run separately; typos was not installed, so check-affected skipped it.
  • Changes left uncommitted in the working tree per the runner's instructions; the runner turns them into the patch.

Fix

  • scripts/run-plugin-tests.sh: PLUGIN_TEST_SHARE_WARN_ONLY (validated as 0 or 1 under --budget) turns an over-share suite into an OVER SHARE: stderr line plus a ::warning:: annotation instead of a failure; with --budget, each selected suite with no median gets a stderr note naming the default share;
  • scripts/check-affected.sh: runs affected-tests.sh with PLUGIN_TEST_SHARE_WARN_ONLY=1; the --budget usage line says an over-share suite is a warning
  • scripts/affected-tests.sh: the --budget usage line names the warn-only switch
  • scripts/run-plugin-tests.test.sh: unsets the inherited switch at the top. New cases: the stay-quiet test (a passing suite past its fixed 1 s share exits 0 with a warning and no error annotation when the switch is 1), a failing over-share suite still fails with only its exit annotated, the switch at
  • scripts/check-affected.test.sh: the affected-tests stub logs the switch it inherits, and a new case checks that --tests passes PLUGIN_TEST_SHARE_WARN_ONLY=1

Verification

The runner ran each check from the base copy against 080cae0:

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

  • check-changelog-fragments: all 4 fragments under .changes/ valid (no plugin changed, so no fragment is owed)
  • check-affected (first run and after the review fixes): 10 passed, 5 skipped (markdown, ruff, validate-plugins, changed-skills not applicable; typos not installed) over the changed files
  • cant-fail-scan --file scripts/run-plugin-tests.test.sh --check: PASS, no gating findings
  • cant-fail-scan --file scripts/check-affected.test.sh --check: PASS, no gating findings
  • fresh-context review subagent over the whole diff: no correctness bugs. Five minor findings applied: the BUDGET doc's 'fails by name' qualified, the affected-tests.sh usage line updated, the failing-suite case now asserts the overrun is only a warning with one error annotation, a switch-at-0 case ad
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40979287865

Left out: the items under Not verified.

Related

#10847

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 3f81be6750a9b54f2945459ed3fc0a472c6ca238: 0 finding(s), 0 as inline comments.

Incremental review of scripts/check-affected.test.sh (since 080cae0): the only change adds a missing space between the check description string and the condition string at line 7 of the diff (..."suites"'[[ ... ]]' becomes ..."suites" '[[ ... ]]'). This is a test-only fix. It has no security-relevant surface and touches no trust control, token scope, kill switch, merge hold, manifest or instruction surface. No security issues found.

Spend note: none. No hold.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude-review: 1 inline finding(s) on 080cae0b9e2968b05c675061164de4eba67cfba0; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread scripts/check-affected.test.sh Resolved
@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 3f81be6750a9b54f2945459ed3fc0a472c6ca238: 0 finding(s), 0 as inline comments.

Incremental review of scripts/check-affected.test.sh since 080cae0. I read .claude-lane/incremental.diff and ran nothing.

The change adds the missing space between the two arguments on the --tests passes PLUGIN_TEST_SHARE_WARN_ONLY=1 to the suites check line, at line 300. Before, the description and the condition were glued into one shell word ("..."'[[ ... ]]'). check would have received a single argument, so the condition was never evaluated as intended. Now it receives the description and the condition as two arguments, like every neighbouring check line. The fix is correct and consistent with the rest of the file.

No findings. The change spends no money, so there is no hold. I checked no closing-issue criteria and no manifests, because this increment touches neither. Every other file is unchanged since the last review.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 080cae0b9e2968b05c675061164de4eba67cfba0. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6xzqpq
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on 3f81be6.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 3f81be6750a9b54f2945459ed3fc0a472c6ca238.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit f7966be Oct 30, 2026
46 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-10847-40979287865-1 branch October 30, 2026 01:14
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.

fix(test): the local verify gate fails a passing suite that ran past its time share on a loaded host

0 participants