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

MTL-2088 Fix build race condition #34

Merged
merged 1 commit into from
Feb 17, 2023
Merged

MTL-2088 Fix build race condition #34

merged 1 commit into from
Feb 17, 2023

Conversation

rustydb
Copy link
Contributor

@rustydb rustydb commented Feb 16, 2023

Summary and Scope

Issue Type

  • Bugfix Pull Request

Variables need a def in order to be unique/re-defined within each matrix build, otherwise there is a risk of a race condition happening. The race condition occurs when one matrix build redefines (reuses) the variables while the variables are being read by another matrix build.

In MTL-2088, an SP4 build was publishing RPMs when the SP3 matrix build updated these variables, leading to some of the SP4 RPMs to end up in the SP3 drop-off.

Prerequisites

  • I have included documentation in my PR (or it is not required)
  • I tested this on internal system (if yes, please include results or a description of the test)
  • I tested this on a vshasta system (if yes, please include results or a description of the test)

Idempotency

Risks and Mitigations

Variables need a `def` in order to be unique/re-defined
within each `matrix` build, otherwise there is a risk of
a race condition happening. The race condition occurs
when one `matrix` build redefines (reuses) the variables
while the variables are being read by another `matrix` build.

In MTL-2088, an SP4 build was publishing RPMs when the SP3
`matrix` build updated these variables, leading to some of
the SP4 RPMs to end up in the SP3 drop-off.
@rustydb rustydb merged commit 5ff298b into main Feb 17, 2023
@rustydb rustydb deleted the MTL-2088-race-condition branch February 17, 2023 00:12
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.

3 participants