GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — tools: use ubuntu-latest for public lint-js-and-md jobs by inoway46 · Pull Request #66409 · nodejs/node Conversation
|
| Runner | Success rate | Avg | Min | P90 | P99 | Max |
|---|---|---|---|---|---|---|
ubuntu-slim |
128/128 (100%) | 3m 05s | 2m 32s | 3m 45s | 6m 19s | 7m 07s |
ubuntu-latest |
128/128 (100%) | 1m 45s | 1m 13s | 2m 04s | 2m 11s | 2m 13s |
Cold cache
| Runner | Success rate | Avg | Min | P90 | P99 | Max |
|---|---|---|---|---|---|---|
ubuntu-slim |
128/128 (100%) | 6m 59s | 5m 24s | 9m 02s | 12m 55s | 13m 10s |
ubuntu-latest |
128/128 (100%) | 2m 56s | 2m 00s | 3m 26s | 3m 43s | 3m 51s |
The benchmarks used the same source commit and Node.js version, in separate runs.
Benchmarks: slim, ubuntu-latest.
Refs: nodejs/node#64972
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Review requested:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
3e63215 to
4548c8d
Compare
|
As I said before, I don't think this is the right approach, IMO a solution à la #66228, where we reduce the load instead of paying for a more powerful runner, would be much preferable. I suggested in #64972 (comment) to add cache, that would be a preferable outcome |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Makes sense. I’ll close this. Thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
4548c8d to
41f27fc
Compare
|
As discussed here, timeouts still occur despite caching. I've reopened this PR with updated benchmarks, including a two-CPU ARM approximation to help assess the private-repository cost trade-off. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
If costs in the private repo used for security releases are still a concern, then I'd suggest checking if the workflow can check if it's running in a public / private repository and then choose the runner accordingly. It would however be simpler to use one runner in both instances. According to the assessment in the original post, the incremental cost in the private repo would be around $5 / 1000 runs. I can't judge whether that would be significant or not. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@aduh95 @trivikr timeouts are still occurring after caching: 21 of 261 Would you be comfortable moving forward with ARM? As Mike mentioned, we could also select the runner conditionally: ARM for public repositories and |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
41f27fc to
d61d0d0
Compare
|
On reflection, the potential cost increase for private repositories is still a concern, so I've updated this to use ARM only for public repositories. Private repositories will continue using |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| lint-js-and-md: | ||
| if: github.event.pull_request.draft == false | ||
| runs-on: ubuntu-slim | ||
| runs-on: ${{ github.event.repository.private && 'ubuntu-slim' || 'ubuntu-26.04-arm' }} |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
We might as well use ubuntu-latest so that's one fewer thing to keep up-to-date
| runs-on: ${{ github.event.repository.private && 'ubuntu-slim' || 'ubuntu-26.04-arm' }} | |
| runs-on: ${{ github.event.repository.private && 'ubuntu-slim' || 'ubuntu-latest' }} |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
That makes sense. I'm running the same benchmark with ubuntu-latest and will share the results once it finishes.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Updated to ubuntu-latest. I ran the same benchmark: all 128 warm-cache and 128 cold-cache runs passed, averaging 1m45s and 2m56s respectively. Results.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Use ubuntu-latest in public repositories to reduce runtime and provide more headroom when the ESLint cache cannot be restored. Keep ubuntu-slim in private repositories to avoid increasing runner costs. Assisted-by: Codex Signed-off-by: inoway46 <[email protected]>
d61d0d0 to
d20ffc8
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
You should be able to claim "Fixes: #64972" in the original PR text. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Landed in ae353ec |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Thanks for the review! I used |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Use ubuntu-latest for CodeQL, documentation, both tarball jobs, lint-cpp and format-cpp in public repositories after observing timeouts on ubuntu-slim. Keep around 30 other jobs on ubuntu-slim, and retain ubuntu-slim in private repositories to avoid increasing runner costs. Refs: nodejs#66409 Refs: nodejs#61663 Refs: nodejs#64972 Assisted-by: Codex Signed-off-by: inoway46 <[email protected]>
According to the title, the scope of the issue remained the same as "tools: use ubuntu-latest for public lint-js-and-md jobs". Even if other issues were identified in this issue, since the title remained, the issue needed to be closed for clarity. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Use ubuntu-latest in public repositories to reduce runtime and provide more headroom when the ESLint cache cannot be restored. Keep ubuntu-slim in private repositories to avoid increasing runner costs. Assisted-by: Codex Signed-off-by: inoway46 <[email protected]> PR-URL: #66409 Refs: #64972 Reviewed-By: Mike McCready <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
Use ubuntu-latest in public repositories to reduce runtime and provide more headroom when the ESLint cache cannot be restored. Keep ubuntu-slim in private repositories to avoid increasing runner costs. Assisted-by: Codex Signed-off-by: inoway46 <[email protected]> PR-URL: #66409 Refs: #64972 Reviewed-By: Mike McCready <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
Use ubuntu-latest in public repositories to reduce runtime and provide more headroom when the ESLint cache cannot be restored. Keep ubuntu-slim in private repositories to avoid increasing runner costs. Assisted-by: Codex Signed-off-by: inoway46 <[email protected]> PR-URL: #66409 Refs: #64972 Reviewed-By: Mike McCready <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
Use ubuntu-latest in public repositories to reduce runtime and provide more headroom when the ESLint cache cannot be restored. Keep ubuntu-slim in private repositories to avoid increasing runner costs. Assisted-by: Codex Signed-off-by: inoway46 <[email protected]> PR-URL: nodejs#66409 Refs: nodejs#64972 Reviewed-By: Mike McCready <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
ubuntu-slim runners time out after 15 mins while it usually takes <3 mins
There was an error while loading. Please reload this page.