From 96ff85ec4c4055b0ca59a9f57518be3d23ea5cda Mon Sep 17 00:00:00 2001 From: Nate Vick Date: Sun, 19 Nov 2023 07:49:33 -0800 Subject: [PATCH 1/6] Use setup-selective action --- .github/workflows/test.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4bafcd33..bbeac1dc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -47,13 +47,12 @@ jobs: env: SELECTIVE_API_KEY: ${{ secrets.SELECTIVE_API_KEY }} - SELECTIVE_RUN_ID: ${{ github.run_id }} - SELECTIVE_RUN_ATTEMPT: ${{ github.run_attempt }} SELECTIVE_RUNNER_ID: ${{ matrix.ci_node_index }} - PR_TITLE: ${{ github.event.pull_request.title }} steps: - uses: actions/checkout@v4 + - name: Setup Selective + uses: selectiveci/setup-selective@a74f60e - name: Setup Ruby uses: ruby/setup-ruby@v1 with: From 856cabeff004b552a89fe2f936a69ffd0d7b9805 Mon Sep 17 00:00:00 2001 From: Nate Vick Date: Sun, 19 Nov 2023 07:53:26 -0800 Subject: [PATCH 2/6] Use full sha --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bbeac1dc..9117b00a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -52,7 +52,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Setup Selective - uses: selectiveci/setup-selective@a74f60e + uses: selectiveci/setup-selective@a74f60ee7e86867ffe195b46e1fe8f7f1d2c7b4e - name: Setup Ruby uses: ruby/setup-ruby@v1 with: From 515f16b980ddfece8aa64d6b0e655a408cf6f0fe Mon Sep 17 00:00:00 2001 From: Nate Vick Date: Sun, 19 Nov 2023 09:27:39 -0800 Subject: [PATCH 3/6] Pass ci-node-index to setup-selective action --- .github/workflows/test.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9117b00a..e7186f7b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -47,12 +47,13 @@ jobs: env: SELECTIVE_API_KEY: ${{ secrets.SELECTIVE_API_KEY }} - SELECTIVE_RUNNER_ID: ${{ matrix.ci_node_index }} steps: - uses: actions/checkout@v4 - name: Setup Selective - uses: selectiveci/setup-selective@a74f60ee7e86867ffe195b46e1fe8f7f1d2c7b4e + uses: selectiveci/setup-selective@21148f5d6e16246b23981b3c7f11129914da787e + with: + ci-node-index: ${{ matrix.ci_node_index }} - name: Setup Ruby uses: ruby/setup-ruby@v1 with: From 24080513ee2cac3ddd842c77888097d6681be973 Mon Sep 17 00:00:00 2001 From: Nate Vick Date: Sun, 19 Nov 2023 18:47:13 -0800 Subject: [PATCH 4/6] Pass in api-key and update ci-node-index to runner-id --- .github/workflows/test.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e7186f7b..5b2cefc1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,15 +45,13 @@ jobs: ci_node_total: [4] ci_node_index: [0, 1, 2, 3] - env: - SELECTIVE_API_KEY: ${{ secrets.SELECTIVE_API_KEY }} - steps: - uses: actions/checkout@v4 - name: Setup Selective - uses: selectiveci/setup-selective@21148f5d6e16246b23981b3c7f11129914da787e + uses: selectiveci/setup-selective@a0ec4e5d552bc2af70e8d002245aad7344e4035a with: - ci-node-index: ${{ matrix.ci_node_index }} + api-key: ${{ secrets.SELECTIVE_API_KEY }} + runner-id: ${{ matrix.ci_node_index }} - name: Setup Ruby uses: ruby/setup-ruby@v1 with: From 46593d9657317c204f723b90cd4c04976959624e Mon Sep 17 00:00:00 2001 From: Nate Vick Date: Mon, 20 Nov 2023 16:22:55 -0800 Subject: [PATCH 5/6] Use release tag --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5b2cefc1..6195bfc9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -48,7 +48,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Setup Selective - uses: selectiveci/setup-selective@a0ec4e5d552bc2af70e8d002245aad7344e4035a + uses: selectiveci/setup-selective@v1.0.0 with: api-key: ${{ secrets.SELECTIVE_API_KEY }} runner-id: ${{ matrix.ci_node_index }} From f0ffb31323eae83d31608c51661bcdc5f9c42ca4 Mon Sep 17 00:00:00 2001 From: Benjamin Wood Date: Tue, 21 Nov 2023 00:49:43 +0000 Subject: [PATCH 6/6] Bump selective-ruby-core from 0.1.2 - 0.1.3 & use setup-selective@v1 Co-authored-by: Nate Vick --- .github/workflows/test.yml | 12 +++++++----- Gemfile.lock | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6195bfc9..fad05e39 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -47,11 +47,7 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Setup Selective - uses: selectiveci/setup-selective@v1.0.0 - with: - api-key: ${{ secrets.SELECTIVE_API_KEY }} - runner-id: ${{ matrix.ci_node_index }} + - name: Setup Ruby uses: ruby/setup-ruby@v1 with: @@ -81,6 +77,12 @@ jobs: chmod +x ./cc-test-reporter ./cc-test-reporter before-build + - name: Setup Selective + uses: selectiveci/setup-selective@v1 + with: + api-key: ${{ secrets.SELECTIVE_API_KEY }} + runner-id: ${{ matrix.ci_node_index }} + - name: RSpec Suite Run env: NODE_OPTIONS: --openssl-legacy-provider diff --git a/Gemfile.lock b/Gemfile.lock index c2592936..f4656ba3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -380,7 +380,7 @@ GEM sprockets (> 3.0) sprockets-rails tilt - selective-ruby-core (0.1.2-x86_64-linux) + selective-ruby-core (0.1.3-x86_64-linux) zeitwerk (~> 2.6.12) selective-ruby-rspec (0.1.0) selective-ruby-core