Commit Graph

538 Commits

Author SHA1 Message Date
Alex Dima
f0a7531832 Install bubblewrap and socat in Linux CI pipelines
These are required for terminal sandbox integration tests.
2026-03-22 01:49:00 +01:00
João Moreno
47b668e16d pin snapcraft docker image (#300704) 2026-03-11 08:51:04 +00:00
João Moreno
d2f1f7ce97 Inline Compile & CompileCLI stages into platform specific jobs (#296006)
* chore: ralph loop checkpoint - 2026-02-17 12:48

* fix shell script

* Inline compile stage into platform jobs

Remove the standalone Compile stage from the ADO pipeline. Each
platform job (Windows, Linux, macOS, Alpine, Web) now compiles
TypeScript itself instead of downloading a shared Compilation artifact.

- Add VSCODE_RUN_CHECKS parameter to Linux jobs for hygiene/lint/CG
- Add VSCODE_RUN_COMPILE_EXTRAS parameter to macOS jobs for telemetry
  extraction and sourcemap upload
- Remove VSCODE_COMPILE_ONLY parameter entirely
- Delete product-compile.yml (no longer referenced)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Always run telemetry extraction on macOS builds

The macOS Universal app merge requires both x64 and arm64 builds to have
identical file sets. Telemetry extraction was only running on arm64 (via
VSCODE_RUN_COMPILE_EXTRAS), causing the universal merge to fail due to
missing telemetry-core.json and telemetry-extensions.json in the x64 build.

Move telemetry extraction outside the VSCODE_RUN_COMPILE_EXTRAS gate so
it runs on all macOS builds. Sourcemap upload remains gated.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Run telemetry extraction on all client builds

All client builds (Linux, Windows, macOS) need telemetry-core.json and
telemetry-extensions.json. Previously only macOS arm64 ran extract-telemetry.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Only run telemetry extraction on Linux x64 (client build)

Linux arm64 and armhf are server-only builds, no need for telemetry files.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Remove .ralph scaffolding files

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Fix telemetry extraction on Windows with native PowerShell

The bash extract-telemetry.sh script fails on Windows because the Unix
bin shim gets interpreted as Node.js code. Use a native PowerShell
implementation that calls the extractor JS entry point directly.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Handle missing telemetry files gracefully on Windows

The telemetry extractor may skip emitting declarations-resolved.json
when no events are found. Handle this case with a warning instead of
failing the build.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Use deterministic build date from git commit timestamp

When each platform compiles independently, the build date embedded in
cli.js (via INSERT_PRODUCT_CONFIGURATION) differs between machines
because each uses new Date().toISOString(). This causes the macOS
Universal app merge to fail since cli.js SHA differs between x64/arm64.

Fix: use the git commit date (git log -1 --format=%cI HEAD) instead
of the current wall-clock time. This ensures all independent builds
on different machines produce identical timestamps.

Updated in:
- build/lib/date.ts: writeISODate() uses git commit date
- build/next/index.ts: bundle(), transpile, and readISODate fallback
  all use git commit date

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Remove redundant extensions-ci task from CI pipelines

core-ci (esbuild path) already includes cleanExtensionsBuildTask,
compileNonNativeExtensionsBuildTask, and compileExtensionMediaBuildTask.
Running extensions-ci in parallel caused a race condition where
core-ci's rimraf of .build/extensions clashed with extensions-ci
writing to the same directory.

Also removes dead code:
- extensions-ci and extensions-ci-pr task definitions (fully subsumed)
- core-ci-old task (useEsbuildTranspile is always true)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* remove VSCODE_RUN_COMPILE_EXTRAS

* address PR feedback regarding code duplication of `getGitCommitDate()` function by exporting a single helper function from `build/lib/date.ts` and importing it in `build/next/index.ts` to ensure consistent behavior and improve code maintainability.

* update readISODate function to return git commit date instead of current date

* add telemetry sorting script and integrate into build process for consistent output

* refactor telemetry extraction process: replace shell script with TypeScript implementation

* update skill

* update telemetry-extractor dependency to version 1.19.0

* fix build

* fix more duplicate telemetry definition issues

* cleanup

* refactor: consolidate validation checks into quality checks and remove obsolete tasks

* bust the cache

* undo cache bust

* fix expression

* fix

* fix: update Azure storage account name in quality checks

* fix: initialize stages set with 'Quality'

* fix: add VSCODE_BUILD_TYPE parameter with options for Product and CI builds

* fix: update Azure Pipeline CLI to use parameters instead of variables for queueing builds

* fix: update VSCODE_BUILD_TYPE parameter values for clarity

* fix: update default value for VSCODE_BUILD_TYPE parameter to 'Product'

* leaner

* even leaner

* only npm ci in build

* 💄

* run entire npm ci

* fix

* fix

* fix it

* Inline CompileCLI into platform stages

- Remove centralized CompileCLI stage
- Move CLI jobs into Windows, Linux, macOS stages as independent jobs
- CLI jobs now compile, publish unsigned mid-job, sign, and publish signed
- Platform compile jobs use deemon + waitForArtifacts for async CLI download
- Delete separate CLI sign jobs (now merged into CLI compile jobs)
- Remove CompileCLI from publish.ts stage tracking

* fix: macOS CLI signing - use proper directory structure for ESRP

* fix: add BUILDS_API_URL to Windows and Linux job templates

* fix: label Linux CLI jobs clearly

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: João Moreno <22350+joaomoreno@users.noreply.github.com>
2026-03-01 08:48:08 +01:00
Robo
b3669c244f ci: fix electron download from test steps (#292811)
* ci: fix electron download from test steps

* build: always repackage electron from oss entry scripts
2026-02-04 16:37:20 +01:00
Robo
67655b30f5 chore: bump electron@39.3.0 (#289985)
* chore: bump electron@39.3.0

* chore: update build

* chore: bump distro
2026-01-26 21:02:29 +00:00
Benjamin Pasero
fe665a91f6 watcher - update to latest version (#286484) 2026-01-09 07:07:37 +01:00
Ladislau Szomoru
dd65f0c5ef Engineering - switch from npm-run-all to npm-run-all2 (#284087)
* Introduce compilation error

* Engineering - limit the tasks that we run

* Limit available memory to simulate an OOM

* Try to update the task

* Remove the use of npm-run-all

* Fix script

* Another try

* Try npm-run-all2

* Restore tasks, keep npm-run-all2

* Switch from npm-run-all to npm-run-all2

* Revert changes that were used for testing
2026-01-05 15:49:42 +01:00
Benjamin Pasero
43b3987e74 debt - adopt @vscode/watcher with some newer fixes (#285247) 2025-12-29 03:57:05 -08:00
Robo
4c616ec9d1 chore: bump electron@39.2.7 (#283786)
* chore: bump electron@39.2.7

* chore: bump distro

* chore: update electron checksums
2025-12-16 13:57:53 +01:00
Matt Bierner
d9ef62084e Merge pull request #279218 from microsoft/dev/mjbvz/compatible-unicorn
Convert npm scripts to ts
2025-11-24 11:59:50 -08:00
Raymond Zhao
46d0e3c4ba chore: enable BinSkim on Linux (#278183) 2025-11-24 11:08:10 -08:00
Matt Bierner
72eee73887 Convert npm scripts to ts
For #277526

Converting last of the main build scripts to typescript
2025-11-24 11:05:23 -08:00
Robo
f35b832d60 chore: bump electron@39.2.3 (#278722)
* chore: bump electron@39.2.3

* chore: bump distro
2025-11-24 06:30:18 +00:00
Matt Bierner
f0e7fe3775 Convert a few more build scripts to TypeScript
For #277526
2025-11-21 09:26:54 -08:00
Matt Bierner
2648263d3e Run our build scripts directly as typescript (#277567)
* Run our build scripts directly as typescript #277567

Follow up on #276864
For #277526

* Remove a few more ts-node references

* Fix linux and script reference

* Remove `_build-script` ref

* Fix script missing closing quote

* use type only import

* Fix export

* Make sure to run copy-policy-dto

* Make sure we run the copy-policy-dto script

* Enable `verbatimModuleSyntax`

* Pipelines fixes

* Try adding explicit ext to path

* Fix bad edit

* Revert extra `--`

---------

Co-authored-by: João Moreno <joaomoreno@users.noreply.github.com>
2025-11-21 14:56:00 +01:00
João Moreno
911a41f96e Revert "Insider builds should have an auto increasing version number" (#278356)
Revert "Insider builds should have an auto increasing version number (#277497)"

This reverts commit 222fb55dd5.
2025-11-19 15:08:11 +01:00
João Moreno
222fb55dd5 Insider builds should have an auto increasing version number (#277497)
* wip

* more logs

* add bump-insiders-version.yml

* ok give this a try

* fix paths

* missing parameter

* ok

* fix

* fix CI

* hm

* rm

* fix appx version

* fix inno

* whoops

* update insiders version in compile job as well

* thanks @lszomoru
2025-11-17 17:21:33 +01:00
Robo
7ba6cc6685 chore: update electron@39.2.0 (#277706)
* chore: update electron@39.2.0

* chore: bump distro
2025-11-17 05:42:43 +01:00
Robo
d22a78ed50 ci: fix node_modules stage for PR builds (#277081) 2025-11-13 09:04:32 +00:00
Robo
f2531f1c56 chore: update to Electron 39 (#275786)
* chore: bump electron@39.0.0

* chore: update build

* chore: bump distro

* chore: update debian deps

* chore: exclude dlls from symbol scan

* chore: test with patch v8 headers

* chore: bump rpm dependencies

* chore: cleanup preinstall.js

* chore: bump electron@39.1.1

* chore: remove unsupported FontationsLinuxSystemFonts feature flag

* chore: bump electron@39.1.2

* chore: update nodejs build

* temp: update distro

* ci: fix location of preinstall invocation

* chore: bump distro
2025-11-13 08:25:14 +00:00
Paul
c2ad003d43 Enable Linux policy generation step in CI (#274847) 2025-11-03 13:06:54 -08:00
Matt Bierner
fe8fc75455 Pick up latest TS native preview
Fixes the emit for copyright headers
2025-10-28 09:18:27 -07:00
Ladislau Szomoru
c5b9423298 Engineering - add debug messages to verify that the SUID flag is removed from a file (#272175) 2025-10-19 11:21:05 -07:00
Ladislau Szomoru
a72525b82a Engineering - use sudo to remove the SUID bit (#271483) 2025-10-15 09:33:05 +00:00
Ladislau Szomoru
472fe20604 Engineering - fix hard link error during SBOM generation (#271469) 2025-10-15 08:32:15 +00:00
Ladislau Szomoru
4b8bd3cb6f Engineering - refactor product pipeline (#269979) 2025-10-06 11:12:40 +02:00
Robo
48a6c949aa chore: bump electron@37.5.1 (#268885)
* chore: bump electron@37.5.1

* chore: bump distro
2025-09-29 16:57:17 +00:00
Ladislau Szomoru
034e8a4bf4 Engineering - add node_modules stage to keep node_modules cache warm (#268839)
* Engineering - scaffold Windows jobs to maintain node_modules cache

* Add agent pool

* No need to extract node_modules

* Delete commented out code

* Add Linux jobs

* Add macOS job

* Add missing condition

* Add Web job

* Remove steps to download compilation output

* Fix condition for the node_modules stage

* Remove parameter

* Add Alpine jobs

* Remove the check to test the stage

* Switch macOS job to x64

* Restore the check for the node_modules stage

* Remove extraction
2025-09-29 13:55:31 +02:00
Ladislau Szomoru
8c58788416 Engineering - refactor Linux stage (#268828)
* Engineering - refactor Linux stage

* Declare outputs in the template context

* Add outputParentDirectory

* Tweak ouput directory

* More artifacts

* deb and rpm packages

* Fixing path

* Another attempt to fix the path

* Add back the rpm gulp task

* Enable snap package

* Add template for ci jobs

* Test ci jobs

* Add default values for parameters

* Restore the correct check
2025-09-29 12:43:54 +02:00
Ladislau Szomoru
bb58370bb2 Engineering - tweak repository checkout task (#267213)
* Engineering - limit the checkout for the publish and release stages

* Tweak checkout for each job

* Fix path
2025-09-17 16:30:05 +02:00
Ladislau Szomoru
8b03d13e2e Engineering - pipeline improvements (#267130)
* Engineering - try things out

* Use parameters.sbomEnabled instead

* Windows CLI - disable SBOM creation

* macOS CLI - disable SBOM creation

* Remove the isProduction template parameter
2025-09-17 00:05:39 +00:00
Ladislau Szomoru
8e7ae9a3b5 Engineering - mark test artifacts as non-production (#266146)
* Engineering - disable SDL tasks for non-production artifacts

* Engineering - set isProduction for test artifacts
2025-09-11 07:12:40 +00:00
João Moreno
8d7e69612d revert back to official nodejs mirror (#265692)
maybe the issue is gone by now 🤞:
- https://github.com/microsoft/azure-pipelines-tasks/issues/18280
- https://github.com/nodejs/nodejs.org/issues/4495
2025-09-08 17:14:10 +00:00
João Moreno
6c5f088d17 allow skipping linux snap (#265311)
* allow skipping linux snap

* fix ci
2025-09-05 10:30:38 +00:00
João Moreno
0ec8ac6438 Check for artifact existence before publishing (#263777)
* Refactor artifact publishing steps to use a common template across all build configurations

* Refactor conditions in publish artifact template

* typo

* whops

* fix msg

* hm
2025-08-29 15:49:34 +02:00
Robo
35173c1de1 Revert "ci: always generate artifact prefix (#263738)" (#263764)
This reverts commit 502526da29.
2025-08-28 08:31:42 +00:00
Robo
502526da29 ci: always generate artifact prefix (#263738) 2025-08-28 07:22:41 +02:00
Robo
9d7c34c96a chore: update electron@37.3.1 (#263552)
* chore: update electron@37.3.1 (#262877)

* chore: update electron@37.3.1

* chore: remove workaround for npm scripts argument parsing

Refs f99aa748c0

* chore: update node.js@22.18.0

* temp: bump distro

* chore: bump distro
2025-08-27 13:08:07 +00:00
Raymond Zhao
80c270d20f Revert "chore: update electron@37.3.1" (#263488)
Revert "chore: update electron@37.3.1 (#262877)"

This reverts commit ad0b5d23c1.
2025-08-26 23:04:57 +00:00
Robo
ad0b5d23c1 chore: update electron@37.3.1 (#262877)
* chore: update electron@37.3.1

* chore: remove workaround for npm scripts argument parsing

Refs f99aa748c0

* chore: update node.js@22.18.0

* chore: bump distro
2025-08-26 15:40:21 +02:00
Ladislau Szomoru
cb596f81ac Engineering - cleanup pull request ADO pipeline (#262276)
* Initial implementation

* Fix indentation
2025-08-19 11:25:14 +02:00
Matt Bierner
12a275ffe7 Use ts-native to compile our build scripts
There are a few minor differences in output, mostly around formatting/comments. Const enums are also not inlined but that seems fine in these cases
2025-08-06 11:41:52 -07:00
Robo
10575e19aa (partial revert) ci: remove install build dependencies step on linux (#257064) 2025-07-21 11:25:26 +00:00
Robo
8c19263c57 (reland) chore: update to Electron 37 (#256905)
* chore: update to Electron 37 (#256287)

* chore: update electron@36.5.0

* chore: update node.js builds

* chore: update electron@37.0.0

* chore: update rpm deps

* chore: bump electron@37.2.0

* chore: bump nodejs@22.17.0

* temp: update distro

* chore: bump .nvmrc

* chore: bump distro

* chore: bump electron@37.2.3

* chore: bump distro

* chore: update electron build
2025-07-21 12:37:44 +02:00
Robo
b37c013d08 ci: remove install build dependencies step on linux (#257050) 2025-07-21 09:38:54 +00:00
Matt Bierner
3059a176b1 Revert "chore: update to Electron 37 (#256287)"
This reverts commit 9f4784d4bb.
2025-07-17 16:27:56 -07:00
Robo
9f4784d4bb chore: update to Electron 37 (#256287)
* chore: update electron@36.5.0

* chore: update node.js builds

* chore: update electron@37.0.0

* chore: update rpm deps

* chore: bump electron@37.2.0

* chore: bump nodejs@22.17.0

* temp: update distro

* chore: bump .nvmrc

* chore: bump distro
2025-07-17 18:10:54 +00:00
Robo
6947b69d47 fix: revert remote libcxx requirement to 3.4.25 (#248976)
* fix: revert libcxx requirement to 3.4.25

* ci: temp debugging

* fix: use gcc 8.5.0 for remote

* ci: update cache

* ci: fix sysroot directory

* ci: fix objdump directory
2025-05-14 20:10:32 -07:00
Robo
12326f9906 chore: update to Electron 35 (#245423)
* chore: bump electron@35.0.1

* chore: update types/node@22.x

* chore: update web types for node v22.x

* chore: bump electron@35.1.2

* chore: update node.js build

* chore: update app.dock usage

Refs 71f3ff6bf2

* chore: bump electron@35.1.4

* chore: bump electron@35.1.5

* ci: bump sysroot to glibc 2.28 and gcc 10.5.0

* ci: enable timeout for smoketests

* chore: bump min glibcxx to 3.4.26 for server

* Revert "ci: enable timeout for smoketests"

This reverts commit afb637e85d.

* chore: update debian dependencies

* fix: workaround npm.ps1 argument parsing with powershell

* chore: update rpm dependencies

* test: partially revert changes from 242535

* test: remove redudant keybinding dispatch for selectTab

* test: fix test failure from running configured tasks

* test: focus settings editor for preferences.test.ts

* node - adopt compile cache (#246835)

* node - adopt compile cache

* adopt for utility process

* tweaks

* log state of compilation cache

* Revert "log state of compilation cache"

This reverts commit f3840387a583013834762e2c44f6e8424929297f.

* Revert "node - adopt compile cache (#246835)"

This reverts commit 673a00cab66c9bac87f3cd27b80efa41c80150f1.

* chore: update builds

* chore: bump electron@35.2.0

* chore: bump electron@35.2.1

* chore: bump electron@35.2.2

---------

Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
2025-05-09 19:03:36 +09:00
Ladislau Szomoru
1799c2beaa Engineering - refactor codesign scripts (#246459)
* Engineering - consolidate codesign scripts

* Try using a script task

* Switch back to old syntax

* Bump deemon
2025-04-14 09:13:45 +02:00