Skip to content

PR check 403 retry, org search limit, GitHub e-mails, import tool, lens e-mails - prod - #5333

Merged
lukaszgryglicki merged 1 commit into
mainfrom
unicron-5331-1337-1953-prod
Nov 25, 2026
Merged

lukaszgryglicki merged 1 commit into
mainfrom
unicron-5331-1337-1953-prod

Conversation

@lukaszgryglicki

Copy link
Copy Markdown
Member

prod version of #5332:

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

…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)
@lukaszgryglicki lukaszgryglicki self-assigned this Nov 25, 2026
@lukaszgryglicki
lukaszgryglicki requested a review from a team as a code owner November 25, 2026 09:50
Copilot AI max review requested due to automatic review settings November 25, 2026 09:50
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 4b6d8428-9d8e-4bb5-9e6a-cb2a2a69ba7d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@lfx-one

lfx-one commented Nov 25, 2026 •

Copy link
Copy Markdown

@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 re-review, to start another. For help with the review agent, see https://github.com/linuxfoundation/lfx-review-agent/issues.


Hi @lukaszgryglicki, thanks for the detailed PR description and the thorough tests.

Summary

This PR bounds the parallel company lookups in organization search, stops retrying GitHub 403 responses, and stores the signer's verified GitHub e-mails during prepare-sign. It also moves org-scope ACS grants in the import tool, adds the ccla_records audit column, extends the lens-or-Console e-mail branch to two more templates, and bumps JS dependencies. The change is solid and well tested; I left one question about the grant restore path and one nit.

Decision

✅ Approved with minor comments

❔ 1 question · ⚪ 1 nit

Details

Overall impression: The concurrency limit in SearchOrganizationByName is correct (the slot is taken before the goroutine starts and released in a defer), and its test checks the peak. The 403 handling is covered by tests for both the no-retry case and the rate-limit retry case. The e-mail refresh only runs for the signer's own linked GitHub account, uses bounded timeouts, and leaves the stored addresses alone on any failure. The org-scope grant move has restore paths with tests for each failure mode. The lockfile changes are not reviewed line by line.

❔ Question: 1 item: Restore after a real delete failure of a held grant
⚪ Nit: 1 issue: ECLA counts for every company without an active CCLA run one at a time

Other reviewers and CI checks: CodeRabbit skipped this PR because the base branch is not the default branch. The required DCO check passed on 43c20e4.

Documentation reminder: changed ccla_records, prepare-sign, /v3/organization/search. Please check product pages and external docs; the author and maintainers own those updates.

Rule files: read CLAUDE.md; skipped none

Questions, problems, or feedback: https://github.com/linuxfoundation/lfx-review-agent/issues

@lfx-one lfx-one left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

Comment thread cla-backend-go/orgimport/steps.go Resolved
Comment thread cla-backend-go/orgimport/audit.go Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread cla-backend-go/orgimport/steps.go Resolved
Comment thread cla-backend/package.json Resolved

This branch was previously deployed

1 inactive deployment
dev — 43c20e43 Deployed Nov 25, 2026 by lukaszgryglicki via License Header Check #1468
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.

4 participants