From 4a04a35b10b832b6e196fa862c57b0ab6a1e7d2f Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 16:13:41 -0600 Subject: [PATCH 01/42] wip --- .github/workflows/test-sdks.yml | 255 +------------------------------- 1 file changed, 6 insertions(+), 249 deletions(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 9502740a..72577077 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -1,5 +1,8 @@ name: Test SDKs +env: + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} + on: push: branches: @@ -8,256 +11,10 @@ on: jobs: - test-java-sdk: - runs-on: macos-latest - steps: - - name: Check out Java SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/java-server-sdk' - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'adopt' - - name: 'Set up GCP SDK' - uses: 'google-github-actions/setup-gcloud@v0' - - name: Run tests - run: make test - - test-android-sdk: - runs-on: macos-latest - steps: - - name: Check out Java SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/android-sdk' - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'adopt' - - name: 'Set up GCP SDK' - uses: 'google-github-actions/setup-gcloud@v0' - - name: Restore gradle.properties - env: - MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} - shell: bash - run: | - mkdir -p ~/.gradle/ - echo "GRADLE_USER_HOME=${HOME}/.gradle" >> $GITHUB_ENV - echo "MAVEN_USERNAME=${MAVEN_USERNAME}" > ~/.gradle/gradle.properties - echo "MAVEN_PASSWORD=${MAVEN_PASSWORD}" >> ~/.gradle/gradle.properties - - name: Set up test data - run: make test-data - - name: Spin up emulator and run tests - id: testing - uses: ReactiveCircus/android-emulator-runner@v2 - with: - api-level: 33 - target: google_apis - arch: x86_64 - emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -dns-server 8.8.8.8 - script: | - echo "Emulator started" - adb logcat -c # clear logs - mkdir -p app/ # create directory - touch app/emulator.log # create log file - chmod 777 app/emulator.log # allow writing to log file - adb logcat | grep EppoSDK >> app/emulator.log & # pipe all logcat messages into log file as a background process - ./gradlew connectedCheck # run tests - - name: Upload Emulator Logs - if: always() - uses: actions/upload-artifact@v2 - with: - name: emulator logs - path: app/emulator.log - - name: Upload Test Report - if: always() - uses: actions/upload-artifact@v2 - with: - name: report - path: /Users/runner/work/sdk-test-data/sdk-test-data/eppo/build/reports/androidTests/connected/index.html - - test-node-server-sdk: - runs-on: ubuntu-latest - steps: - - name: 'Check out node server SDK' - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/node-server-sdk' - - name: Use Node.js 16 - uses: actions/setup-node@v1 - with: - node-version: '16.x' - - uses: actions/cache@v2 - with: - path: './node_modules' - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('./yarn.lock') }} - - name: Install root dependencies - run: yarn --frozen-lockfile - working-directory: ./ - - name: 'Set up GCP SDK for downloading test data' - uses: 'google-github-actions/setup-gcloud@v0' - - name: Install sdk dependencies - run: yarn --frozen-lockfile - working-directory: ./ - - name: Run tests - run: yarn test:unit - working-directory: ./ - - test-node-client-sdk: - runs-on: ubuntu-latest - steps: - - name: Check out node client SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/js-client-sdk' - - name: Use Node.js 18 - uses: actions/setup-node@v1 - with: - node-version: '18.x' - - uses: actions/cache@v2 - with: - path: './node_modules' - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('./yarn.lock') }} - - name: 'Set up GCP SDK for downloading test data' - uses: 'google-github-actions/setup-gcloud@v0' - - name: Install SDK dependencies - run: yarn --frozen-lockfile - working-directory: ./ - - name: Run tests - run: yarn test - working-directory: ./ - - test-react-native-sdk: - runs-on: ubuntu-latest - steps: - - name: Checkout React Native SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/react-native-sdk' - - name: Setup - uses: ./.github/actions/setup - - name: Install dependencies - run: yarn install - - name: Run tests - run: yarn test --maxWorkers=2 --coverage - - test-python-sdk: - runs-on: ubuntu-latest - steps: - - name: 'Check out Python SDK' - uses: "actions/checkout@v3" - with: - repository: 'Eppo-exp/python-sdk' - - name: Install Python 3.9 - uses: "actions/setup-python@v2" - with: - python-version: '3.9.x' - - name: "Install dependencies" - run: | - python -VV - python -m pip install --upgrade pip setuptools wheel - python -m pip install -r requirements.txt - python -m pip install -r requirements-test.txt - - name: 'Set up GCP SDK to download test data' - uses: 'google-github-actions/setup-gcloud@v0' - - name: Run tests - run: make test - test-php-sdk: runs-on: ubuntu-latest steps: - - name: Check out PHP SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/php-sdk' - - name: Validate composer.json and composer.lock - run: composer validate --strict - - name: Cache Composer packages - id: composer-cache - uses: actions/cache@v3 - with: - path: vendor - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-php- - - name: Install dependencies - run: composer install --prefer-dist --no-progress - - name: Run tests - run: make test - - test-ruby-sdk: - runs-on: ubuntu-latest - steps: - - name: Check out Ruby SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/ruby-sdk' - - name: Set up Ruby 3 - uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0 - with: - ruby-version: 3.0.6 - - name: Install dependencies - run: bundle install - - name: Refresh test data - run: bundle exec rake test_refreshed_data - - name: Run tests - run: bundle exec rake test - - test-ios-sdk: - runs-on: macos-latest - steps: - - name: Checkout iOS SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/eppo-ios-sdk' - - name: 'Set up Cloud SDK' - uses: 'google-github-actions/setup-gcloud@v1' - - name: 'Use gcloud CLI' - run: 'gcloud info' - - name: Build - run: make build - - name: Pull test data - run: make test-data - - name: Run tests - run: make test - - test-golang-sdk: - runs-on: ubuntu-latest - steps: - - name: Checkout Go SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/golang-sdk' - - uses: actions/setup-go@v3 - with: - go-version: 1.19 - - name: Build - run: go build -v ./... - - name: 'Set up GCP SDK for downloading test data' - uses: 'google-github-actions/setup-gcloud@v0' - - name: Run tests - run: make test - - test-dotnet-sdk: - runs-on: ubuntu-latest - steps: - - name: Checkout Dot.net SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/dot-net-server-sdk' - - name: Setup .NET 7 - uses: actions/setup-dotnet@v3 + - name: Run SDK tests locally + uses: Eppo-exp/php-sdk/blob/tp/workflows/remote/.github/workflows/run-tests.yml with: - dotnet-version: 7.0.x - - name: Restore dependencies - run: dotnet restore - - name: Build - run: make build - - name: Pull test data - run: make test-data - - name: Run tests - run: make test + test_data_branch: ${BRANCH_NAME} \ No newline at end of file From 4287cf3f98b283753ef5bacc9de5b5428761673f Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 16:13:49 -0600 Subject: [PATCH 02/42] wip --- .github/workflows/test-sdks-remote.yml | 37 ++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/test-sdks-remote.yml diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml new file mode 100644 index 00000000..16a9e87b --- /dev/null +++ b/.github/workflows/test-sdks-remote.yml @@ -0,0 +1,37 @@ +name: Test SDKs + +env: + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + + test-php-sdk: + runs-on: ubuntu-latest + steps: + - name: Echo Current Branch Name + shell: bash + run: | + echo "Testing eppo-exp/php-sdk" + - name: Echo Workflow Name + shell: bash + run: | + echo "Testing data on branch ${BRANCH_NAME}" + - name: Run remote workflow + uses: convictional/trigger-workflow-and-wait@v1.6.1 + with: + owner: Eppo-exp + repo: php-sdk + workflow_file_name: run-tests.yml + ref: tp/action/branch + github_token: ${{ secrets.AUTH_TOKEN }} + wait_interval: 10 + propagate_failure: true + trigger_workflow: true + wait_workflow: true + client_payload: '{"test_data_branch": "tp/tests/actions"}' From 6c4597347ba46ba5b6f752886b2cf3746c821ae3 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 16:14:40 -0600 Subject: [PATCH 03/42] names --- .github/workflows/test-sdks-remote.yml | 2 +- .github/workflows/test-sdks.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 16a9e87b..0bdc0992 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -1,4 +1,4 @@ -name: Test SDKs +name: Test SDKs Remotely env: BRANCH_NAME: ${{ github.head_ref || github.ref_name }} diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 72577077..c0c87367 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -1,4 +1,4 @@ -name: Test SDKs +name: Test SDKs Locally env: BRANCH_NAME: ${{ github.head_ref || github.ref_name }} From 874666d54375420d7660fecda1063a15242600e2 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 16:15:37 -0600 Subject: [PATCH 04/42] reuse workflow as top level job --- .github/workflows/test-sdks.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index c0c87367..74b7bc53 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -12,9 +12,6 @@ on: jobs: test-php-sdk: - runs-on: ubuntu-latest - steps: - - name: Run SDK tests locally - uses: Eppo-exp/php-sdk/blob/tp/workflows/remote/.github/workflows/run-tests.yml - with: - test_data_branch: ${BRANCH_NAME} \ No newline at end of file + uses: Eppo-exp/php-sdk/blob/tp/workflows/remote/.github/workflows/run-tests.yml + with: + test_data_branch: ${BRANCH_NAME} \ No newline at end of file From 329d1c30ff93c2ebc82811ca80e6bab553430028 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 16:17:36 -0600 Subject: [PATCH 05/42] wip branch reference --- .github/workflows/test-sdks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 74b7bc53..20537d9c 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -12,6 +12,6 @@ on: jobs: test-php-sdk: - uses: Eppo-exp/php-sdk/blob/tp/workflows/remote/.github/workflows/run-tests.yml + uses: Eppo-exp/php-sdk/.github/workflows/run-tests.yml@tp/workflows/remote with: test_data_branch: ${BRANCH_NAME} \ No newline at end of file From b953942a42fa25f4090bfe298260ec2c5c31fbc7 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 16:23:57 -0600 Subject: [PATCH 06/42] interpolate --- .github/workflows/test-sdks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 20537d9c..f7063732 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -14,4 +14,4 @@ jobs: test-php-sdk: uses: Eppo-exp/php-sdk/.github/workflows/run-tests.yml@tp/workflows/remote with: - test_data_branch: ${BRANCH_NAME} \ No newline at end of file + test_data_branch: ${{ BRANCH_NAME}} \ No newline at end of file From 9c0b22f2f1effde16b3f8db2721569a4fde207a9 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 16:25:39 -0600 Subject: [PATCH 07/42] test data branch --- .github/workflows/test-sdks.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index f7063732..0e94dc20 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -1,7 +1,4 @@ name: Test SDKs Locally - -env: - BRANCH_NAME: ${{ github.head_ref || github.ref_name }} on: push: @@ -14,4 +11,4 @@ jobs: test-php-sdk: uses: Eppo-exp/php-sdk/.github/workflows/run-tests.yml@tp/workflows/remote with: - test_data_branch: ${{ BRANCH_NAME}} \ No newline at end of file + test_data_branch: ${{ github.head_ref || github.ref_name }} \ No newline at end of file From 814d43e5c2bbc7c6ce96e3c7b5a1580e814af596 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 16:31:01 -0600 Subject: [PATCH 08/42] no vars --- .github/workflows/test-sdks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 0e94dc20..a3ab1a74 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -1,5 +1,5 @@ name: Test SDKs Locally - + on: push: branches: From 995631216e33e9a1f7f6e32b6e2055f9d4d9c943 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 22:23:55 -0600 Subject: [PATCH 09/42] node server sdk --- .github/workflows/test-sdks-remote.yml | 32 ++-- .github/workflows/test-sdks.yml | 217 ++++++++++++++++++++++++- 2 files changed, 235 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 0bdc0992..b23129d6 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -1,8 +1,5 @@ name: Test SDKs Remotely -env: - BRANCH_NAME: ${{ github.head_ref || github.ref_name }} - on: push: branches: @@ -14,24 +11,39 @@ jobs: test-php-sdk: runs-on: ubuntu-latest steps: - - name: Echo Current Branch Name + - name: Display workflow details shell: bash run: | echo "Testing eppo-exp/php-sdk" - - name: Echo Workflow Name - shell: bash - run: | - echo "Testing data on branch ${BRANCH_NAME}" - name: Run remote workflow uses: convictional/trigger-workflow-and-wait@v1.6.1 with: owner: Eppo-exp repo: php-sdk workflow_file_name: run-tests.yml - ref: tp/action/branch + ref: tp/workflows/remote + github_token: ${{ secrets.AUTH_TOKEN }} + wait_interval: 10 + propagate_failure: true + trigger_workflow: true + wait_workflow: true + + test-node-server-sdk: + runs-on: ubuntu-latest + steps: + - name: Display workflow details + shell: bash + run: | + echo "Testing eppo-exp/node-server-sdk" + - name: Run remote workflow + uses: convictional/trigger-workflow-and-wait@v1.6.1 + with: + owner: Eppo-exp + repo: node-server-sdk + workflow_file_name: lint-test-sdk.yml + ref: tp/workflows/remote github_token: ${{ secrets.AUTH_TOKEN }} wait_interval: 10 propagate_failure: true trigger_workflow: true wait_workflow: true - client_payload: '{"test_data_branch": "tp/tests/actions"}' diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index a3ab1a74..2d5d2001 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -1,14 +1,223 @@ name: Test SDKs Locally on: - push: - branches: - - main + pull_request: + types: [opened, synchronize] workflow_dispatch: jobs: + test-java-sdk: + runs-on: macos-latest + steps: + - name: Check out Java SDK + uses: actions/checkout@v3 + with: + repository: 'Eppo-exp/java-server-sdk' + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'adopt' + - name: 'Set up GCP SDK' + uses: 'google-github-actions/setup-gcloud@v0' + - name: Run tests + run: make test + + test-android-sdk: + runs-on: macos-latest + steps: + - name: Check out Java SDK + uses: actions/checkout@v3 + with: + repository: 'Eppo-exp/android-sdk' + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'adopt' + - name: 'Set up GCP SDK' + uses: 'google-github-actions/setup-gcloud@v0' + - name: Restore gradle.properties + env: + MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} + shell: bash + run: | + mkdir -p ~/.gradle/ + echo "GRADLE_USER_HOME=${HOME}/.gradle" >> $GITHUB_ENV + echo "MAVEN_USERNAME=${MAVEN_USERNAME}" > ~/.gradle/gradle.properties + echo "MAVEN_PASSWORD=${MAVEN_PASSWORD}" >> ~/.gradle/gradle.properties + - name: Set up test data + run: make test-data + - name: Spin up emulator and run tests + id: testing + uses: ReactiveCircus/android-emulator-runner@v2 + with: + api-level: 33 + target: google_apis + arch: x86_64 + emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -dns-server 8.8.8.8 + script: | + echo "Emulator started" + adb logcat -c # clear logs + mkdir -p app/ # create directory + touch app/emulator.log # create log file + chmod 777 app/emulator.log # allow writing to log file + adb logcat | grep EppoSDK >> app/emulator.log & # pipe all logcat messages into log file as a background process + ./gradlew connectedCheck # run tests + - name: Upload Emulator Logs + if: always() + uses: actions/upload-artifact@v2 + with: + name: emulator logs + path: app/emulator.log + - name: Upload Test Report + if: always() + uses: actions/upload-artifact@v2 + with: + name: report + path: /Users/runner/work/sdk-test-data/sdk-test-data/eppo/build/reports/androidTests/connected/index.html + + test-node-server-sdk: + uses: Eppo-exp/node-server-sdk/.github/workflows/lint-test-sdk.yml@tp/workflows/remote + with: + test_data_branch: ${{ github.head_ref || github.ref_name }} + + test-node-client-sdk: + runs-on: ubuntu-latest + steps: + - name: Check out node client SDK + uses: actions/checkout@v3 + with: + repository: 'Eppo-exp/js-client-sdk' + - name: Use Node.js 18 + uses: actions/setup-node@v1 + with: + node-version: '18.x' + - uses: actions/cache@v2 + with: + path: './node_modules' + key: ${{ runner.os }}-root-node-modules-${{ hashFiles('./yarn.lock') }} + - name: 'Set up GCP SDK for downloading test data' + uses: 'google-github-actions/setup-gcloud@v0' + - name: Install SDK dependencies + run: yarn --frozen-lockfile + working-directory: ./ + - name: Run tests + run: yarn test + working-directory: ./ + + test-react-native-sdk: + runs-on: ubuntu-latest + steps: + - name: Checkout React Native SDK + uses: actions/checkout@v3 + with: + repository: 'Eppo-exp/react-native-sdk' + - name: Setup + uses: ./.github/actions/setup + - name: Install dependencies + run: yarn install + - name: Run tests + run: yarn test --maxWorkers=2 --coverage + + test-python-sdk: + runs-on: ubuntu-latest + steps: + - name: 'Check out Python SDK' + uses: "actions/checkout@v3" + with: + repository: 'Eppo-exp/python-sdk' + - name: Install Python 3.9 + uses: "actions/setup-python@v2" + with: + python-version: '3.9.x' + - name: "Install dependencies" + run: | + python -VV + python -m pip install --upgrade pip setuptools wheel + python -m pip install -r requirements.txt + python -m pip install -r requirements-test.txt + - name: 'Set up GCP SDK to download test data' + uses: 'google-github-actions/setup-gcloud@v0' + - name: Run tests + run: make test + test-php-sdk: uses: Eppo-exp/php-sdk/.github/workflows/run-tests.yml@tp/workflows/remote with: - test_data_branch: ${{ github.head_ref || github.ref_name }} \ No newline at end of file + test_data_branch: ${{ github.head_ref || github.ref_name }} + + test-ruby-sdk: + runs-on: ubuntu-latest + steps: + - name: Check out Ruby SDK + uses: actions/checkout@v3 + with: + repository: 'Eppo-exp/ruby-sdk' + - name: Set up Ruby 3 + uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0 + with: + ruby-version: 3.0.6 + - name: Install dependencies + run: bundle install + - name: Refresh test data + run: bundle exec rake test_refreshed_data + - name: Run tests + run: bundle exec rake test + + test-ios-sdk: + runs-on: macos-latest + steps: + - name: Checkout iOS SDK + uses: actions/checkout@v3 + with: + repository: 'Eppo-exp/eppo-ios-sdk' + - name: 'Set up Cloud SDK' + uses: 'google-github-actions/setup-gcloud@v1' + - name: 'Use gcloud CLI' + run: 'gcloud info' + - name: Build + run: make build + - name: Pull test data + run: make test-data + - name: Run tests + run: make test + + test-golang-sdk: + runs-on: ubuntu-latest + steps: + - name: Checkout Go SDK + uses: actions/checkout@v3 + with: + repository: 'Eppo-exp/golang-sdk' + - uses: actions/setup-go@v3 + with: + go-version: 1.19 + - name: Build + run: go build -v ./... + - name: 'Set up GCP SDK for downloading test data' + uses: 'google-github-actions/setup-gcloud@v0' + - name: Run tests + run: make test + + test-dotnet-sdk: + runs-on: ubuntu-latest + steps: + - name: Checkout Dot.net SDK + uses: actions/checkout@v3 + with: + repository: 'Eppo-exp/dot-net-server-sdk' + - name: Setup .NET 7 + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 7.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build + run: make build + - name: Pull test data + run: make test-data + - name: Run tests + run: make test From ce829b1758dfc59417679bd1460c8b9525123050 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 22:25:48 -0600 Subject: [PATCH 10/42] on push workflow --- .github/workflows/test-sdks-remote.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index b23129d6..bd5575f9 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - tp/workflows/remote workflow_dispatch: jobs: From fa12480ebdd28271f0162468ce3794af4482ed4b Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 22:39:44 -0600 Subject: [PATCH 11/42] update dot-net SDK calls --- .github/workflows/test-sdks-remote.yml | 21 +++++++++++++++++++++ .github/workflows/test-sdks.yml | 23 ++++------------------- 2 files changed, 25 insertions(+), 19 deletions(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index bd5575f9..4f04a39e 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -48,3 +48,24 @@ jobs: propagate_failure: true trigger_workflow: true wait_workflow: true + + test-dotnet-sdk: + runs-on: ubuntu-latest + steps: + - name: Display workflow details + shell: bash + run: | + echo "Testing Eppo-exp/dot-net-server-sdk" + - name: Run remote workflow + uses: convictional/trigger-workflow-and-wait@v1.6.1 + with: + owner: Eppo-exp + repo: dot-net-server-sdk + workflow_file_name: run-tests.yml + ref: tp/workflows/remote + github_token: ${{ secrets.AUTH_TOKEN }} + wait_interval: 10 + propagate_failure: true + trigger_workflow: true + wait_workflow: true + \ No newline at end of file diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 2d5d2001..7672c3f5 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -201,23 +201,8 @@ jobs: uses: 'google-github-actions/setup-gcloud@v0' - name: Run tests run: make test - + test-dotnet-sdk: - runs-on: ubuntu-latest - steps: - - name: Checkout Dot.net SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/dot-net-server-sdk' - - name: Setup .NET 7 - uses: actions/setup-dotnet@v3 - with: - dotnet-version: 7.0.x - - name: Restore dependencies - run: dotnet restore - - name: Build - run: make build - - name: Pull test data - run: make test-data - - name: Run tests - run: make test + uses: Eppo-exp/dot-net-server-sdk/.github/workflows/run-tests.yml@tp/workflows/remote + with: + test_data_branch: ${{ github.head_ref || github.ref_name }} From a4568fd47c1d31ac808b6cb9dc66eb3f79b457e2 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 22:50:47 -0600 Subject: [PATCH 12/42] pushonbranch --- .github/workflows/test-sdks-remote.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 4f04a39e..53517f82 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -4,7 +4,7 @@ on: push: branches: - main - - tp/workflows/remote + - tp/central/workflows workflow_dispatch: jobs: From a7824693b229de91d789da25da41b4a594a103dd Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 23:02:54 -0600 Subject: [PATCH 13/42] spec main branch of SDKs on local test --- .github/workflows/test-sdks.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 7672c3f5..e4ddc751 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -82,7 +82,8 @@ jobs: test-node-server-sdk: uses: Eppo-exp/node-server-sdk/.github/workflows/lint-test-sdk.yml@tp/workflows/remote with: - test_data_branch: ${{ github.head_ref || github.ref_name }} + test_data_branch: ${{ github.head_ref || github.ref_name }} + sdk_branch: main test-node-client-sdk: runs-on: ubuntu-latest @@ -147,7 +148,8 @@ jobs: test-php-sdk: uses: Eppo-exp/php-sdk/.github/workflows/run-tests.yml@tp/workflows/remote with: - test_data_branch: ${{ github.head_ref || github.ref_name }} + test_data_branch: ${{ github.head_ref || github.ref_name }} + sdk_branch: main test-ruby-sdk: runs-on: ubuntu-latest @@ -205,4 +207,5 @@ jobs: test-dotnet-sdk: uses: Eppo-exp/dot-net-server-sdk/.github/workflows/run-tests.yml@tp/workflows/remote with: - test_data_branch: ${{ github.head_ref || github.ref_name }} + test_data_branch: ${{ github.head_ref || github.ref_name }} + sdk_branch: main From d2f80cf829356e57aa7536d0a7181ea6830aa798 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Mon, 19 Aug 2024 23:06:00 -0600 Subject: [PATCH 14/42] on pull pushes --- .github/workflows/test-sdks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index e4ddc751..6d47a8a8 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -2,7 +2,7 @@ name: Test SDKs Locally on: pull_request: - types: [opened, synchronize] + branches: [ "*" ] workflow_dispatch: jobs: From b00dd2d4c2f2c962de0afd03d27aeb5bdd10c218 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Tue, 20 Aug 2024 11:58:30 -0600 Subject: [PATCH 15/42] extract var --- .github/workflows/test-sdks.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 6d47a8a8..fa32d50a 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -1,5 +1,8 @@ name: Test SDKs Locally +env: + TEST_DATA_BRANCH_NAME: ${{ github.head_ref || github.ref_name }} + on: pull_request: branches: [ "*" ] @@ -82,7 +85,7 @@ jobs: test-node-server-sdk: uses: Eppo-exp/node-server-sdk/.github/workflows/lint-test-sdk.yml@tp/workflows/remote with: - test_data_branch: ${{ github.head_ref || github.ref_name }} + test_data_branch: ${{ env.TEST_DATA_BRANCH_NAME }} sdk_branch: main test-node-client-sdk: @@ -148,7 +151,7 @@ jobs: test-php-sdk: uses: Eppo-exp/php-sdk/.github/workflows/run-tests.yml@tp/workflows/remote with: - test_data_branch: ${{ github.head_ref || github.ref_name }} + test_data_branch: ${{ env.TEST_DATA_BRANCH_NAME }} sdk_branch: main test-ruby-sdk: @@ -203,9 +206,9 @@ jobs: uses: 'google-github-actions/setup-gcloud@v0' - name: Run tests run: make test - + test-dotnet-sdk: uses: Eppo-exp/dot-net-server-sdk/.github/workflows/run-tests.yml@tp/workflows/remote with: - test_data_branch: ${{ github.head_ref || github.ref_name }} + test_data_branch: ${{ env.TEST_DATA_BRANCH_NAME }} sdk_branch: main From 6b517821dcb86f87d995943b9f84c3538a380342 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Tue, 20 Aug 2024 11:59:34 -0600 Subject: [PATCH 16/42] remove testing extras --- .github/workflows/test-sdks-remote.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 53517f82..94a6128d 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -4,7 +4,6 @@ on: push: branches: - main - - tp/central/workflows workflow_dispatch: jobs: From ec1482f6d602646fa1aa0be412b52ca1b1a9f6df Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Tue, 20 Aug 2024 12:01:06 -0600 Subject: [PATCH 17/42] run on standard PR events (sync, open, reopen) --- .github/workflows/test-sdks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index fa32d50a..644cad8f 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -5,7 +5,7 @@ env: on: pull_request: - branches: [ "*" ] + workflow_dispatch: jobs: From f54ef48018ca410ecd5c9752c043bb4796edce54 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Tue, 20 Aug 2024 12:10:19 -0600 Subject: [PATCH 18/42] env scope is not available inside uses job --- .github/workflows/test-sdks.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 644cad8f..c541694c 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -1,8 +1,5 @@ name: Test SDKs Locally -env: - TEST_DATA_BRANCH_NAME: ${{ github.head_ref || github.ref_name }} - on: pull_request: @@ -85,7 +82,7 @@ jobs: test-node-server-sdk: uses: Eppo-exp/node-server-sdk/.github/workflows/lint-test-sdk.yml@tp/workflows/remote with: - test_data_branch: ${{ env.TEST_DATA_BRANCH_NAME }} + test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main test-node-client-sdk: @@ -151,7 +148,7 @@ jobs: test-php-sdk: uses: Eppo-exp/php-sdk/.github/workflows/run-tests.yml@tp/workflows/remote with: - test_data_branch: ${{ env.TEST_DATA_BRANCH_NAME }} + test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main test-ruby-sdk: @@ -210,5 +207,5 @@ jobs: test-dotnet-sdk: uses: Eppo-exp/dot-net-server-sdk/.github/workflows/run-tests.yml@tp/workflows/remote with: - test_data_branch: ${{ env.TEST_DATA_BRANCH_NAME }} + test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main From 9a2f4346f50fce9d353d855bab36d0e7b0f8402a Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Tue, 20 Aug 2024 12:14:12 -0600 Subject: [PATCH 19/42] ensure run on pulls --- .github/workflows/test-sdks.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index c541694c..8eb9bfbf 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -2,7 +2,8 @@ name: Test SDKs Locally on: pull_request: - + branches: [ "*" ] + workflow_dispatch: jobs: From b2f80fbd288c99b8c7ef1900db0c0a984ed6ef1b Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Tue, 20 Aug 2024 15:17:13 -0600 Subject: [PATCH 20/42] java sdk --- .github/workflows/test-sdks-remote.yml | 20 ++++++++++++++++++++ .github/workflows/test-sdks.yml | 19 ++++--------------- 2 files changed, 24 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 94a6128d..487d591c 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -7,6 +7,26 @@ on: workflow_dispatch: jobs: + + test-java-sdk: + runs-on: ubuntu-latest + steps: + - name: Display workflow details + shell: bash + run: | + echo "Testing Eppo-exp/java-server-sdk" + - name: Run remote workflow + uses: convictional/trigger-workflow-and-wait@v1.6.1 + with: + owner: Eppo-exp + repo: java-server-sdk + workflow_file_name: run-tests.yml + ref: tp/workflows/remote + github_token: ${{ secrets.AUTH_TOKEN }} + wait_interval: 10 + propagate_failure: true + trigger_workflow: true + wait_workflow: true test-php-sdk: runs-on: ubuntu-latest diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 8eb9bfbf..372b938f 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -9,21 +9,10 @@ on: jobs: test-java-sdk: - runs-on: macos-latest - steps: - - name: Check out Java SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/java-server-sdk' - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'adopt' - - name: 'Set up GCP SDK' - uses: 'google-github-actions/setup-gcloud@v0' - - name: Run tests - run: make test + uses: Eppo-exp/java-server-sdk/.github/workflows/lint-test-sdk.yml@tp/workflows/remote + with: + test_data_branch: ${{ github.head_ref || github.ref_name }} + sdk_branch: main test-android-sdk: runs-on: macos-latest From bcdbb1d6d43eaaf2d482cda0f7186b6259fdc414 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Tue, 20 Aug 2024 15:20:47 -0600 Subject: [PATCH 21/42] enable testing remote on PR push --- .github/workflows/test-sdks-remote.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 487d591c..4f0f5db6 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - tp/workflows/round2 workflow_dispatch: jobs: From 6dc088caf3204c1bf475aed67a01962a8c1740c8 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Tue, 20 Aug 2024 15:22:56 -0600 Subject: [PATCH 22/42] correct java test file name --- .github/workflows/test-sdks-remote.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 4f0f5db6..523faac8 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -21,7 +21,7 @@ jobs: with: owner: Eppo-exp repo: java-server-sdk - workflow_file_name: run-tests.yml + workflow_file_name: lint-test-sdk.yml ref: tp/workflows/remote github_token: ${{ secrets.AUTH_TOKEN }} wait_interval: 10 From 44eca8aa8dc8bd858eab1a2ddb601e1b515bbb80 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Wed, 21 Aug 2024 08:41:58 -0600 Subject: [PATCH 23/42] add js-client-sdk --- .github/workflows/test-sdks-remote.yml | 20 ++++++++++++++++++ .github/workflows/test-sdks.yml | 28 +++++--------------------- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 523faac8..f097443e 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -49,6 +49,26 @@ jobs: trigger_workflow: true wait_workflow: true + test-node-client-sdk: + runs-on: ubuntu-latest + steps: + - name: Display workflow details + shell: bash + run: | + echo "Testing eppo-exp/js-client-sdk" + - name: Run remote workflow + uses: convictional/trigger-workflow-and-wait@v1.6.1 + with: + owner: Eppo-exp + repo: js-client-sdk + workflow_file_name: lint-test-sdk.yml + ref: tp/workflows/remote + github_token: ${{ secrets.AUTH_TOKEN }} + wait_interval: 10 + propagate_failure: true + trigger_workflow: true + wait_workflow: true + test-node-server-sdk: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 372b938f..412114ee 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -76,29 +76,11 @@ jobs: sdk_branch: main test-node-client-sdk: - runs-on: ubuntu-latest - steps: - - name: Check out node client SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/js-client-sdk' - - name: Use Node.js 18 - uses: actions/setup-node@v1 - with: - node-version: '18.x' - - uses: actions/cache@v2 - with: - path: './node_modules' - key: ${{ runner.os }}-root-node-modules-${{ hashFiles('./yarn.lock') }} - - name: 'Set up GCP SDK for downloading test data' - uses: 'google-github-actions/setup-gcloud@v0' - - name: Install SDK dependencies - run: yarn --frozen-lockfile - working-directory: ./ - - name: Run tests - run: yarn test - working-directory: ./ - + uses: Eppo-exp/js-client-sdk/.github/workflows/lint-test-sdk.yml@tp/workflows/remote + with: + test_data_branch: ${{ github.head_ref || github.ref_name }} + sdk_branch: main + test-react-native-sdk: runs-on: ubuntu-latest steps: From ae7a3f8cd451329dd6b2314ec97c35241bf72afc Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Wed, 21 Aug 2024 10:21:36 -0600 Subject: [PATCH 24/42] Add python SDK --- .github/workflows/test-sdks-remote.yml | 20 ++++++++++++++++++++ .github/workflows/test-sdks.yml | 7 +++++++ 2 files changed, 27 insertions(+) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index f097443e..49b0275f 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -69,6 +69,26 @@ jobs: trigger_workflow: true wait_workflow: true + test-python-sdk: + runs-on: ubuntu-latest + steps: + - name: Display workflow details + shell: bash + run: | + echo "Testing eppo-exp/python-sdk" + - name: Run remote workflow + uses: convictional/trigger-workflow-and-wait@v1.6.1 + with: + owner: Eppo-exp + repo: python-sdk + workflow_file_name: lint-test-sdk.yml + ref: tp/workflows/remote + github_token: ${{ secrets.AUTH_TOKEN }} + wait_interval: 10 + propagate_failure: true + trigger_workflow: true + wait_workflow: true + test-node-server-sdk: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 412114ee..bfdaee79 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -96,6 +96,13 @@ jobs: run: yarn test --maxWorkers=2 --coverage test-python-sdk: + runs-on: ubuntu-latest + steps: + - name: "Run test action" + uses: Eppo-exp/python-sdk/.github/actions/action-test@tp/workflows/remote + test_data_branch: ${{ github.head_ref || github.ref_name }} + sdk_branch: main + runs-on: ubuntu-latest steps: - name: 'Check out Python SDK' From ae56e90db776efe8eb4dde5d6ee630c547941fa8 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Wed, 21 Aug 2024 10:25:02 -0600 Subject: [PATCH 25/42] syntax --- .github/workflows/test-sdks.yml | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index bfdaee79..264c71ad 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -99,30 +99,10 @@ jobs: runs-on: ubuntu-latest steps: - name: "Run test action" - uses: Eppo-exp/python-sdk/.github/actions/action-test@tp/workflows/remote + uses: 'Eppo-exp/python-sdk/.github/actions/action-test@tp/workflows/remote' + with: test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main - - runs-on: ubuntu-latest - steps: - - name: 'Check out Python SDK' - uses: "actions/checkout@v3" - with: - repository: 'Eppo-exp/python-sdk' - - name: Install Python 3.9 - uses: "actions/setup-python@v2" - with: - python-version: '3.9.x' - - name: "Install dependencies" - run: | - python -VV - python -m pip install --upgrade pip setuptools wheel - python -m pip install -r requirements.txt - python -m pip install -r requirements-test.txt - - name: 'Set up GCP SDK to download test data' - uses: 'google-github-actions/setup-gcloud@v0' - - name: Run tests - run: make test test-php-sdk: uses: Eppo-exp/php-sdk/.github/workflows/run-tests.yml@tp/workflows/remote From 59efb63df78488cb0ce90b1da47b0eac5b75bf9a Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Wed, 28 Aug 2024 22:52:42 -0600 Subject: [PATCH 26/42] react native client --- .github/workflows/test-sdks-remote.yml | 20 ++++++++++++++++++++ .github/workflows/test-sdks.yml | 17 ++++------------- 2 files changed, 24 insertions(+), 13 deletions(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index d6377a44..3b088993 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -69,6 +69,26 @@ jobs: trigger_workflow: true wait_workflow: true + test-react-native-client: + runs-on: ubuntu-latest + steps: + - name: Display workflow details + shell: bash + run: | + echo "Testing eppo-exp/react-native-client" + - name: Run remote workflow + uses: convictional/trigger-workflow-and-wait@v1.6.1 + with: + owner: Eppo-exp + repo: react-native-client + workflow_file_name: ci.yml + ref: tp/workflows/remote + github_token: ${{ secrets.AUTH_TOKEN }} + wait_interval: 10 + propagate_failure: true + trigger_workflow: true + wait_workflow: true + test-python-sdk: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index fd0d58b0..4b773e0b 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -1,5 +1,4 @@ name: Test SDKs Locally -name: Test SDKs Locally on: pull_request: @@ -83,18 +82,10 @@ jobs: sdk_branch: main test-react-native-sdk: - runs-on: ubuntu-latest - steps: - - name: Checkout React Native SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/react-native-sdk' - - name: Setup - uses: ./.github/actions/setup - - name: Install dependencies - run: yarn install - - name: Run tests - run: yarn test --maxWorkers=2 --coverage + uses: Eppo-exp/js-client-sdk/.github/workflows/lint-test-sdk.yml@tp/workflows/remote + with: + test_data_branch: ${{ github.head_ref || github.ref_name }} + sdk_branch: main test-python-sdk: runs-on: ubuntu-latest From 42ca2349f372148a915a70da7e32a39523f8c76c Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Wed, 28 Aug 2024 22:53:49 -0600 Subject: [PATCH 27/42] run on WIP branches --- .github/workflows/test-sdks-remote.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 3b088993..e7c17792 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -4,7 +4,7 @@ on: push: branches: - main - - tp/workflows/round2 + - tp/* workflow_dispatch: jobs: From 41db4fdc31e16366b1885486938fe908a2445487 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Wed, 28 Aug 2024 22:55:18 -0600 Subject: [PATCH 28/42] right sdk --- .github/workflows/test-sdks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 4b773e0b..ddb3195c 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -82,7 +82,7 @@ jobs: sdk_branch: main test-react-native-sdk: - uses: Eppo-exp/js-client-sdk/.github/workflows/lint-test-sdk.yml@tp/workflows/remote + uses: Eppo-exp/react-native-sdk/.github/workflows/ci.yml@tp/workflows/remote with: test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main From 348b53653879ef282566f9313edaed4ece26dca3 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Wed, 28 Aug 2024 23:08:02 -0600 Subject: [PATCH 29/42] golang SDK --- .github/workflows/test-sdks-remote.yml | 19 +++++++++++++++++++ .github/workflows/test-sdks.yml | 19 ++++--------------- 2 files changed, 23 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index e7c17792..39aa176c 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -129,6 +129,25 @@ jobs: trigger_workflow: true wait_workflow: true + test-golang-sdk: + runs-on: ubuntu-latest + steps: + - name: Display workflow details + shell: bash + run: | + echo "Testing eppo-exp/golang-sdk" + - name: Run remote workflow + uses: convictional/trigger-workflow-and-wait@v1.6.1 + with: + owner: Eppo-exp + repo: golang-sdk + workflow_file_name: test.yml + ref: tp/workflows/remote + github_token: ${{ secrets.AUTH_TOKEN }} + wait_interval: 10 + propagate_failure: true + trigger_workflow: true + wait_workflow: true test-dotnet-sdk: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index ddb3195c..526372fd 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -139,21 +139,10 @@ jobs: run: make test test-golang-sdk: - runs-on: ubuntu-latest - steps: - - name: Checkout Go SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/golang-sdk' - - uses: actions/setup-go@v3 - with: - go-version: 1.19 - - name: Build - run: go build -v ./... - - name: 'Set up GCP SDK for downloading test data' - uses: 'google-github-actions/setup-gcloud@v0' - - name: Run tests - run: make test + uses: Eppo-exp/golang-sdk/.github/workflows/test.yml@main + with: + test_data_branch: ${{ github.head_ref || github.ref_name }} + sdk_branch: main test-dotnet-sdk: uses: Eppo-exp/dot-net-server-sdk/.github/workflows/run-tests.yml@main From c3c3b0a77827cf15e9ae2e87175f8e81bd3b2a82 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Wed, 28 Aug 2024 23:10:18 -0600 Subject: [PATCH 30/42] branch spec --- .github/workflows/test-sdks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 526372fd..3e6c74f4 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -139,7 +139,7 @@ jobs: run: make test test-golang-sdk: - uses: Eppo-exp/golang-sdk/.github/workflows/test.yml@main + uses: Eppo-exp/golang-sdk/.github/workflows/test.yml@tp/workflows/remote with: test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main From f7a8bdd5fba96ac293c4dd871ef220ec34ee6a14 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Wed, 28 Aug 2024 23:11:53 -0600 Subject: [PATCH 31/42] react repo --- .github/workflows/test-sdks-remote.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 39aa176c..bc4dbe88 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -75,12 +75,12 @@ jobs: - name: Display workflow details shell: bash run: | - echo "Testing eppo-exp/react-native-client" + echo "Testing eppo-exp/react-native-sdk" - name: Run remote workflow uses: convictional/trigger-workflow-and-wait@v1.6.1 with: owner: Eppo-exp - repo: react-native-client + repo: react-native-sdk workflow_file_name: ci.yml ref: tp/workflows/remote github_token: ${{ secrets.AUTH_TOKEN }} From 2d57214d412c4bab09dc22e5312e967158124abe Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Thu, 29 Aug 2024 09:09:49 -0600 Subject: [PATCH 32/42] drop ruby repo, as the Ruby SDK is built with Rust --- .github/workflows/test-sdks.yml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 3e6c74f4..66d065ab 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -102,24 +102,6 @@ jobs: test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main - test-ruby-sdk: - runs-on: ubuntu-latest - steps: - - name: Check out Ruby SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/ruby-sdk' - - name: Set up Ruby 3 - uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0 - with: - ruby-version: 3.0.6 - - name: Install dependencies - run: bundle install - - name: Refresh test data - run: bundle exec rake test_refreshed_data - - name: Run tests - run: bundle exec rake test - test-ios-sdk: runs-on: macos-latest steps: From 5cf71c6c4f739e64bf03c94cda62db6e4c5eae34 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Thu, 29 Aug 2024 09:21:14 -0600 Subject: [PATCH 33/42] ios sdk --- .github/workflows/test-sdks-remote.yml | 21 +++++++++++++++++++++ .github/workflows/test-sdks.yml | 21 ++++----------------- 2 files changed, 25 insertions(+), 17 deletions(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index bc4dbe88..0e5f327a 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -129,6 +129,26 @@ jobs: trigger_workflow: true wait_workflow: true + test-ios-sdk: + runs-on: ubuntu-latest + steps: + - name: Display workflow details + shell: bash + run: | + echo "Testing eppo-exp/ios-sdk" + - name: Run remote workflow + uses: convictional/trigger-workflow-and-wait@v1.6.1 + with: + owner: Eppo-exp + repo: ios-sdk + workflow_file_name: unit-tests.yml + ref: tp/workflows/remote + github_token: ${{ secrets.AUTH_TOKEN }} + wait_interval: 10 + propagate_failure: true + trigger_workflow: true + wait_workflow: true + test-golang-sdk: runs-on: ubuntu-latest steps: @@ -148,6 +168,7 @@ jobs: propagate_failure: true trigger_workflow: true wait_workflow: true + test-dotnet-sdk: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 66d065ab..daaa9f57 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -103,23 +103,10 @@ jobs: sdk_branch: main test-ios-sdk: - runs-on: macos-latest - steps: - - name: Checkout iOS SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/eppo-ios-sdk' - - name: 'Set up Cloud SDK' - uses: 'google-github-actions/setup-gcloud@v1' - - name: 'Use gcloud CLI' - run: 'gcloud info' - - name: Build - run: make build - - name: Pull test data - run: make test-data - - name: Run tests - run: make test - + uses: Eppo-exp/ios-sdk/.github/workflows/unit-tests.yml@tp/workflows/remote + with: + test_data_branch: ${{ github.head_ref || github.ref_name }} + test-golang-sdk: uses: Eppo-exp/golang-sdk/.github/workflows/test.yml@tp/workflows/remote with: From 1dd1d1bd8b3332d60b10cadd5b925d7bd4288a20 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Thu, 29 Aug 2024 09:22:51 -0600 Subject: [PATCH 34/42] correct repo --- .github/workflows/test-sdks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index daaa9f57..bdd88ee8 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -103,7 +103,7 @@ jobs: sdk_branch: main test-ios-sdk: - uses: Eppo-exp/ios-sdk/.github/workflows/unit-tests.yml@tp/workflows/remote + uses: Eppo-exp/eppo-ios-sdk/.github/workflows/unit-tests.yml@tp/workflows/remote with: test_data_branch: ${{ github.head_ref || github.ref_name }} From 12737f5ddfc1fb7e8e13b831242af481fa9e6a8d Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Thu, 29 Aug 2024 09:31:15 -0600 Subject: [PATCH 35/42] need to spec main branch --- .github/workflows/test-sdks.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index bdd88ee8..ad767aa6 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -106,6 +106,7 @@ jobs: uses: Eppo-exp/eppo-ios-sdk/.github/workflows/unit-tests.yml@tp/workflows/remote with: test_data_branch: ${{ github.head_ref || github.ref_name }} + sdk_branch: main test-golang-sdk: uses: Eppo-exp/golang-sdk/.github/workflows/test.yml@tp/workflows/remote From 1be80856fd3251ebfdf36df59ad8deb37ca59a68 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Thu, 29 Aug 2024 09:40:10 -0600 Subject: [PATCH 36/42] android SDK --- .github/workflows/test-sdks-remote.yml | 24 ++++++++++- .github/workflows/test-sdks.yml | 59 +++----------------------- 2 files changed, 27 insertions(+), 56 deletions(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 0e5f327a..183dbdf9 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -109,6 +109,26 @@ jobs: trigger_workflow: true wait_workflow: true + test-android-sdk: + runs-on: ubuntu-latest + steps: + - name: Display workflow details + shell: bash + run: | + echo "Testing eppo-exp/android-sdk" + - name: Run remote workflow + uses: convictional/trigger-workflow-and-wait@v1.6.1 + with: + owner: Eppo-exp + repo: android-sdk + workflow_file_name: test.yml + ref: tp/workflows/remote + github_token: ${{ secrets.AUTH_TOKEN }} + wait_interval: 10 + propagate_failure: true + trigger_workflow: true + wait_workflow: true + test-node-server-sdk: runs-on: ubuntu-latest steps: @@ -135,12 +155,12 @@ jobs: - name: Display workflow details shell: bash run: | - echo "Testing eppo-exp/ios-sdk" + echo "Testing eppo-exp/eppo-ios-sdk" - name: Run remote workflow uses: convictional/trigger-workflow-and-wait@v1.6.1 with: owner: Eppo-exp - repo: ios-sdk + repo: eppo-ios-sdk workflow_file_name: unit-tests.yml ref: tp/workflows/remote github_token: ${{ secrets.AUTH_TOKEN }} diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index ad767aa6..73e80e54 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -15,60 +15,11 @@ jobs: sdk_branch: main test-android-sdk: - runs-on: macos-latest - steps: - - name: Check out Java SDK - uses: actions/checkout@v3 - with: - repository: 'Eppo-exp/android-sdk' - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'adopt' - - name: 'Set up GCP SDK' - uses: 'google-github-actions/setup-gcloud@v0' - - name: Restore gradle.properties - env: - MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} - shell: bash - run: | - mkdir -p ~/.gradle/ - echo "GRADLE_USER_HOME=${HOME}/.gradle" >> $GITHUB_ENV - echo "MAVEN_USERNAME=${MAVEN_USERNAME}" > ~/.gradle/gradle.properties - echo "MAVEN_PASSWORD=${MAVEN_PASSWORD}" >> ~/.gradle/gradle.properties - - name: Set up test data - run: make test-data - - name: Spin up emulator and run tests - id: testing - uses: ReactiveCircus/android-emulator-runner@v2 - with: - api-level: 33 - target: google_apis - arch: x86_64 - emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -dns-server 8.8.8.8 - script: | - echo "Emulator started" - adb logcat -c # clear logs - mkdir -p app/ # create directory - touch app/emulator.log # create log file - chmod 777 app/emulator.log # allow writing to log file - adb logcat | grep EppoSDK >> app/emulator.log & # pipe all logcat messages into log file as a background process - ./gradlew connectedCheck # run tests - - name: Upload Emulator Logs - if: always() - uses: actions/upload-artifact@v2 - with: - name: emulator logs - path: app/emulator.log - - name: Upload Test Report - if: always() - uses: actions/upload-artifact@v2 - with: - name: report - path: /Users/runner/work/sdk-test-data/sdk-test-data/eppo/build/reports/androidTests/connected/index.html - + uses: Eppo-exp/android-sdk/.github/workflows/test.yml@main + with: + test_data_branch: ${{ github.head_ref || github.ref_name }} + sdk_branch: main + test-node-server-sdk: uses: Eppo-exp/node-server-sdk/.github/workflows/lint-test-sdk.yml@main with: From 3aec1bbd582c61db99c30e4140abb4b212854763 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Thu, 29 Aug 2024 10:02:42 -0600 Subject: [PATCH 37/42] missed an 'a' in .yaml --- .github/workflows/test-sdks-remote.yml | 2 +- .github/workflows/test-sdks.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 183dbdf9..4d8f795c 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -121,7 +121,7 @@ jobs: with: owner: Eppo-exp repo: android-sdk - workflow_file_name: test.yml + workflow_file_name: test.yaml ref: tp/workflows/remote github_token: ${{ secrets.AUTH_TOKEN }} wait_interval: 10 diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 73e80e54..3cba73fc 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -15,7 +15,7 @@ jobs: sdk_branch: main test-android-sdk: - uses: Eppo-exp/android-sdk/.github/workflows/test.yml@main + uses: Eppo-exp/android-sdk/.github/workflows/test.yaml@main with: test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main From b74fd6d8edb4ba8efd7910398ed0eb0535fb9edd Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Thu, 29 Aug 2024 10:04:19 -0600 Subject: [PATCH 38/42] temp android branch --- .github/workflows/test-sdks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 3cba73fc..74122126 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -15,7 +15,7 @@ jobs: sdk_branch: main test-android-sdk: - uses: Eppo-exp/android-sdk/.github/workflows/test.yaml@main + uses: Eppo-exp/android-sdk/.github/workflows/test.yaml@tp/workflows/remote with: test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main From e27d112a741c5b78693a3d9f324e6fdcb0d8d63a Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Thu, 29 Aug 2024 10:10:30 -0600 Subject: [PATCH 39/42] remove testing workflow trigger --- .github/workflows/test-sdks-remote.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 4d8f795c..7d5f2c4a 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -4,7 +4,6 @@ on: push: branches: - main - - tp/* workflow_dispatch: jobs: From fc297ffb12c1b2b9426f6b2859f233c7a48ebd95 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Thu, 12 Sep 2024 09:46:55 -0600 Subject: [PATCH 40/42] merge main --- .github/workflows/test-sdks-remote.yml | 206 +++---------------------- .github/workflows/test-sdks.yml | 16 +- yarn.lock | 6 +- 3 files changed, 38 insertions(+), 190 deletions(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 7d5f2c4a..37df446d 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -4,207 +4,41 @@ on: push: branches: - main + paths: + - 'ufc/**' workflow_dispatch: jobs: - test-java-sdk: + test-sdks: runs-on: ubuntu-latest + strategy: + matrix: + sdk: + - { repo: "android-sdk", workflow: "test.yaml", ref: "main" } + - { repo: "dot-net-server-sdk", workflow: "run-tests.yml", ref: "main" } + - { repo: "eppo-ios-sdk", workflow: "unit-tests.yml", ref: "main" } + - { repo: "golang-sdk", workflow: "test.yml", ref: "main" } + - { repo: "java-server-sdk", workflow: "lint-test-sdk.yml", ref: "main" } + - { repo: "js-client-sdk", workflow: "lint-test-sdk.yml", ref: "main" } + - { repo: "node-server-sdk", workflow: "lint-test-sdk.yml", ref: "main" } + - { repo: "php-sdk", workflow: "run-tests.yml", ref: "main" } + - { repo: "python-sdk", workflow: "lint-test-sdk.yml", ref: "main" } + - { repo: "react-native-sdk", workflow: "ci.yml", ref: "main" } steps: - name: Display workflow details shell: bash run: | - echo "Testing Eppo-exp/java-server-sdk" + echo "Testing eppo-exp/${{ matrix.sdk.repo }}" - name: Run remote workflow uses: convictional/trigger-workflow-and-wait@v1.6.1 with: owner: Eppo-exp - repo: java-server-sdk - workflow_file_name: lint-test-sdk.yml - ref: tp/workflows/remote + repo: ${{ matrix.sdk.repo }} + workflow_file_name: ${{ matrix.sdk.workflow }} + ref: ${{ matrix.sdk.ref }} github_token: ${{ secrets.AUTH_TOKEN }} wait_interval: 10 propagate_failure: true trigger_workflow: true wait_workflow: true - - test-php-sdk: - runs-on: ubuntu-latest - steps: - - name: Display workflow details - shell: bash - run: | - echo "Testing eppo-exp/php-sdk" - - name: Run remote workflow - uses: convictional/trigger-workflow-and-wait@v1.6.1 - with: - owner: Eppo-exp - repo: php-sdk - workflow_file_name: run-tests.yml - ref: main - github_token: ${{ secrets.AUTH_TOKEN }} - wait_interval: 10 - propagate_failure: true - trigger_workflow: true - wait_workflow: true - - test-node-client-sdk: - runs-on: ubuntu-latest - steps: - - name: Display workflow details - shell: bash - run: | - echo "Testing eppo-exp/js-client-sdk" - - name: Run remote workflow - uses: convictional/trigger-workflow-and-wait@v1.6.1 - with: - owner: Eppo-exp - repo: js-client-sdk - workflow_file_name: lint-test-sdk.yml - ref: tp/workflows/remote - github_token: ${{ secrets.AUTH_TOKEN }} - wait_interval: 10 - propagate_failure: true - trigger_workflow: true - wait_workflow: true - - test-react-native-client: - runs-on: ubuntu-latest - steps: - - name: Display workflow details - shell: bash - run: | - echo "Testing eppo-exp/react-native-sdk" - - name: Run remote workflow - uses: convictional/trigger-workflow-and-wait@v1.6.1 - with: - owner: Eppo-exp - repo: react-native-sdk - workflow_file_name: ci.yml - ref: tp/workflows/remote - github_token: ${{ secrets.AUTH_TOKEN }} - wait_interval: 10 - propagate_failure: true - trigger_workflow: true - wait_workflow: true - - test-python-sdk: - runs-on: ubuntu-latest - steps: - - name: Display workflow details - shell: bash - run: | - echo "Testing eppo-exp/python-sdk" - - name: Run remote workflow - uses: convictional/trigger-workflow-and-wait@v1.6.1 - with: - owner: Eppo-exp - repo: python-sdk - workflow_file_name: lint-test-sdk.yml - ref: tp/workflows/remote - github_token: ${{ secrets.AUTH_TOKEN }} - wait_interval: 10 - propagate_failure: true - trigger_workflow: true - wait_workflow: true - - test-android-sdk: - runs-on: ubuntu-latest - steps: - - name: Display workflow details - shell: bash - run: | - echo "Testing eppo-exp/android-sdk" - - name: Run remote workflow - uses: convictional/trigger-workflow-and-wait@v1.6.1 - with: - owner: Eppo-exp - repo: android-sdk - workflow_file_name: test.yaml - ref: tp/workflows/remote - github_token: ${{ secrets.AUTH_TOKEN }} - wait_interval: 10 - propagate_failure: true - trigger_workflow: true - wait_workflow: true - - test-node-server-sdk: - runs-on: ubuntu-latest - steps: - - name: Display workflow details - shell: bash - run: | - echo "Testing eppo-exp/node-server-sdk" - - name: Run remote workflow - uses: convictional/trigger-workflow-and-wait@v1.6.1 - with: - owner: Eppo-exp - repo: node-server-sdk - workflow_file_name: lint-test-sdk.yml - ref: main - github_token: ${{ secrets.AUTH_TOKEN }} - wait_interval: 10 - propagate_failure: true - trigger_workflow: true - wait_workflow: true - - test-ios-sdk: - runs-on: ubuntu-latest - steps: - - name: Display workflow details - shell: bash - run: | - echo "Testing eppo-exp/eppo-ios-sdk" - - name: Run remote workflow - uses: convictional/trigger-workflow-and-wait@v1.6.1 - with: - owner: Eppo-exp - repo: eppo-ios-sdk - workflow_file_name: unit-tests.yml - ref: tp/workflows/remote - github_token: ${{ secrets.AUTH_TOKEN }} - wait_interval: 10 - propagate_failure: true - trigger_workflow: true - wait_workflow: true - - test-golang-sdk: - runs-on: ubuntu-latest - steps: - - name: Display workflow details - shell: bash - run: | - echo "Testing eppo-exp/golang-sdk" - - name: Run remote workflow - uses: convictional/trigger-workflow-and-wait@v1.6.1 - with: - owner: Eppo-exp - repo: golang-sdk - workflow_file_name: test.yml - ref: tp/workflows/remote - github_token: ${{ secrets.AUTH_TOKEN }} - wait_interval: 10 - propagate_failure: true - trigger_workflow: true - wait_workflow: true - - test-dotnet-sdk: - runs-on: ubuntu-latest - steps: - - name: Display workflow details - shell: bash - run: | - echo "Testing Eppo-exp/dot-net-server-sdk" - - name: Run remote workflow - uses: convictional/trigger-workflow-and-wait@v1.6.1 - with: - owner: Eppo-exp - repo: dot-net-server-sdk - workflow_file_name: run-tests.yml - ref: main - github_token: ${{ secrets.AUTH_TOKEN }} - wait_interval: 10 - propagate_failure: true - trigger_workflow: true - wait_workflow: true - \ No newline at end of file diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 74122126..48eb0d6f 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -2,14 +2,20 @@ name: Test SDKs Locally on: pull_request: - branches: [ "*" ] + paths: + - 'ufc/**' + workflow_dispatch: jobs: test-java-sdk: +<<<<<<< HEAD uses: Eppo-exp/java-server-sdk/.github/workflows/lint-test-sdk.yml@tp/workflows/remote +======= + uses: Eppo-exp/java-server-sdk/.github/workflows/lint-test-sdk.yml@main +>>>>>>> main with: test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main @@ -27,7 +33,11 @@ jobs: sdk_branch: main test-node-client-sdk: +<<<<<<< HEAD uses: Eppo-exp/js-client-sdk/.github/workflows/lint-test-sdk.yml@tp/workflows/remote +======= + uses: Eppo-exp/js-client-sdk/.github/workflows/lint-test-sdk.yml@main +>>>>>>> main with: test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main @@ -42,7 +52,11 @@ jobs: runs-on: ubuntu-latest steps: - name: "Run test action" +<<<<<<< HEAD uses: 'Eppo-exp/python-sdk/.github/actions/action-test@tp/workflows/remote' +======= + uses: 'Eppo-exp/python-sdk/.github/actions/action-test@main' +>>>>>>> main with: test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main diff --git a/yarn.lock b/yarn.lock index e2c80d67..9639d013 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1774,9 +1774,9 @@ merge-stream@^2.0.0: integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== micromatch@^4.0.4: - version "4.0.7" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.7.tgz#33e8190d9fe474a9895525f5618eee136d46c2e5" - integrity sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q== + version "4.0.8" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.8.tgz#d66fa18f3a47076789320b9b1af32bd86d9fa202" + integrity sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA== dependencies: braces "^3.0.3" picomatch "^2.3.1" From bfa47894cf7f6e80f03b686492caca6ade7d4e51 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Thu, 12 Sep 2024 09:48:20 -0600 Subject: [PATCH 41/42] remove temp refs --- .github/workflows/test-sdks.yml | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/.github/workflows/test-sdks.yml b/.github/workflows/test-sdks.yml index 48eb0d6f..3201c747 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -4,24 +4,18 @@ on: pull_request: paths: - 'ufc/**' - - workflow_dispatch: jobs: test-java-sdk: -<<<<<<< HEAD - uses: Eppo-exp/java-server-sdk/.github/workflows/lint-test-sdk.yml@tp/workflows/remote -======= uses: Eppo-exp/java-server-sdk/.github/workflows/lint-test-sdk.yml@main ->>>>>>> main with: test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main test-android-sdk: - uses: Eppo-exp/android-sdk/.github/workflows/test.yaml@tp/workflows/remote + uses: Eppo-exp/android-sdk/.github/workflows/test.yaml@main with: test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main @@ -33,17 +27,13 @@ jobs: sdk_branch: main test-node-client-sdk: -<<<<<<< HEAD - uses: Eppo-exp/js-client-sdk/.github/workflows/lint-test-sdk.yml@tp/workflows/remote -======= uses: Eppo-exp/js-client-sdk/.github/workflows/lint-test-sdk.yml@main ->>>>>>> main with: test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main test-react-native-sdk: - uses: Eppo-exp/react-native-sdk/.github/workflows/ci.yml@tp/workflows/remote + uses: Eppo-exp/react-native-sdk/.github/workflows/ci.yml@main with: test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main @@ -52,11 +42,7 @@ jobs: runs-on: ubuntu-latest steps: - name: "Run test action" -<<<<<<< HEAD - uses: 'Eppo-exp/python-sdk/.github/actions/action-test@tp/workflows/remote' -======= uses: 'Eppo-exp/python-sdk/.github/actions/action-test@main' ->>>>>>> main with: test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main @@ -68,13 +54,13 @@ jobs: sdk_branch: main test-ios-sdk: - uses: Eppo-exp/eppo-ios-sdk/.github/workflows/unit-tests.yml@tp/workflows/remote + uses: Eppo-exp/eppo-ios-sdk/.github/workflows/unit-tests.yml@main with: test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main test-golang-sdk: - uses: Eppo-exp/golang-sdk/.github/workflows/test.yml@tp/workflows/remote + uses: Eppo-exp/golang-sdk/.github/workflows/test.yml@main with: test_data_branch: ${{ github.head_ref || github.ref_name }} sdk_branch: main From 7be44d306445aa0e71da2ef467685a5c941c43a7 Mon Sep 17 00:00:00 2001 From: Ty Potter Date: Thu, 12 Sep 2024 10:04:59 -0600 Subject: [PATCH 42/42] don't fail fast --- .github/workflows/test-sdks-remote.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 37df446d..1e868b01 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -13,6 +13,7 @@ jobs: test-sdks: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: sdk: - { repo: "android-sdk", workflow: "test.yaml", ref: "main" }