From 8c300abc4b7d01ad3e4c48c388cf35852f0da310 Mon Sep 17 00:00:00 2001 From: "jj@jjsweb.site" Date: Wed, 18 Aug 2021 12:49:22 -0500 Subject: [PATCH 1/6] Update polling env var for tests in CI --- run-tests.js | 1 + 1 file changed, 1 insertion(+) diff --git a/run-tests.js b/run-tests.js index cdd504738103ba5..495958b397e38b9 100644 --- a/run-tests.js +++ b/run-tests.js @@ -216,6 +216,7 @@ async function main() { // reliable polling method. CHOKIDAR_USEPOLLING: 'true', CHOKIDAR_INTERVAL: 500, + WATCHPACK_POLLING: 'true', } : {}), }, From ea1d8940d5d6a5bf2c0f723abeda6095de69818e Mon Sep 17 00:00:00 2001 From: "jj@jjsweb.site" Date: Wed, 18 Aug 2021 12:54:10 -0500 Subject: [PATCH 2/6] Update polling value --- run-tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-tests.js b/run-tests.js index 495958b397e38b9..1eb18a9c4a8ed94 100644 --- a/run-tests.js +++ b/run-tests.js @@ -216,7 +216,7 @@ async function main() { // reliable polling method. CHOKIDAR_USEPOLLING: 'true', CHOKIDAR_INTERVAL: 500, - WATCHPACK_POLLING: 'true', + WATCHPACK_POLLING: 500, } : {}), }, From 281875de921874592a6755d67acaad7441c06e22 Mon Sep 17 00:00:00 2001 From: "jj@jjsweb.site" Date: Wed, 18 Aug 2021 13:35:17 -0500 Subject: [PATCH 3/6] always use polling --- run-tests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run-tests.js b/run-tests.js index 1eb18a9c4a8ed94..b26006a777759ae 100644 --- a/run-tests.js +++ b/run-tests.js @@ -257,7 +257,7 @@ async function main() { for (let i = 0; i < NUM_RETRIES + 1; i++) { try { console.log(`Starting ${test} retry ${i}/${NUM_RETRIES}`) - const time = await runTest(test, i > 0) + const time = await runTest(test, true) timings.push({ file: test, time, @@ -306,7 +306,7 @@ async function main() { for (let i = 0; i < NUM_RETRIES + 1; i++) { try { console.log(`Starting ${test} retry ${i}/${NUM_RETRIES}`) - const time = await runTest(test, i > 0) + const time = await runTest(test, true) timings.push({ file: test, time, From 5d109ca75f16fcad512033730a49b16a7fbe7d13 Mon Sep 17 00:00:00 2001 From: "jj@jjsweb.site" Date: Wed, 18 Aug 2021 13:52:17 -0500 Subject: [PATCH 4/6] Revert "always use polling" This reverts commit 281875de921874592a6755d67acaad7441c06e22. --- run-tests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run-tests.js b/run-tests.js index b26006a777759ae..1eb18a9c4a8ed94 100644 --- a/run-tests.js +++ b/run-tests.js @@ -257,7 +257,7 @@ async function main() { for (let i = 0; i < NUM_RETRIES + 1; i++) { try { console.log(`Starting ${test} retry ${i}/${NUM_RETRIES}`) - const time = await runTest(test, true) + const time = await runTest(test, i > 0) timings.push({ file: test, time, @@ -306,7 +306,7 @@ async function main() { for (let i = 0; i < NUM_RETRIES + 1; i++) { try { console.log(`Starting ${test} retry ${i}/${NUM_RETRIES}`) - const time = await runTest(test, true) + const time = await runTest(test, i > 0) timings.push({ file: test, time, From 1e3593c8802f3061e359ce7bc0be816d18e16757 Mon Sep 17 00:00:00 2001 From: "jj@jjsweb.site" Date: Wed, 18 Aug 2021 14:12:20 -0500 Subject: [PATCH 5/6] test disabling tcp/udp offloading --- .github/workflows/build_test_deploy.yml | 40 +++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/.github/workflows/build_test_deploy.yml b/.github/workflows/build_test_deploy.yml index ef2712ffd817103..b7b4a90a85efcf7 100644 --- a/.github/workflows/build_test_deploy.yml +++ b/.github/workflows/build_test_deploy.yml @@ -29,6 +29,10 @@ jobs: with: fetch-depth: 25 + # https://github.com/actions/virtual-environments/issues/1187 + - name: tune linux network + run: sudo ethtool -K eth0 tx off rx off + - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* - run: yarn install --frozen-lockfile --check-files - run: node run-tests.js --timings --write-timings -g 1/1 @@ -61,6 +65,10 @@ jobs: env: NEXT_TELEMETRY_DISABLED: 1 steps: + # https://github.com/actions/virtual-environments/issues/1187 + - name: tune linux network + run: sudo ethtool -K eth0 tx off rx off + - uses: actions/cache@v2 if: ${{needs.build.outputs.docsChange != 'docs only change'}} id: restore-build @@ -115,6 +123,11 @@ jobs: group: [1, 2, 3, 4, 5, 6] steps: - run: echo ${{needs.build.outputs.docsChange}} + + # https://github.com/actions/virtual-environments/issues/1187 + - name: tune linux network + run: sudo ethtool -K eth0 tx off rx off + - uses: actions/cache@v2 if: ${{needs.build.outputs.docsChange != 'docs only change'}} id: restore-build @@ -191,6 +204,10 @@ jobs: NEXT_PRIVATE_TEST_WEBPACK4_MODE: 1 steps: + # https://github.com/actions/virtual-environments/issues/1187 + - name: tune linux network + run: sudo ethtool -K eth0 tx off rx off + - uses: actions/cache@v2 if: ${{needs.build.outputs.docsChange != 'docs only change'}} id: restore-build @@ -231,6 +248,10 @@ jobs: BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} steps: + # https://github.com/actions/virtual-environments/issues/1187 + - name: tune linux network + run: sudo ethtool -K eth0 tx off rx off + - uses: actions/cache@v2 if: ${{needs.build.outputs.docsChange != 'docs only change'}} id: restore-build @@ -253,6 +274,10 @@ jobs: BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} steps: + # https://github.com/actions/virtual-environments/issues/1187 + - name: tune linux network + run: sudo ethtool -K eth0 tx off rx off + - uses: actions/cache@v2 if: ${{needs.build.outputs.docsChange != 'docs only change'}} id: restore-build @@ -270,6 +295,10 @@ jobs: env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} steps: + # https://github.com/actions/virtual-environments/issues/1187 + - name: tune linux network + run: sudo ethtool -K eth0 tx off rx off + - uses: actions/cache@v2 id: restore-build with: @@ -318,6 +347,17 @@ jobs: runs-on: ${{ matrix.os }} steps: + # https://github.com/actions/virtual-environments/issues/1187 + - name: tune linux network + run: sudo ethtool -K eth0 tx off rx off + if: ${{ matrix.os == "ubuntu-18.04" }} + - name: tune windows network + run: Disable-NetAdapterChecksumOffload -Name * -TcpIPv4 -UdpIPv4 -TcpIPv6 -UdpIPv6 + if: ${{ matrix.os == "windows-latest" }} + - name: tune mac network + run: sudo sysctl -w net.link.generic.system.hwcksum_tx=0 && sudo sysctl -w net.link.generic.system.hwcksum_rx=0 + if: ${{ matrix.os == "macos-latest" }} + - uses: actions/checkout@v2 with: fetch-depth: 25 From c11da775bfc382e4d3b603773043da3f51febf7b Mon Sep 17 00:00:00 2001 From: "jj@jjsweb.site" Date: Wed, 18 Aug 2021 14:25:00 -0500 Subject: [PATCH 6/6] fix quotes --- .github/workflows/build_test_deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_test_deploy.yml b/.github/workflows/build_test_deploy.yml index b7b4a90a85efcf7..0cf4b6046ee0039 100644 --- a/.github/workflows/build_test_deploy.yml +++ b/.github/workflows/build_test_deploy.yml @@ -350,13 +350,13 @@ jobs: # https://github.com/actions/virtual-environments/issues/1187 - name: tune linux network run: sudo ethtool -K eth0 tx off rx off - if: ${{ matrix.os == "ubuntu-18.04" }} + if: ${{ matrix.os == 'ubuntu-18.04' }} - name: tune windows network run: Disable-NetAdapterChecksumOffload -Name * -TcpIPv4 -UdpIPv4 -TcpIPv6 -UdpIPv6 - if: ${{ matrix.os == "windows-latest" }} + if: ${{ matrix.os == 'windows-latest' }} - name: tune mac network run: sudo sysctl -w net.link.generic.system.hwcksum_tx=0 && sudo sysctl -w net.link.generic.system.hwcksum_rx=0 - if: ${{ matrix.os == "macos-latest" }} + if: ${{ matrix.os == 'macos-latest' }} - uses: actions/checkout@v2 with: