Skip to content

ci: attribute dequeue failures against main - #37277

Merged
pmbrull merged 3 commits into
mainfrom
agent/oss-dequeue-attribution
Nov 7, 2026
Merged

pmbrull merged 3 commits into
mainfrom
agent/oss-dequeue-attribution

Conversation

@pmbrull

@pmbrull pmbrull commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Describe your changes:

Internal CI tooling. No linked issue; skip-pr-checks exempts PR metadata validation.

Classify dequeued Java test failures as Also failing on main, Possible PR/merge-group regression, or Unknown using executed test evidence from the exact main base. Attribution names render separately for GitHub Markdown and Slack mrkdwn.

Ports Collate PR #8342, adapted to OSS's service and operator unit tests and all three Java integration profiles and their lanes.

The dequeue reporter ignores manual removals, so it posts neither a PR comment nor a Slack alert.

Type of change:

  • Improvement

High-level design:

An optional composite action records test outcomes, failure fingerprints, source and base revisions, suite, and runner details. Integration suites include the profile and lane. The dequeue reporter compares only the same workflow and displayed job against an executed push or manual run at that base, with matching suite and runner.

Job conclusions alone do not establish whether the same tests failed. Missing, skipped, expired, incompatible, or conflicting evidence stays Unknown. The reporter does not launch baseline reruns. Artifacts retain seven days of evidence and the reader caps archives and JSON entries at 16 MiB.

The privileged report checks out trusted base code and reads evidence as data. Existing Playwright failure details and conflict explanations remain in their current destinations. OSS uses one checkout, so the port omits Collate's independent submodule revisions.

Decision: Dequeue attribution requires comparable test evidence.

Tests:

Use cases covered

  • Matching failure, passing baseline, mixed failures, skipped tests, and conflicting retries.
  • Exact base, workflow, job attempt, profile, lane, and runner matching.
  • Missing or expired evidence, API and decoder errors, and archive size limits.
  • Literal job names on GitHub and escaped Slack mentions.
  • Entries removed before a build, empty failures, external checks, Playwright details, and conflict explanations.

Unit tests

  • python3 -m unittest discover -s .github/scripts -p test_merge_queue_evidence.py -v: 26 passed.
  • The report-continuation regression failed for runtime, recursion, and decompression errors before the fix. It now verifies Unknown and continued reporting for those errors and API failures.
  • Ruff lint, import ordering, and format checks passed for both Python files.
  • actionlint passed for all six changed workflows.
  • Coverage percentage not measured. The change touches CI scripts, with no Java service classes.

Backend integration tests

Not applicable: no backend code or API changes. make java_affected ARGS='--scope focused' selected no tests. python3 .github/scripts/plan_local_java_tests.py --check-branch passed.

Ingestion integration tests

Not applicable: no ingestion changes. Full Maven and ingestion suites were not run.

Playwright (UI) tests

No UI code changed. make playwright_affected could not complete dependency expansion because this fresh worktree lacks @playwright/test. No UI tests were run.

Manual testing performed

  • Manual-removal regression: executed the actual event-resolution Bash with fixture GitHub responses. All six scenarios passed: manual and MANUAL publish no reporting outputs; failed-check and conflict variants preserve reason, SHA, and timestamp. Both PR-comment and Slack steps stay gated. The check failed before this change in this repo. Workflow lint and the 26 attribution tests also passed.
  • Executed the report's Bash step with fixture responses for a failed Actions job, no failed checks, an external check, and no queue SHA. All four cases produced the expected PR Markdown and Slack JSON.
  • Verified that Playwright failure details still reach both reports and conflict explanations remain on the PR only. No messages were posted.
  • Verified displayed matrix job names against live GitHub Actions run 41673751087.
  • python3 scripts/harness/check_decision_records.py: passed.
  • Pending: publication and comparison of the new evidence artifacts in GitHub CI and live notification delivery.

UI screen recording:

Not applicable: CI reporting only.

Checklist:

  • PR title and issue linkage: internal CI tooling, with the metadata exemption stated above.
  • Added tests for the changed behavior and listed the results above.
  • JSON Schema and migrations: not applicable.
  • UI build and recording: not applicable.
  • Self-review against REVIEW.md: reviewed 07f4f2c8da; fresh follow-up review found no unanswered Important defects, with prior evidence retained for unchanged attribution code.
  • Decision check: added the attribution evidence record.

@pmbrull
pmbrull requested review from a team, akash-jain-10, harshach and tutte as code owners November 6, 2026 13:48
@pmbrull pmbrull added the skip-pr-checks Bypass PR metadata validation check label Nov 6, 2026
Copilot AI balanced review requested due to automatic review settings November 6, 2026 13:48

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@github-actions github-actions Bot added Ingestion safe to test Add this label to run secure Github workflows on PRs labels Nov 6, 2026
Manual queue removals do not diagnose a failure. Return before publishing
event outputs so the dequeue reporter sends neither a PR comment nor a
Slack alert.
Copilot AI balanced review requested due to automatic review settings November 6, 2026 16:39

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@gitar-bot

gitar-bot Bot commented Nov 6, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Comparing Java failure evidence against main in dequeue reports could misattribute failures and mislead CI triage if evidence is mismatched.

Adds CI dequeue attribution that classifies dequeued Java test failures against executed main-base evidence as Also failing on main, Possible PR/merge-group regression, or Unknown, with evidence recorded by a new composite action. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@pmbrull
pmbrull merged commit 9abf4c7 into main Nov 7, 2026
67 checks passed
@pmbrull
pmbrull deleted the agent/oss-dequeue-attribution branch November 7, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ingestion safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants