Repository navigation
70 lines (61 loc) · 2.32 KB
/
Copy pathrun-validator-tests.yml
File metadata and controls
70 lines (61 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: run-validator-tests
on:
workflow_call:
inputs:
os:
description: 'Operating system for the build'
required: true
type: string
arch:
description: 'Architecture for the build'
required: true
type: string
testcase:
description: 'Test case to run'
required: true
type: string
ref:
description: 'Git reference to build from'
required: true
type: string
scylla-image:
description: 'ScyllaDB docker image to test against, or nightly for scylla-nightly at the digest artifact'
required: false
type: string
default: nightly
permissions:
contents: read
jobs:
run-validator-tests:
runs-on: ${{ inputs.os }}
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
sparse-checkout: |
scripts/run-validator-with-scylla-docker
sparse-checkout-cone-mode: false
ref: ${{ inputs.ref }}
- name: Download scylla-nightly digest artifact
if: ${{ inputs.scylla-image == 'nightly' }}
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: scylla-nightly-digest
- name: Download vector-store artifact
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: vector-store-${{inputs.arch}}
- name: Download vector-search-validator artifact
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: vector-search-validator-${{inputs.arch}}
- name: Chmod a+x downloaded artifacts
run: chmod a+x vector-store vector-search-validator
- name: Run the Validator tests for testcase ${{inputs.testcase}}
env:
testcase: ${{inputs.testcase}}
scylla_image: ${{inputs.scylla-image}}
run: |
[[ "${scylla_image,,}" != nightly ]] || scylla_image=scylladb/scylla-nightly@$(cat scylla-nightly-digest)
[[ "$scylla_image" =~ ^[A-Za-z0-9][A-Za-z0-9._/:@-]*$ ]] || { echo "invalid scylla image reference: '$scylla_image'"; exit 1; }
echo "scylla image: $scylla_image"
./scripts/run-validator-with-scylla-docker "$scylla_image" vector-store vector-search-validator "\"${testcase}\"::" --verbose