Repository navigation
Fix duplicate issue lines in Triage run notifications - #1989
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Successful Triage run notifications already contain filed issue links in the Recommendation. Use the publication fallback only when that Recommendation is unavailable, then keep each published issue's exact
Issue:record once across questionnaires and retained failure details. Terminal output keeps its existing renderer.Closes #1988
Evidence
Execution evidence
Before:
cargo test --test triage_run a_successful_triage_notification_lists_a_filed_issue_once -- --exact --nocapturefailed against unpatcheddbdd8943with one recorded email request and two identical issue lines:After: The same command passed:
1 passed; 0 failed.Partial publication:
cargo test --test triage_run partial_publication_notification_lists_each_filed_issue_once -- --exact --nocapturefailed after the initial guard because retained failure analysis repeated each published link:left: 2,right: 1. After deduplication, the same command passed:1 passed; 0 failed.Questionnaire:
cargo test --test triage_run successful_questionnaire_notification_lists_its_filed_issue_once -- --exact --nocapturefailed after the initial guard because the Issues and Questionnaire sections both supplied the link:left: 2,right: 1. After deduplication, the same command passed:1 passed; 0 failed.cargo test --test triage_run:31 passed; 0 failed; 1 ignored, including terminal trailing-link checks, saved notifications, questionnaires and partial publication.Final-head CI run passed for
0d742d1bad0ee216c57acb0007807bb904b06bee.cargo nextest run:4185 tests run: 4185 passed (2 slow), 97 skippedin1319.877s. Formatting, clippy with warnings denied, site checks and Console browser checks also passed./usr/bin/time -p scripts/affected-tests refs/remotes/origin/mainselected the same full Rust suite locally. Perdocs/testing.md, the duplicate local run was stopped once CI passed on the identical head:1602.50selapsed, including51.27scompilation. It had reported no test failures before interruption; full-suite validation uses the successful CI result above.Test seams
thirdshift triageCLI with the existing fake GitHub and Harness adapters: observe filed issue URLs and terminal output.Issue: <url>line per filed issue.Unaddressed findings
assert_notification_links_once.Issue:record in the notification body. It adds no sink, and partial-failure publication links stay on the failure path.Security review outcome
No unaddressed introduced findings.
Review coverage
Independent Standards and Spec reviews against
refs/remotes/origin/mainread both changed files (src/notification.rs,tests/triage_run.rs) and their supporting paths. No changed files were left unread by either axis; no generated-output exclusions. Reports and final files-read lists are retained in the Session's.thirdshift-review-MyRB7N/artifacts. Finding counts include resolved findings: Standards 1 (worst P3), Spec 2 (worst P2), all addressed.Merge Danger
Door: two-way
Blast Radius: notifications
The change affects Triage run notification text. It removes only repeated exact records for known published issue links, preserving the first record and the questionnaire and failure details.
Built with codex codex-cli 0.164.0 · gpt-6.1-sol · xhigh