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:
macOS-test:
$ inputs.job_name
macos26xlarge
$ (inputs.electron_tests 'electron') (inputs.browser_tests 'browser') (inputs.remote_tests 'remote') 'unknown' $ ( inputs.smoke_tests) 'smoke' ''
arm64
arm64
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_modulesmacos
Install dependencies
steps.cachenodemodules.outputs.cachehit 'true'
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
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 Webkit)
$ inputs.browser_tests inputs.unit_and_integration_tests
npm run testbrowsernoinstall browser webkit 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 Webkit)
$ inputs.browser_tests inputs.unit_and_integration_tests
./scripts/testwebintegration.sh browser webkit
🧪 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
Diagnostics before smoke test run
$ inputs.smoke_tests always()
ps ef
🧪 Run smoke tests (Electron)
$ inputs.electron_tests inputs.smoke_tests
npm run smoketestnocompile tracing
Install Squid for networkisolated smoke tests
$ inputs.electron_tests inputs.smoke_tests
brew list squid /dev/null 2 brew install squid
🧪 Run Agents Window smoke tests through macOS PAC proxy
$ inputs.electron_tests inputs.smoke_tests
bash test/smoke/scripts/runagentswindownetworkproxy.sh
🧪 Run Agents Window smoke tests through Kerberosauthenticated macOS PAC proxy
$ inputs.electron_tests inputs.smoke_tests
bash test/smoke/scripts/runagentswindownetworkproxy.sh kerberos
🧪 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
$ inputs.smoke_tests always()
ps ef
Publish Crash Reports
actions/uploadartifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
failure()
$ format('crashdumpmacos' env.VSCODE_ARCH env.ARTIFACT_NAME github.run_attempt)
.build/crashes
ignore
Publish Node Modules
actions/uploadartifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
failure()
$ format('nodemodulesmacos' env.VSCODE_ARCH env.ARTIFACT_NAME github.run_attempt)
node_modules
ignore
Publish Log Files
actions/uploadartifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
always()
$ format('logsmacos' env.VSCODE_ARCH env.ARTIFACT_NAME github.run_attempt)
.build/logs
ignore