pull/7154/head
Gokhan Gulbiz 2023-08-18 13:47:07 +03:00
parent 3a40fce4ba
commit 16d03c9a19
No known key found for this signature in database
GPG Key ID: 608EF06B6BD1B45B
3 changed files with 10 additions and 39 deletions

View File

@ -2,6 +2,13 @@ name: install_extension
runs:
using: composite
steps:
- uses: actions/checkout@v3.5.0
- name: Expose $PG_MAJOR to Github Env
run: echo "PG_MAJOR=${PG_MAJOR}" >> $GITHUB_ENV
shell: bash
- uses: actions/download-artifact@v3.0.1
with:
name: build-${{ env.PG_MAJOR }}
- name: Install Extension
run: tar xfv "install-$PG_MAJOR.tar" --directory /
shell: bash

View File

@ -17,7 +17,8 @@ runs:
src/test/**/tmp_check/master/log
src/test/**/tmp_check/worker.57638/log
src/test/**/tmp_check/worker.57637/log
src/test/**/regression.diffs
src/test/**/*.diffs
src/test/**/logfile_*
- name: Publish regression.diffs
run: |-
if [ -f "src/test/regress/regression.diffs" ]; then

View File

@ -71,7 +71,6 @@ jobs:
count: ${{ inputs.flaky_test_parallel_jobs }}
test_flakyness:
name: Test flakyness
if: ${{ inputs.flaky_test }}
runs-on: ubuntu-latest
container:
image: ${{ needs.set_image_names.outputs.test_image }}
@ -86,48 +85,12 @@ jobs:
fail-fast: false
matrix: ${{ fromJson(needs.prepare_parallelization_matrix.outputs.json) }}
steps:
- uses: actions/checkout@v3.5.0
- name: Expose $PG_MAJOR to Github Env
run: echo "PG_MAJOR=${PG_MAJOR}" >> $GITHUB_ENV
shell: bash
- uses: actions/download-artifact@v3.0.1
with:
name: build-${{ env.PG_MAJOR }}
- name: Detect regression tests need to be ran
id: detect-regression-tests
run: |-
testForDebugging="${{ env.test }}"
if [ -z "$testForDebugging" ]; then
detected_changes=$(git diff origin/main... --name-only --diff-filter=AM | (grep 'src/test/regress/sql/.*\.sql\|src/test/regress/spec/.*\.spec\|src/test/regress/citus_tests/test/test_.*\.py' || true))
tests=${detected_changes}
else
tests=$testForDebugging;
fi
if [ -z "$tests" ]; then
echo "No test found."
gh run cancel ${{ github.run_id }}
gh run watch ${{ github.run_id }}
else
echo "Detected tests " $tests
fi
echo "tests=$tests" >> "$GITHUB_OUTPUT"
- uses: "./.github/actions/install_extension"
- name: Run minimal tests
run: |-
tests_array=(${{ steps.detect-regression-tests.outputs.tests }})
for test in "${tests_array[@]}"
do
test_name=$(echo "$test" | sed -r "s/.+\/(.+)\..+/\1/")
gosu circleci src/test/regress/citus_tests/run_test.py $test_name --repeat ${{ env.runs }} --use-base-schedule --use-whole-schedule-line
done
gosu circleci src/test/regress/citus_tests/run_test.py ${{ env.test }} --repeat ${{ env.runs }} --use-base-schedule --use-whole-schedule-line
shell: bash
- uses: "./.github/actions/save_logs_and_results"
if: always()
with:
folder: ${{ matrix.id }}
- uses: "./.github/actions/save_regressions"
if: always()
with:
folder: ${{ matrix.id }}
- uses: "./.github/actions/stack_trace"
if: always()