Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
parameters:-name: VSCODE_RUN_ELECTRON_TESTS
type: boolean
-name: VSCODE_RUN_BROWSER_TESTS
type: boolean
-name: VSCODE_RUN_REMOTE_TESTS
type: boolean
steps:-script: npm exec -- npm-run-all2 -lp "electron $(VSCODE_ARCH)" "playwright-install"
env:GITHUB_TOKEN:"$(github-token-code-oss)"AZURE_DEVOPS_EXT_PAT: $(System.AccessToken)
displayName: Download Electron and Playwright
retryCountOnTaskFailure:3-script:|
set -e
APP_ROOT=$(agent.builddirectory)/VSCode-linux-$(VSCODE_ARCH)
ELECTRON_ROOT=.build/electron
sudo chown root $APP_ROOT/chrome-sandbox
sudo chown root $ELECTRON_ROOT/chrome-sandbox
sudo chmod 4755 $APP_ROOT/chrome-sandbox
sudo chmod 4755 $ELECTRON_ROOT/chrome-sandbox
stat $APP_ROOT/chrome-sandbox
stat $ELECTRON_ROOT/chrome-sandbox
Change setuid helper binary permission
$ if eq(parameters.VSCODE_RUN_ELECTRON_TESTS true)
./scripts/test.sh build tfs "Unit Tests"
🧪 Run unit tests (Electron)
🧪 Run unit tests (node.js)
$ if eq(parameters.VSCODE_RUN_BROWSER_TESTS true)
npm run testbrowsernoinstall build browser chromium tfs "Browser Unit Tests"
🧪 Run unit tests (Browser Chromium)
Build integration tests
$ if eq(parameters.VSCODE_RUN_ELECTRON_TESTS true)
$(agent.builddirectory)/vscodeserverlinux$(VSCODE_ARCH)
🧪 Run integration tests (Electron)
$ if eq(parameters.VSCODE_RUN_BROWSER_TESTS true)
./scripts/testwebintegration.sh browser chromium
$(agent.builddirectory)/vscodeserverlinux$(VSCODE_ARCH)web
🧪 Run integration tests (Browser Chromium)
$ if eq(parameters.VSCODE_RUN_REMOTE_TESTS true)
$(agent.builddirectory)/vscodeserverlinux$(VSCODE_ARCH)
🧪 Run integration tests (Remote)
Diagnostics before smoke test run (disk space processes max_user_watches number of opened file handles)
succeededOrFailed()
$ if eq(parameters.VSCODE_RUN_ELECTRON_TESTS true)
$(Agent.TempDirectory)
🧪 Run smoke tests (Electron)
$ if eq(parameters.VSCODE_RUN_BROWSER_TESTS true)
npm run smoketestnocompile web tracing headless
$(agent.builddirectory)/vscodeserverlinux$(VSCODE_ARCH)web
$(Agent.TempDirectory)
🧪 Run smoke tests (Browser Chromium)
$ if eq(parameters.VSCODE_RUN_REMOTE_TESTS true)
$(Agent.TempDirectory)
🧪 Run smoke tests (Remote)
Diagnostics after smoke test run (disk space processes max_user_watches number of opened file handles)
succeededOrFailed()
$ if eq(parameters.VSCODE_RUN_ELECTRON_TESTS true)
../../copilot/testintegrationsteps.yml@self
linux
PublishTestResults@2
Publish Tests Results
succeededOrFailed()
# Figure out the full absolute path of the product we just built
# including the remote server and configure the integration tests
# to run with these builds instead of running out of sources.
set -e
APP_ROOT=$(agent.builddirectory)/VSCode-linux-$(VSCODE_ARCH)
APP_NAME=$(node -p "require(\"$APP_ROOT/resources/app/product.json\").applicationName")
INTEGRATION_TEST_APP_NAME="$APP_NAME" \
INTEGRATION_TEST_ELECTRON_PATH="$APP_ROOT/$APP_NAME" \
./scripts/test-integration.sh --build --tfs "Integration Tests"
set -e
df -h
# Break down what is occupying the small OS root disk (`/`). The `-x` flag
# keeps `du` on the root filesystem so it does not descend into the large
# `/mnt` work volume. This identifies the directory that fills `/` and
# crashes the agent worker with "No space left on device".
echo "--- top consumers on / ---"
du -xhd1 / 2>/dev/null | sort -rh | head -30 || true
echo "--- top consumers under \$HOME ---"
du -xhd1 "$HOME" 2>/dev/null | sort -rh | head -30 || true
echo "--- top consumers under /tmp ---"
du -xhd1 /tmp 2>/dev/null | sort -rh | head -30 || true
echo "--- top consumers under /var ---"
du -xhd1 /var 2>/dev/null | sort -rh | head -30 || true
ps -ef
cat /proc/sys/fs/inotify/max_user_watches
lsof | wc -l
displayName
:
,
,
,
continueOnError
:
true
condition
:
-
{
{
,
}
}
:
-
script
:
|
set -e
npm run smoketest-no-compile -- --tracing --build "$(agent.builddirectory)/VSCode-linux-$(VSCODE_ARCH)"
env
:
# Keep the smoke test data dir (user-data, extensions, workspace and the
# Copilot CLI session state under `os.tmpdir()`) on the large work volume
# instead of the small OS root disk (`/tmp`), which has filled up and
# crashed the agent worker with "No space left on device".
TMPDIR
:
timeoutInMinutes
:
20
displayName
:
-
{
{
,
}
}
:
-
script
:
-
-
-
-
-
-
-
-
-
-
env
:
VSCODE_REMOTE_SERVER_PATH
:
-
-
-
-
TMPDIR
:
timeoutInMinutes
:
20
displayName
:
,
-
{
{
,
}
}
:
-
script
:
|
set -e
APP_PATH=$(agent.builddirectory)/VSCode-linux-$(VSCODE_ARCH)
VSCODE_REMOTE_SERVER_PATH="$(agent.builddirectory)/vscode-server-linux-$(VSCODE_ARCH)" \
npm run smoketest-no-compile -- --tracing --remote --build "$APP_PATH"
env
:
TMPDIR
:
timeoutInMinutes
:
20
displayName
:
-
script
:
|
set -e
df -h
# Same root-disk breakdown as the "before" step so the delta attributable to
# the smoke run itself is visible, plus the smoke test data dirs explicitly.
echo "--- top consumers on / ---"
du -xhd1 / 2>/dev/null | sort -rh | head -30 || true
echo "--- top consumers under \$HOME ---"
du -xhd1 "$HOME" 2>/dev/null | sort -rh | head -30 || true
echo "--- smoke test data dirs ---"
du -sh "$(Agent.TempDirectory)"/vscsmoke-* /tmp/vscsmoke-* 2>/dev/null || true
ps -ef
cat /proc/sys/fs/inotify/max_user_watches
lsof | wc -l