Skip to content

Commit

Permalink
Self-hosted gha runners
Browse files Browse the repository at this point in the history
  • Loading branch information
gokhangulbiz committed Sep 26, 2023
1 parent 750ccf9 commit 2018559
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
- ${{ vars.pg14_version }}
- ${{ vars.pg15_version }}
- ${{ vars.pg16_version }}
runs-on: ubuntu-20.04
runs-on: ["self-hosted", "1ES.Pool=1es-gha-citusdata-pool"]
container:
image: "${{ matrix.image_name }}:${{ matrix.pg_version }}${{ matrix.image_suffix }}"
options: --user root
Expand Down Expand Up @@ -184,7 +184,7 @@ jobs:
pg_version: ${{ vars.pg16_version }}
suite: regress
image_name: ${{ vars.fail_test_image_name }}
runs-on: ubuntu-20.04
runs-on: ["self-hosted", "1ES.Pool=1es-gha-citusdata-pool"]
container:
image: "${{ matrix.image_name }}:${{ matrix.pg_version }}${{ vars.image_suffix }}"
options: --user root --dns-opt ndots:0
Expand All @@ -198,6 +198,7 @@ jobs:
gosu circleci cat /etc/resolv.conf
echo '---'
cat /etc/hosts
cat /etc/netplan
shell: bash
- name: Run Test
run: gosu circleci make -C src/test/${{ matrix.suite }} ${{ matrix.make }}
Expand All @@ -214,7 +215,7 @@ jobs:
codecov_token: ${{ secrets.CODECOV_TOKEN }}
test-arbitrary-configs:
name: PG${{ matrix.pg_version }} - regress - check-arbitrary-configs
runs-on: ubuntu-20.04 #-16core - we need 16 cores VMs to run this job successfully
runs-on: ["self-hosted", "1ES.Pool=1es-gha-citusdata-pool"]
container:
image: "${{ matrix.image_name }}:${{ matrix.pg_version }}${{ vars.image_suffix }}"
options: --user root
Expand Down Expand Up @@ -252,7 +253,7 @@ jobs:
codecov_token: ${{ secrets.CODECOV_TOKEN }}
test-pg-upgrade:
name: PG${{ matrix.old_pg_major }}-PG${{ matrix.new_pg_major }} - regress - check-pg-upgrade
runs-on: ubuntu-20.04
runs-on: ["self-hosted", "1ES.Pool=1es-gha-citusdata-pool"]
container:
image: "${{ vars.pgupgrade_image_name }}:${{ vars.upgrade_pg_versions }}${{ vars.image_suffix }}"
options: --user root
Expand Down Expand Up @@ -301,7 +302,7 @@ jobs:
flags: ${{ env.old_pg_major }}_${{ env.new_pg_major }}_upgrade
codecov_token: ${{ secrets.CODECOV_TOKEN }}
test-citus-upgrade:
runs-on: ubuntu-20.04
runs-on: ["self-hosted", "1ES.Pool=1es-gha-citusdata-pool"]
container:
image: "${{ vars.citusupgrade_image_name }}:${{ vars.pg14_version }}${{ vars.image_suffix }}"
options: --user root
Expand Down Expand Up @@ -414,7 +415,7 @@ jobs:
test-flakyness-pre:
name: Detect regression tests need to be ran
if: ${{ !inputs.skip_test_flakyness }}}
runs-on: ubuntu-20.04
runs-on: ["self-hosted", "1ES.Pool=1es-gha-citusdata-pool"]
needs: build
outputs:
tests: ${{ steps.detect-regression-tests.outputs.tests }}
Expand All @@ -436,7 +437,7 @@ jobs:
test-flakyness:
if: ${{ needs.test-flakyness-pre.outputs.tests != ''}}
name: Test flakyness
runs-on: ubuntu-20.04
runs-on: ["self-hosted", "1ES.Pool=1es-gha-citusdata-pool"]
container:
image: ${{ vars.fail_test_image_name }}:${{ vars.pg16_version }}${{ vars.image_suffix }}
options: --user root
Expand Down

0 comments on commit 2018559

Please sign in to comment.