-
Notifications
You must be signed in to change notification settings - Fork 53
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
Adds a flag 'skip_package_lock_generation' to FTL #741
base: master
Are you sure you want to change the base?
Conversation
…enerate package-lock file at the beginning of the run. Skiping this can improve build speed but can cause older version of depe ndencies to be used.
@aaron-prindle |
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.
Can you explain a bit more about why you want to skip generating the lock file and reuse the cache key?
@@ -68,6 +68,7 @@ py_test( | |||
srcs = ["common/util_test.py"], | |||
deps = [ | |||
":ftl_lib", | |||
"@mock", |
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.
was it a bug that this was missing?
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 unable to run this test without . this dependency.
Generating package-lock file is quite time consuming process - it can take even 5-10 seconds. I want to have an option to avoid paying this cost to check if there is cached layer available. |
Nice, this change definitely makes sense. it seems that this is failing a lint check that we have: Also can you add an integration test for the flag that you are adding? The flag to the test similar to as done here: And add a directory for the app to be tested, similar to here: And you should create a structure_test.yaml that verifies that a package.lock file is not created: |
There is a problem with adding an integration test for this flag. Even if I set it package-lock.json will be created in build phase. |
I dont understand what is broken in kokoro run |
The kokoro issue here is related to our kokoro pipeline recently upgrading the version of bazel that it uses and the files in runtimes-common not being compatible with this new version. We are working on a fix currently, I will update this PR as kokoro is fixed. |
@belchatek friendly ping. The CI issues you were experiencing are resolved now, resubmit and kokoro should have sane logs for the FTL tests |
Adds a flag 'skip_package_lock_generation' to control if FTL should generate package-lock file at the beginning of the run. Skiping this can improve build speed but can cause older version of dependencies to be used.