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

fix(merge): avoid writing failed snap versions in .bitmap file #7185

Merged
merged 2 commits into from
Mar 27, 2023

Conversation

davidfirst
Copy link
Member

@davidfirst davidfirst commented Mar 22, 2023

Normally, when tagging/snapping, we write the .bitmap to the filesystem only once the process was completed successfully. This way, if the build-process fails, it throws and exit the process without writing the versions to the .bitmap.
In case of merge, the snap process is wrapped inside try/catch block, so if it failed to run the pipeline, it still continues to the next step and eventually writes the .bitmap at the end of the process with the failed versions.
This PR fixes it by restoring the .bitmap content inside the catch block.

@davidfirst davidfirst merged commit e11cf67 into master Mar 27, 2023
@davidfirst davidfirst deleted the auto-merge-fail-bitmap branch March 27, 2023 14:13
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