-
Notifications
You must be signed in to change notification settings - Fork 0
119 lines (107 loc) · 4.65 KB
/
Copy pathintegration.yml
File metadata and controls
119 lines (107 loc) · 4.65 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# Copyright 2026 Query Farm LLC - https://query.farm
#
# Runs the canonical vgi integration sqllogictest suite against the Java
# example worker on every push / PR. Rather than building the C++ extension
# from source, it drives a prebuilt standalone `haybarn-unittest` (the
# DuckDB/Haybarn sqllogictest runner) and installs the SIGNED vgi extension
# from the Haybarn community channel + its deps from core. The .test files
# come from a pinned Query-farm/vgi checkout; ci/preprocess-require.awk turns
# each `require <ext>` gate into an explicit INSTALL+LOAD so the standalone
# runner (which links none of these extensions) can run them.
#
# See ci/README.md for the full design and the version-pin coupling.
name: Integration suite
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: integration-${{ github.ref }}
cancel-in-progress: true
env:
# The Query-farm/vgi commit whose test/sql/integration suite we run. Pinned
# for reproducibility; bump deliberately and re-validate against the then-current
# community extension (see ci/README.md).
VGI_REF: main
# The Haybarn release providing the prebuilt haybarn-unittest binary. Must be
# ABI-compatible with the community-published vgi extension (both v1.5.4).
HAYBARN_RELEASE: haybarn-v1.5.4-rc1
# The vgi-rpc-java commit built from source (composite include) for the worker's
# HTTP features. Drop once a vgirpc release with these features is published and
# pinned in vgi/build.gradle.kts.
VGI_RPC_JAVA_REF: 6a9246ebc03f51438c168cb145671f5ce280faae
jobs:
integration:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
# launch: the AF_UNIX worker pool. shm: same, plus the POSIX
# shared-memory side channel (VGI_RPC_SHM_SIZE_BYTES). http: the whole
# suite over the stateless HTTP transport (state-token continuations),
# mirroring vgi's `make test_http`.
- { lane: launch }
- { lane: shm, shm_bytes: '67108864' }
- { lane: http, transport: http }
name: integration (${{ matrix.lane }})
steps:
- name: Checkout vgi-java
uses: actions/checkout@v4
- name: Checkout pinned vgi test suite
uses: actions/checkout@v4
with:
repository: Query-farm/vgi
ref: ${{ env.VGI_REF }}
path: vgi-upstream
# Build the vgirpc RPC layer from source (composite include) so the worker
# picks up the HTTP features the integration suite needs (gzip negotiation,
# sticky cookies) ahead of the next published vgirpc release.
- name: Checkout pinned vgi-rpc-java
uses: actions/checkout@v4
with:
repository: Query-farm/vgi-rpc-java
ref: ${{ env.VGI_RPC_JAVA_REF }}
path: vgi-rpc-java
- name: Set up JDK 25
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '25'
- name: Cache Gradle
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: gradle-${{ runner.os }}-
- name: Build example worker
run: ./gradlew --no-daemon :vgi-example-worker:installDist
env:
VGI_RPC_JAVA_DIR: ${{ github.workspace }}/vgi-rpc-java
- name: Download haybarn-unittest
run: |
gh release download "$HAYBARN_RELEASE" \
--repo Query-farm-haybarn/haybarn \
--pattern 'haybarn_unittest-linux-amd64.zip' \
--output /tmp/haybarn-unittest.zip --clobber
unzip -o -q /tmp/haybarn-unittest.zip -d /tmp/haybarn-unittest
UNITTEST=$(find /tmp/haybarn-unittest -name 'haybarn-unittest' -type f | head -1)
chmod +x "$UNITTEST"
echo "HAYBARN_UNITTEST=$UNITTEST" >> "$GITHUB_ENV"
env:
GH_TOKEN: ${{ github.token }}
- name: Run integration suite (${{ matrix.lane }})
run: ci/run-integration.sh
env:
VGI_SRC: ${{ github.workspace }}/vgi-upstream
VGI_WORKER_BIN: ${{ github.workspace }}/vgi-example-worker/build/install/vgi-example-worker/bin/vgi-example-worker
# Empty for the launch lane; run-integration.sh drops an empty value.
VGI_RPC_SHM_SIZE_BYTES: ${{ matrix.shm_bytes || '' }}
# launch (default) unless the lane selects the http transport.
TRANSPORT: ${{ matrix.transport || 'launch' }}
# JDK 25 + native access for the worker JVM (FFM shm, haybarn_jdbc).
JAVA_TOOL_OPTIONS: --enable-native-access=ALL-UNNAMED