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:
windows-test:
$ inputs.job_name
selfhosted 1ES.Pool=1esvscodeosswindows2022x64
$ (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
Restore node_modules cache
cachenodemodules
./.github/actions/restorenodemodules
node_moduleswindows
Install dependencies
steps.cachenodemodules.outputs.cachehit 'true'
pwsh
exec node build/npm/preinstall.ts
for ($i = 1; $i le 5; $i++)
try
exec npm ci
break
catch
if ($i eq 5)
WriteError "npm ci failed after 5 attempts"
throw
WriteHost "npm ci failed attempt $i retrying"
StartSleep Seconds 2
$ env.NPM_ARCH
$ env.VSCODE_ARCH
$ secrets.GITHUB_TOKEN
Create .build folder
pwsh
mkdir .build ea 0
Prepare builtin extensions cache key
pwsh
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
Transpile client and extensions
pwsh
npm run gulp "transpileclientesbuild" "transpileextensions"
Download Electron and Playwright
pwsh
for ($i = 1; $i le 3; $i++)
try
exec npm exec npmrunall2 lp "electron $ env.VSCODE_ARCH " "playwrightinstall"
break
catch
if ($i eq 3)
WriteError "Download failed after 3 attempts"
throw
WriteHost "Download failed attempt $i retrying"
StartSleep Seconds 2
$ secrets.GITHUB_TOKEN
🧪 Run unit tests (Electron)
$ inputs.electron_tests inputs.unit_and_integration_tests
pwsh
.\scripts\test.bat tfs "Unit Tests"
🧪 Run unit tests (node.js)
$ inputs.electron_tests inputs.unit_and_integration_tests
pwsh
npm run testnode
🧪 Run unit tests (Browser Chromium)
$ inputs.browser_tests inputs.unit_and_integration_tests
pwsh
node test/unit/browser/index.js browser chromium tfs "Browser Unit Tests"
Compile extensions for integration tests & smoke tests
pwsh
Diagnostics before integration test runs
$ inputs.unit_and_integration_tests always()
pwsh
.\build\azurepipelines\win32\listprocesses.bat
🧪 Run integration tests (Electron)
$ inputs.electron_tests inputs.unit_and_integration_tests
pwsh
.\scripts\testintegration.bat tfs "Integration Tests"
$ steps.agenthoste2echanges.outputs.affected == 'false' '1' '0'
🧪 Run integration tests (Browser Chromium)
$ inputs.browser_tests inputs.unit_and_integration_tests
pwsh
.\scripts\testwebintegration.bat browser chromium
🧪 Run integration tests (Remote)
$ inputs.remote_tests inputs.unit_and_integration_tests
pwsh
.\scripts\testremoteintegration.bat
Diagnostics after integration test runs
$ inputs.unit_and_integration_tests always()
pwsh
.\build\azurepipelines\win32\listprocesses.bat
Compile smoke tests
$ inputs.smoke_tests
test/smoke
pwsh
npm run compile
Compile Copilot Chat extension for smoke tests
$ inputs.smoke_tests
extensions/copilot
npm run compile
Diagnostics before smoke test run
$ inputs.smoke_tests always()
pwsh
.\build\azurepipelines\win32\listprocesses.bat
🧪 Run smoke tests (Electron)
$ inputs.electron_tests inputs.smoke_tests
pwsh
npm run smoketestnocompile tracing
🧪 Run smoke tests (Browser Chromium)
$ inputs.browser_tests inputs.smoke_tests
pwsh
npm run smoketestnocompile web tracing headless
🧪 Run smoke tests (Remote)
$ inputs.remote_tests inputs.smoke_tests
pwsh
npm run smoketestnocompile remote tracing
Diagnostics after smoke test run
$ inputs.smoke_tests always()
pwsh
.\build\azurepipelines\win32\listprocesses.bat
Publish Crash Reports
actions/uploadartifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
failure()
$ format('crashdumpwindows' env.VSCODE_ARCH env.ARTIFACT_NAME github.run_attempt)
.build/crashes
ignore
Publish Node Modules
actions/uploadartifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
failure()
$ format('nodemoduleswindows' env.VSCODE_ARCH env.ARTIFACT_NAME github.run_attempt)
node_modules
ignore
Publish Log Files
actions/uploadartifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
always()
$ format('logswindows' env.VSCODE_ARCH env.ARTIFACT_NAME github.run_attempt)
.build/logs
ignore