|
| 1 | +name: testoperator dispatch htap |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + inputs: |
| 6 | + spiced_commit: |
| 7 | + description: 'An optional commit hash to use for spiced' |
| 8 | + required: false |
| 9 | + type: string |
| 10 | + scale_factor: |
| 11 | + description: 'Scale factor to run' |
| 12 | + required: true |
| 13 | + type: choice |
| 14 | + options: |
| 15 | + - 'sf1' |
| 16 | + - 'sf10' |
| 17 | + - 'sf100' |
| 18 | + - 'sf1000' |
| 19 | + |
| 20 | +jobs: |
| 21 | + dispatch-htap: |
| 22 | + name: Dispatch HTAP - ${{ github.event.inputs.scale_factor }} |
| 23 | + runs-on: spiceai-dev-runners |
| 24 | + concurrency: |
| 25 | + group: testoperator-dispatch-htap-${{ github.event.ref }} |
| 26 | + cancel-in-progress: false |
| 27 | + steps: |
| 28 | + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 |
| 29 | + with: |
| 30 | + persist-credentials: false |
| 31 | + |
| 32 | + - name: Install MinIO |
| 33 | + uses: ./.github/actions/setup-minio |
| 34 | + with: |
| 35 | + minio_endpoint: ${{ secrets.TEST_MINIO_ENDPOINT }} |
| 36 | + minio_access_key: ${{ secrets.TEST_MINIO_ACCESS_KEY }} |
| 37 | + minio_secret_key: ${{ secrets.TEST_MINIO_SECRET_KEY }} |
| 38 | + |
| 39 | + - name: Setup spiced |
| 40 | + uses: ./.github/actions/setup-spiced |
| 41 | + id: setup-spiced |
| 42 | + with: |
| 43 | + spiced_commit: ${{ github.event.inputs.spiced_commit }} |
| 44 | + ref: ${{ github.event.ref }} |
| 45 | + |
| 46 | + - name: Display spiced commit |
| 47 | + run: echo "SPICED_COMMIT=${{ steps.setup-spiced.outputs.SPICED_COMMIT }}" |
| 48 | + |
| 49 | + - name: Build Testoperator |
| 50 | + uses: ./.github/actions/build-testoperator |
| 51 | + with: |
| 52 | + minio_endpoint: ${{ secrets.TEST_MINIO_ENDPOINT }} |
| 53 | + minio_access_key: ${{ secrets.TEST_MINIO_ACCESS_KEY }} |
| 54 | + minio_secret_key: ${{ secrets.TEST_MINIO_SECRET_KEY }} |
| 55 | + |
| 56 | + - name: Build spicepod validator |
| 57 | + id: build-spicepod-validator |
| 58 | + uses: ./.github/actions/build-spicepod-validator |
| 59 | + with: |
| 60 | + minio_endpoint: ${{ secrets.TEST_MINIO_ENDPOINT }} |
| 61 | + minio_access_key: ${{ secrets.TEST_MINIO_ACCESS_KEY }} |
| 62 | + minio_secret_key: ${{ secrets.TEST_MINIO_SECRET_KEY }} |
| 63 | + |
| 64 | + - name: Set spicepod validator path |
| 65 | + run: echo "SPICEPOD_VALIDATOR=${{ steps.build-spicepod-validator.outputs.validator-path }}" >> $GITHUB_ENV |
| 66 | + |
| 67 | + - name: Validate spicepods - CH-BenCHmark |
| 68 | + run: | |
| 69 | + shopt -s globstar nullglob |
| 70 | + for file in ./test/spicepods/chbench/**/*.yaml; do |
| 71 | + echo "Validating $file" |
| 72 | + "$SPICEPOD_VALIDATOR" "$file" |
| 73 | + done |
| 74 | +
|
| 75 | + - name: Dispatch Testoperator - HTAP - CH-BenCHmark - ${{ github.event.inputs.scale_factor }} |
| 76 | + run: | |
| 77 | + testoperator dispatch ./tools/testoperator/dispatch/chbench/${{ github.event.inputs.scale_factor }} \ |
| 78 | + --workflow htap |
| 79 | + env: |
| 80 | + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 81 | + SPICED_COMMIT: ${{ steps.setup-spiced.outputs.SPICED_COMMIT }} |
| 82 | + WORKFLOW_COMMIT: ${{ github.event.ref }} |
0 commit comments