feat(ci): Add script to ensure runtime is loaded #423
Merged
+99
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request improves the reliability of CI test runs for Apple platforms by ensuring that the required simulator runtimes are loaded before tests are executed. It introduces a new script to check and reload simulator runtimes as needed and updates the workflow matrix to specify platforms explicitly.
CI Reliability Improvements:
scripts/ci-ensure-runtime-loaded.sh, which checks if the required simulator runtime (e.g., iOS, tvOS, visionOS) for a specified OS version is loaded, attempts to reload it if not, and waits for it to become available. This helps prevent simulator-related test failures..github/workflows/tests.yml) to call the new script before running tests for each Apple platform, ensuring the correct simulator runtime is available.Workflow Matrix Enhancements:
platformfield to each Apple platform entry in the test matrix (ios,tvos,watchos,visionos) to facilitate passing the correct platform to the new script. [1] [2]