ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
parameters:
- name: VSCODE_ARCH
type: string
- name: VSCODE_CIBUILD
type: boolean
- name: VSCODE_SKIP_FOUNDRY_LOCAL_INSTALL
type: boolean
default: false
- name: VSCODE_RUN_ELECTRON_TESTS
type: boolean
default: false
- name: VSCODE_RUN_BROWSER_TESTS
type: boolean
default: false
- name: VSCODE_RUN_REMOTE_TESTS
type: boolean
default: false
steps:
- template: ../../common/checkout.yml@self
- ${{ if eq(parameters.VSCODE_RUN_ELECTRON_TESTS true)
../../copilot/pulltestcache.yml@self
NodeTool@0
fromFile
.nvmrc
$ if or(eq(parameters.VSCODE_CIBUILD true) eq(parameters.VSCODE_SKIP_FOUNDRY_LOCAL_INSTALL true))
node build/azurepipelines/common/disableFoundryLocalInstall.ts
Disable Foundry Local Native Install
../../distro/downloaddistro.yml@self
AzureKeyVault@2
vscode
vscodebuildsecrets
AzureKeyVault@2
vscodeossbuildsecrets
vscodeossbuildsecrets
node build/setupnpmregistry.ts $NPM_REGISTRY
and(succeeded() ne(variables 'none'))
Setup NPM Registry
../../common/applysdkcanary.yml@self
mkdir p .build node build/azurepipelines/common/computeNodeModulesCacheKey.ts darwin $VSCODE_ARCH $(node p process.arch) .build/packagelockhash
Prepare node_modules cache key
Cache@2
.build/node_modules_cache
NODE_MODULES_RESTORED
Restore node_modules cache
tar xzf .build/node_modules_cache/cache.tgz
and(succeeded() eq(variables.NODE_MODULES_RESTORED 'true'))
Extract node_modules cache
and(succeeded() ne(variables 'none'))
Setup NPM
npmAuthenticate@0
$(NPMRC_PATH)
and(succeeded() ne(variables 'none'))
Setup NPM Authentication
$ if and(eq(parameters.VSCODE_CIBUILD false) eq(parameters.VSCODE_SKIP_FOUNDRY_LOCAL_INSTALL false))
../../common/foundrylocal.yml@self
prepare
PipAuthenticate@1
Monaco/vscode
Setup Python Package Authentication
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
$(VSCODE_ARCH)
Install dependencies
and(succeeded() ne(variables.NODE_MODULES_RESTORED 'true'))
$ if and(eq(parameters.VSCODE_CIBUILD false) eq(parameters.VSCODE_SKIP_FOUNDRY_LOCAL_INSTALL false))
../../common/foundrylocal.yml@self
install
node build/azurepipelines/common/checkNativeOptionalDeps.ts
Verify native optional dependency binaries
node build/azurepipelines/distro/mixinnpm.ts
and(succeeded() ne(variables.NODE_MODULES_RESTORED 'true'))
Mixin distro node modules
and(succeeded() ne(variables.NODE_MODULES_RESTORED 'true'))
Create node_modules archive
$ if ne(parameters.VSCODE_CIBUILD true)
npx deemon detach wait node build/azurepipelines/common/waitForArtifacts.ts "producer=unsigned_vscode_cli_darwin_$(VSCODE_ARCH)_cli=macOS CLI ($ upper(parameters.VSCODE_ARCH) )" unsigned_vscode_cli_darwin_$(VSCODE_ARCH)_cli
$(System.AccessToken)
Wait for CLI artifact (background)
node build/azurepipelines/distro/mixinquality.ts
Mixin distro quality
$ if ne(parameters.VSCODE_CIBUILD true)
npx deemon detach wait node build/azurepipelines/common/downloadNotice.ts
$(System.AccessToken)
$(VSCODE_OVERWRITE_TPN)
Pull CG NOTICE (background)
../../common/installbuiltinextensions.yml@self
node build/npm/electronTypes.ts
Prepare Electron types
../../common/agentsdkproduce.yml@self
darwin
../../common/dictationruntimeproduce.yml@self
darwin
npx deemon detach wait node build/azurepipelines/common/downloadCopilotVsix.ts
$(System.AccessToken)
Download Copilot VSIX (background)
../../common/mixinvscodecapi.yml@self
npm run gulp coreci
Compile
node build/azurepipelines/common/extracttelemetry.ts
Generate lists of telemetry events
$ if or(eq(parameters.VSCODE_RUN_ELECTRON_TESTS true) eq(parameters.VSCODE_RUN_BROWSER_TESTS true) eq(parameters.VSCODE_RUN_REMOTE_TESTS true))
Compile test suites (nonOSS)
and(succeeded() eq(variables 'false'))
$ if ne(parameters.VSCODE_CIBUILD true)
npm run copypolicydto prefix build node build/lib/policies/policyGenerator.ts build/lib/policies/policyData.jsonc darwin
Generate policy definitions
npx deemon attach node build/azurepipelines/common/downloadCopilotVsix.ts
$(System.AccessToken)
Download Copilot VSIX
$ if ne(parameters.VSCODE_CIBUILD true)
npx deemon attach node build/azurepipelines/common/downloadNotice.ts
$(System.AccessToken)
$(VSCODE_OVERWRITE_TPN)
Apply CG NOTICE
$(System.AccessToken)
Build client
$(System.AccessToken)
Build server
$ if eq(parameters.VSCODE_ARCH 'arm64')
node build/azurepipelines/common/smokeTestAgentHost.ts "$(Agent.BuildDirectory)/vscodeserverdarwin$(VSCODE_ARCH)"
🧪 Smoke test packaged Agent Host
$(System.AccessToken)
Build server (web)
$ if ne(parameters.VSCODE_CIBUILD true)
npx deemon attach node build/azurepipelines/common/waitForArtifacts.ts "producer=unsigned_vscode_cli_darwin_$(VSCODE_ARCH)_cli=macOS CLI ($ upper(parameters.VSCODE_ARCH) )" unsigned_vscode_cli_darwin_$(VSCODE_ARCH)_cli
$(System.AccessToken)
Wait for CLI artifact
DownloadPipelineArtifact@2
unsigned_vscode_cli_darwin_$(VSCODE_ARCH)_cli
$(Build.ArtifactStagingDirectory)/cli
Download VS Code CLI
Make CLI executable
Verify arch of MachO objects
eq(variables 'true')
Package client
node build/azurepipelines/common/checkForArtifact.ts CLIENT_ARCHIVE_UPLOADED unsigned_vscode_client_darwin_$(VSCODE_ARCH)_archive
$(System.AccessToken)
Check for client artifact
../../common/publishartifact.yml@self
$(CLIENT_PATH)
unsigned_vscode_client_darwin_$(VSCODE_ARCH)_archive
Publish client archive (unsigned)
and(ne(variables '') eq(variables 'false'))
Set Hardened Entitlements
Sign server binaries
eq(variables 'true')
Create DMG installer
eq(variables 'true')
Repackage client after entitlement
Package server
Package server (web)
UseDotNet@2
6.x
EsrpCodeSigning@6
vscodeesrp
$(ESRP_CLIENT_ID)
$(ESRP_TENANT_ID)
vscodeesrp
esrpsign
.
noop
Find ESRP CLI
npx deemon detach wait node build/azurepipelines/darwin/codesign.ts
$(EsrpCliDllPath)
$(System.AccessToken)
$(Build.SourcesDirectory)
✍️ Codesign & Notarize
$ if or(eq(parameters.VSCODE_RUN_ELECTRON_TESTS true) eq(parameters.VSCODE_RUN_BROWSER_TESTS true) eq(parameters.VSCODE_RUN_REMOTE_TESTS true))
productbuilddarwintest.yml@self
$ parameters.VSCODE_RUN_ELECTRON_TESTS
$ parameters.VSCODE_RUN_BROWSER_TESTS
$ parameters.VSCODE_RUN_REMOTE_TESTS
$ if ne(parameters.VSCODE_CIBUILD true)
npx deemon attach node build/azurepipelines/darwin/codesign.ts
succeededOrFailed()
unzip $(Pipeline.Workspace)/vscode_client_darwin_$(VSCODE_ARCH)_archive/VSCodedarwin$(VSCODE_ARCH).zip d $(Build.ArtifactStagingDirectory)/VSCodedarwin$(VSCODE_ARCH)
Extract signed app
Verify signature
mkdir p $(Build.ArtifactStagingDirectory)/out/vscode_client_darwin_$(VSCODE_ARCH)_archive
if "$VSCODE_ARCH" == "x64" ; then
mv $(CLIENT_PATH) $(Build.ArtifactStagingDirectory)/out/vscode_client_darwin_$(VSCODE_ARCH)_archive/VSCodedarwin.zip
else
mv $(CLIENT_PATH) $(Build.ArtifactStagingDirectory)/out/vscode_client_darwin_$(VSCODE_ARCH)_archive/VSCodedarwin$(VSCODE_ARCH).zip
fi
mkdir p $(Build.ArtifactStagingDirectory)/out/vscode_client_darwin_$(VSCODE_ARCH)_dmg
mv $(DMG_PATH) $(Build.ArtifactStagingDirectory)/out/vscode_client_darwin_$(VSCODE_ARCH)_dmg/VSCodedarwin$(VSCODE_ARCH).dmg
mkdir p $(Build.ArtifactStagingDirectory)/out/vscode_server_darwin_$(VSCODE_ARCH)_archive
mv $(SERVER_PATH) $(Build.ArtifactStagingDirectory)/out/vscode_server_darwin_$(VSCODE_ARCH)_archive/vscodeserverdarwin$(VSCODE_ARCH).zip
mkdir p $(Build.ArtifactStagingDirectory)/out/vscode_web_darwin_$(VSCODE_ARCH)_archive
mv $(WEB_PATH) $(Build.ArtifactStagingDirectory)/out/vscode_web_darwin_$(VSCODE_ARCH)_archive/vscodeserverdarwin$(VSCODE_ARCH)web.zip
Move artifacts to out directory