-
Notifications
You must be signed in to change notification settings - Fork 30
123 lines (108 loc) · 4.09 KB
/
Copy pathladybug-windows-fts-compat.yml
File metadata and controls
123 lines (108 loc) · 4.09 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
120
121
122
123
name: Ladybug Windows FTS Compatibility
on:
pull_request:
paths:
- ".github/workflows/ladybug-windows-fts-compat.yml"
- "native/**"
- "package*.json"
- "src/db/**"
- "src/live-index/**"
- "tests/fixtures/ladybug/**"
- "tests/integration/live-index-symbol-fts-crash.test.ts"
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
windows-fts:
name: Windows FTS (${{ matrix.mode }})
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
mode:
- missing-runtime-baseline
- fixed-regression
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24.x
cache: npm
- name: Install committed dependencies
run: npm ci --ignore-scripts --legacy-peer-deps
- name: Install disposable Ladybug 0.19.0 probe
if: matrix.mode == 'missing-runtime-baseline'
run: >-
npm install --no-save --no-package-lock --ignore-scripts --legacy-peer-deps
kuzu@npm:@ladybugdb/core@0.19.0
- name: Install fixed-mode registry packages
if: matrix.mode == 'fixed-regression'
shell: pwsh
run: |
$Version = node -p "require('./package.json').version"
npm install --no-save --no-package-lock --ignore-scripts --legacy-peer-deps `
kuzu@npm:@ladybugdb/core@0.19.0 `
@sdl-mcp/ladybug-openssl-win32-x64@3.5.7-sdl.2 `
sdl-mcp-native@$Version
- name: Setup LadybugDB native binary
shell: pwsh
run: |
if ((Test-Path node_modules/kuzu/install.js) -and !(Test-Path node_modules/kuzu/lbugjs.node)) {
Push-Location node_modules/kuzu
node install.js
Pop-Location
}
- name: Build SDL runtime and native package
shell: pwsh
run: |
npm run build:all
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
npm run build:native
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
npm run native:artifacts
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
- name: Select branch-built native addon
if: matrix.mode == 'fixed-regression'
shell: pwsh
run: |
$addonPath = (Resolve-Path "native/sdl-mcp-native.node" -ErrorAction Stop).Path
"SDL_LADYBUG_WINDOWS_FTS_NATIVE_ADDON_PATH=$addonPath" >> $env:GITHUB_ENV
- name: Run isolated compatibility mode
shell: pwsh
env:
SDL_LADYBUG_WINDOWS_FTS_TEST_MODE: ${{ matrix.mode }}
SDL_LADYBUG_WINDOWS_FTS_REQUIRE_MODE: "1"
run: |
node --experimental-strip-types --test-concurrency=1 --test tests/integration/live-index-symbol-fts-crash.test.ts *>&1 |
Tee-Object -FilePath "$env:RUNNER_TEMP/ladybug-windows-fts-${{ matrix.mode }}.log"
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
- name: Run no-SDL-runtime upstream probe
if: matrix.mode == 'missing-runtime-baseline'
shell: pwsh
env:
SDL_LADYBUG_WINDOWS_FTS_TEST_MODE: fixed-regression
SDL_TEST_DISABLE_OPENSSL_PROVISIONING: "1"
run: |
node --experimental-strip-types --test-concurrency=1 --test tests/integration/live-index-symbol-fts-crash.test.ts *>&1 |
Tee-Object -FilePath "$env:RUNNER_TEMP/ladybug-windows-fts-no-sdl-runtime.log"
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
- name: Restore committed dependency tree
if: always()
run: |
npm ci --ignore-scripts --legacy-peer-deps
npm ls kuzu
- name: Upload deterministic failure evidence
if: failure()
uses: actions/upload-artifact@v7
with:
name: ladybug-windows-fts-${{ matrix.mode }}
path: |
${{ runner.temp }}/ladybug-windows-fts-${{ matrix.mode }}.log
${{ runner.temp }}/ladybug-windows-fts-no-sdl-runtime.log
if-no-files-found: error
retention-days: 7