-
Notifications
You must be signed in to change notification settings - Fork 342
71 lines (65 loc) · 2.31 KB
/
Copy pathcloud-launch-vector-100k.yml
File metadata and controls
71 lines (65 loc) · 2.31 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
71
name: Cloud launch vector 100k
on:
workflow_dispatch:
workflow_call:
permissions:
contents: read
concurrency:
group: cloud-launch-vector-100k-${{ github.ref }}
cancel-in-progress: false
env:
CARGO_INCREMENTAL: "0"
CARGO_TERM_COLOR: always
RUST_BACKTRACE: "1"
jobs:
build-vector-100k:
name: Build vector 100k contract
runs-on: ubuntu-24.04-arm
timeout-minutes: 30
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@1.97.1
- uses: Swatinem/rust-cache@v2
- name: Build the isolated public vector lifecycle
run: |
test_binary="$(
cargo test --release -p db --features production-scale \
--test production_index_lifecycle_scale --no-run --message-format=json \
| jq -r 'select(
.reason == "compiler-artifact"
and .target.name == "production_index_lifecycle_scale"
and .executable != null
) | .executable' \
| tail -n 1
)"
test -x "$test_binary"
mkdir -p vector-100k-test
cp "$test_binary" vector-100k-test/production_index_lifecycle_scale
sha256sum vector-100k-test/production_index_lifecycle_scale \
>> "$GITHUB_STEP_SUMMARY"
- uses: actions/upload-artifact@v4
with:
name: vector-100k-test-${{ github.sha }}
path: vector-100k-test/production_index_lifecycle_scale
if-no-files-found: error
retention-days: 1
vector-100k:
name: Vector 100k create, search, drop, and residue
needs: build-vector-100k
runs-on: ubuntu-24.04-arm
timeout-minutes: 360
steps:
- uses: actions/download-artifact@v5
with:
name: vector-100k-test-${{ github.sha }}
path: vector-100k-test
- name: Record the exact tested repository revision
run: |
echo "DB revision: $GITHUB_SHA" >> "$GITHUB_STEP_SUMMARY"
echo "Feature set: production-scale" >> "$GITHUB_STEP_SUMMARY"
- name: Run the isolated public vector lifecycle
run: |
chmod +x vector-100k-test/production_index_lifecycle_scale
vector-100k-test/production_index_lifecycle_scale \
index_lifecycle_vector_scale_contract \
--exact --nocapture --test-threads=1