Commit df5aa21f207 for woocommerce

commit df5aa21f207023960fce7009b9789a92bdc4b7c9
Author: Darren Ethier <darren@roughsmootheng.in>
Date:   Sun Nov 29 15:00:25 2026 +0100

    Stop nightly e2e jobs failing to download from wordpress.org (#71588)

    Node's network family autoselection gives each address 250 ms before
    moving on. When downloads.wordpress.org is slow to accept a connection,
    Node falls back to its IPv6 address, which GitHub-hosted runners can't
    reach, and wp-env fails with AggregateError [ETIMEDOUT]. Raise the
    per-address timeout to 2000 ms for the wp-env start step.

    Also move the nightly run from 03:00 to 04:37 UTC. Since at least
    2026-11-08, nightly jobs starting 03:07-03:28 UTC have needed wp-env
    retries, while jobs starting later in the same run and daytime trunk
    pushes almost never do.

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 27bb72aa592..2234649c699 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -411,6 +411,11 @@ jobs:
         # so a retry only re-runs whatever failed. Each retried attempt emits a
         # "::warning::wp-env-start-retry reason=<subsystem>" marker (grep-friendly) so the
         # underlying incident rate stays measurable even when the retry keeps the job green.
+        env:
+          # Node gives each address only 250 ms before trying the next. When downloads.wordpress.org
+          # is slow to accept, Node falls back to its IPv6 address, which runners can't reach,
+          # and the download fails with ETIMEDOUT.
+          NODE_OPTIONS: --network-family-autoselection-attempt-timeout=2000
         run: |
           set -o pipefail
           attempt=1
diff --git a/.github/workflows/tests-on-release.yml b/.github/workflows/tests-on-release.yml
index 6bbf2d106da..269e989a6d0 100644
--- a/.github/workflows/tests-on-release.yml
+++ b/.github/workflows/tests-on-release.yml
@@ -3,7 +3,8 @@ run-name: ${{ github.event_name == 'schedule' && 'scheduled' || github.event_nam

 on:
   schedule:
-    - cron: '0 3 * * *' # Runs at 3 AM UTC.
+    # Off the top of the hour: nightly wp-env downloads from wordpress.org fail far more often around 03:00 UTC.
+    - cron: '37 4 * * *' # Runs at 4:37 AM UTC.
   release:
     types: [ published, edited ]