fix(cloud-tests): preserve batch finding cancellations#2907
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
1 issue found across 3 files
Confidence score: 3/5
- There is a concrete concurrency risk in
apps/app/src/trigger/tasks/cloud-security/remediate-batch-helpers.ts:persistProgressdoes a read-then-write, so a cancellation that occurs betweenfindUniqueandupdatemay be overwritten. - This is a medium-severity (6/10) issue with moderate confidence (6/10), which suggests some user-impacting regression risk rather than a merge-blocking failure.
- The change may still be mergeable, but it carries non-trivial risk around cancellation correctness and task state integrity.
- Pay close attention to
apps/app/src/trigger/tasks/cloud-security/remediate-batch-helpers.ts- the read/write window inpersistProgresscan clobber cancellation updates.
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
Contributor
|
🎉 This PR is included in version 3.62.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification
Notes
Summary by cubic
Fixes remediation batches to preserve per-finding cancellations and stop cancelled findings from executing. Adds serializable, retryable progress persistence to keep counts and final status correct.
PrismaP2034conflicts and re-read cancellations on retry.persistProgressfor final completion with optional terminal status. Tests added for cancellation and retry.Written for commit 199dfc3. Summary will update on new commits. Review in cubic