Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6.6k
[CI Energy Waste] Deduplicate static checks in CI workflow#15739
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Combine typecheck, lint, and yarn-validate jobs into a single static-checks job to eliminate duplication of setup steps and dependencies.
linux-foundation-easyclabot commentedJul 15, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
netlifybot commentedJul 15, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
✅ Deploy Preview forjestjs ready!Builtwithout sensitive environment variables
To edit notification comments on pull requests, go to yourNetlify project configuration. |
babel-jestbabel-plugin-jest-hoistbabel-preset-jestcreate-jest@jest/diff-sequencesexpect@jest/expect-utilsjestjest-changed-filesjest-circusjest-clijest-config@jest/console@jest/core@jest/create-cache-key-functionjest-diffjest-docblockjest-each@jest/environmentjest-environment-jsdom@jest/environment-jsdom-abstractjest-environment-node@jest/expect@jest/fake-timers@jest/get-type@jest/globalsjest-haste-mapjest-jasmine2jest-leak-detectorjest-matcher-utilsjest-message-utiljest-mock@jest/patternjest-phabricatorjest-regex-util@jest/reportersjest-resolvejest-resolve-dependenciesjest-runnerjest-runtime@jest/schemasjest-snapshot@jest/snapshot-utils@jest/source-map@jest/test-result@jest/test-sequencer@jest/transform@jest/typesjest-utiljest-validatejest-watcherjest-workerpretty-formatcommit: |
mrazauskas commentedJul 16, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Can I ask how does this compares with an average annual tuition fee at the University of Zurich? (That is irony, of course. But I think the question is legit, because you titled this PR with: "Energy Waste". Do you see the point?) |
souhailaS commentedJul 16, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@mrazauskas , indeed ... the question is ''legit''. You're absolutely right that $17 won’t fund a semester at the University of Zurich but could plant a dozen trees. And while that may still sound minor, it’s symbolic of something larger. GitHub nowadays hosts about 420 million repositories. If each of them approximately were to wastejust one second of runner time per day, that would amountto 7 million minutes wasted daily. At GitHub's billing rate of $0.008 per minute, this seemingly minor inefficiency would result in over$56 000 per day, or evenmore than $20 million annually, inexcess compute costs. But the story is not about the financial dimension .. it's the env footprint: 1 s per repo per day would translate to roughly2100 kWh wasted daily (for the basic ubuntu-latest runner), or about 730 000 kWh annually, equivalent to the yearly consumption of dozens of households in a developed country. |
mrazauskas commentedJul 16, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
You are manipulating with numbers. That is it. GitHub or any other responsible corporation should(!) and must(!) invest into education of upcoming developers. I am rather sure they do! (For instance, they do not take a penny from open source projects. These are in many case the learning projects, actually. What about the University of Zurich? Do they charge you for learning? Could you please calculate and provide the number of That is not anyhow taken into account of your “research“. Really sorry about the question marks, but I still find it questionable. The numbers you provide are manipulative and not based on reality. |
2a436b8 intojestjs:mainUh oh!
There was an error while loading.Please reload this page.
@souhailaS Thank you @mrazauskas please spend some time reflecting on your conduct |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Uh oh!
There was an error while loading.Please reload this page.
Context
We conducted an analysis of the
nodejs.ymlworkflow run history using GitHub API data from recent successful executions. The analysis revealed potential resource optimisation in setup steps across three static check jobs (typecheck,lint,yarn-validate), each performing identical dependency installation and environment setup.Change
Combined three jobs into one
static-checksjob, eliminating redundant setup (installations and checkouts)Impact
Based on the runs history this workflow. We could estimate:
Technical
Files
.github/workflows/nodejs.ymlAdditional Context
We are a team of researchers from University of Zurich (https://www.ifi.uzh.ch/en/zest.html) currently working on automating energy optimizations in GitHub Actions workflows. This optimization maintains full functionality while potentially reducing computational overhead and energy consumption.
souhaila.serbout@uzh.ch