Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force a sync of the whole system before reading config #7000

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/actions/run-ios-e2e-tests/action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Run iOS end to end tests action'

Check warning on line 1 in .github/actions/run-ios-e2e-tests/action.yml

View workflow job for this annotation

GitHub Actions / check-formatting

1:1 [document-start] missing document start "---"
description: 'Runs end to end tests on iOS device'
inputs:
test_name:
Expand All @@ -19,6 +19,9 @@
# Set up a unique output directory
- name: Set up outputs directory
run: |
# Forcing the filesystem buffers to be flushed to ensure the
# directory tree is updated
sync
if [ -n "$TEST_NAME" ]; then
# Strip slashes to avoid creating subdirectories
test_name_sanitized=$(printf "$TEST_NAME" | sed 's/\//_/g')
Expand All @@ -45,6 +48,9 @@

- name: Run end-to-end-tests
run: |
# Forcing the filesystem buffers to be flushed to ensure the
# directory tree is updated
sync
if [ -n "$TEST_NAME" ]; then
TEST_NAME_ARGUMENT=" -only-testing $TEST_NAME"
else
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ios-end-to-end-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
contents: read
issues: write
pull-requests: write
on:

Check warning on line 9 in .github/workflows/ios-end-to-end-tests.yml

View workflow job for this annotation

GitHub Actions / check-formatting

9:1 [truthy] truthy value should be one of [false, true]
workflow_call:
inputs:
arg_tests_json_key:
Expand Down Expand Up @@ -47,6 +47,9 @@
if [ -n "${{ inputs.arg_tests_json_key }}" ]; then
# JSON key supplied by another workflow calling this reusable workflow
echo "Using calling workflow supplied test suites JSON key: ${{ inputs.arg_tests_json_key }}"
# Forcing the filesystem buffers to be flushed to ensure the
# directory tree is updated
sync
test_suites_json=$(jq -r --compact-output '.tests."${{ inputs.arg_tests_json_key }}"' tests.json)
echo "test_suites_json=$test_suites_json" >> $GITHUB_ENV
elif [ -n "${{ inputs.user_supplied_test_name }}" ]; then
Expand Down
Loading