Commit Graph

88 Commits

Author SHA1 Message Date
Ladislau Szomoru
3e3ac65d3c Engineering - another cache key update (#295268) 2026-02-13 23:03:52 +00:00
Ladislau Szomoru
9d91c023b7 Engineering - update cache key (#295259) 2026-02-13 22:17:49 +00:00
Ladislau Szomoru
ea22b3498d Engineering - use sccache during the cli build (#295241) 2026-02-13 12:35:50 -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
Ladislau Szomoru
4b8bd3cb6f Engineering - refactor product pipeline (#269979) 2025-10-06 11:12:40 +02:00
Ladislau Szomoru
a4838b9ffd Engineering - update rust toolchain (#268270) 2025-09-25 08:07:20 -07:00
Ladislau Szomoru
3dbf54100c Engineering - cleanup Windows CLI jobs (#268267)
* Engineering - move Windows CLI jobs into the template

* Rename files

* Declare output in the template context

* Refactor job template

* Move files around

* Move files around

* Fix path

* Another try

* Revert "Another try"

This reverts commit ac1f1ad2df.

* Some more paths to fix
2025-09-24 22:50:36 -07:00
Ladislau Szomoru
61d114ddc1 Engineering - pipeline perf improvements (#268041)
* Engineering - declare compilation stage output

* Fix typo

* Declare artifacts

* Mark compilation output as non-production

* Remove condition for testing purposes

* Move declaration

* Comment out test related logs

* Upload test logs

* Add the comment back

* Remove code that is commented out

* Trying to switch to one artifact

* Add back all outputs

* Consistent outputs

* Add output parent directory

* Add more artifacts

* Move things around

* Add outputs to the CI jobs

* Switch over the CLI job

* Adjust sbomPackageName for CLI

* Restore the for loop

* More improvements to the CLI job

* Fix SBOM path

* Remove commented out tasks

* Fix atrifact names for the CI build

* Update target path
2025-09-23 14:49:19 -07: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
Ladislau Szomoru
cb596f81ac Engineering - cleanup pull request ADO pipeline (#262276)
* Initial implementation

* Fix indentation
2025-08-19 11:25:14 +02:00
Ladislau Szomoru
5d1942a398 Engineering - refactor macOS stage (#246059)
* WIP - fold sign steps into the jobs

* Speed up compilation

* Add back tasks

* Remove tasks that are not needed

* Update folder

* Fix universal job

* More work

* Improve script

* Improve logging

* More logging tweaks

* Another fix for the script

* Add back CLI job and run tests

* Fix pipeline condition

* Move testing to the ARM64 stage

* Update Codesign task names

* Run tests after publishing unsigned packages

* Background codesign

* Use bash when running background signing

* Another attempt

* Add error handling to script

* Add more logging

* .

* Pull request feedback

* More feedback

* Remove signature verification condition

* Delete tasks that are not needed

* Fix task display name

* Use VSCODE_ARCH parameter

* Update task display name
2025-04-09 11:22:35 +00:00
Robo
dc88adbd48 ci: cross compile alpine arm64 cli (#245969) 2025-04-08 21:24:40 +09:00
Ladislau Szomoru
5631ffb317 Engineering - update test task display name (#245847) 2025-04-07 10:44:58 +02:00
Raymond Zhao
df6adbae7c Onboard onto 1ES template's BinSkim (#243374)
* Exclude Windows setup files from BinSkim

* Debug: Scan everything but with TSA off

* Narrow analyzeTargetGlob

* Scan node and DLL files as well

* Try excluding BinSkim from CustomSDL

* Re-enable TSA

* Clean up

* Rename CustomSDL stage and job
2025-03-12 11:42:19 -07:00
Robo
31ec1c528f build: remove legacy server support (#235232)
* build: remove legacy server support

* chore: update rpm dependencies

* chore: fix publishing

* cli: provide option for unsupported glibc sysroot

* chore: add unsupported mode to prereq check

* chore: add logging

* chore: add comment about patchelf execution order
2025-03-10 17:54:23 +01:00
Connor Peet
3331d2d87d chore: update to rust 1.85 (#242609) 2025-03-04 21:58:23 +01:00
João Moreno
dfe78a1fb9 use WIF for Codesign (#233908)
* use WIF for Codesign

* fix indentation

* fix tasks
2024-11-15 22:16:31 +01:00
João Moreno
0244c5edf7 move to new esrp service connection (#233591) 2024-11-11 12:52:05 -08:00
Raymond Zhao
6dd48ce0e4 chore: publish symbols to SymWeb (#233133) 2024-11-06 11:18:35 -08:00
João Moreno
a46559966e move to new service connection, remove deprecated storage account upload (#233191) 2024-11-06 14:57:38 +01:00
Raymond Zhao
d3bb5dd92f chore: publish symbols internally (#231869) 2024-10-21 20:55:36 +02:00
Raymond Zhao
4428a025b2 chore: add BinSkim for CLI (#231543) 2024-10-17 09:17:44 -07:00
Connor Peet
2e4bae90c6 cli: update rs to avoid arm64 bug 2024-09-09 09:18:56 -07:00
Ladislau Szomoru
310f0a3d85 Engineering - upgrade AzureKeyVault task (#227191) 2024-08-30 11:10:44 +02:00
Robo
a02f3c923d cli: restrict pkg config search directory to sysroot (#219572) 2024-07-01 19:59:38 +02:00
Robo
d3035ba351 ci: disable cli glibc checks (#219327) 2024-07-01 09:26:45 +02:00
Connor Peet
6813d7ccbc chore: update to rust 1.77 (#209563)
* chore: update to rust 1.77

* fix tests
2024-04-04 20:34:01 +02:00
João Moreno
e5515ac702 Adopt 1ES PT (#207844)
* extend 1es pipeline template

* oops

* fix template references

* argh

* hmm

* hm

* hm

* use outputs for compilation artifact

* this

* use 1ES.PublishPipelineArtifact@1 instead of publish

* more 1ES.PublishPipelineArtifact@1 adoption

* provide windows pool for sdl sources

* sdl

* fix pools

* fix macos

* disable sbom for intermediate artifacts

* use mariner linux

* try inline tsa options

* fix credscan

* hm

* sudo it

* more suppressions

* be explicit with SBOM build drop paths

* fix indentation

* fix file extensions

* fix cli sbom build drop paths

* fix more build

* fix unzip cli

* careful with _manifest in artifacts

* do not close file

* add logging

* debug

* use snapcraft container

* remove size check

* fix macos cli step

* fix snap permissions

* fix macos

* better logs

* fix snap

* more cred scan suppressions

* even more supressiong

* alpine-arm64: try using x64

* Revert "alpine-arm64: try using x64"

This reverts commit bf2003bf60.

* test docker

* I wonder

* logs

* hm

* fix indentation

* hm

* hm

* fix snap finds

* remove auth

* use hostArchitecture

* snap: limit find

* hm

* sudo

* Add validateToolOutput: None to the build pipeline

* bring back sdl-scan

* try all tools: true

* use release

* Update Azure Pipelines YAML file for Linux product build and test

* hm

* hm

* same for win32

* hm

* hm

* Revert "hm"

This reverts commit 1b9dcae85b.

* use branch

* fix template file

* fix template paths
2024-03-21 14:16:32 +01:00
Robo
9db1b0571e fix: sysroot used for client (#204559) 2024-02-07 05:50:23 +01:00
Robo
8a98afa440 chore: legacy server cleanups (#204501)
* fix: revert glibc requirements for tunnel cli

* chore: address feedback on wording

* fix: only store state when user allows the prompt

* chore: update checksums for sysroot

* fix: store connection choice per distro

* update rpm deps-list

---------

Co-authored-by: Connor Peet <connor@peet.io>
2024-02-07 10:14:41 +09:00
Connor Peet
3ad2e082c5 eng: group cli build vs publish steps (#203920)
Fixes #203871
2024-01-31 11:22:50 -08:00
Connor Peet
fde80ce4fb eng: fix missing rustup command in build (#203462)
Only call rustup when explicitly installing
2024-01-25 17:56:24 +01:00
Robo
f87fb292c3 ci: fix missing auth token for cli build (#200714) 2023-12-13 08:27:54 +01:00
Robo
e7b5076dd7 refactor: use sysroots on linux prod pipeline (#192513)
* ci: use sysroots on linux prod pipeline to build native modules

* ci: rebuild after electron update
2023-12-12 11:39:00 +01:00
João Moreno
0b111a09a1 Publish to new CDN (#198154) 2023-11-16 07:19:59 +01:00
Raymond Zhao
880cb517e1 Add more SBOMs (#195736) 2023-10-17 15:55:55 -07:00
Raymond Zhao
18a25cd5d6 Clarify pipeline actions (#195197) 2023-10-11 09:05:00 -07:00
Connor Peet
2e37be2160 Adopt Terrapin / msrustup for the CLI (#188732)
* cli: use terrapin for cli builds

* update rust to 1.70 to allow ado artifacts feed on windows

* apparently manaul cargo login is required

* use msrustup

* rustup is no longer user

* update to 1.73

* add rust oss install
2023-10-08 17:18:22 -07:00
Connor Peet
76985ae781 build: fix alpine cli build (#190266) 2023-08-11 17:27:41 +01:00
Connor Peet
52840e3ca5 cli: cleanup build (#190213)
- Remove the `prepare` script entirely
- Variables are now populated from the product.json during build. Most
  variables are mapped automatically, with some special handling in a
	few cases. `build.rs` is now much more self-contained.
- Look for the `product.overrides.json` for vscode developers instead of
  looking for a peer `vscode-distro` folder

Fixes #178691
2023-08-10 20:14:30 -07:00
Connor Peet
0d22bb7efa cli: update dependencies for s360 (#189562)
* cli: update dependencies for s360

* update rust
2023-08-03 18:05:46 +01:00
Connor Peet
ef8b1483fc build: use new cli patch method (#187629) 2023-07-11 13:47:08 -07:00
Connor Peet
49535d6a04 build: fix missing param for build (#184660) 2023-06-09 01:10:08 +02:00
Connor Peet
e686621e2e cli: avoid running prepare a second time in ci (#184558) 2023-06-08 02:22:44 +02:00
Connor Peet
9de813729c build: install clippy when building cli in ci (#184554) 2023-06-07 16:40:30 -07:00
Connor Peet
43742d891d Run a lint build of the CLI in CI (#184545)
* cli: adopt sccache for speedier cli compilations

* only cache common linux x64 build

* instead, only dev compile/clippy lint in ci
2023-06-07 15:48:55 -07:00
Connor Peet
eb44b5ef6c build: don't apply cli 'patches' for merge check (#184210)
* build: don't apply cli 'patches' for merge check

This also needed modules installed. But with the new toml patches, the 'merge' will never fail outright, so there's no need to do a separate merge check for it imo

* reduce duplication in pipelines, cache node_modules
2023-06-02 22:29:48 +02:00
Connor Peet
d3d9f86116 cli: store cli in user data dir, separate per quality (#182102)
* cli: store cli in user data dir, separate per quality

Fixes #181017

On first run, the `~/.vscode-cli` will be migrated inside the user data dir of the currently running quality.

* use create_dir_all instead

* clippy fixes
2023-05-10 13:09:23 -07:00
Martin Aeschlimann
dad6ca32fc adopt tunnel mutex name change (#180524) 2023-04-21 17:49:10 +02:00
Connor Peet
ca9404bd2f cli: read tunnel lock from product.json (#179800)
Fixes #179265
2023-04-12 18:52:37 +01:00