Repository navigation
141 lines (141 loc) · 7.07 KB
/
Copy pathshared-storage.yml
File metadata and controls
141 lines (141 loc) · 7.07 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
name: Shared storage native acceptance
on:
workflow_dispatch:
inputs:
platform:
description: Native platform to verify after a targeted correction
type: choice
default: all
options: [all, linux, macos, windows]
permissions:
contents: read
jobs:
probe:
strategy:
fail-fast: false
matrix:
include: ${{ fromJSON(inputs.platform == 'linux' && '[{"os":"ubuntu-22.04","platform":"linux-x64"}]' || inputs.platform == 'macos' && '[{"os":"macos-26","platform":"darwin-arm64"}]' || inputs.platform == 'windows' && '[{"os":"windows-2025","platform":"win32-x64-archive"}]' || '[{"os":"ubuntu-22.04","platform":"linux-x64"},{"os":"macos-26","platform":"darwin-arm64"},{"os":"windows-2025","platform":"win32-x64-archive"}]') }}
runs-on: ${{ matrix.os }}
timeout-minutes: 40
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: tauri/src-tauri
cache-on-failure: true
- name: Check Windows owned-path normalization early
if: runner.os == 'Windows'
shell: pwsh
run: |
New-Item -ItemType Directory -Force tauri/resources/managed-extension | Out-Null
cargo test --locked --manifest-path tauri/src-tauri/Cargo.toml windows_verbatim_and_drive_paths_share_one_owned_boundary
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
cargo test --locked --manifest-path tauri/src-tauri/Cargo.toml windows_zero_length
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
- name: Build protocol client
working-directory: extension
run: |
npm ci
npm run build
- name: Install Linux native UI dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y xvfb libasound2 libgbm1 libgtk-3-0 libnss3 libxss1 libwebkit2gtk-4.1-dev libgtk-layer-shell-dev libappindicator3-dev librsvg2-dev patchelf
- name: Install pinned editor and official extension on Mac or Linux
if: runner.os != 'Windows'
shell: bash
env:
EDITOR_PLATFORM: ${{ matrix.platform }}
run: |
curl --fail --location --retry 3 "https://update.code.visualstudio.com/1.140.0/$EDITOR_PLATFORM/stable" -o "$RUNNER_TEMP/editor.archive"
mkdir "$RUNNER_TEMP/editor" "$RUNNER_TEMP/official-extensions"
if [[ "$RUNNER_OS" == macOS ]]; then
ditto -xk "$RUNNER_TEMP/editor.archive" "$RUNNER_TEMP/editor"
code="$RUNNER_TEMP/editor/Visual Studio Code.app/Contents/MacOS/Electron"
executable=$(/usr/libexec/PlistBuddy -c 'Print :CFBundleExecutable' "$RUNNER_TEMP/editor/Visual Studio Code.app/Contents/Info.plist")
code="$RUNNER_TEMP/editor/Visual Studio Code.app/Contents/MacOS/$executable"
cli="$RUNNER_TEMP/editor/Visual Studio Code.app/Contents/Resources/app/bin/code"
cli_js="$RUNNER_TEMP/editor/Visual Studio Code.app/Contents/Resources/app/out/cli.js"
else
tar -xzf "$RUNNER_TEMP/editor.archive" -C "$RUNNER_TEMP/editor" --strip-components=1
code="$RUNNER_TEMP/editor/code"
cli="$RUNNER_TEMP/editor/bin/code"
cli_js="$RUNNER_TEMP/editor/resources/app/out/cli.js"
fi
"$cli" --user-data-dir "$RUNNER_TEMP/install-user" --extensions-dir "$RUNNER_TEMP/official-extensions" --install-extension openai.chatgpt@26.1002.51308 --force
echo "MULTI_CODEX_TEST_VSCODE=$code" >> "$GITHUB_ENV"
echo "MULTI_CODEX_TEST_CODE_NODE_CLI=$cli_js" >> "$GITHUB_ENV"
- name: Install pinned editor and official extension on Windows
if: runner.os == 'Windows'
shell: pwsh
run: |
Invoke-WebRequest 'https://update.code.visualstudio.com/1.140.0/win32-x64-archive/stable' -OutFile "$env:RUNNER_TEMP/editor.zip"
Expand-Archive "$env:RUNNER_TEMP/editor.zip" "$env:RUNNER_TEMP/editor"
& "$env:RUNNER_TEMP/editor/bin/code.cmd" --user-data-dir "$env:RUNNER_TEMP/install-user" --extensions-dir "$env:RUNNER_TEMP/official-extensions" --install-extension openai.chatgpt@26.1002.51308 --force
if ($LASTEXITCODE -ne 0) { throw 'Pinned Codex installation failed' }
"MULTI_CODEX_TEST_VSCODE=$env:RUNNER_TEMP/editor/Code.exe" >> $env:GITHUB_ENV
"MULTI_CODEX_TEST_CODE_NODE_CLI=$env:RUNNER_TEMP/editor/resources/app/out/cli.js" >> $env:GITHUB_ENV
- name: Test native catalog mutations and cross-home continuation
shell: bash
working-directory: extension
run: |
export MULTI_CODEX_TEST_EXTENSIONS="$RUNNER_TEMP/official-extensions"
export SHARED_GATE_OUTPUT="$RUNNER_TEMP/shared-gate-public"
if [[ "$RUNNER_OS" == Linux ]]; then
xvfb-run -a node scripts/shared-storage-probe.mjs
else
node scripts/shared-storage-probe.mjs
fi
- name: Build matching packaged desktop bridge and run local suites
working-directory: tauri
shell: bash
env:
TAURI_ENV_DEBUG: 'true'
MACOSX_DEPLOYMENT_TARGET: '26.0'
run: |
npm ci
npm run build:desktop
npm test
npm run test:release-gates
if [[ "$RUNNER_OS" == Windows ]]; then
# The PowerShell Add-Type compiler competes with the large paging
# fixture under runner load. Keep its assertion and 45s budget,
# execute it first in isolation, then run every remaining test.
cargo test --locked --manifest-path src-tauri/Cargo.toml --lib windows_background_helpers_have_no_console -- --test-threads=1
cargo test --locked --manifest-path src-tauri/Cargo.toml --lib -- --skip windows_background_helpers_have_no_console
else
cargo test --locked --manifest-path src-tauri/Cargo.toml --lib
fi
npm --prefix ../extension test
- name: Test production broker and migration service
working-directory: extension
shell: bash
env:
MACOSX_DEPLOYMENT_TARGET: '26.0'
run: |
export MULTI_CODEX_TEST_EXTENSIONS="$RUNNER_TEMP/official-extensions"
export SHARED_GATE_OUTPUT="$RUNNER_TEMP/shared-gate-public"
if [[ "$RUNNER_OS" == Linux ]]; then
xvfb-run -a node scripts/native-sharing-acceptance.mjs
else
node scripts/native-sharing-acceptance.mjs
fi
- name: Verify native Windows PowerShell installer regressions
if: runner.os == 'Windows'
shell: pwsh
run: ./tauri/scripts/windows-installer-regressions.ps1
- name: Upload inert feasibility result
if: always()
uses: actions/upload-artifact@v4
with:
name: shared-storage-${{ matrix.platform }}
path: |
${{ runner.temp }}/shared-gate-public/result.json
${{ runner.temp }}/shared-gate-public/production-result.json
if-no-files-found: warn
retention-days: 14