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_QUALITY
type: string
- name: VSCODE_SKIP_FOUNDRY_LOCAL_INSTALL
type: boolean
default: false
- name: VSCODE_BUILD_LINUX_SNAP
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
boolean
VSCODE_RUN_CHECKS
boolean
../../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
vscodeossbuildsecrets
vscodeossbuildsecrets
Setup system services
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 linux $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
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
build
Install build dependencies
and(succeeded() ne(variables.NODE_MODULES_RESTORED 'true'))
$(VSCODE_ARCH)
Download vscode sysroots
source ./build/azurepipelines/linux/setupenv.sh
node build/npm/preinstall.ts
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
$(NPM_ARCH)
$(VSCODE_ARCH)
skip
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=$(ARTIFACT_PREFIX)vscode_cli_linux_$(VSCODE_ARCH)_cli=Linux CLI ($ upper(parameters.VSCODE_ARCH) )" $(ARTIFACT_PREFIX)vscode_cli_linux_$(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
$ if ne(parameters.VSCODE_ARCH 'armhf')
../../common/agentsdkproduce.yml@self
linux
../../common/dictationruntimeproduce.yml@self
linux
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
$ if eq(parameters.VSCODE_ARCH 'x64')
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 linux
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
$ if ne(parameters.VSCODE_CIBUILD true)
npx deemon attach node build/azurepipelines/common/waitForArtifacts.ts "producer=$(ARTIFACT_PREFIX)vscode_cli_linux_$(VSCODE_ARCH)_cli=Linux CLI ($ upper(parameters.VSCODE_ARCH) )" $(ARTIFACT_PREFIX)vscode_cli_linux_$(VSCODE_ARCH)_cli
$(System.AccessToken)
Wait for CLI artifact
DownloadPipelineArtifact@2
$(ARTIFACT_PREFIX)vscode_cli_linux_$(VSCODE_ARCH)_cli
$(Build.ArtifactStagingDirectory)/cli
Download VS Code CLI
Mix in CLI
Archive client
$ if ne(parameters.VSCODE_ARCH 'armhf')
$(System.AccessToken)
Build server
$ if eq(parameters.VSCODE_ARCH 'x64')
node build/azurepipelines/common/smokeTestAgentHost.ts "$(Agent.BuildDirectory)/vscodeserverlinux$(VSCODE_ARCH)"
🧪 Smoke test packaged Agent Host
$(System.AccessToken)
Build server (web)
$ if or(eq(parameters.VSCODE_ARCH 'x64') eq(parameters.VSCODE_ARCH 'arm64'))
EXPECTED_GLIBC_VERSION="2.28" \
EXPECTED_GLIBCXX_VERSION="3.4.25" \
VSCODE_SYSROOT_DIR="$(Build.SourcesDirectory)/.build/sysroots/glibc2.28gcc8.5.0" \
./build/azurepipelines/linux/verifyglibcrequirements.sh
$(SERVER_UNARCHIVE_PATH)
$(NPM_ARCH)
$(VSCODE_ARCH)
Check GLIBC and GLIBCXX dependencies in server archive
$ if ne(parameters.VSCODE_CIBUILD true)
Prepare deb package
Build deb package
$(VSCODE_ARCH)
Prepare rpm package
Build rpm package
$ if eq(parameters.VSCODE_ARCH 'x64')
Docker@1
vscode
vscodehub.azurecr.io
login
Login to Container Registry
$ if eq(parameters.VSCODE_BUILD_LINUX_SNAP true)
SNAP_ROOT="$(pwd)/.build/linux/snap/$(VSCODE_ARCH)"
SNAP_EXTRACTED_PATH=$(find $SNAP_ROOT maxdepth 1 type d name 'code
mkdir p .build/linux/snap
cp $(find $SNAP_ROOT maxdepth 1 type f name ' .build/linux/snap/
sudo find $SNAP_EXTRACTED_PATH type l delete
echo "
echo "
echo "
$(VSCODE_ARCH)
Build snap package
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/linux/codesign.ts
$(EsrpCliDllPath)
$(System.AccessToken)
✍️ Codesign deb & rpm
$ if or(eq(parameters.VSCODE_RUN_ELECTRON_TESTS true) eq(parameters.VSCODE_RUN_BROWSER_TESTS true) eq(parameters.VSCODE_RUN_REMOTE_TESTS true))
productbuildlinuxtest.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/linux/codesign.ts
succeededOrFailed()
mkdir p $(Build.ArtifactStagingDirectory)/out/client
mv $(CLIENT_PATH) $(Build.ArtifactStagingDirectory)/out/client/$(CLIENT_ARCHIVE_NAME)
if "$(VSCODE_ARCH)" "armhf" ; then
mkdir p $(Build.ArtifactStagingDirectory)/out/server
mv $(SERVER_PATH) $(Build.ArtifactStagingDirectory)/out/server/$(basename $(SERVER_PATH))
mkdir p $(Build.ArtifactStagingDirectory)/out/web
mv $(WEB_PATH) $(Build.ArtifactStagingDirectory)/out/web/$(basename $(WEB_PATH))
fi
mkdir p $(Build.ArtifactStagingDirectory)/out/deb
mv $(DEB_PATH) $(Build.ArtifactStagingDirectory)/out/deb/$(DEB_PACKAGE_NAME)
mkdir p $(Build.ArtifactStagingDirectory)/out/rpm
mv $(RPM_PATH) $(Build.ArtifactStagingDirectory)/out/rpm/$(RPM_PACKAGE_NAME)
if n "$SNAP_PATH" ; then
mkdir p $(Build.ArtifactStagingDirectory)/out/snap
mv $(SNAP_PATH) $(Build.ArtifactStagingDirectory)/out/snap/$(SNAP_PACKAGE_NAME)
fi
sudo ls l $(Agent.BuildDirectory)/VSCodelinux$(VSCODE_ARCH)/chromesandbox
sudo chmod us $(Agent.BuildDirectory)/VSCodelinux$(VSCODE_ARCH)/chromesandbox
sudo ls l $(Agent.BuildDirectory)/VSCodelinux$(VSCODE_ARCH)/chromesandbox
Move artifacts to out directory