-
Notifications
You must be signed in to change notification settings - Fork 22
Improve build time #1049
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
base: main
Are you sure you want to change the base?
Improve build time #1049
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
Should we rely on |
@jpinsonneau why would it be only for prod? It seems good in both cases, no? |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1049 +/- ##
==========================================
- Coverage 53.20% 53.06% -0.15%
==========================================
Files 205 205
Lines 11115 11149 +34
Branches 1295 1300 +5
==========================================
+ Hits 5914 5916 +2
- Misses 4689 4717 +28
- Partials 512 516 +4
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
We can use https://webpack.js.org/guides/build-performance/#typescript-loader Also, I'm not sure about the cache filesystem impact on those builds. |
In fact, I think what I would really like is to decouple some of these steps (format check, linting, type check) from the build. It would not only speed up the development process, but also konflux builds for instance: if you think about it, a lot of time is wasted on duplicated work, especially as we're building for several architectures. I think we shouldn't care about linting and checks like that during downstream builds for instance. This could be something only checked on github CI per pull request, and after merged, it should be considered OK, no need to check it again in konflux And the same would be possible for dev build, where we don't necessarily care about type-checking given that our IDE already care about that, and the build time is largely impacted by this step |
Sure if we run the typechecks once in parallel I'm fine with that 👌 |
Fair enough, I'll rework this PR with that goal |
…t only on-demand and on PR checks
This reverts commit 25c379e.
@jpinsonneau done |
New image: It will expire after two weeks. To deploy this build, run from the operator repo, assuming the operator is running: USER=netobserv VERSION=08b738a make set-plugin-image |
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.
Looks good, thanks @jotak !
Some build time optimization
On my machine, webpack build going from 138s down to 52s