Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a check to see if a lock is from a closed PR #247

Merged
merged 11 commits into from
Aug 14, 2024
Merged

Conversation

kneeyo1
Copy link
Contributor

@kneeyo1 kneeyo1 commented Aug 13, 2024

Unlocks the slice during the plan stage if the lock is found to be on a closed PR.

This isn't fully resilient.

If PR 1 is still open but no longer touching a file, PR 2 will still be unable to unlock. PR 1 has to be closed/merged.

Copy link
Collaborator

@bukzor bukzor left a comment

Choose a reason for hiding this comment

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

LGTM, just nits remaining.
Approved.

lib/tf_lock/tf_lock_acquire.py Outdated Show resolved Hide resolved
lib/tf_lock/tf_lock_acquire.py Outdated Show resolved Hide resolved
spec/scenarios/orphaned_lock.py Show resolved Hide resolved
lib/tf_lock/tf_lock_acquire.py Outdated Show resolved Hide resolved
kneeyo1 and others added 2 commits August 14, 2024 14:05
Co-authored-by: Buck Evan <buck.evan@sentry.io>
Co-authored-by: Buck Evan <buck.evan@sentry.io>
@kneeyo1 kneeyo1 enabled auto-merge August 14, 2024 21:37
@kneeyo1 kneeyo1 added this pull request to the merge queue Aug 14, 2024
Merged via the queue into main with commit 6125aa3 Aug 14, 2024
2 checks passed
@kneeyo1 kneeyo1 deleted the fix/unlock-bug branch August 14, 2024 21:37
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