ci(#6025): provision test actor permissions in pool org setup - #6032
Conversation
Extend hack/setup-new-e2e-org.sh with two new sections (3b, 3c) that idempotently provision test actor permissions when setting up a pool org: - fstest-write: org member + push collaborator on base test-repo* - fstest-triage: org member + triage collaborator on base test-repo* - fstest-outsider: verify no org membership and no collaborator grant Org membership invitations are auto-accepted when the actor's PAT is available via TEST_ACTOR_WRITE_PAT / TEST_ACTOR_TRIAGE_PAT env vars; otherwise the script pauses for manual acceptance. Collaborator grants use direct overrides on all non-fork test-repo* repos in the org. Also update docs/guides/dev/e2e-testing.md pool org provisioning section to document the test actor permission model, including the permission table, PAT env vars for auto-accept, and link to #6024. Note: pre-commit could not run (sandbox network policy blocks git fetch for hook environment setup). shellcheck passed locally. Closes #6025
|
🤖 Finished Review · ✅ Success · Started 11:02 AM UTC · Completed 11:19 AM UTC Commit: |
Site previewPreview: https://0e1a2aac-site.fullsend-ai.workers.dev Commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
ReviewFindingsLow
Previous runReviewFindingsLow
Labels: PR modifies e2e pool org setup script and e2e testing documentation |
|
/fs-fix |
|
🤖 Finished Fix · ✅ Success · Started 6:01 AM UTC · Completed 6:08 AM UTC Commit: |
- Surface API errors in repo listing instead of silently falling back to "no repos found" when gh api --paginate fails (auth/network issues) - Align non-fatal grant failure prefix from FAIL: to WARNING: to match existing script conventions (ERROR: = fatal, WARNING: = non-fatal) - Clarify docs terminology: "direct collaborator grants (not team membership)" instead of "direct collaborator overrides (no teams)" Addresses review feedback on #6032
🔧 Fix agent — iteration 1 (human-triggered)Addressed all 3 review findings: surfaced API errors instead of masking them, aligned message prefixes with script conventions, and clarified docs terminology. Fixed (3):
Tests: passedNext steps:
|
|
🤖 Finished Review · ✅ Success · Started 6:09 AM UTC · Completed 6:22 AM UTC Commit: |
|
🤖 Finished Retro · ✅ Success · Started 5:44 AM UTC · Completed 5:58 AM UTC Commit: |
Retro: PR #6032 — provision test actor permissions in pool org setupVerdict: Workflow went well. The full agent pipeline (triage → code → review → fix → re-review → merge) executed smoothly with one fix cycle. The code agent produced working code in a single pass, the review agent found 3 genuine low-severity issues, the fix agent addressed all 3 in one pass, and the re-review confirmed the fixes while correctly accepting 2 residual polish-level items. The human reviewer approved without needing to add anything. No new proposals are warranted — the improvement opportunities identified are already tracked by existing open issues. Timeline
What worked well
Improvement opportunities (all tracked by existing issues)Code agent didn't read shell scripting conventions. The code agent modified
Review findings posted as top-level comments, not inline. All review findings were in issue-level comments rather than inline on the diff. This is likely related to the 422 stale-diff fallback tracked in agents#760 (filed Aug 11) and fullsend#6039 (investigate 100% inline comment posting failure). |
Summary
Extend the pool org setup script to idempotently provision test actor permissions (write/triage/outsider) and document the permission model in the e2e testing guide.
Related Issue
Changes
fstest-write,fstest-triage,fstest-outsideruser variables tohack/setup-new-e2e-org.shTEST_ACTOR_WRITE_PAT,TEST_ACTOR_TRIAGE_PAT) and manual fallback; verify outsider has no membershippush/triagecollaborator permissions on all non-forktest-repo*repos; verify outsider has no collaborator accessdocs/guides/dev/e2e-testing.mdpool org provisioning checklist (add item 3, renumber)Testing
shellcheckpasses onhack/setup-new-e2e-org.shCloses #6025
Post-script verification
agent/6025-pool-org-test-actors)743f99d88b883f61b19f09d00b723f7a3f8ae4f8..HEAD)