fix(e2e): use event author_association for trusted member gate - #2158
Conversation
GITHUB_TOKEN lacks read:org, so pulls.get often returns NONE/CONTRIBUTOR for org members with private membership visibility. Prefer the frozen github.event.pull_request.author_association for trusted-author checks; keep the REST API for ok-to-test label freshness. Fixes fullsend-ai#2157 Signed-off-by: Barak Korren <bkorren@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
E2E tests did not runE2E tests run automatically for org/repo members and collaborators on pull requests. For other contributors, a maintainer must add the See E2E testing guide for details. |
Site previewPreview: https://968ddf31-site.fullsend-ai.workers.dev Commit: |
|
🤖 Finished Review · ✅ Success · Started 8:49 AM UTC · Completed 9:00 AM UTC |
ReviewFindingsMedium
Previous runReviewFindingsMedium
Low
|
Exercise the lazy pulls API fetch when PR_AUTHOR_ASSOCIATION is set but not trusted, per review feedback on fullsend-ai#2158. Signed-off-by: Barak Korren <bkorren@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
|
🤖 Finished Review · ✅ Success · Started 9:07 AM UTC · Completed 9:16 AM UTC |
|
🤖 Finished Retro · ✅ Success · Started 9:39 AM UTC · Completed 9:42 AM UTC |
Retro: PR #2158 — fix(e2e): use event author_association for trusted member gateThis was a well-executed workflow with no significant improvement opportunities. Timeline: Human (ifireball) filed #2157 and opened PR #2158 within seconds (already had the fix via Cursor). The review agent ran in ~11 minutes and correctly identified a missing test case for the fallback path when What went well:
No proposals filed. The review agent performed well, the human-agent collaboration was smooth, and no recurring patterns or systemic issues were identified. |
Fixes #2157
Summary
github.event.pull_request.author_associationinto the e2e gate and prefer it for trusted-author checksok-to-testlabel freshness (labels/events)GITHUB_TOKENlacksread:org)Problem
PR #2106 authorized trusted authors via
gh api .../pulls/...withGITHUB_TOKEN. That token cannot see org membership, so members (including fork PR authors like #1954) were misclassified asunauthorizedand e2e was skipped despite the gate job succeeding.Test plan
bash scripts/check-e2e-authorization-test.shauthorized=true, e2e job should runMade with Cursor