Repository navigation
Create lock for #5129, Cypress E2E removal, review follow-ups, E2E flake fixes - prod - #5321
Conversation
…ake fixes - prod Signed-off-by: Łukasz Gryglicki <[email protected]> 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 This pull request is too large for an automated review (32,254 changed lines; the limit is 20,000), so I won't start one. A human review is needed. If the pull request gets smaller, the next push, or a comment that begins with a mention of me followed by |
|
Action needed: @ahmedomosanya PTAL - same tree as the |
There was a problem hiding this comment.
🟡 Changes recommended
Duplicate company creation remains possible because the lease does not coordinate all creation paths and can be released while a timed-out Salesforce write is still running.
3 open issues
What changed in this PR
Adds a company-creation lock for #5129 in EasyCLA’s member-service flow, retires the Cypress suite, and improves the remaining browser tests.
Changes:
- Add DynamoDB-backed creation leases and a conflict response for concurrent requests.
- Remove Cypress tests, fixtures, runners, and CI jobs, with related documentation cleanup.
- Improve browser overlay handling, enable local sanctions screening by default, and update Go tooling and dependencies.
| File | Description |
|---|---|
utils/v4/final_coverage_report.sh |
Remove Cypress coverage counts. |
utils/final_api_coverage_report.sh |
Remove Cypress coverage reporting. |
tests/role-matrix/README.md |
Document fixture defaults without Cypress references. |
tests/role-matrix/personas.example.env |
Remove Cypress reference from fixture comment. |
tests/functional/utils/run-single-test.sh |
Remove Cypress test runner. |
tests/functional/utils/run-single-test-remote.sh |
Remove remote Cypress wrapper. |
tests/functional/utils/run-single-test-local.sh |
Remove local Cypress wrapper. |
tests/functional/utils/run-single-test-both.sh |
Remove combined Cypress wrapper. |
tests/functional/utils/prettier.sh |
Remove Cypress formatting helper. |
tests/functional/tsconfig.json |
Remove functional-suite TypeScript configuration. |
tests/functional/tsconfig.cypress.json |
Remove Cypress TypeScript configuration. |
tests/functional/run-local-cli.sh |
Remove local Cypress launcher. |
tests/functional/run-dev-cli.sh |
Remove dev Cypress launcher. |
tests/functional/README.md |
Remove Cypress setup documentation. |
tests/functional/package.json |
Remove Cypress package manifest and dependencies. |
tests/functional/cypress/support/e2e.js |
Remove Cypress support initialization. |
tests/functional/cypress/fixtures/version/getVersion.json |
Remove version response schema. |
tests/functional/cypress/fixtures/users/searchUsers.json |
Remove user-search response schema. |
tests/functional/cypress/fixtures/users/getUserCompat.json |
Remove legacy-user response schema. |
tests/functional/cypress/fixtures/users/getUser.json |
Remove user response schema. |
tests/functional/cypress/fixtures/users/createUser.json |
Remove user-creation response schema. |
tests/functional/cypress/fixtures/template/getTemplates.json |
Remove template-list response schema. |
tests/functional/cypress/fixtures/template/createCLAGroupTemplate.json |
Remove template-creation response schema. |
tests/functional/cypress/fixtures/signatures/updateApprovalList.json |
Remove approval-list response schema. |
tests/functional/cypress/fixtures/signatures/listClaGroupIclaSignature.json |
Remove ICLA-list response schema. |
tests/functional/cypress/fixtures/signatures/listClaGroupCorporateContributors.json |
Remove corporate-contributor response schema. |
tests/functional/cypress/fixtures/signatures/getUserSignatures.json |
Remove user-signatures response schema. |
tests/functional/cypress/fixtures/signatures/getSignatureById.json |
Remove signature response schema. |
tests/functional/cypress/fixtures/signatures/getGitHubOrgWhitelist.json |
Remove GitHub organization-list schema. |
tests/functional/cypress/fixtures/signatures/getEmployeeSignatures.json |
Remove employee-signatures response schema. |
tests/functional/cypress/fixtures/signatures/createSummaryReport.json |
Remove summary-report response schema. |
tests/functional/cypress/fixtures/projects/getProjects.json |
Remove project-list response schema. |
tests/functional/cypress/fixtures/projects/getCLAProjectsByID.json |
Remove CLA-project response schema. |
tests/functional/cypress/fixtures/project/updateProject.json |
Remove project-update response schema. |
tests/functional/cypress/fixtures/project/getProjectsByExternalID.json |
Remove external-ID project response schema. |
tests/functional/cypress/fixtures/project/getProjects.json |
Remove project-list response schema. |
tests/functional/cypress/fixtures/project/getProjectByName.json |
Remove project-name response schema. |
tests/functional/cypress/fixtures/project/getProjectById.json |
Remove project response schema. |
tests/functional/cypress/fixtures/project/createProject.json |
Remove project-creation response schema. |
tests/functional/cypress/fixtures/organization/searchOrganization.json |
Remove organization-search response schema. |
tests/functional/cypress/fixtures/metrics/listProjectMetrics.json |
Remove project-metrics list schema. |
tests/functional/cypress/fixtures/metrics/listCompanyProjectMetrics.json |
Remove company-project metrics schema. |
tests/functional/cypress/fixtures/metrics/getTotalCount.json |
Remove metrics-total response schema. |
tests/functional/cypress/fixtures/metrics/getTopProjects.json |
Remove top-projects response schema. |
tests/functional/cypress/fixtures/metrics/getTopCompanies.json |
Remove top-companies response schema. |
tests/functional/cypress/fixtures/metrics/getProjectMetric.json |
Remove project-metric response schema. |
tests/functional/cypress/fixtures/metrics/getCompanyMetric.json |
Remove company-metric response schema. |
tests/functional/cypress/fixtures/metrics/getClaManagerDistribution.json |
Remove manager-distribution response schema. |
tests/functional/cypress/fixtures/health/healthCheck.json |
Remove health-check response schema. |
tests/functional/cypress/fixtures/health/getHealth.json |
Remove health response schema. |
tests/functional/cypress/fixtures/gitlab-repositories/getProjectGitLabRepositories.json |
Remove GitLab repository-list schema. |
tests/functional/cypress/fixtures/gitlab-repositories/enrollGitLabRepository.json |
Remove GitLab enrollment response schema. |
tests/functional/cypress/fixtures/gitlab-organizations/updateProjectGitlabGroupConfig.json |
Remove GitLab configuration response schema. |
tests/functional/cypress/fixtures/gitlab-organizations/getProjectGitlabOrganizations.json |
Remove GitLab organization-list schema. |
tests/functional/cypress/fixtures/gitlab-organizations/getGitLabGroupMembers.json |
Remove GitLab group-members schema. |
tests/functional/cypress/fixtures/gitlab-organizations/addProjectGitlabOrganization.json |
Remove GitLab organization-creation schema. |
tests/functional/cypress/fixtures/github/getGitHubOrgExists.json |
Remove GitHub organization-existence schema. |
tests/functional/cypress/fixtures/github-repositories/getRepositories.json |
Remove GitHub repository-list schema. |
tests/functional/cypress/fixtures/github-repositories/getProjectGithubRepositories.json |
Remove project-repositories response schema. |
tests/functional/cypress/fixtures/github-repositories/getBranchProtection.json |
Remove branch-protection response schema. |
tests/functional/cypress/fixtures/github-repositories/addGithubRepository.json |
Remove repository-creation response schema. |
tests/functional/cypress/fixtures/github-organizations/updateGithubOrganizationConfig.json |
Remove GitHub configuration response schema. |
tests/functional/cypress/fixtures/github-organizations/getProjectGithubOrganizations.json |
Remove GitHub organization-list schema. |
tests/functional/cypress/fixtures/github-organizations/addProjectGithubOrganization.json |
Remove project-organization creation schema. |
tests/functional/cypress/fixtures/github-organizations/addGithubOrganization.json |
Remove GitHub organization-creation schema. |
tests/functional/cypress/fixtures/gerrits/getGerritRepos.json |
Remove Gerrit repository-list schema. |
tests/functional/cypress/fixtures/gerrits/addGerrit.json |
Remove Gerrit creation response schema. |
tests/functional/cypress/fixtures/foundation/listFoundationClaGroups.json |
Remove foundation CLA-group schema. |
tests/functional/cypress/fixtures/company/searchCompanyLookup.json |
Remove company-lookup response schema. |
tests/functional/cypress/fixtures/company/getCompanyProjectContributors.json |
Remove company-contributors response schema. |
tests/functional/cypress/fixtures/company/getCompanyProjectActiveCla.json |
Remove active-CLA response schema. |
tests/functional/cypress/fixtures/company/getCompanyByName.json |
Remove company-name response schema. |
tests/functional/cypress/fixtures/company/getCompanyAdmins.json |
Remove company-admins response schema. |
tests/functional/cypress/fixtures/claGroup/update_claGroup2.json |
Remove alternate CLA-group update schema. |
tests/functional/cypress/fixtures/claGroup/update_claGroup.json |
Remove CLA-group update schema. |
tests/functional/cypress/fixtures/claGroup/list_claGroup.json |
Remove CLA-group list schema. |
tests/functional/cypress/fixtures/claGroup/create_claGroup2.json |
Remove alternate CLA-group creation schema. |
tests/functional/cypress/fixtures/claGroup/create_claGroup.json |
Remove CLA-group creation schema. |
tests/functional/cypress/fixtures/cla-manager/isCLAManagerDesignee.json |
Remove manager-designee check schema. |
tests/functional/cypress/fixtures/cla-manager/getClaManagerRequests.json |
Remove manager-request list schema. |
tests/functional/cypress/fixtures/cla-manager/getClaManagerRequest.json |
Remove manager-request response schema. |
tests/functional/cypress/fixtures/cla-manager/createClaManagerRequest.json |
Remove manager-request creation schema. |
tests/functional/cypress/fixtures/cla-manager/createCLAManagerDesignee.json |
Remove manager-designee creation schema. |
tests/functional/cypress/fixtures/cla-manager/createCLAManager.json |
Remove manager-creation response schema. |
tests/functional/cypress/fixtures/cla-manager/assignCLAManager.json |
Remove manager-assignment response schema. |
tests/functional/cypress/fixtures/cla-manager/addClaManager.json |
Remove manager-addition response schema. |
tests/functional/cypress/e2e/v4/version.cy.ts |
Remove v4 version tests. |
tests/functional/cypress/e2e/v4/health.cy.ts |
Remove v4 health tests. |
tests/functional/cypress/e2e/v4/githubActivity.cy.ts |
Remove v4 GitHub webhook tests. |
tests/functional/cypress/e2e/v4/docs.cy.ts |
Remove v4 API documentation tests. |
tests/functional/cypress/e2e/v3/version.cy.ts |
Remove v3 version tests. |
tests/functional/cypress/e2e/v3/organization.cy.ts |
Remove v3 organization tests. |
tests/functional/cypress/e2e/v3/health.cy.ts |
Remove v3 health tests. |
tests/functional/cypress/e2e/v3/docs.cy.ts |
Remove v3 API documentation tests. |
tests/functional/cypress/e2e/v2/repository.cy.ts |
Remove v2 repository and callback tests. |
tests/functional/cypress/e2e/v2/project.cy.ts |
Remove v2 project tests. |
tests/functional/cypress/e2e/v2/health.cy.ts |
Remove v2 health tests. |
tests/functional/cypress/e2e/v2/gerrit.cy.ts |
Remove v2 Gerrit tests. |
tests/functional/cypress/e2e/v2/events.cy.ts |
Remove v2 event tests. |
tests/functional/cypress/e2e/v2/company.cy.ts |
Remove v2 company tests. |
tests/functional/cypress/e2e/v1/repository.cy.ts |
Remove v1 repository tests. |
tests/functional/cypress/e2e/v1/gerrit.cy.ts |
Remove v1 Gerrit tests. |
tests/functional/cypress/appConfig/config.production.ts |
Remove production Cypress fixtures. |
tests/functional/cypress/appConfig/config.dev.ts |
Remove dev Cypress fixtures. |
tests/functional/cypress.config.ts |
Remove Cypress runtime configuration. |
tests/e2e/browser/m3_chain.mjs |
Use overlay-aware manager-button clicks. |
tests/e2e/browser/lib/m3.mjs |
Use overlay-aware navigation and dialog clicks. |
tests/e2e/browser/lib/e2e.mjs |
Add backdrop dismissal and click retries. |
tests/e2e/browser/bridge.mjs |
Avoid toggling an already-open selector. |
CLAUDE.md |
Update Go guidance and remove Cypress references. |
cla-backend-legacy/README.md |
Remove Cypress testing instructions. |
cla-backend-legacy/internal/respond/respond.go |
Remove Cypress-only comments; behavior unchanged. |
cla-backend-legacy/internal/api/handlers.go |
Reword route comment; behavior unchanged. |
cla-backend-go/v2/company/service.go |
Expose creation-lock configuration. |
cla-backend-go/v2/company/models.go |
Store the creation-lock dependency. |
cla-backend-go/v2/company/handlers.go |
Map held creation leases to HTTP 409. |
cla-backend-go/v2/company/create_lock.go |
Implement conditional DynamoDB leases. |
cla-backend-go/v2/company/create_company_member_service.go |
Integrate lease acquisition and retention. |
cla-backend-go/v2/company/create_company_member_service_test.go |
Add request gating and grant-status assertions. |
cla-backend-go/v2/company/create_company_member_service_handler_test.go |
Cover creation-in-progress error mapping. |
cla-backend-go/go.mod |
Update Go toolchain and dependencies. |
cla-backend-go/config/local.go |
Default local sanctions screening to enabled. |
cla-backend-go/config/local_test.go |
Cover screening defaults and explicit overrides. |
cla-backend-go/cmd/server.go |
Wire DynamoDB creation leases into the service. |
cla-backend-go/.golangci.yaml |
Set lint target to Go 1.26. |
.github/workflows/security-scan-go.yml |
Update security-scan Go toolchain. |
.github/workflows/org-import-sweep.yml |
Update org-import Go toolchain. |
.github/workflows/license-compliance-go.yml |
Update license-check Go toolchain. |
.github/workflows/go-audit.yml |
Update audit Go toolchain. |
.github/workflows/deploy-prod.yml |
Update production deployment Go toolchain. |
.github/workflows/deploy-dev.yml |
Update Go and remove post-deploy Cypress job. |
.github/workflows/cypress-functional-pr.yml |
Remove Cypress workflow. |
.github/workflows/codeql-go-backend.yml |
Update CodeQL Go toolchain. |
.github/workflows/build-pr.yml |
Update PR-build Go toolchain. |
.github/copilot-instructions.md |
Update documented pinned lint toolchain. |
Review effort: Max
Signed-off-by: Łukasz Gryglicki <[email protected]> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot) Assisted by [Claude](https://claude.ai)
There was a problem hiding this comment.
🟡 Changes recommended
Unauthenticated session writes can overwrite company-creation leases and allow concurrent creation, while pre-dispatch Auth0 token failures unnecessarily retain leases and block retries for six minutes.
2 open issues
3 resolved since last review
Review effort: Max


cc @mlehotskylf @ahmedomosanya fixes linuxfoundation/lfx-self-serve#5129
Signed-off-by: Łukasz Gryglicki [email protected]
Assisted by OpenAI
Assisted by GitHub Copilot
Assisted by Claude