-
Notifications
You must be signed in to change notification settings - Fork 7
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
platform-complete stripes building issue fix addition to previous tic… #153
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What this script does and what it says it does in the header comments do not agree. The header comments say it builds a bundle, but what it actually does is (1) update yarn.lock
based on changes in package.json
and then (2) build a bundle. If we accept the implementation as the true purpose, then this PR isn't right, even though it contains changes I suggested (running yarn install --frozen-lockfile
on release branches).
- On a release branch, which should update
yarn.lock
with changes frompackage.json
while leaving other dependencies alone, it should leave an existingyarn.lock
in place and install deps withyarn install
. - On a development branch, which should update
yarn.lock
with the newest versions of all dependencies, it should removeyarn.lock
and install deps withyarn install
.
The only time to run yarn install --frozen-lockfile
is if we are trying to exactly replicate a previous build by using the same package.json
and yarn.lock
files without making any changes. For example, I would expect the scripts that construct the nightly reference envs or the bugfest envs to operate this way.
vars/buildStripesPlatform.groovy
Outdated
if (!(branch =~ /^(r|R)\d{1}-\d{4}(-(rc|RC|hotfix-\d{1}))?$/)) { | ||
if (!(branch =~ /^[rR]\d-\d{4}(-([rR][cC]|hotfix-\d))?/)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing the trailing $
enables branches like R2-2023-Consortia
, but is a lot more broad than that, too. Do we want to be that broad?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be using branches named like 2023-R2...
instead of R2...
that do not sort correctly. Is this an opportunity to correct that gaffe or has that ship already sailed?
See also folio-org/platform-complete/pull/2600. |
master branch included in condition. |
@eldiiar-duishenaliev, I am not a Groovy guy. Are you confident about this conditional?
I would expect it to evaluate it as |
|
@eldiiar-duishenaliev, Sorry, I don't think I explained that well. The condition is structured as Your test showed the logic working correctly with |
…: FOLIO-3768 part2
Thanks @zburke ! |
Awesome, f70a361 LGTM. Are we confident about changing |
…: FOLIO-3768 part2.1
Hello @zburke |
…ket: FOLIO-3768