7171 pull-requests : read
7272 steps :
7373 - name : Check out current commit
74- uses : actions/checkout@v4
74+ uses : actions/checkout@v5
7575 with :
7676 ref : ${{ env.HEAD_COMMIT }}
7777 # We need to check out not only the fake merge commit between the PR and the base branch which GH creates, but
@@ -131,13 +131,13 @@ jobs:
131131 (needs.job_get_metadata.outputs.is_gitflow_sync == 'false' && needs.job_get_metadata.outputs.has_gitflow_label == 'false')
132132 steps :
133133 - name : Check out base commit (${{ github.event.pull_request.base.sha }})
134- uses : actions/checkout@v4
134+ uses : actions/checkout@v5
135135 if : github.event_name == 'pull_request'
136136 with :
137137 ref : ${{ github.event.pull_request.base.sha }}
138138
139139 - name : ' Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})'
140- uses : actions/checkout@v4
140+ uses : actions/checkout@v5
141141 with :
142142 ref : ${{ env.HEAD_COMMIT }}
143143
@@ -200,6 +200,9 @@ jobs:
200200 changed_node :
201201 ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected,
202202 ' @sentry/node' ) }}
203+ changed_node_overhead_action :
204+ ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected,
205+ ' @sentry-internal/node-overhead-gh-action' ) }}
203206 changed_deno :
204207 ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected,
205208 ' @sentry/deno' ) }}
@@ -235,7 +238,7 @@ jobs:
235238 needs.job_get_metadata.outputs.is_release == 'true'
236239 steps :
237240 - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
238- uses : actions/checkout@v4
241+ uses : actions/checkout@v5
239242 with :
240243 ref : ${{ env.HEAD_COMMIT }}
241244 - name : Set up Node
@@ -253,6 +256,37 @@ jobs:
253256 # Only run comparison against develop if this is a PR
254257 comparison_branch : ${{ (github.event_name == 'pull_request' && github.base_ref) || ''}}
255258
259+ job_node_overhead_check :
260+ name : Node Overhead Check
261+ needs : [job_get_metadata, job_build]
262+ timeout-minutes : 15
263+ runs-on : ubuntu-24.04
264+ if :
265+ (needs.job_build.outputs.changed_node == 'true' && github.event_name == 'pull_request') ||
266+ (needs.job_build.outputs.changed_node_overhead_action == 'true' && github.event_name == 'pull_request') ||
267+ needs.job_get_metadata.outputs.is_base_branch == 'true' || needs.job_get_metadata.outputs.is_release == 'true'
268+ steps :
269+ - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
270+ uses : actions/checkout@v5
271+ with :
272+ ref : ${{ env.HEAD_COMMIT }}
273+ - name : Set up Node
274+ uses : actions/setup-node@v4
275+ with :
276+ node-version-file : ' package.json'
277+ - name : Restore caches
278+ uses : ./.github/actions/restore-cache
279+ with :
280+ dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
281+ - name : Check node overhead
282+ uses : ./dev-packages/node-overhead-gh-action
283+ env :
284+ DEBUG : ' 1'
285+ with :
286+ github_token : ${{ secrets.GITHUB_TOKEN }}
287+ # Only run comparison against develop if this is a PR
288+ comparison_branch : ${{ (github.event_name == 'pull_request' && github.base_ref) || ''}}
289+
256290 job_lint :
257291 name : Lint
258292 # Even though the linter only checks source code, not built code, it needs the built code in order check that all
@@ -262,7 +296,7 @@ jobs:
262296 runs-on : ubuntu-24.04
263297 steps :
264298 - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
265- uses : actions/checkout@v4
299+ uses : actions/checkout@v5
266300 with :
267301 ref : ${{ env.HEAD_COMMIT }}
268302 - name : Set up Node
@@ -281,14 +315,17 @@ jobs:
281315 - name : Lint for ES compatibility
282316 run : yarn lint:es-compatibility
283317
318+ - name : Check that yarn.lock is stable
319+ run : yarn && git diff --exit-code yarn.lock
320+
284321 job_check_format :
285322 name : Check file formatting
286323 needs : [job_get_metadata]
287324 timeout-minutes : 10
288325 runs-on : ubuntu-24.04
289326 steps :
290327 - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
291- uses : actions/checkout@v4
328+ uses : actions/checkout@v5
292329 with :
293330 ref : ${{ env.HEAD_COMMIT }}
294331
@@ -311,7 +348,7 @@ jobs:
311348 runs-on : ubuntu-24.04
312349 steps :
313350 - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
314- uses : actions/checkout@v4
351+ uses : actions/checkout@v5
315352 with :
316353 ref : ${{ env.HEAD_COMMIT }}
317354 - name : Set up Node
@@ -333,7 +370,7 @@ jobs:
333370 if : needs.job_get_metadata.outputs.is_release == 'true'
334371 steps :
335372 - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
336- uses : actions/checkout@v4
373+ uses : actions/checkout@v5
337374 with :
338375 ref : ${{ env.HEAD_COMMIT }}
339376 - name : Set up Node
@@ -368,13 +405,13 @@ jobs:
368405 runs-on : ubuntu-24.04
369406 steps :
370407 - name : Check out base commit (${{ github.event.pull_request.base.sha }})
371- uses : actions/checkout@v4
408+ uses : actions/checkout@v5
372409 if : github.event_name == 'pull_request'
373410 with :
374411 ref : ${{ github.event.pull_request.base.sha }}
375412
376413 - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
377- uses : actions/checkout@v4
414+ uses : actions/checkout@v5
378415 with :
379416 ref : ${{ env.HEAD_COMMIT }}
380417 - name : Set up Node
@@ -415,7 +452,7 @@ jobs:
415452 runs-on : ubuntu-24.04
416453 steps :
417454 - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
418- uses : actions/checkout@v4
455+ uses : actions/checkout@v5
419456 with :
420457 ref : ${{ env.HEAD_COMMIT }}
421458 - name : Set up Node
@@ -440,7 +477,7 @@ jobs:
440477 runs-on : ubuntu-24.04
441478 steps :
442479 - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
443- uses : actions/checkout@v4
480+ uses : actions/checkout@v5
444481 with :
445482 ref : ${{ env.HEAD_COMMIT }}
446483 - name : Set up Node
@@ -472,12 +509,12 @@ jobs:
472509 node : [18, 20, 22, 24]
473510 steps :
474511 - name : Check out base commit (${{ github.event.pull_request.base.sha }})
475- uses : actions/checkout@v4
512+ uses : actions/checkout@v5
476513 if : github.event_name == 'pull_request'
477514 with :
478515 ref : ${{ github.event.pull_request.base.sha }}
479516 - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
480- uses : actions/checkout@v4
517+ uses : actions/checkout@v5
481518 with :
482519 ref : ${{ env.HEAD_COMMIT }}
483520 - name : Set up Node
@@ -566,7 +603,7 @@ jobs:
566603
567604 steps :
568605 - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
569- uses : actions/checkout@v4
606+ uses : actions/checkout@v5
570607 with :
571608 ref : ${{ env.HEAD_COMMIT }}
572609 - name : Set up Node
@@ -630,7 +667,7 @@ jobs:
630667
631668 steps :
632669 - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
633- uses : actions/checkout@v4
670+ uses : actions/checkout@v5
634671 with :
635672 ref : ${{ env.HEAD_COMMIT }}
636673 - name : Set up Node
@@ -678,7 +715,7 @@ jobs:
678715 timeout-minutes : 5
679716 steps :
680717 - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
681- uses : actions/checkout@v4
718+ uses : actions/checkout@v5
682719 with :
683720 ref : ${{ env.HEAD_COMMIT }}
684721 - name : Set up Node
@@ -716,7 +753,7 @@ jobs:
716753 typescript : ' 3.8'
717754 steps :
718755 - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
719- uses : actions/checkout@v4
756+ uses : actions/checkout@v5
720757 with :
721758 ref : ${{ env.HEAD_COMMIT }}
722759 - name : Set up Node
@@ -752,7 +789,7 @@ jobs:
752789 timeout-minutes : 15
753790 steps :
754791 - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
755- uses : actions/checkout@v4
792+ uses : actions/checkout@v5
756793 with :
757794 ref : ${{ env.HEAD_COMMIT }}
758795 - name : Set up Node
@@ -780,7 +817,7 @@ jobs:
780817 node : [18, 20, 22, 24]
781818 steps :
782819 - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
783- uses : actions/checkout@v4
820+ uses : actions/checkout@v5
784821 with :
785822 ref : ${{ env.HEAD_COMMIT }}
786823 - name : Set up Node
@@ -827,12 +864,12 @@ jobs:
827864 matrix-optional : ${{ steps.matrix-optional.outputs.matrix }}
828865 steps :
829866 - name : Check out base commit (${{ github.event.pull_request.base.sha }})
830- uses : actions/checkout@v4
867+ uses : actions/checkout@v5
831868 if : github.event_name == 'pull_request'
832869 with :
833870 ref : ${{ github.event.pull_request.base.sha }}
834871 - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
835- uses : actions/checkout@v4
872+ uses : actions/checkout@v5
836873 with :
837874 ref : ${{ env.HEAD_COMMIT }}
838875 - name : Set up Node
@@ -897,7 +934,7 @@ jobs:
897934 matrix : ${{ fromJson(needs.job_e2e_prepare.outputs.matrix) }}
898935 steps :
899936 - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
900- uses : actions/checkout@v4
937+ uses : actions/checkout@v5
901938 with :
902939 ref : ${{ env.HEAD_COMMIT }}
903940 - uses : pnpm/action-setup@v4
@@ -1027,7 +1064,7 @@ jobs:
10271064
10281065 steps :
10291066 - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
1030- uses : actions/checkout@v4
1067+ uses : actions/checkout@v5
10311068 with :
10321069 ref : ${{ env.HEAD_COMMIT }}
10331070 - uses : pnpm/action-setup@v4
@@ -1137,6 +1174,6 @@ jobs:
11371174 runs-on : ubuntu-24.04
11381175 steps :
11391176 - name : Check for failures
1140- if : contains(needs.*.result, 'failure')
1177+ if : cancelled() || contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled ')
11411178 run : |
11421179 echo "One of the dependent jobs have failed. You may need to re-run it." && exit 1
0 commit comments