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(build): ensure to check spawn result and assume files unchanged MONGOSH-521 #599

Merged
merged 3 commits into from
Feb 2, 2021

Conversation

rose-m
Copy link
Contributor

@rose-m rose-m commented Feb 2, 2021

The underlying issue with our CI release pipeline is that we bump the version of the packages only in the CI environment. This leads to uncommitted changes in the git repository. The lerna publish command will fail in this case and the --force-publish option does not have any effect (see also lerna/lerna#2550).

The alternative would be to do a dummy commit in the CI environment before publishing. I chose against this to at least keep consistency between the commit hash of the published package information and the tagged version. While we still knowingly have tagged versions without the package version being properly set.

This PR includes:

  • uses a helper function to ensure spawn.sync calls throw if not successful
  • before lerna publish marks known changed files as assume-unchanged and reverts after publish

- uses a helper function to ensure spawn.sync calls throw if not successful
- before lerna publish marks known changed files as assume-unchanged and reverts after publish

Signed-off-by: Michael Rose <michael_rose@gmx.de>
@rose-m rose-m self-assigned this Feb 2, 2021
@addaleax addaleax merged commit b184da0 into master Feb 2, 2021
@addaleax addaleax deleted the MONGOSH-521-fix-unchecked-spawns-and-publish branch February 2, 2021 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants