ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
jobs:
- job: Quality
displayName: Quality Checks
# Leave enough time for NOTICE retries and the fallback path to finish.
timeoutInMinutes: 30
variables:
- name: skipComponentGovernanceDetection
value: true
- name: Codeql.SkipTaskAutoInjection
value: true
steps:
- template: ./common/checkout.yml@self
- task: NodeTool@0
inputs:
versionSource: fromFile
versionFilePath: .nvmrc
- template: ./distro/download-distro.yml@self
- task: AzureKeyVault@2
displayName: "Azure Key Vault: Get Secrets"
vscodeossbuildsecrets
vscodeossbuildsecrets
node build/setupnpmregistry.ts $NPM_REGISTRY
and(succeeded() ne(variables 'none'))
Setup NPM Registry
mkdir p .build node build/azurepipelines/common/computeNodeModulesCacheKey.ts quality $(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
./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'))
x64
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
x64
x64
Install dependencies
and(succeeded() ne(variables.NODE_MODULES_RESTORED 'true'))
./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
node build/azurepipelines/distro/mixinquality.ts
Mixin distro quality
node build/npm/electronTypes.ts
Prepare Electron types
node build/azurepipelines/common/checkDistroCommit.ts
Check distro commit
and(succeeded() eq(lower(variables) 'true'))
./common/mixinvscodecapi.yml@self
npm exec npmrunall2 lp coreci hygiene eslint validlayerscheck defineclassfieldscheck vscodedtscompilecheck tseccompilecheck testbuildscripts
Compile & Hygiene
npm run downloadbuiltinextensionscg
Download component details of builtin extensions
and(succeeded() eq(lower(variables) 'false'))
ms.vssgovernancebuildtask.governancebuildtaskcomponentdetection.ComponentGovernanceComponentDetection@0
$(Build.SourcesDirectory)
Medium
and(succeeded() eq(lower(variables) 'false'))
notice@0
$(Build.SourcesDirectory)/ThirdPartyNotices.generated.txt
and(succeeded() eq(lower(variables) 'false'))
and(succeeded() eq(lower(variables) 'false'))
DownloadBuildArtifacts@1
specific
$(System.TeamProject)
$(System.DefinitionId)
latestFromBranch
$(Build.SourceBranch)
notice_output
$(Pipeline.Workspace)/cachednoticebranch
and(succeeded() eq(lower(variables) 'false') ne(variables.CG_NOTICE_OK 'true'))
DownloadBuildArtifacts@1
specific
$(System.TeamProject)
$(System.DefinitionId)
latestFromBranch
refs/heads/main
notice_output
$(Pipeline.Workspace)/cachednoticemain
and(succeeded() eq(lower(variables) 'false') ne(variables.CG_NOTICE_OK 'true') ne(variables 'refs/heads/main'))
describe_cache()
local meta="$1"
local label="$2"
if f "$meta" ; then
echo "
while IFS= read r line; do echo "
else
echo "
fi
if f "$GEN" "$(wc c < "$GEN")" gt 1024 ; then
echo "
echo "
exit 0
fi
echo "
if f "$BRANCH_CACHE" "$(wc c < "$BRANCH_CACHE")" gt 1024 ; then
echo "
describe_cache "$BRANCH_META" "samebranch"
cp "$BRANCH_CACHE" "$GEN"
echo "
exit 0
fi
if f "$MAIN_CACHE" "$(wc c < "$MAIN_CACHE")" gt 1024 ; then
echo "
echo "
describe_cache "$MAIN_META" "main"
cp "$MAIN_CACHE" "$GEN"
echo "
exit 0
fi
echo "
echo "
and(succeeded() eq(lower(variables) 'false') ne(variables.CG_NOTICE_OK 'true'))
if f "$GEN" "$(wc c < "$GEN")" le 1024 ; then
echo "No usable ThirdPartyNotices.generated.txt to publish; skipping (no CG output and no cached fallback)."
exit 0
fi
SIZE=$(wc c < "$GEN")
CG_NOTICE_OK=$CG_NOTICE_OKunset NOTICE_FROM_CACHE=$NOTICE_FROM_CACHEunset)"
cp "$GEN" "$(Build.ArtifactStagingDirectory)/ThirdPartyNotices.generated.txt"
echo "
META_OUT="$(Build.ArtifactStagingDirectory)/noticemeta.txt"
if "$CG_NOTICE_OK" = "true" ; then
$(date u +%Y%m%dT%H%M%SZ)"
$(Build.SourceBranch)"
$(Build.SourceVersion)"
$(Build.BuildId)"
$(Build.BuildNumber)"
$SIZE"
"$META_OUT"
else
case "$NOTICE_FROM_CACHE" in
branch) SRC_META="$(Pipeline.Workspace)/cachednoticebranch/notice_output/noticemeta.txt" ;;
main) SRC_META="$(Pipeline.Workspace)/cachednoticemain/notice_output/noticemeta.txt" ;;
SRC_META="" ;;
esac
if n "$SRC_META" f "$SRC_META" ; then
cp "$SRC_META" "$META_OUT"
else
unavailable (cached NOTICE predates the noticemeta.txt sidecar)" "$META_OUT"
fi
$(Build.BuildId)"
$(Build.BuildNumber)"
$(date u +%Y%m%dT%H%M%SZ)"
CG NOTICE generation failed; republished lastgood NOTICE to keep the cache chain alive."
"$META_OUT"
fi
echo "
and(succeeded() eq(lower(variables) 'false') or(eq(variables.CG_NOTICE_OK 'true') in(variables.NOTICE_FROM_CACHE 'main')))
echo "
echo "
AzureCLI@2
Fetch secrets
vscode
pscore
inlineScript
and(succeeded() eq(lower(variables) 'true'))
Upload sourcemaps to Azure
and(succeeded() eq(lower(variables) 'true'))