Fix CI lint test failures#5086
Conversation
Signed-off-by: Lukasz 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)
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
WalkthroughThis PR refactors the compliance cache mutex in the sign service from a value type to a pointer, updates constructor initialization and test setup to match, and includes a minor formatting adjustment to a DynamoDB expression in the company repository. ChangesCompliance Cache Synchronization Refactoring
Possibly Related PRs
🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Pull request overview
This PR addresses CI lint/test failures by adjusting synchronization initialization in the v2 signing service and aligning a DynamoDB update input struct field formatting change.
Changes:
- Update
sign.serviceto storecomplianceCacheMuas a*sync.Mutexand initialize it inNewService. - Update SSS/compliance-cache unit tests to initialize the mutex when constructing
serviceinstances that exercise the compliance cache. - Minor formatting-only change in the company repository’s DynamoDB
UpdateItemInputliteral.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| cla-backend-go/v2/sign/service.go | Changes compliance cache mutex field to a pointer and initializes it in the service constructor to satisfy lint/static analysis. |
| cla-backend-go/v2/sign/service_sss_test.go | Updates tests to provide a mutex when constructing service instances that call cache methods. |
| cla-backend-go/company/repository.go | Formatting alignment change in DynamoDB update input literal (no behavioral change). |
Signed-off-by: Lukasz Gryglicki lgryglicki@cncf.io
Assisted by OpenAI
Assisted by GitHub Copilot
Assisted by Claude