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

build: fixing overlap in provenance filenames that causes race condition with multiple provenance generation jobs #429

Merged
merged 2 commits into from
Jul 25, 2024

Conversation

rsoberano-ld
Copy link
Contributor

@rsoberano-ld rsoberano-ld commented Jul 25, 2024

The client, server, and server-redis provenance generation workflows each create a {windows,linux,macos}-multile-provenance.intoto.jsonl file that gets uploaded to the respective tagged releases. However, in an intermediate step, these files are temporarily uploaded to the workflow workspace that's shared between all three release types. Very occasionally, a race condition happens where one release type will overwrite the provenance file for the other release type before it's able to download it and upload it to the appropriate tagged release, which results in a SLSA verification error.

This quick fix to prefix the provenance files with the release type should remove this overlap/conflict/race condition.

…ion with multiple provenance generation jobs
@rsoberano-ld rsoberano-ld requested a review from a team as a code owner July 25, 2024 19:39
@rsoberano-ld rsoberano-ld merged commit 3772096 into main Jul 25, 2024
20 checks passed
@rsoberano-ld rsoberano-ld deleted the rsoberano/fix-provenance-race-condition-overlap branch July 25, 2024 20:31
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.

None yet

2 participants