Skip to content

Commit

Permalink
nightly should not test against itself
Browse files Browse the repository at this point in the history
  • Loading branch information
lnkuiper committed Nov 27, 2024
1 parent 662ff2d commit 0ec229c
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/Regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,31 @@ jobs:
save: ${{ github.ref == 'refs/heads/main' || github.repository != 'duckdb/duckdb' }}

- name: Checkout Private Regression
if: github.repository == 'duckdb/duckdb' && github.ref == 'refs/heads/main'
if: ${{ github.repository == 'duckdb/duckdb' && github.ref == 'refs/heads/main' }}
uses: actions/checkout@v4
with:
repository: duckdblabs/fivetran_regression
ref: main
token: ${{ secrets.DUCKDBLABS_BOT_TOKEN }}
path: benchmark/fivetran

- name: Build
- name: Build Current and Base Branch
if: ${{ !(github.repository == 'duckdb/duckdb' && github.ref == 'refs/heads/main') }}
shell: bash
run: |
make
git clone --branch ${{ env.BASE_BRANCH }} https://github.com/duckdb/duckdb.git --depth=1
make
cd duckdb
make
cd ..
- name: Build Main and Previous Successful Regression Hash
if: ${{ github.repository == 'duckdb/duckdb' && github.ref == 'refs/heads/main' }}
shell: bash
run: |
git clone https://github.com/duckdb/duckdb.git
git checkout $(gh run list --repo duckdb/duckdb --workflow=Regression --status=success --json=headSha --limit=1 --jq '.[0].headSha')
make
cd duckdb
make
cd ..
Expand Down Expand Up @@ -147,7 +159,7 @@ jobs:
python scripts/regression/test_runner.py --old duckdb/build/release/benchmark/benchmark_runner --new build/release/benchmark/benchmark_runner --benchmarks .github/regression/realnest.csv --verbose --threads 2
- name: Regression Test Fivetran
if: github.repository == 'duckdb/duckdb' && github.ref == 'refs/heads/main'
if: ${{ github.repository == 'duckdb/duckdb' && github.ref == 'refs/heads/main' }}
shell: bash
run: |
python scripts/regression/test_runner.py --old duckdb/build/release/benchmark/benchmark_runner --new build/release/benchmark/benchmark_runner --benchmarks .github/regression/fivetran.csv --verbose --threads 2
Expand Down

0 comments on commit 0ec229c

Please sign in to comment.