From 174d7681dd70af621b66a1343370e2b1121ebdd9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 30 Aug 2024 08:36:03 -0600 Subject: [PATCH 1/3] Bump micromatch from 4.0.7 to 4.0.8 (#60) Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.7 to 4.0.8. - [Release notes](https://github.com/micromatch/micromatch/releases) - [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md) - [Commits](https://github.com/micromatch/micromatch/compare/4.0.7...4.0.8) --- updated-dependencies: - dependency-name: micromatch dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 fd4cc8aefb0cb4c7332f3437f500218415e37543 Mon Sep 17 00:00:00 2001 From: Tyler Potter Date: Fri, 30 Aug 2024 11:29:39 -0600 Subject: [PATCH 2/3] quality: Round 2 of SDK test workflow migrations (#58) --- .github/workflows/test-sdks-remote.yml | 58 ++++++---------------- .github/workflows/test-sdks.yml | 68 +++++--------------------- 2 files changed, 27 insertions(+), 99 deletions(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 8d7c76f2..02393818 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -7,64 +7,34 @@ on: workflow_dispatch: jobs: - - 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-server-sdk: + test-sdks: runs-on: ubuntu-latest + strategy: + matrix: + sdk: + - { repo: "java-server-sdk", workflow: "lint-test-sdk.yml", ref: "main" } + - { repo: "php-sdk", workflow: "run-tests.yml", ref: "main" } + - { repo: "js-client-sdk", workflow: "lint-test-sdk.yml", ref: "main" } + - { repo: "python-sdk", workflow: "lint-test-sdk.yml", ref: "main" } + - { repo: "node-server-sdk", workflow: "lint-test-sdk.yml", ref: "main" } + - { repo: "dot-net-server-sdk", workflow: "run-tests.yml", ref: "main" } steps: - name: Display workflow details shell: bash run: | - echo "Testing eppo-exp/node-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: node-server-sdk - workflow_file_name: lint-test-sdk.yml - ref: main + 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-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 28315df6..6a770fce 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@main + with: + test_data_branch: ${{ github.head_ref || github.ref_name }} + sdk_branch: main test-android-sdk: runs-on: macos-latest @@ -87,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@main + with: + test_data_branch: ${{ github.head_ref || github.ref_name }} + sdk_branch: main + test-react-native-sdk: runs-on: ubuntu-latest steps: @@ -127,24 +98,11 @@ jobs: test-python-sdk: runs-on: ubuntu-latest steps: - - name: 'Check out Python SDK' - uses: "actions/checkout@v3" + - name: "Run test action" + uses: 'Eppo-exp/python-sdk/.github/actions/action-test@main' 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_data_branch: ${{ github.head_ref || github.ref_name }} + sdk_branch: main test-php-sdk: uses: Eppo-exp/php-sdk/.github/workflows/run-tests.yml@main From 580a7e3e05e04159a1395ec2d2107d3c83a032ec Mon Sep 17 00:00:00 2001 From: Tyler Potter Date: Thu, 12 Sep 2024 09:08:47 -0600 Subject: [PATCH 3/3] Only run universal unit tests when the test data changes (#64) * Only run universal unit tests when the test data changes --- .github/workflows/test-sdks-remote.yml | 4 +++- .github/workflows/test-sdks.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-sdks-remote.yml b/.github/workflows/test-sdks-remote.yml index 02393818..062ee51e 100644 --- a/.github/workflows/test-sdks-remote.yml +++ b/.github/workflows/test-sdks-remote.yml @@ -4,6 +4,8 @@ on: push: branches: - main + paths: + - 'ufc/**' workflow_dispatch: jobs: @@ -37,4 +39,4 @@ jobs: 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 6a770fce..8cb42e45 100644 --- a/.github/workflows/test-sdks.yml +++ b/.github/workflows/test-sdks.yml @@ -2,7 +2,9 @@ name: Test SDKs Locally on: pull_request: - branches: [ "*" ] + paths: + - 'ufc/**' + workflow_dispatch: