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

Set a static run_attempt for Semaphore #45

Merged
merged 1 commit into from
Jan 14, 2024

Conversation

benjaminwood
Copy link
Contributor

@benjaminwood benjaminwood commented Jan 14, 2024

On Semaphore, hitting the rerun button generates an entirely new build with a unique job id, workflow id, and pipeline id. As such, we don't have anything to group it by in order to tell if it is a rerun or not.

Initially I figured I'd leave the run_attempt blank since we generate one if it isn't set. But, then we have the problem were a straggler node can restart a build if it comes online after the build has finished.

With this in mind, I think it's better to explicitly set a static run_attempt for Semaphore since each build is a one-shot.

As an aside, perhaps we should consider ditching our auto-generated after all.

On Semaphore, hitting the rerun button generates an entirely new build
with a unique job id, workflow id, and pipeline id. As such, we don't
have anything to group it by in order to tell if it is a rerun or not.

Initially I figured I'd live the run_attempt blank since we generate one
if it isn't set. But, then we have the problem were a straggler node can
restart a build if it comes online after the build has finished.

With this in mind, I think it's better to explicitly set a static
run_attempt for Semaphore since each build is a one-shot.

As an aside, perhaps we should consider ditching our auto-generated
after all.

Co-authored-by: Nate Vick <nate.vick@hint.io>
@benjaminwood benjaminwood self-assigned this Jan 14, 2024
@benjaminwood benjaminwood merged commit 7a39541 into main Jan 14, 2024
4 checks passed
@benjaminwood benjaminwood deleted the static-run-attempt-for-semaphore branch January 14, 2024 04:56
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.

2 participants