Repository navigation
PR check 403 retry, org search limit, GitHub e-mails, import tool, lens e-mails - prod - #5333
Conversation
…ns e-mails - prod Signed-off-by: Łukasz Gryglicki <lgryglicki@cncf.io> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot) Assisted by [Claude](https://claude.ai)
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
@lukaszgryglicki I'm starting review 1 of this pull request now (started 2026-11-25 09:50 UTC using review agent v0.1.34). This usually takes a few minutes. I'll update this comment with the summary when I'm done. If there's no summary here after about 45 minutes, the review stopped: push a new commit, or post a comment that begins with a mention of me followed by Hi @lukaszgryglicki, thanks for the detailed PR description and the thorough tests. SummaryThis PR bounds the parallel company lookups in organization search, stops retrying GitHub 403 responses, and stores the signer's verified GitHub e-mails during Decision✅ Approved with minor comments ❔ 1 question · ⚪ 1 nit DetailsOverall impression: The concurrency limit in ❔ Question: 1 item: Restore after a real delete failure of a held grant Other reviewers and CI checks: CodeRabbit skipped this PR because the base branch is not the default branch. The required Documentation reminder: changed Rule files: read Questions, problems, or feedback: https://github.com/linuxfoundation/lfx-review-agent/issues |
lfx-one
left a comment
There was a problem hiding this comment.
No blocking findings. The /v3/organization/search concurrency bound, the 403 no-retry change, the GitHub e-mail refresh, the org-scope grant move and the audit columns look correct and are well covered by tests. One question and one nit are left as inline comments; neither blocks approval.
Documentation
This pull request changes behavior that may also be described outside this repository, such as product pages or an external docs site. I can't read those, so please check them; the author and maintainers own those updates. Changed here:
ccla_records(new audit.csv column)prepare-sign(now stores the signer's verified GitHub e-mails)/v3/organization/search(company lookups limited to 32 at a time)
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical issues can lose organization role grants, retain emails GitHub no longer verifies, and overwrite concurrent email updates, compromising access and approval integrity.
5 open issues
What changed in this PR
Ports #5332’s backend fixes to production, covering GitHub checks, organization searches, self-serve signing, import tooling, and email links.
Changes:
- Avoid retries for GitHub permission-denied comparisons and limit organization-search lookups to 32 concurrent requests.
- Refresh signers’ verified GitHub emails and extend Organization lens links to two email templates.
- Update organization-import grant handling, expand audit counts, and refresh JavaScript dependencies.
| File | Description |
|---|---|
yarn.lock |
Locks the minimatch upgrade and dependencies. |
package.json |
Updates the minimatch requirement. |
package-lock.json |
Records the npm dependency upgrade. |
cla-backend/yarn.lock |
Updates deployment-stack dependencies. |
cla-backend/package.json |
Bumps AWS SDK, XML parser, and query-string dependencies. |
cla-backend-go/yarn.lock |
Updates backend deployment dependencies. |
cla-backend-go/v2/self_serve_sign/service.go |
Integrates optional GitHub email refresh into signing. |
cla-backend-go/v2/self_serve_sign/github_emails.go |
Fetches and merges verified GitHub emails. |
cla-backend-go/v2/self_serve_sign/github_emails_test.go |
Covers refresh behavior and ownership guards. |
cla-backend-go/v2/my_clas/auth0_idp_token.go |
Retrieves linked-provider tokens from Auth0. |
cla-backend-go/v2/my_clas/auth0_idp_token_test.go |
Covers token lookup and failure handling. |
cla-backend-go/orgimport/steps.go |
Changes organization-scoped grant migration and recovery. |
cla-backend-go/orgimport/run_test.go |
Extends grant-migration fakes and audit expectations. |
cla-backend-go/orgimport/org_scope_grants_test.go |
Tests grant moves and restoration scenarios. |
cla-backend-go/orgimport/followup_test.go |
Tests audit counts for inactive companies. |
cla-backend-go/orgimport/columns.go |
Documents expanded audit columns. |
cla-backend-go/orgimport/audit.go |
Adds total CCLA records and broader ECLA counts. |
cla-backend-go/github/github_user_emails.go |
Lists verified GitHub emails with pagination. |
cla-backend-go/github/github_user_emails_test.go |
Tests email filtering, pagination, and failures. |
cla-backend-go/github/github_repository.go |
Stops retrying permission-denied comparisons. |
cla-backend-go/github/github_repository_test.go |
Tests forbidden-response and rate-limit retries. |
cla-backend-go/emails/org_lens_links_test.go |
Covers lens links in two additional templates. |
cla-backend-go/emails/docusign_templates.go |
Adds a lens-link branch to CCLA-signed copy. |
cla-backend-go/emails/cla_manager_templates.go |
Adds a lens-link branch to manager-request copy. |
cla-backend-go/company/service.go |
Bounds concurrent organization-search lookups. |
cla-backend-go/company/resolve_company_test.go |
Tests the lookup concurrency limit. |
cla-backend-go/cmd/server.go |
Wires Auth0-backed email refresh into signing. |
cla-backend-go/cmd/org_import/README.md |
Documents grant migration and new audit fields. |
Review effort: Max


prodversion of #5332:Fix https://github.com/linuxfoundation/lfx-self-serve-ops/issues/1337 (the part seen on
prod) -/v3/organization/searchruns at most 32 company lookups at a time - a search that listed 1,166 organizations ran the lambda out of file descriptors ("socket: too many open files").Fix https://github.com/linuxfoundation/lfx-self-serve-ops/issues/1337 (the part seen on
prod) -/v3/organization/searchruns at most 32 company lookups at a time - a search that listed 1,166 organizations ran the lambda out of file descriptors ("socket: too many open files").https://github.com/linuxfoundation/lfx-self-serve-ops/issues/1953 (option 4, backend part) -
prepare-signstores the signer's verified GitHub e-mails inuser_emails, as the PR flow does - only for the signer's own linked GitHub account - nothing changes until the Auth0 M2M client getsread:user_idp_tokens.Import tool (
cmd/org_import), found by theprodpilot of TASK: Import non-member companies in prod, in tranches lfx-self-serve#3957 - ACS refuses an organization scope role (contact) on the new Account while the user still holds one on the old id ("user is already associated with other organization") - such roles are now moved at the cleanup step instead of copied - a role that ACS still refuses lands indropped_grants.csv- rehearsed ondevagainst the real ACS - the first group of theprodpilot passed with it.Import tool audit, for DECISION: Disposition of the ~1,400 EasyCLA companies without an active CCLA before Console retirement lfx-self-serve#5083 - new last column
ccla_recordsinaudit.csv(CCLA records in any state) andecla_countalso for companies without an active CCLA.TASK: Link CLA manager emails to the Organization lens instead of the Corporate Console lfx-self-serve#3796 - the last two e-mails that named only the Corporate Console (pending CLA manager request, CCLA signed) get the same lens-or-Console branch as the others - no change while
cla-org-lens-base-{stage}is unset or the company has no Account id.Dependabot chore(deps): bump minimatch from 10.2.4 to 11.0.1 in the npm_and_yarn group across 1 directory #5328 and chore(deps): bump the npm_and_yarn group across 2 directories with 5 updates #5329 taken over as they are (minimatch, aws-sdk, fast-xml-parser, qs, follow-redirects, @babel/runtime) - both can be closed.
Slack: pilot stop https://linuxfoundation.slack.com/archives/C0BGU6YQC2F/p1795589850513899?thread_ts=1795012828.792819&cid=C0BGU6YQC2F - lens plan https://linuxfoundation.slack.com/archives/C0BGU6YQC2F/p1795567194359809?thread_ts=1795532995.494199&cid=C0BGU6YQC2F
cc @mlehotskylf @ahmedomosanya
Signed-off-by: Łukasz Gryglicki lgryglicki@cncf.io
Assisted by OpenAI
Assisted by GitHub Copilot
Assisted by Claude