|
86 | 86 | name: benchbase-${{matrix.profile}}
|
87 | 87 | path: target/benchbase-${{matrix.profile}}.tgz
|
88 | 88 |
|
| 89 | + # Needed for running a customized service containers using docker/*/up.sh scripts. |
| 90 | + # See postgres example below. |
| 91 | + # https://github.com/actions/runner/issues/2139 |
| 92 | + - name: Package docker-compose configs |
| 93 | + if: ${{ matrix.profile == 'postgres' }} |
| 94 | + run: | |
| 95 | + tar czvpf docker-compose-${{matrix.profile}}.tar.gz docker/${{matrix.profile}}-latest |
| 96 | +
|
| 97 | + - name: Upload docker-compose configs |
| 98 | + if: ${{ matrix.profile == 'postgres' }} |
| 99 | + uses: actions/upload-artifact@v4 |
| 100 | + with: |
| 101 | + name: docker-compose-${{matrix.profile}} |
| 102 | + path: docker-compose-${{matrix.profile}}.tar.gz |
| 103 | + |
89 | 104 | ## ----------------------------------------------------------------------------------
|
90 | 105 | ## SQLITE
|
91 | 106 | ## ----------------------------------------------------------------------------------
|
@@ -406,21 +421,25 @@ jobs:
|
406 | 421 | fail-fast: false
|
407 | 422 | matrix:
|
408 | 423 | benchmark: [ 'auctionmark', 'epinions', 'hyadapt', 'noop', 'otmetrics', 'resourcestresser', 'seats', 'sibench', 'smallbank', 'tatp', 'templated', 'tpcc', 'tpcc-with-reconnects', 'tpch', 'twitter', 'voter', 'wikipedia', 'ycsb' ]
|
409 |
| - services: |
410 |
| - postgres: # https://hub.docker.com/_/postgres |
411 |
| - image: postgres:latest |
412 |
| - env: |
413 |
| - POSTGRES_DB: benchbase |
414 |
| - POSTGRES_USER: admin |
415 |
| - POSTGRES_PASSWORD: password |
416 |
| - options: >- |
417 |
| - --health-cmd pg_isready |
418 |
| - --health-interval 10s |
419 |
| - --health-timeout 5s |
420 |
| - --health-retries 5 |
421 |
| - ports: |
422 |
| - - 5432:5432 |
423 | 424 | steps:
|
| 425 | + # Note: we download just the docker-compose scripts/configs rather than the |
| 426 | + # whole source code repo for better testing. |
| 427 | + - name: Download artifact |
| 428 | + uses: actions/download-artifact@v4 |
| 429 | + with: |
| 430 | + name: docker-compose-postgres |
| 431 | + |
| 432 | + - name: Extract docker-compose artifacts |
| 433 | + run: | |
| 434 | + tar xvzf docker-compose-postgres.tar.gz |
| 435 | +
|
| 436 | + # Use docker-compose to start the postgres service so we can modify the |
| 437 | + # command line args to include extensions. |
| 438 | + # https://github.com/actions/runner/issues/2139 |
| 439 | + - name: Start custom postgres service |
| 440 | + run: | |
| 441 | + ./docker/postgres-latest/up.sh --quiet-pull postgres |
| 442 | +
|
424 | 443 | - name: Download artifact
|
425 | 444 | uses: actions/download-artifact@v4
|
426 | 445 | with:
|
@@ -472,6 +491,10 @@ jobs:
|
472 | 491 | ./scripts/check_latest_benchmark_results.sh $results_benchmark
|
473 | 492 | ./scripts/check_histogram_results.sh results/histograms.json $ERRORS_THRESHOLD
|
474 | 493 |
|
| 494 | + - name: Stop custom postgres service |
| 495 | + run: | |
| 496 | + ./docker/postgres-latest/down.sh |
| 497 | +
|
475 | 498 | ## ----------------------------------------------------------------------------------
|
476 | 499 | ## COCKROACHDB
|
477 | 500 | ## ----------------------------------------------------------------------------------
|
|
0 commit comments