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
This commit is contained in:
Nicholas Cunningham 2025-06-10 13:41:01 -06:00 committed by GitHub
parent 001c7a1dde
commit ec0eda513d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View File

@ -256,8 +256,6 @@ jobs:
# Verify Xcode installation # Verify Xcode installation
xcodebuild -version xcodebuild -version
# List available simulators
xcrun simctl list devices available
timeout-minutes: 10 timeout-minutes: 10
continue-on-error: false continue-on-error: false
@ -303,9 +301,6 @@ jobs:
# Verify CoreSimulator service restarted # Verify CoreSimulator service restarted
pgrep -fl "CoreSimulator" || (echo "CoreSimulator service not running" && exit 1) 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 # Verify simulator runtime paths exist and are writable
test -d ~/Library/Developer/CoreSimulator/Devices || (echo "Simulator devices directory missing" && exit 1) 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) touch ~/Library/Developer/CoreSimulator/Devices/test || (echo "Simulator devices directory not writable" && exit 1)

View File

@ -18,7 +18,8 @@
"input": "production", "input": "production",
"projects": ["tag:npm:public"] "projects": ["tag:npm:public"]
}, },
"{workspaceRoot}/scripts/local-registry" "{workspaceRoot}/scripts/local-registry",
"native"
], ],
"dependsOn": [ "dependsOn": [
"local-registry", "local-registry",