From ec0eda513df032e2152cdf24c84e07385166a58d Mon Sep 17 00:00:00 2001 From: Nicholas Cunningham Date: Tue, 10 Jun 2025 13:41:01 -0600 Subject: [PATCH] fix(repo): MacOS failures in our E2E Tests (#31528) This PR modifies the populate-local-registry-storage inputs to invalidate the cache when the native task is updated (which includes OS/architecture information). This change addresses MacOS failures we've been encountering in our nightly GitHub Actions runs. The issue stems from incorrect cache restoration when running multiple OS and Node.js version combinations, which explains why native modules were consistently missing in most MacOS tests. Here is the result: https://github.com/nrwl/nx/actions/runs/15562011534 --- .github/workflows/e2e-matrix.yml | 5 ----- project.json | 3 ++- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/e2e-matrix.yml b/.github/workflows/e2e-matrix.yml index 789036cf9a..4d0917bd40 100644 --- a/.github/workflows/e2e-matrix.yml +++ b/.github/workflows/e2e-matrix.yml @@ -256,8 +256,6 @@ jobs: # Verify Xcode installation xcodebuild -version - # List available simulators - xcrun simctl list devices available timeout-minutes: 10 continue-on-error: false @@ -303,9 +301,6 @@ jobs: # Verify CoreSimulator service restarted pgrep -fl "CoreSimulator" || (echo "CoreSimulator service not running" && exit 1) - # Check simulator list is clean - xcrun simctl list devices - # Verify simulator runtime paths exist and are writable test -d ~/Library/Developer/CoreSimulator/Devices || (echo "Simulator devices directory missing" && exit 1) touch ~/Library/Developer/CoreSimulator/Devices/test || (echo "Simulator devices directory not writable" && exit 1) diff --git a/project.json b/project.json index ef5535b0f0..e07f664c71 100644 --- a/project.json +++ b/project.json @@ -18,7 +18,8 @@ "input": "production", "projects": ["tag:npm:public"] }, - "{workspaceRoot}/scripts/local-registry" + "{workspaceRoot}/scripts/local-registry", + "native" ], "dependsOn": [ "local-registry",