mirror of https://github.com/citusdata/citus.git
Cleanup
parent
3a40fce4ba
commit
16d03c9a19
|
@ -2,6 +2,13 @@ name: install_extension
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
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
|
- name: Install Extension
|
||||||
run: tar xfv "install-$PG_MAJOR.tar" --directory /
|
run: tar xfv "install-$PG_MAJOR.tar" --directory /
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
@ -17,7 +17,8 @@ runs:
|
||||||
src/test/**/tmp_check/master/log
|
src/test/**/tmp_check/master/log
|
||||||
src/test/**/tmp_check/worker.57638/log
|
src/test/**/tmp_check/worker.57638/log
|
||||||
src/test/**/tmp_check/worker.57637/log
|
src/test/**/tmp_check/worker.57637/log
|
||||||
src/test/**/regression.diffs
|
src/test/**/*.diffs
|
||||||
|
src/test/**/logfile_*
|
||||||
- name: Publish regression.diffs
|
- name: Publish regression.diffs
|
||||||
run: |-
|
run: |-
|
||||||
if [ -f "src/test/regress/regression.diffs" ]; then
|
if [ -f "src/test/regress/regression.diffs" ]; then
|
||||||
|
|
|
@ -71,7 +71,6 @@ jobs:
|
||||||
count: ${{ inputs.flaky_test_parallel_jobs }}
|
count: ${{ inputs.flaky_test_parallel_jobs }}
|
||||||
test_flakyness:
|
test_flakyness:
|
||||||
name: Test flakyness
|
name: Test flakyness
|
||||||
if: ${{ inputs.flaky_test }}
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: ${{ needs.set_image_names.outputs.test_image }}
|
image: ${{ needs.set_image_names.outputs.test_image }}
|
||||||
|
@ -86,48 +85,12 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix: ${{ fromJson(needs.prepare_parallelization_matrix.outputs.json) }}
|
matrix: ${{ fromJson(needs.prepare_parallelization_matrix.outputs.json) }}
|
||||||
steps:
|
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"
|
- uses: "./.github/actions/install_extension"
|
||||||
- name: Run minimal tests
|
- name: Run minimal tests
|
||||||
run: |-
|
run: |-
|
||||||
tests_array=(${{ steps.detect-regression-tests.outputs.tests }})
|
gosu circleci src/test/regress/citus_tests/run_test.py ${{ env.test }} --repeat ${{ env.runs }} --use-base-schedule --use-whole-schedule-line
|
||||||
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
|
|
||||||
shell: bash
|
shell: bash
|
||||||
- uses: "./.github/actions/save_logs_and_results"
|
- uses: "./.github/actions/save_logs_and_results"
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
folder: ${{ matrix.id }}
|
folder: ${{ matrix.id }}
|
||||||
- uses: "./.github/actions/save_regressions"
|
|
||||||
if: always()
|
|
||||||
with:
|
|
||||||
folder: ${{ matrix.id }}
|
|
||||||
- uses: "./.github/actions/stack_trace"
|
|
||||||
if: always()
|
|
||||||
|
|
Loading…
Reference in New Issue