ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
trigger: none
pr: none
parameters:
- name: GITHUB_CHECK_RUN_ID
type: string
variables:
- name: NPM_REGISTRY
value: "https://pkgs.dev.azure.com/monacotools/Monaco/_packaging/vscode/npm/registry/"
- name: VSCODE_QUALITY
value: oss
jobs:
- job: ValidateNpmPackages
displayName: Validate package-lock.json, Cargo.lock changes via Azure DevOps pipeline
pool:
name: 1es-ubuntu-22.04-x64
os: linux
timeoutInMinutes: 1300
variables:
VSCODE_ARCH: x64
steps:
NodeTool@0
fromFile
.nvmrc
AzureKeyVault@2
vscodeossbuildsecrets
vscodeossbuildsecrets
git fetch origin main
CHANGED_FILES=$(git diff nameonly origin/mainHEAD)
echo "Changed files"
echo "$CHANGED_FILES"
if echo "$CHANGED_FILES" grep E '(^/)package(lock)\.json$'; then
echo "
echo "Package files were modified proceeding with validation"
else
echo "
echo "No package files were modified skipping validation"
echo "
fi
Check if package files were modified
node build/setupnpmregistry.ts $NPM_REGISTRY
and(succeeded() ne(variables 'none') eq(variables 'true'))
Setup NPM Registry
and(succeeded() ne(variables 'none') eq(variables 'true'))
Setup NPM
npmAuthenticate@0
$(NPMRC_PATH)
and(succeeded() ne(variables 'none') eq(variables 'true'))
Setup NPM Authentication
sudo apt update y sudo apt install y buildessential pkgconfig libx11dev libx11xcbdev libxkbfiledev libnotifybin libkrb5dev
Install build tools
and(succeeded() eq(variables 'true'))
for attempt in 1..120; do
if $attempt gt 1 ; then
Waiting for 10 minutes before retrying"
sleep 600
fi
Running npm ci"
if npm i ignorescripts; then
if node build/npm/postinstall.ts; then
echo "npm i succeeded on attempt $attempt"
exit 0
else
echo "node build/npm/postinstall.ts failed on attempt $attempt"
fi
else
echo "npm i failed on attempt $attempt"
fi
done
echo "giving up after 120 attempts (20 hours)"
exit 1
Install dependencies with retries
and(succeeded() eq(variables 'true'))
node build/npm/checkallowscripts.ts
Check NPM install script approvals
and(succeeded() eq(variables 'true'))
Restore registry URLs in packagelock.json
and(succeeded() ne(variables 'none') eq(variables 'true'))
.github/workflows/checkcleangitstate.sh
Check clean git state
and(succeeded() eq(variables 'true'))
node build/azurepipelines/updatedependenciescheck.ts
Update GitHub check run
always()
$(GITHUB_INSTALLATION_TOKEN)
$ parameters.GITHUB_CHECK_RUN_ID
$(Agent.JobStatus)