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

Stop using -U in the build that merges all aggregator jars #3912

Merged

Conversation

abellina
Copy link
Collaborator

@abellina abellina commented Oct 25, 2021

Signed-off-by: Alessandro Bellina abellina@nvidia.com

Fixes a race condition in the pre-merge build, where an aggregator jar would be built and installed to the local .m2 and later on disregarded if a nightly job happened to be running at the same time and published a newer (in time) version of the same artifact jar.

Prior to this the -U (--update-snapshots) flag was being passed to the last stage of the build, where all the aggregator jars were getting combined. At this point, a newer aggregator jar could be fetched from remote. We removed the -U flag to prevent this from happening in the future.

Signed-off-by: Alessandro Bellina <abellina@nvidia.com>
@abellina
Copy link
Collaborator Author

build

@abellina abellina marked this pull request as draft October 25, 2021 17:58
@abellina abellina changed the title Use the noSnapshots profile in pre-merge Stop using -U in the build that merges all aggregator jars Oct 25, 2021
@abellina
Copy link
Collaborator Author

build

Copy link
Member

@jlowe jlowe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR description needs to be updated to reflect what this does and why, but otherwise lgtm.

@jlowe jlowe added the build Related to CI / CD or cleanly building label Oct 25, 2021
@abellina abellina marked this pull request as ready for review October 25, 2021 19:37
@abellina abellina merged commit 92cc334 into NVIDIA:branch-21.12 Oct 25, 2021
@abellina abellina deleted the stop_getting_snapshot_shims_in_premerge branch October 25, 2021 22:33
@gerashegalov gerashegalov added this to the Oct 18 - Oct 29 milestone Oct 25, 2021
@gerashegalov gerashegalov linked an issue Oct 25, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Related to CI / CD or cleanly building
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] CI fails on an inconsistent set of partial builds
4 participants