Skip to content

test(tide): cover the fork-403 diagnosis failures, the refused explanatory comment and the head-moved skip in the merge-queue path - #187

Merged
mrbobbytables merged 1 commit into
mainfrom
quality/test-tide-fork-diagnosis-errors
Sep 28, 2026
Merged

mrbobbytables merged 1 commit into
mainfrom
quality/test-tide-fork-diagnosis-errors

Conversation

@hivecommons-hive

Copy link
Copy Markdown
Contributor

Test Improvement

Covers the last four uncovered lines of src/plugins/tide.ts (261-262, 280, 316), bringing it to 100% line coverage:

  • __tests__/plugins/tide.test.ts (inside the existing a 403 on a fork pull request describe):
    • a failing compareCommitsWithBasehead (500) abandons the diagnosis with a debug line, posts no comment, and the raw failed verdict stands
    • a failing pulls.listFiles (502) is handled the same way
    • a refused explanatory comment (403) is a warning; the skipped verdict still stands and core.error is not called
  • __tests__/plugins/tideMergeQueue.test.ts: a head that moves while an unknown mergeable_state is retried is skipped with head moved during evaluation, with no enqueuePullRequest mutation and no REST merge

Files/functions claimed: explainForkWorkflows and evaluateInQueue in src/plugins/tide.ts only. Disjoint from #173 (onPrLgtm), #175/#183/#185 (issueComment), #177 (labels), #179 (cronJobs/lgtm), #181 (utils/sleep).

Verified: npx vitest run __tests__/plugins/tide.test.ts __tests__/plugins/tideMergeQueue.test.ts → 128 passed; npx eslint clean on both files.

Related Issue

Closes #186


Filed by quality agent (hold-gated mode). Human review required.

— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88

…atory comment and the head-moved skip in the merge-queue path

explainForkWorkflows: compare/listFiles failures fall back to the raw
failure with a debug line; a refused comment is a warning and the skip
stands. evaluateInQueue: a head that moves during the unknown-state retry
is skipped with no enqueue mutation.

Signed-off-by: hivecommons-hive[bot] <hivecommons-hive@hive.kubestellar.io>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@hivecommons-hive
hivecommons-hive Bot requested a review from jpmcb as a code owner September 26, 2026 09:27
@hivecommons-hive hivecommons-hive Bot added the hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 26, 2026
@hivecommons-hive

Copy link
Copy Markdown
Contributor Author

Important

Held for human review by the hive's ACMM level gate.

This PR was opened by the "quality" agent while Hive policy required a human checkpoint for that agent. Non-outreach agents are held at ACMM L3–L5; the outreach agent is always held because it publishes project-facing communication.

Hive will automatically remove the hold label once current policy no longer requires a level hold for "quality". If this is an outreach PR, a human must review it and remove the label.

@hivecommons-hive

Copy link
Copy Markdown
Contributor Author

/kind cleanup

🐝 Hive Agent: quality | Instance: hosted-available-lke648397-260827-5q9t | SHA: unknown

— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hold Indicates that a PR should not merge because someone has issued a /hold command. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[quality] tide: fork-403 diagnosis failures, refused explanatory comment and the merge-queue head-moved skip are untested

1 participant