Skip to content

fix(#2305): treat 401/403 comment-posting errors as non-fatal in post-retro.sh - #22

Closed
guyoron1 wants to merge 10 commits into
mainfrom
agent/2305-retro-403-non-fatal
Closed

fix(#2305): treat 401/403 comment-posting errors as non-fatal in post-retro.sh#22
guyoron1 wants to merge 10 commits into
mainfrom
agent/2305-retro-403-non-fatal

Conversation

@guyoron1

@guyoron1 guyoron1 commented Jun 16, 2026

Copy link
Copy Markdown
Owner

The retro post-script previously treated all comment-posting failures as fatal under set -euo pipefail, causing the entire workflow run to fail even when the retro agent succeeded and proposal issues were filed. A 403 ("Resource not accessible by integration") is a permanent permission error — retrying won't help, and the summary comment is informational.

Wrap the gh api comment-posting call in error handling that captures the exit code and response. If the response contains HTTP 401 or 403, log a GitHub Actions warning and continue. All other HTTP errors remain fatal. This prevents permission-gated repos from artificially inflating the failure rate.

Add post-retro-test.sh with 8 test cases covering: happy path with and without proposals, 403/401 non-fatal behavior, 500/422 remaining fatal, and edge cases.

Note: pre-commit could not run in sandbox (shellcheck-py failed to download due to network restrictions). The post-script runs an authoritative pre-commit check on the runner.


Closes fullsend-ai#2305

Post-script verification

  • Branch is not main/master (agent/2305-retro-403-non-fatal)
  • Secret scan passed (gitleaks — f119a205ffb44da8687d9ff1673b6b2d2de2e927..HEAD)
  • Pre-commit hooks passed (authoritative run on runner)
  • Tests ran inside sandbox

…tal in post-retro.sh

The retro post-script previously treated all comment-posting failures as
fatal under set -euo pipefail, causing the entire workflow run to fail
even when the retro agent succeeded and proposal issues were filed. A
403 ("Resource not accessible by integration") is a permanent permission
error — retrying won't help, and the summary comment is informational.

Wrap the gh api comment-posting call in error handling that captures
the exit code and response. If the response contains HTTP 401 or 403,
log a GitHub Actions warning and continue. All other HTTP errors remain
fatal. This prevents permission-gated repos from artificially inflating
the failure rate.

Add post-retro-test.sh with 8 test cases covering: happy path with and
without proposals, 403/401 non-fatal behavior, 500/422 remaining fatal,
and edge cases.

Note: pre-commit could not run in sandbox (shellcheck-py failed to
download due to network restrictions). The post-script runs an
authoritative pre-commit check on the runner.

Closes fullsend-ai#2305
@guyoron1

Copy link
Copy Markdown
Owner Author

/fs-qf

Go tier 1: 0 files → qf-tests/FS-2305/go/
Python tier 2: 0 files → qf-tests/FS-2305/python/
[skip ci]
@fullsend-ai-coder

fullsend-ai-coder Bot commented Jun 16, 2026

Copy link
Copy Markdown

QualityFlow Pipeline Summary

Stage Agent Status
1 STP Builder
2 STP Reviewer
3 STP Refiner
4 STD Builder
5 STD Reviewer
6 STD Refiner
7 Test Generator

Test Output

Language Count Location
Go 1 files qf-tests/GH-2305/go/

Issue: GH-2305


Generated by QualityFlow

@guyoron1

Copy link
Copy Markdown
Owner Author

/fs-qf

9 similar comments
@guyoron1

Copy link
Copy Markdown
Owner Author

/fs-qf

@guyoron1

Copy link
Copy Markdown
Owner Author

/fs-qf

@guyoron1

Copy link
Copy Markdown
Owner Author

/fs-qf

@guyoron1

Copy link
Copy Markdown
Owner Author

/fs-qf

@guyoron1

Copy link
Copy Markdown
Owner Author

/fs-qf

@guyoron1

Copy link
Copy Markdown
Owner Author

/fs-qf

@guyoron1

Copy link
Copy Markdown
Owner Author

/fs-qf

@guyoron1

Copy link
Copy Markdown
Owner Author

/fs-qf

@guyoron1

Copy link
Copy Markdown
Owner Author

/fs-qf

@guyoron1

Copy link
Copy Markdown
Owner Author

Closing — QualityFlow test artifacts were inadvertently pushed to this branch. Will re-test on dedicated PRs.

@guyoron1 guyoron1 closed this Jun 17, 2026
@github-actions
github-actions Bot deleted the agent/2305-retro-403-non-fatal branch July 19, 2026 05:45
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.

Retro post-script should treat 403 comment-posting errors as non-fatal

1 participant