From 58b2bbbcf3eaa441e904bef7279f050d5a42544c Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sun, 6 Nov 2022 17:59:09 -0800 Subject: [PATCH 1/3] tools: dynamically determine parallelism on GitHub Actions macOS Refs: https://github.com/nodejs/node/pull/45340#discussion_r1014859250 --- .github/workflows/test-macos.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-macos.yml b/.github/workflows/test-macos.yml index 092de3885ab336..bef46a05c63319 100644 --- a/.github/workflows/test-macos.yml +++ b/.github/workflows/test-macos.yml @@ -58,6 +58,6 @@ jobs: - name: tools/doc/node_modules workaround run: make tools/doc/node_modules - name: Build - run: make build-ci -j3 V=1 CONFIG_FLAGS="--error-on-warn" + run: make build-ci -j`getconf _NPROCESSORS_ONLN` V=1 CONFIG_FLAGS="--error-on-warn" - name: Test - run: make run-ci -j3 V=1 TEST_CI_ARGS="-p actions --measure-flakiness 9" + run: make run-ci -j`getconf _NPROCESSORS_ONLN` V=1 TEST_CI_ARGS="-p actions --measure-flakiness 9" From 737a1ee87441699aa7ee623ad143ee2a9d722e8f Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sun, 6 Nov 2022 23:00:58 -0800 Subject: [PATCH 2/3] Update .github/workflows/test-macos.yml Co-authored-by: Mohammed Keyvanzadeh --- .github/workflows/test-macos.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-macos.yml b/.github/workflows/test-macos.yml index bef46a05c63319..c2d23fdeead5f9 100644 --- a/.github/workflows/test-macos.yml +++ b/.github/workflows/test-macos.yml @@ -58,6 +58,6 @@ jobs: - name: tools/doc/node_modules workaround run: make tools/doc/node_modules - name: Build - run: make build-ci -j`getconf _NPROCESSORS_ONLN` V=1 CONFIG_FLAGS="--error-on-warn" + run: make build-ci -j$(getconf _NPROCESSORS_ONLN) V=1 CONFIG_FLAGS="--error-on-warn" - name: Test run: make run-ci -j`getconf _NPROCESSORS_ONLN` V=1 TEST_CI_ARGS="-p actions --measure-flakiness 9" From 295b8e20c34c94bf0c7c6d6f6f4f88c561604b54 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sun, 6 Nov 2022 23:01:03 -0800 Subject: [PATCH 3/3] Update .github/workflows/test-macos.yml Co-authored-by: Mohammed Keyvanzadeh --- .github/workflows/test-macos.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-macos.yml b/.github/workflows/test-macos.yml index c2d23fdeead5f9..c09004cbe422c7 100644 --- a/.github/workflows/test-macos.yml +++ b/.github/workflows/test-macos.yml @@ -60,4 +60,4 @@ jobs: - name: Build run: make build-ci -j$(getconf _NPROCESSORS_ONLN) V=1 CONFIG_FLAGS="--error-on-warn" - name: Test - run: make run-ci -j`getconf _NPROCESSORS_ONLN` V=1 TEST_CI_ARGS="-p actions --measure-flakiness 9" + run: make run-ci -j$(getconf _NPROCESSORS_ONLN) V=1 TEST_CI_ARGS="-p actions --measure-flakiness 9"