Repository navigation
Conversation
The smoke and e2e jobs install the repository's dependencies only to run jest against the CLI under test, which they download or install separately. On Windows `npm ci` still ran node-libcurl's install script, whose vcpkg source build took 20-29 minutes in each Windows test job.
Contributor
Author
|
Closing: #836 (node-libcurl 5.2.0-2) removes the vcpkg build from |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
In the release pipeline the smoke/e2e stage takes about 40 minutes, and the Windows jobs set that time. In run 43882484745 their "Install Dependencies" step took 23-29 minutes. On Linux and macOS the same step takes about a minute. The time goes to
npm cirunning@brightsec/node-libcurl's install script, which on Windows builds curl and its dependencies from source with vcpkg.These jobs install the repository's dependencies only to run jest. The CLI under test comes from the release assets, the MSI, Docker Hub or
npm i -g. The specs import onlyaxios,axios-retry,cross-spawnandwiremock-captain, and none of the native modules.Change
Set
npm_config_ignore_scripts=trueon the four "Install Dependencies" steps intest-cli.yml.npm i -g @brightsec/cliin the npm jobs is a separate step, so it still runs install scripts.Expected effect
npm i -g @brightsec/clireused the vcpkg binary cache thatnpm cihad filled, so that build now happens in "Install CLI" instead. That goes away once the CLI depends on a node-libcurl release that skips vcpkg when the prebuilt binary is available (fix(windows): run vcpkg only when the prebuilt binary is unavailable node-libcurl#52). After that the release's test stage is limited by the test runs themselves.Verification
npm_config_ignore_scripts=true npm ci, then all smoke and e2e suites load under jest. Without the install scripts there is no node-libcurl binding.development(run 45878304453): all 19 jobs passed. On Windows, "Install Dependencies" took 216-273s, and the executables and msi jobs finished in 5-6 minutes. As expected, the npm Windows jobs still spent 1063s and 1594s in "Install CLI" on the vcpkg build.