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

decrease likelihood of possible race condition #272

Merged
merged 2 commits into from
Mar 20, 2023

Conversation

jacobweinstock
Copy link
Member

@jacobweinstock jacobweinstock commented Mar 14, 2023

Description

This is to decrease the likelihood of a race condition that could occur if a machine is running HookOS and Tink worker is connected and running when a workflow is created.

The workflow would start to execute but then be cut off when the reboot action is called. This has been shown to cause undefined behavior.

important to note that because the BMC interactions are just creation CRD creations and these happen quite quickly, there's no guarantee that this even decreases the likelihood of this race condition.

Why is this needed

Fixes:

How Has This Been Tested?

How are existing users impacted? What migration steps/scripts do we need?

Checklist:

I have:

  • updated the documentation and/or roadmap (if required)
  • added unit or e2e tests
  • provided instructions on how to upgrade

@jacobweinstock jacobweinstock changed the title Race fix fix possible race condition Mar 14, 2023
@jacobweinstock jacobweinstock changed the title fix possible race condition decrease likelihood of possible race condition Mar 14, 2023
@chrisdoherty4 chrisdoherty4 added the ready-to-merge Signal to Mergify to merge the PR. label Mar 20, 2023
@jacobweinstock
Copy link
Member Author

@mergify queue

@mergify
Copy link
Contributor

mergify bot commented Mar 20, 2023

queue

🛑 The pull request has been removed from the queue

Pull request #272 has been dequeued due to failing checks or checks timeout.

You can take a look at Queue: Embarked in merge train check runs for more details.

In case of a failure due to a flaky test, you should first retrigger the CI.
Then, re-embark the pull request into the merge queue by posting the comment
@mergifyio refresh on the pull request.

@jacobweinstock
Copy link
Member Author

@mergify refresh

@mergify
Copy link
Contributor

mergify bot commented Mar 20, 2023

refresh

✅ Pull request refreshed

@jacobweinstock jacobweinstock removed the request for review from pokearu March 20, 2023 16:36
This gets us the latest and resolves issue with go_install.sh.

Signed-off-by: Jacob Weinstock <[email protected]>
This is to avoid a race condition that could occur
if a machine is running HookOS and Tink worker is
connected and running when a workflow is created.

The workflow would start to execute but then be cut
off when the reboot action is called. This has been
show to cause undefined behavior.

Signed-off-by: Jacob Weinstock <[email protected]>
@mergify mergify bot merged commit 69d655c into tinkerbell:main Mar 20, 2023
@jacobweinstock jacobweinstock deleted the race-fix branch January 10, 2024 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Signal to Mergify to merge the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants