-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Generate LICENSE files in create_dist #8560
Conversation
@fmarier how long does this step take? Concerned about affecting incremental build time. Perhaps we could just make sure that CI runs it for all PRs? Isn't it already? |
was this just an oversight when merging so CI failed, but was merged anyway? If that is the case I think this step is not needed |
On my laptop, it takes 4 ms as measured by:
|
@fmarier lol ok carry on then! |
lib/build.js
Outdated
if (buildConfig === 'Release') { | ||
licensing.updateLicenses() | ||
} | ||
licensing.updateLicenses() |
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.
seems like this should go in create_dist with no guard and then it should run for all PRs and that seems like a more appropriate place for it anyway
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.
I was aiming to make this fail as early as possible (i.e. anytime a developer builds) so that a simple mistake can't get accidentally get merged to master and break CI builds.
Given the 4 ms overhead, that seems like a reasonable trade-off?
35232de
to
8da1669
Compare
Changing the approach based on @bridiver 's comments that this would set a bad precedent for other (more expensive) steps to be done in all builds. Note that this revised PR does not help in any way to protect against mistakes like the one that we saw in brave/brave-core#4398. All it does is move the generation to a different part of the build step so that these checks continue to be done in CI regardless of whether CI does Debug or Release builds. |
In order to re-regenerate the LICENSE files in a local build, now one has to run |
Blocked on resolving #8615 |
This will ensure that the licensing script runs for all CI builds even if we change the build config for them.
c60061a
to
1708afb
Compare
This effectively re-enables the LICENSE file creation and fixes #8618.
Submitter Checklist:
git rebase master
(if needed).git rebase -i
to squash commits (if needed).added to
scripts/audit.js
.Test Plan:
chrome://credits
.Reviewer Checklist:
After-merge Checklist:
changes has landed on.