ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
on:
workflow_call:
inputs:
job_name:
type: string
required: true
electron_tests:
type: boolean
default: false
browser_tests:
type: boolean
default: false
remote_tests:
type: boolean
default: false
unit_and_integration_tests:
type: boolean
default: true
smoke_tests:
type: boolean
default: true
jobs:
linux-test:
$ inputs.job_name
ubuntu
$ (inputs.electron_tests 'electron') (inputs.browser_tests 'browser') (inputs.remote_tests 'remote') 'unknown' $ ( inputs.smoke_tests) 'smoke' ''
x64
x64
Checkout microsoft/vscode
actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
Detect Agent Host E2E changes
$ inputs.electron_tests inputs.unit_and_integration_tests
agenthoste2echanges
./.github/actions/detectagenthoste2echanges
$ secrets.GITHUB_TOKEN
Setup Node.js
actions/setupnode@820762786026740c76f36085b0efc47a31fe5020
.nvmrc
Setup system services
Restore node_modules cache
cachenodemodules
./.github/actions/restorenodemodules
node_moduleslinux
Install build dependencies
steps.cachenodemodules.outputs.cachehit 'true'
build
for i in 1..5; do
npm ci break
if $i eq 5 ; then
echo "Npm install failed too many times"
exit 1
fi
echo "Npm install failed $i trying again"
done
$ secrets.GITHUB_TOKEN
Install dependencies
steps.cachenodemodules.outputs.cachehit 'true'
source ./build/azurepipelines/linux/setupenv.sh
for i in 1..5; do
npm ci break
if $i eq 5 ; then
echo "Npm install failed too many times"
exit 1
fi
echo "Npm install failed $i trying again"
done
$ env.NPM_ARCH
$ env.VSCODE_ARCH
$ secrets.GITHUB_TOKEN
Create .build folder
mkdir p .build
Prepare builtin extensions cache key
node build/azurepipelines/common/computeBuiltInDepsCacheKey.ts .build/builtindepshash
Restore builtin extensions cache
cachebuiltinextensions
actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
.build/builtInExtensions
Download builtin extensions
steps.cachebuiltinextensions.outputs.cachehit 'true'
node build/lib/builtInExtensions.ts
$ secrets.GITHUB_TOKEN
Workaround expat NULL deref CVEs in fontconfig parsing
Preinitialize fontconfig to avoid Pango threaded FcInit crash
__attribute__((constructor))
static void preinit_fontconfig(void)
void = dlopen("libfontconfig.so.1" RTLD_NOW RTLD_GLOBAL);
if (handle)
int ( = (int ( dlsym(handle "FcInit");
if (fc_init)
fc_init();
CEOF
gcc shared fPIC O2 o "$RUNNER_TEMP/libfcpreinit.so" "$RUNNER_TEMP/fcpreinit.c" ldl
echo "Built fontconfig preinit shim at $RUNNER_TEMP/libfcpreinit.so"
echo "LD_PRELOAD=$RUNNER_TEMP/libfcpreinit.so$LD_PRELOAD+$LD_PRELOAD" "$GITHUB_ENV"
Fontconfig diagnostics and cache reset
Transpile client and extensions
npm run gulp transpileclientesbuild transpileextensions
Download Electron and Playwright
for i in 1..3; do
if npm exec npmrunall2 lp "electron $ env.VSCODE_ARCH " "playwrightinstall"; then
echo "Download successful on attempt $i"
break
fi
if $i eq 3 ; then
echo "Download failed after 3 attempts"
exit 1
fi
echo "Download failed on attempt $i retrying"
sleep 5
done
$ secrets.GITHUB_TOKEN
🧪 Run unit tests (Electron)
$ inputs.electron_tests inputs.unit_and_integration_tests
./scripts/test.sh tfs "Unit Tests"
🧪 Run unit tests (node.js)
$ inputs.electron_tests inputs.unit_and_integration_tests
npm run testnode
🧪 Run unit tests (Browser Chromium)
$ inputs.browser_tests inputs.unit_and_integration_tests
npm run testbrowsernoinstall browser chromium tfs "Browser Unit Tests"
Compile extensions for integration tests & smoke tests
🧪 Run integration tests (Electron)
$ inputs.electron_tests inputs.unit_and_integration_tests
./scripts/testintegration.sh tfs "Integration Tests"
$ steps.agenthoste2echanges.outputs.affected == 'false' '1' '0'
🧪 Run integration tests (Browser Chromium)
$ inputs.browser_tests inputs.unit_and_integration_tests
./scripts/testwebintegration.sh browser chromium
🧪 Run integration tests (Remote)
$ inputs.remote_tests inputs.unit_and_integration_tests
./scripts/testremoteintegration.sh
Compile smoke tests
$ inputs.smoke_tests
test/smoke
npm run compile
Compile Copilot Chat extension for smoke tests
$ inputs.smoke_tests
extensions/copilot
npm run compile
Remove musl Claude binary on glibc Linux
$ inputs.smoke_tests
rm rf node_modules/@anthropicai/claudeagentsdklinuxx64musl node_modules/@anthropicai/claudeagentsdklinuxarm64musl
Diagnostics before smoke test run (processes max_user_watches number of opened file handles)
$ inputs.smoke_tests always()
🧪 Run smoke tests (Electron)
$ inputs.electron_tests inputs.smoke_tests
npm run smoketestnocompile tracing
🧪 Run smoke tests (Browser Chromium)
$ inputs.browser_tests inputs.smoke_tests
npm run smoketestnocompile web tracing headless
🧪 Run smoke tests (Remote)
$ inputs.remote_tests inputs.smoke_tests
npm run smoketestnocompile remote tracing
Diagnostics after smoke test run (processes max_user_watches number of opened file handles)
$ inputs.smoke_tests always()
Publish Crash Reports
actions/uploadartifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
failure()
$ format('crashdumplinux' env.VSCODE_ARCH env.ARTIFACT_NAME github.run_attempt)
.build/crashes
ignore
Publish Node Modules
actions/uploadartifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
failure()
$ format('nodemoduleslinux' env.VSCODE_ARCH env.ARTIFACT_NAME github.run_attempt)
node_modules
ignore
Publish Log Files
actions/uploadartifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
always()
$ format('logslinux' env.VSCODE_ARCH env.ARTIFACT_NAME github.run_attempt)
.build/logs
ignore