From be2647c9ed78d99058b3c0ebaf43f2cf2a02155f Mon Sep 17 00:00:00 2001 From: Lawrence Forooghian Date: Tue, 7 Nov 2023 17:37:56 -0300 Subject: [PATCH] ./Scripts/set-ci-length-and-parallelism.sh --workflows 2 --jobs-per-workflow 4 --- .../workflows/integration-test-iOS16_2-1.yaml | 208 ++++++++++++++++++ .../workflows/integration-test-iOS16_2-2.yaml | 208 ++++++++++++++++++ .../workflows/integration-test-iOS16_2.yaml | 70 ------ 3 files changed, 416 insertions(+), 70 deletions(-) create mode 100644 .github/workflows/integration-test-iOS16_2-1.yaml create mode 100644 .github/workflows/integration-test-iOS16_2-2.yaml delete mode 100644 .github/workflows/integration-test-iOS16_2.yaml diff --git a/.github/workflows/integration-test-iOS16_2-1.yaml b/.github/workflows/integration-test-iOS16_2-1.yaml new file mode 100644 index 000000000..80fb35ca7 --- /dev/null +++ b/.github/workflows/integration-test-iOS16_2-1.yaml @@ -0,0 +1,208 @@ +name: "Integration Test: iOS 16.2 (workflow 1)" +on: + pull_request: + push: + branches: + - main +# IMPORTANT NOTES: +# - Changes made to this file needs to replicated across other integration-test-*.yaml files. +# - The Fastlane lane name is duplicated in more than one place within this workflow. +jobs: + check-1: + runs-on: macos-latest + env: + LC_CTYPE: en_US.UTF-8 + LANG: en_US.UTF-8 + ABLY_ENV: sandbox + steps: + - name: Check out SDK repo + uses: actions/checkout@v2 + - name: Select Specific Xcode Version (14.2) + run: | + sudo xcode-select -s /Applications/Xcode_14.2.app + echo "Selected Xcode version:" + xcodebuild -version + - name: Log environment information + run: ./Scripts/log-environment-information.sh + - name: Check out xcparse repo + uses: actions/checkout@v3 + with: + repository: ably-forks/xcparse + ref: emit-test-case-info + path: xcparse + - id: get-xcparse-commit-sha + name: Get xcparse commit SHA + run: | + cd xcparse + echo "::set-output name=sha::$(git rev-parse HEAD)" + - name: "actions/cache@v3 (xcparse binary)" + uses: actions/cache@v3 + with: + path: xcparse/.build/debug/xcparse + key: ${{ runner.os }}-xcparse-${{ steps.get-xcparse-commit-sha.outputs.sha }} + - name: Install Dependencies and Run Tests Continuously + env: + TEST_OBSERVABILITY_SERVER_AUTH_KEY: ${{ secrets.TEST_OBSERVABILITY_SERVER_AUTH_KEY }} + run: | + brew install xcbeautify + brew install coreutils # for `timeout` + make submodules + bundle install + make update_carthage_dependencies_ios + Scripts/continuously-run-tests-and-upload-results.sh --lane test_iOS16_2 + - name: Upload .xcresult bundles + uses: actions/upload-artifact@v3 + if: always() + with: + name: xcresult-bundles-1.tar.gz + path: xcresult-bundles.tar.gz + check-2: + runs-on: macos-latest + env: + LC_CTYPE: en_US.UTF-8 + LANG: en_US.UTF-8 + ABLY_ENV: sandbox + steps: + - name: Check out SDK repo + uses: actions/checkout@v2 + - name: Select Specific Xcode Version (14.2) + run: | + sudo xcode-select -s /Applications/Xcode_14.2.app + echo "Selected Xcode version:" + xcodebuild -version + - name: Log environment information + run: ./Scripts/log-environment-information.sh + - name: Check out xcparse repo + uses: actions/checkout@v3 + with: + repository: ably-forks/xcparse + ref: emit-test-case-info + path: xcparse + - id: get-xcparse-commit-sha + name: Get xcparse commit SHA + run: | + cd xcparse + echo "::set-output name=sha::$(git rev-parse HEAD)" + - name: "actions/cache@v3 (xcparse binary)" + uses: actions/cache@v3 + with: + path: xcparse/.build/debug/xcparse + key: ${{ runner.os }}-xcparse-${{ steps.get-xcparse-commit-sha.outputs.sha }} + - name: Install Dependencies and Run Tests Continuously + env: + TEST_OBSERVABILITY_SERVER_AUTH_KEY: ${{ secrets.TEST_OBSERVABILITY_SERVER_AUTH_KEY }} + run: | + brew install xcbeautify + brew install coreutils # for `timeout` + make submodules + bundle install + make update_carthage_dependencies_ios + Scripts/continuously-run-tests-and-upload-results.sh --lane test_iOS16_2 + - name: Upload .xcresult bundles + uses: actions/upload-artifact@v3 + if: always() + with: + name: xcresult-bundles-2.tar.gz + path: xcresult-bundles.tar.gz + needs: + - check-1 + check-3: + runs-on: macos-latest + env: + LC_CTYPE: en_US.UTF-8 + LANG: en_US.UTF-8 + ABLY_ENV: sandbox + steps: + - name: Check out SDK repo + uses: actions/checkout@v2 + - name: Select Specific Xcode Version (14.2) + run: | + sudo xcode-select -s /Applications/Xcode_14.2.app + echo "Selected Xcode version:" + xcodebuild -version + - name: Log environment information + run: ./Scripts/log-environment-information.sh + - name: Check out xcparse repo + uses: actions/checkout@v3 + with: + repository: ably-forks/xcparse + ref: emit-test-case-info + path: xcparse + - id: get-xcparse-commit-sha + name: Get xcparse commit SHA + run: | + cd xcparse + echo "::set-output name=sha::$(git rev-parse HEAD)" + - name: "actions/cache@v3 (xcparse binary)" + uses: actions/cache@v3 + with: + path: xcparse/.build/debug/xcparse + key: ${{ runner.os }}-xcparse-${{ steps.get-xcparse-commit-sha.outputs.sha }} + - name: Install Dependencies and Run Tests Continuously + env: + TEST_OBSERVABILITY_SERVER_AUTH_KEY: ${{ secrets.TEST_OBSERVABILITY_SERVER_AUTH_KEY }} + run: | + brew install xcbeautify + brew install coreutils # for `timeout` + make submodules + bundle install + make update_carthage_dependencies_ios + Scripts/continuously-run-tests-and-upload-results.sh --lane test_iOS16_2 + - name: Upload .xcresult bundles + uses: actions/upload-artifact@v3 + if: always() + with: + name: xcresult-bundles-3.tar.gz + path: xcresult-bundles.tar.gz + needs: + - check-2 + check-4: + runs-on: macos-latest + env: + LC_CTYPE: en_US.UTF-8 + LANG: en_US.UTF-8 + ABLY_ENV: sandbox + steps: + - name: Check out SDK repo + uses: actions/checkout@v2 + - name: Select Specific Xcode Version (14.2) + run: | + sudo xcode-select -s /Applications/Xcode_14.2.app + echo "Selected Xcode version:" + xcodebuild -version + - name: Log environment information + run: ./Scripts/log-environment-information.sh + - name: Check out xcparse repo + uses: actions/checkout@v3 + with: + repository: ably-forks/xcparse + ref: emit-test-case-info + path: xcparse + - id: get-xcparse-commit-sha + name: Get xcparse commit SHA + run: | + cd xcparse + echo "::set-output name=sha::$(git rev-parse HEAD)" + - name: "actions/cache@v3 (xcparse binary)" + uses: actions/cache@v3 + with: + path: xcparse/.build/debug/xcparse + key: ${{ runner.os }}-xcparse-${{ steps.get-xcparse-commit-sha.outputs.sha }} + - name: Install Dependencies and Run Tests Continuously + env: + TEST_OBSERVABILITY_SERVER_AUTH_KEY: ${{ secrets.TEST_OBSERVABILITY_SERVER_AUTH_KEY }} + run: | + brew install xcbeautify + brew install coreutils # for `timeout` + make submodules + bundle install + make update_carthage_dependencies_ios + Scripts/continuously-run-tests-and-upload-results.sh --lane test_iOS16_2 + - name: Upload .xcresult bundles + uses: actions/upload-artifact@v3 + if: always() + with: + name: xcresult-bundles-4.tar.gz + path: xcresult-bundles.tar.gz + needs: + - check-3 diff --git a/.github/workflows/integration-test-iOS16_2-2.yaml b/.github/workflows/integration-test-iOS16_2-2.yaml new file mode 100644 index 000000000..7a35a454a --- /dev/null +++ b/.github/workflows/integration-test-iOS16_2-2.yaml @@ -0,0 +1,208 @@ +name: "Integration Test: iOS 16.2 (workflow 2)" +on: + pull_request: + push: + branches: + - main +# IMPORTANT NOTES: +# - Changes made to this file needs to replicated across other integration-test-*.yaml files. +# - The Fastlane lane name is duplicated in more than one place within this workflow. +jobs: + check-1: + runs-on: macos-latest + env: + LC_CTYPE: en_US.UTF-8 + LANG: en_US.UTF-8 + ABLY_ENV: sandbox + steps: + - name: Check out SDK repo + uses: actions/checkout@v2 + - name: Select Specific Xcode Version (14.2) + run: | + sudo xcode-select -s /Applications/Xcode_14.2.app + echo "Selected Xcode version:" + xcodebuild -version + - name: Log environment information + run: ./Scripts/log-environment-information.sh + - name: Check out xcparse repo + uses: actions/checkout@v3 + with: + repository: ably-forks/xcparse + ref: emit-test-case-info + path: xcparse + - id: get-xcparse-commit-sha + name: Get xcparse commit SHA + run: | + cd xcparse + echo "::set-output name=sha::$(git rev-parse HEAD)" + - name: "actions/cache@v3 (xcparse binary)" + uses: actions/cache@v3 + with: + path: xcparse/.build/debug/xcparse + key: ${{ runner.os }}-xcparse-${{ steps.get-xcparse-commit-sha.outputs.sha }} + - name: Install Dependencies and Run Tests Continuously + env: + TEST_OBSERVABILITY_SERVER_AUTH_KEY: ${{ secrets.TEST_OBSERVABILITY_SERVER_AUTH_KEY }} + run: | + brew install xcbeautify + brew install coreutils # for `timeout` + make submodules + bundle install + make update_carthage_dependencies_ios + Scripts/continuously-run-tests-and-upload-results.sh --lane test_iOS16_2 + - name: Upload .xcresult bundles + uses: actions/upload-artifact@v3 + if: always() + with: + name: xcresult-bundles-1.tar.gz + path: xcresult-bundles.tar.gz + check-2: + runs-on: macos-latest + env: + LC_CTYPE: en_US.UTF-8 + LANG: en_US.UTF-8 + ABLY_ENV: sandbox + steps: + - name: Check out SDK repo + uses: actions/checkout@v2 + - name: Select Specific Xcode Version (14.2) + run: | + sudo xcode-select -s /Applications/Xcode_14.2.app + echo "Selected Xcode version:" + xcodebuild -version + - name: Log environment information + run: ./Scripts/log-environment-information.sh + - name: Check out xcparse repo + uses: actions/checkout@v3 + with: + repository: ably-forks/xcparse + ref: emit-test-case-info + path: xcparse + - id: get-xcparse-commit-sha + name: Get xcparse commit SHA + run: | + cd xcparse + echo "::set-output name=sha::$(git rev-parse HEAD)" + - name: "actions/cache@v3 (xcparse binary)" + uses: actions/cache@v3 + with: + path: xcparse/.build/debug/xcparse + key: ${{ runner.os }}-xcparse-${{ steps.get-xcparse-commit-sha.outputs.sha }} + - name: Install Dependencies and Run Tests Continuously + env: + TEST_OBSERVABILITY_SERVER_AUTH_KEY: ${{ secrets.TEST_OBSERVABILITY_SERVER_AUTH_KEY }} + run: | + brew install xcbeautify + brew install coreutils # for `timeout` + make submodules + bundle install + make update_carthage_dependencies_ios + Scripts/continuously-run-tests-and-upload-results.sh --lane test_iOS16_2 + - name: Upload .xcresult bundles + uses: actions/upload-artifact@v3 + if: always() + with: + name: xcresult-bundles-2.tar.gz + path: xcresult-bundles.tar.gz + needs: + - check-1 + check-3: + runs-on: macos-latest + env: + LC_CTYPE: en_US.UTF-8 + LANG: en_US.UTF-8 + ABLY_ENV: sandbox + steps: + - name: Check out SDK repo + uses: actions/checkout@v2 + - name: Select Specific Xcode Version (14.2) + run: | + sudo xcode-select -s /Applications/Xcode_14.2.app + echo "Selected Xcode version:" + xcodebuild -version + - name: Log environment information + run: ./Scripts/log-environment-information.sh + - name: Check out xcparse repo + uses: actions/checkout@v3 + with: + repository: ably-forks/xcparse + ref: emit-test-case-info + path: xcparse + - id: get-xcparse-commit-sha + name: Get xcparse commit SHA + run: | + cd xcparse + echo "::set-output name=sha::$(git rev-parse HEAD)" + - name: "actions/cache@v3 (xcparse binary)" + uses: actions/cache@v3 + with: + path: xcparse/.build/debug/xcparse + key: ${{ runner.os }}-xcparse-${{ steps.get-xcparse-commit-sha.outputs.sha }} + - name: Install Dependencies and Run Tests Continuously + env: + TEST_OBSERVABILITY_SERVER_AUTH_KEY: ${{ secrets.TEST_OBSERVABILITY_SERVER_AUTH_KEY }} + run: | + brew install xcbeautify + brew install coreutils # for `timeout` + make submodules + bundle install + make update_carthage_dependencies_ios + Scripts/continuously-run-tests-and-upload-results.sh --lane test_iOS16_2 + - name: Upload .xcresult bundles + uses: actions/upload-artifact@v3 + if: always() + with: + name: xcresult-bundles-3.tar.gz + path: xcresult-bundles.tar.gz + needs: + - check-2 + check-4: + runs-on: macos-latest + env: + LC_CTYPE: en_US.UTF-8 + LANG: en_US.UTF-8 + ABLY_ENV: sandbox + steps: + - name: Check out SDK repo + uses: actions/checkout@v2 + - name: Select Specific Xcode Version (14.2) + run: | + sudo xcode-select -s /Applications/Xcode_14.2.app + echo "Selected Xcode version:" + xcodebuild -version + - name: Log environment information + run: ./Scripts/log-environment-information.sh + - name: Check out xcparse repo + uses: actions/checkout@v3 + with: + repository: ably-forks/xcparse + ref: emit-test-case-info + path: xcparse + - id: get-xcparse-commit-sha + name: Get xcparse commit SHA + run: | + cd xcparse + echo "::set-output name=sha::$(git rev-parse HEAD)" + - name: "actions/cache@v3 (xcparse binary)" + uses: actions/cache@v3 + with: + path: xcparse/.build/debug/xcparse + key: ${{ runner.os }}-xcparse-${{ steps.get-xcparse-commit-sha.outputs.sha }} + - name: Install Dependencies and Run Tests Continuously + env: + TEST_OBSERVABILITY_SERVER_AUTH_KEY: ${{ secrets.TEST_OBSERVABILITY_SERVER_AUTH_KEY }} + run: | + brew install xcbeautify + brew install coreutils # for `timeout` + make submodules + bundle install + make update_carthage_dependencies_ios + Scripts/continuously-run-tests-and-upload-results.sh --lane test_iOS16_2 + - name: Upload .xcresult bundles + uses: actions/upload-artifact@v3 + if: always() + with: + name: xcresult-bundles-4.tar.gz + path: xcresult-bundles.tar.gz + needs: + - check-3 diff --git a/.github/workflows/integration-test-iOS16_2.yaml b/.github/workflows/integration-test-iOS16_2.yaml deleted file mode 100644 index febfcec50..000000000 --- a/.github/workflows/integration-test-iOS16_2.yaml +++ /dev/null @@ -1,70 +0,0 @@ -name: "Integration Test: iOS 16.2" - -on: - pull_request: - push: - branches: - - main - -# IMPORTANT NOTES: -# - Changes made to this file needs to replicated across other integration-test-*.yaml files. -# - The Fastlane lane name is duplicated in more than one place within this workflow. - -jobs: - check: - runs-on: macos-latest - - env: - LC_CTYPE: en_US.UTF-8 - LANG: en_US.UTF-8 - ABLY_ENV: sandbox - - steps: - - name: Check out SDK repo - uses: actions/checkout@v2 - - - name: Select Specific Xcode Version (14.2) - run: | - sudo xcode-select -s /Applications/Xcode_14.2.app - echo "Selected Xcode version:" - xcodebuild -version - - - name: Log environment information - run: ./Scripts/log-environment-information.sh - - - name: Check out xcparse repo - uses: actions/checkout@v3 - with: - repository: ably-forks/xcparse - ref: emit-test-case-info - path: xcparse - - - id: get-xcparse-commit-sha - name: Get xcparse commit SHA - run: | - cd xcparse - echo "::set-output name=sha::$(git rev-parse HEAD)" - - - name: "actions/cache@v3 (xcparse binary)" - uses: actions/cache@v3 - with: - path: xcparse/.build/debug/xcparse - key: ${{ runner.os }}-xcparse-${{ steps.get-xcparse-commit-sha.outputs.sha }} - - - name: Install Dependencies and Run Tests Continuously - env: - TEST_OBSERVABILITY_SERVER_AUTH_KEY: ${{ secrets.TEST_OBSERVABILITY_SERVER_AUTH_KEY }} - run: | - brew install xcbeautify - brew install coreutils # for `timeout` - make submodules - bundle install - make update_carthage_dependencies_ios - Scripts/continuously-run-tests-and-upload-results.sh --lane test_iOS16_2 - - - name: Upload .xcresult bundles - uses: actions/upload-artifact@v3 - if: always() - with: - name: xcresult-bundles.tar.gz - path: xcresult-bundles.tar.gz