Repository navigation
feat(#1953): post no-PR reasons and failures to Jira - #2010
Conversation
Jira-sourced code runs that end without a PR now leave the reason on the Jira issue instead of only in the job log: - No-op exits post the no-PR notice with the agent's pr_body as context, using the same sanitization and secret scan as GitHub/GitLab. - Post-script failures post the failure category and sanitized detail through a new report_post_failure_to_external_tracker hook in the shared failure library. The write is best-effort and the original exit code is kept. - Both use a separate <!-- fullsend:code-agent-outcome --> marker, so a rerun edits the comment and never replaces the PR/MR link comment. - The trusted fullsend CLI is resolved before the ERR trap (and must be an absolute path), and the Jira token is literally redacted from every Jira write. - agents/code.md asks the agent to set pr_body to the reason whenever it stops with no commit and a clean tree, which previously happened only for repository-boundary escalations. Other external trackers stay log-only; GitHub/GitLab-sourced runs are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Eder Ignatowicz <ignatowicz@gmail.com>
The already-fixed and label-gated stop points in the code-implementation skill now say to set pr_body before stopping, so the agent's reason reaches the "No PR created" comment (see agents/code.md "Stopping without a commit"). Worded to stay within the skill's token budget. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Eder Ignatowicz <ignatowicz@gmail.com>
Signed-off-by: Eder Ignatowicz <ignatowicz@gmail.com>
Signed-off-by: Eder Ignatowicz <ignatowicz@gmail.com>
…tion Signed-off-by: Eder Ignatowicz <ignatowicz@gmail.com>
Signed-off-by: Eder Ignatowicz <ignatowicz@gmail.com>
PR Summary by QodoReport Jira code-agent no-PR reasons and failures
AI Description
Diagram
High-Level Assessment
Files changed (13)
|
|
🤖 Finished Review · ✅ Success · Started 9:35 PM UTC · Completed 9:50 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.77 |
Code Review by Qodo
1. Old failure notice stays up after a later run
|
|
Risk Assessment: moderate (2/5) DetailsHigh protected path count and active git churn across shared scripts are balanced by an established contributor, no security or CI changes, and strong alignment with active linked issue criteria. Previous runRisk Assessment: moderate (2/5) DetailsHigh protected path count and active git churn across shared scripts are balanced by an established contributor, no security or CI changes, and strong alignment with active linked issue criteria. Previous run (2)Risk Assessment: moderate (2/5) DetailsHigh protected path count and active git churn are balanced by an established contributor, no security or CI changes, and strong alignment with the active linked issue criteria. Previous run (3)Risk Assessment: moderate (2/5) DetailsHigh protected path count and active git churn are balanced by an established contributor, no security or CI changes, and strong alignment with the active linked issue criteria. Previous run (4)Risk Assessment: moderate (2/5) DetailsHigh protected path count and active git churn are balanced by an established contributor, no security or CI changes, and strong alignment with the active linked issue criteria. Previous run (5)Risk Assessment: moderate (2/5) DetailsHigh protected path count and active git churn are balanced by an established contributor, no security or CI changes, and strong alignment with the active linked issue criteria. Previous run (6)Risk Assessment: moderate (2/5) DetailsHigh protected path count and active git churn are balanced by an established contributor, no security or CI changes, and strong alignment with the active linked issue criteria. Previous run (7)Risk Assessment: moderate (2/5) DetailsHigh protected path count and active git churn are balanced by an established contributor, no security or CI changes, and strong alignment with the active linked issue criteria. Previous run (8)Risk Assessment: moderate (2/5) DetailsHigh protected path count and active git churn are balanced by an established contributor, no security or CI changes, and strong alignment with the active linked issue criteria. |
ReviewFindingsMedium
Low
Earlier findings
Previous run<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJ0aWVyLW1pc21hdGNoIiwiZmlsZSI6bnVsbCwiaWQiOiJmX2FhZDQ3NGMwNzNmYmMxMzUiLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJpbnRlbnQtY29oZXJlbmNlIn0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoibmFtaW5nLWNvbnZlbnRpb24iLCJmaWxlIjoiYWdlbnRzL2NvZGUubWQiLCJpZCI6ImZfNDljMjNmYTZiZGQzNjZlMiIsImxpbmUiOjE2MiwiYWN0aW9uYWJsZSI6dHJ1ZSwiZGltZW5zaW9uIjoic3R5bGUtY29udmVudGlvbnMifSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJzZWNyZXQtZXhwb3N1cmUiLCJmaWxlIjoic2NyaXB0cy9wb3N0LWNvZGUuc3JjLnNoIiwiaWQiOiJmXzFiOWQ0NTVjZDk2Yzk3MTYiLCJsaW5lIjozNTYsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJzZWN1cml0eSJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6InNlY3JldC1leHBvc3VyZSIsImZpbGUiOiJzY3JpcHRzL3Bvc3QtY29kZS5zcmMuc2giLCJpZCI6ImZfNDEyMDQ1ZGVhOWQ5YzM2MyIsImxpbmUiOjM1NywiYWN0aW9uYWJsZSI6ZmFsc2UsImRpbWVuc2lvbiI6InNlY3VyaXR5In1dLCJkaXNwb3NpdGlvbnMiOlt7ImlkIjoiZl9hYWQ0NzRjMDczZmJjMTM1Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfNDljMjNmYTZiZGQzNjZlMiIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzFiOWQ0NTVjZDk2Yzk3MTYiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl80MTIwNDVkZWE5ZDljMzYzIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn1dfQ== --> ReviewFindingsMedium
Labels: The PR title and change add new behavior (Jira no-PR reporting), matching the repo enhancement label. Previous run (2)<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJ0aWVyLW1pc21hdGNoIiwiZmlsZSI6bnVsbCwiaWQiOiJmX2FhZDQ3NGMwNzNmYmMxM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9XX0= --> ReviewFindingsMedium
Low
Earlier findings
Previous run (5)<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJzZWNyZXQtZXhwb3N1cmUiLCJmaWxlIjoic2NyaXB0cy9wb3N0LWNvZGUuc3JjLnNoIiwiaWQiOiJmXzQxMjA0NWRlYTlkOWMzNjMiLCJsaW5lIjozNTQsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJzZWN1cml0eSJ9LHsic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6InRpZXItbWlzbWF0Y2giLCJmaWxlIjpudWxsLCJpZCI6ImZfYWFkNDc0YzA3M2ZiYzEzNSIsImFjdGlvbmFibGUiOnRydWUsImRpbWVuc2lvbiI6ImludGVudC1jb2hlcmVuY2UifSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJuYW1pbmctY29udmVudGlvbiIsImZpbGUiOiJhZ2VudHMvY29kZS5tZCIsImlkIjoiZl80OWMyM2ZhNmJkZDM2NmUyIiwibGluZSI6MTYyLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJzdHlsZS1jb252ZW50aW9ucyJ9XSwiZGlzcG9zaXRpb25zIjpbeyJpZCI6ImZfYWFkNDc0YzA3M2ZiYzEzNSIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzQ5YzIzZmE2YmRkMzY2ZTIiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 --> ReviewFindingsMedium
Low
Earlier findings
Previous run (6)<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJ0aWVyLW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ZDQ3NGMwNzNmYmMxMzUiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl80OWMyM2ZhNmJkZDM2NmUyIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn1dfQ== --> ReviewFindingsMedium
Earlier findings
Previous run (8)<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6InRpZXItbWlzbWF0Y2giLCJmaWxlIjpudWxsLCJpZCI6ImZfYWFkNDc0YzA3M2ZiYzEzNSIsImFjdGlvbmFibGUiOnRydWUsImRpbWVuc2lvbiI6ImludGVudC1jb2hlcmVuY2UifSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJuYW1pbmctY29udmVudGlvbiIsImZpbGUiOiJhZ2VudHMvY29kZS5tZCIsImlkIjoiZl80OWMyM2ZhNmJkZDM2NmUyIiwibGluZSI6MTYyLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJzdHlsZS1jb252ZW50aW9ucyJ9XX0= --> ReviewFindingsMedium
Low
Next steps:
|
waynesun09
left a comment
There was a problem hiding this comment.
Review: one MEDIUM finding, left inline.
Signed-off-by: Eder Ignatowicz <ignatowicz@gmail.com>
|
🤖 Finished Review · ✅ Success · Started 10:02 PM UTC · Completed 10:10 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.55 |
Superseded by updated review
Signed-off-by: Eder Ignatowicz <ignatowicz@gmail.com>
|
🤖 Finished Review · ✅ Success · Started 10:16 PM UTC · Completed 10:23 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.57 |
|
@waynesun09, your retry finding is addressed in 47b09cd. The Jira no-op write now uses the transient-retry helper, including recognition of the CLI’s Could you take another look when you have a chance? Note 🤖 GPT-6 (version unavailable) responding on behalf of Eder |
Signed-off-by: Eder Ignatowicz <ignatowicz@gmail.com>
… guidance Signed-off-by: Eder Ignatowicz <ignatowicz@gmail.com>
|
🤖 Finished Review · ✅ Success · Started 11:08 PM UTC · Completed 11:22 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.97 |
waynesun09
left a comment
There was a problem hiding this comment.
Review: two MEDIUM findings, left inline.
|
🤖 Finished Review · ✅ Success · Started 6:26 PM UTC · Completed 6:35 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.12 |
waynesun09
left a comment
There was a problem hiding this comment.
Review: one MEDIUM finding, left inline.
Signed-off-by: Eder Ignatowicz <ignatowicz@gmail.com>
waynesun09
left a comment
There was a problem hiding this comment.
Review: two MEDIUM findings, left inline.
Signed-off-by: Eder Ignatowicz <ignatowicz@gmail.com>
waynesun09
left a comment
There was a problem hiding this comment.
Review: one HIGH finding, left inline.
Signed-off-by: Eder Ignatowicz <ignatowicz@gmail.com>
waynesun09
left a comment
There was a problem hiding this comment.
Review: one MEDIUM finding, left inline.
… body Build one credential list (raw and trimmed token, email, client id and secret) and use it for both the Jira comment body and the CLI output, so a token saved with surrounding whitespace no longer reaches the issue when agent context contains its trimmed form. Assisted-by: Claude Signed-off-by: Wayne Sun <gsun@redhat.com>
|
/fs-fix-stop |
|
@ederign I'm taking this over to get it merged: I'll push the fix for the open token-redaction thread and a merge of main on top of your commits (no force-push). Thanks for the work on this. |
|
Fix agent disabled for this PR. Remove the |
…g Jira comments A whitespace-only email or client ID passes validation (Bearer auth treats a blank email as absent), but as a redaction pattern it replaced every space or newline in the comment body with [REDACTED]. Skip values that trim to empty. Scope the docs' fatal-write sentence to the PR/MR link write and describe body redaction with the shared credential list. Assisted-by: Claude (fix), Claude (review), DeepSeek (review) Signed-off-by: Wayne Sun <gsun@redhat.com>
|
/ok-to-test 42593bb |
|
/fs-review |
|
Functional tests authorized for |
|
🤖 Finished Review · ✅ Success · Started 5:29 PM UTC · Completed 5:40 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.24 |
waynesun09
left a comment
There was a problem hiding this comment.
Approved. CI is green, all threads are resolved, and the redaction fixes are covered by tests that fail on the previous code.
Jira-sourced code runs now post the reason when no PR is opened: the agent’s explanation for a clean no-op, or the sanitized category and detail for a post-script failure.
The PR-link, no-op and failure paths share the existing Jira validation and authenticated writer. Separate markers let retries update the matching comment without replacing the PR link. Failure reporting stays best-effort and preserves the original exit status, including when comment rendering or delivery fails. The optional
no_pr_reasonoutput field makes the agent’s explanation explicit, withpr_bodyretained as a fallback for older outputs.Refs #1953.
Validation
November 19 review follow-up
The shared Jira comment writer now suspends and restores xtrace for every caller and redacts the saved OAuth client secret alongside the Jira token. Tests cover traced no-op and failure runs in token and OAuth modes, successful and failed delivery, and literal OAuth-secret redaction in failure comments, including whitespace-trimmed credentials. The source post-code suite passes 373 checks; pre-commit and repository lint pass.
Failure details retain the same bounded regex/literal-token sanitizer as the existing forge failure-comment path. Early failures can occur before
scan_public_textis initialized; that scanner remains required for optional no-op agent context. This behavior and its limitation are documented indocs/code.md.Failure-filter hardening
Failure reporting now resolves system
sed,awk,tail,catandgrepbefore repository-installed tools can alter PATH, and uses those paths throughout the failure-comment sanitizer and its comment formatting. A push-failure regression installs shadow tools that capture stdin and verifies they never receive the credential-bearing diagnostic. That regression fails against the previous sanitizer and passes with the fix; the 373-check source and bundled post-code suites pass.No-PR reason truncation
Long no-PR explanations now retain the first 30 lines and show a truncation marker, preserving the leading reason. The complete explanation is sanitized and scanned before truncation. Regression tests cover both
no_pr_reasonand legacypr_bodyat 30, 31 and 45 lines. All 379 source and 379 bundled post-code checks pass; all-files pre-commit, repository lint and bundle consistency checks pass.Jira diagnostics and system-filter checks
Missing or invalid system-filter paths now fail with a clear tool-specific diagnostic. The shared Jira comment writer captures stdout and stderr, redacts saved and normalized credentials before logging, and preserves the original CLI exit status. Regression tests cover failed, empty, relative and non-executable filter lookups, plus credential-bearing CLI output for token and OAuth no-op/failure writes with successful and failed delivery.
Validation: 126 shared failure-reporter checks, 383 source and 383 bundled post-code checks, 234 post-fix checks and 25 code-output validation checks passed. All-files pre-commit, repository lint and bundle consistency passed.
CI ShellCheck compatibility
Scoped SC2317 annotations explain why
exitis reachable in executed bundles whenreturnis invalid. The source and regenerated bundles pass the pinned ShellCheck 0.10.0; the same version reproduces the warnings on the previous guard lines. All 126 shared failure-reporter checks pass, including sourced and executed-bundle failure paths.Maintainer takeover (November 23)
f2ec7ea5: the comment body and the CLI output are now redacted from one credential list (raw and trimmed token, email, client ID and secret). Before, a token saved with surrounding whitespace was redacted from the log but not from the body. New test:jira-noop-redacts-trimmed-token.42593bbf: values that trim to empty are skipped, so a blank email no longer turns every space in the comment into[REDACTED]. New test:jira-noop-blank-email-keeps-body. Both new tests fail on the previous code.main.make check-bundlepasses; the source post-code suite passes 389 checks.Note
🤖 GPT-6 (version unavailable) responding on behalf of Eder