Skip to content

Commit

Permalink
Merge pull request #1 from gokhangulbiz/circleci-gha-migration-pr-tri…
Browse files Browse the repository at this point in the history
…gger
  • Loading branch information
gokhangulbiz authored Aug 28, 2023
2 parents b291b09 + 82c97a0 commit b46ac3f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: install_extension
name: setup_extension
inputs:
pg_major:
required: false
Expand Down
5 changes: 5 additions & 0 deletions .github/actions/upload_coverage/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@ name: coverage
inputs:
flags:
required: false
codecov_token:
required: true
runs:
using: composite
steps:
- uses: codecov/codecov-action@v3
with:
flags: ${{ inputs.flags }}
token: ${{ inputs.codecov_token }}
verbose: true
gcov: true
- name: Create codeclimate coverage
run: |-
lcov --directory . --capture --output-file lcov.info
Expand Down
22 changes: 12 additions & 10 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Build & Test
run-name: Build & Test - ${{ github.event.pull_request.number || github.ref_name }} - ${{ github.sha }}
run-name: Build & Test - ${{ github.event.pull_request.title || github.ref_name }}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -170,7 +170,7 @@ jobs:
- build
steps:
- uses: actions/[email protected]
- uses: "./.github/actions/install_extension"
- uses: "./.github/actions/setup_extension"
- name: Run Test
run: gosu circleci make -C src/test/${{ matrix.suite }} ${{ matrix.make }}
timeout-minutes: 20
Expand All @@ -182,6 +182,7 @@ jobs:
if: always()
with:
flags: ${{ env.PG_MAJOR }}_${{ matrix.suite }}_${{ matrix.make }}
codecov_token: ${{ secrets.CODECOV_TOKEN }}
prepare_parallelization_matrix_6:
name: Parallel 6
runs-on: ubuntu-latest
Expand All @@ -195,10 +196,8 @@ jobs:
with:
count: 6
test-arbitrary-configs:
if: ${{ false }}
# disable this job till we have 16core VMs
name: PG${{ matrix.pg_version }} - regress - check-arbitrary-configs
runs-on: ubuntu-latest #-16core
runs-on: ubuntu-latest #-16core - we need 16 cores VMs to run this job successfully
container:
image: "${{ matrix.image_name }}:${{ matrix.pg_version }}${{ vars.image_suffix }}"
options: --user root
Expand All @@ -216,7 +215,7 @@ jobs:
parallel: [1,2,3,4,5,6]
steps:
- uses: actions/[email protected]
- uses: "./.github/actions/install_extension"
- uses: "./.github/actions/setup_extension"
- name: Test arbitrary configs
run: |-
TESTS=$(src/test/regress/citus_tests/print_test_names.py)
Expand All @@ -233,6 +232,7 @@ jobs:
if: always()
with:
flags: ${{ env.pg_major }}_upgrade
codecov_token: ${{ secrets.CODECOV_TOKEN }}
test-pg-upgrade:
runs-on: ubuntu-latest
container:
Expand All @@ -248,10 +248,10 @@ jobs:
- uses: actions/[email protected]
with:
path: "."
- uses: "./.github/actions/install_extension"
- uses: "./.github/actions/setup_extension"
with:
pg_major: "${{ env.old_pg_major }}"
- uses: "./.github/actions/install_extension"
- uses: "./.github/actions/setup_extension"
with:
pg_major: "${{ env.new_pg_major }}"
- name: Install and test postgres upgrade
Expand All @@ -274,6 +274,7 @@ jobs:
if: always()
with:
flags: ${{ env.old_pg_major }}_${{ env.new_pg_major }}_upgrade
codecov_token: ${{ secrets.CODECOV_TOKEN }}
test-citus-upgrade:
runs-on: ubuntu-latest
container:
Expand All @@ -283,7 +284,7 @@ jobs:
- build
steps:
- uses: actions/[email protected]
- uses: "./.github/actions/install_extension"
- uses: "./.github/actions/setup_extension"
with:
skip_installation: true
- name: Install and test citus upgrade
Expand Down Expand Up @@ -316,6 +317,7 @@ jobs:
if: always()
with:
flags: ${{ env.pg_major }}_upgrade
codecov_token: ${{ secrets.CODECOV_TOKEN }}
upload-coverage:
if: always()
env:
Expand Down Expand Up @@ -429,7 +431,7 @@ jobs:
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
- uses: "./.github/actions/install_extension"
- uses: "./.github/actions/setup_extension"
- name: Run minimal tests
run: |-
tests="${{ needs.test-flakyness-pre.outputs.tests }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/flaky_test_debugging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
matrix: ${{ fromJson(needs.prepare_parallelization_matrix.outputs.json) }}
steps:
- uses: actions/[email protected]
- uses: "./.github/actions/install_extension"
- uses: "./.github/actions/setup_extension"
- name: Run minimal tests
run: |-
gosu circleci src/test/regress/citus_tests/run_test.py ${{ env.test }} --repeat ${{ env.runs }} --use-base-schedule --use-whole-schedule-line
Expand Down

0 comments on commit b46ac3f

Please sign in to comment.