Commit Graph

32 Commits (9e688d92ba078562ea6ef6ccc94cf06ed9e67748)

Author SHA1 Message Date
Benjamin Pasero 332b89f198
esm - remove AMD build scripts, tests and variables 2024-09-27 08:04:01 +02:00
Robo b5a6aa14a8
feat: switch to npm as default package manager (#226927)
* feat: move from yarn to npm

* chore: skip yarn.lock files

* fix: playwright download

* chore: fix compile and hygiene

* chore: bump vsce@2.17.0

Refs 8b49e9dfdf

* test: update results for bat and sh colorizer tests

* fix: add missing lock files for windows

* fix: switch to legacy-peer-deps

* chore: update markdown-it@14.1.0

Refs 737c95a129

esbuild step in extensions-ci-pr was previously using markdown-it
from root which had userland punycode and was able to compile successfully.

* ci: increase pr timeout for windows integration tests

* chore: fix product build

* build: ignore extension dev dependency for rcedit

* build: fix working directory inside container

* build: fix dependency generation

* npm: update dependencies

* ci: use global npmrc

* ci: update cache

* ci: setup global npmrc for private npm auth

* build: fix extension bundling

* chore: sync npm dependencies

* ci: debug env variables for container

* ci: fix win32 cli pipeline

* build: fix npmrc config usage for build/ and remote/ dirs

* fix: windows build

* fix: container builds

* fix: markdown-language-features tests and bundling

```
[03:58:22] Error: Command failed: /Users/demohan/.nvm/versions/node/v20.15.1/bin/node /Users/demohan/github/vscode/extensions/markdown-language-features/esbuild-notebook.js --outputRoot /Users/demohan/github/vscode/.build/extensions/markdown-language-features
✘ [ERROR] Could not resolve "punycode"

    extensions/markdown-language-features/node_modules/markdown-it/lib/index.js:14:27:
      14 │ var punycode     = require('punycode');
         ╵                            ~~~~~~~~~~

  The package "punycode" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
```

Adds userland package based on beed9aee2c

* fix: container builds for distro

* chore: update yarn occurrences

* fixup! chore: bump vsce@2.17.0

Uses the closest version to `main` branch that does not
include d3cc84cdec
while still having the fix 8b49e9dfdf

* chore: sync npm dependencies

* chore: sync npm dependencies

* chore: sync npm dependencies

* chore: throw error when yarn is used for installation

* chore: add review feedback

* chore: switch exec => run where needed

* chore: npm sync dependencies

* fix: markdown-language-features bundling

```
✘ [ERROR] Could not resolve "punycode"

    extensions/markdown-language-features/node_modules/markdown-it/lib/index.js:14:27:
      14 │ var punycode     = require('punycode');
         ╵                            ~~~~~~~~~~

  The package "punycode" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
```

Adds missing userland package based on markdown-it/markdown-it@beed9ae,
can be removed once we update markdown-it >= 14.1.0

* ci: rename no-yarn-lock-changes.yml

* chore: sync npm dependencies

* ci: restore no-yarn-lock-changes.yml

We can disable it in a separate PR to keep the required
checks happy and also need workflow edit perms.

* chore: sync npm dependencies

* ci: rebuild cache

* ci: fix no-package-lock-changes.yml

* chore: bump distro

* chore: rm yarn.lock files

* chore: rm yarn.lock files without dependencies

* chore: add vscode-selfhost-import-aid to postinstall dirs

* chore: bump distro
2024-09-06 22:18:02 +09:00
Ladislau Szomoru 004f8bd0a6
Engineering - update OSS build agent pool (#227195)
* Engineering - use windows-2022 for OSS build

* Engineering - update ubuntu agent pool
2024-08-30 17:00:26 +02:00
Benjamin Pasero 6b924c5152
ESM merge to main (#227184)
Co-authored-by: Johannes Rieken <jrieken@microsoft.com>
Co-authored-by: Alexandru Dima <alexdima@microsoft.com>
2024-08-30 10:31:46 +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
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
João Moreno a044e57b07
still run tests on win32-ia32, but make them optional to pass (#187474)
* still run tests on win32-ia32, but make them optional to pass

* hm

* ok

* try this
2023-07-11 14:29:02 +02:00
Ladislau Szomoru 9d486269f1
Engineering - update agent pool (#179190) 2023-04-04 23:32:22 +02:00
Ladislau Szomoru 48d3110be1
Engineering - update OSS build agents (#179099)
Update build agents
2023-04-04 10:24:50 +02:00
João Moreno 1cbef3e6ce
Fix CI (#178944)
* fixed CI

* to revert: fake VSCODE_CIBUILD

* fix darwin build

* Revert "to revert: fake VSCODE_CIBUILD"

This reverts commit f9d5378c8b.

* why devops

* devops and variables are weird

* fix pr build

* fix macos
2023-04-03 15:14:08 +09:00
João Moreno aac80c3f0a
Adopt new distro format (#178689)
* Simplify distro

Also a ton of drive-by fixing around builds:
- simplified many oneliners
- fixed missing custom npm registry call setups
- remove unnecessary and duplicate work during builds
- many many fixes
2023-04-02 09:35:39 +02:00
Ladislau Szomoru 9d5de75930
Engineering - Create Windows job to maintain cache (#169675)
Create Windows job to maintain cache
2022-12-20 21:18:53 +01:00
Ladislau Szomoru e1b6f8f9a5
Engineering - Add Windows test jobs to PR pipeline (#169627)
* Add Windows test jobs

* Comment out Windows smoke tests
2022-12-20 12:30:58 -07:00
Ladislau Szomoru b757c8e3ca
Engineering - Pin macOS build agent (#164455)
Pin macOS build agent
2022-10-24 06:38:26 -07:00
João Moreno 8fe6f3e917
Allow custom npm registries at build time (#163629)
* use azure artifacts as new terrapin solution

* debug

* skip npm auth

* bring back

* also configure yarn

* custom npm registry

* oops

* powershell

* use none instead of empty string

* uff
2022-10-24 09:24:44 +02:00
Connor Peet 450f8e65b6
run cli tests on pr 2022-10-17 09:56:15 -07:00
Connor Peet b42f25b50b
address pr comments 2022-10-11 08:30:43 -07:00
Connor Peet ebd59363f0
Merge branch 'build-integrated-cli-dev' into build-integrated-cli 2022-10-10 19:13:08 -07:00
Connor Peet cbc174dcad
Merge remote-tracking branch 'origin/main' into build-integrated-cli 2022-10-05 10:00:18 -07:00
Ladislau Szomoru 7ff04babc6
Revert "Engineering - use specific image version (#160878)" (#162052)
This reverts commit 924d7622fa.
2022-09-28 09:49:59 +02:00
Connor Peet a9bcb15b75
cli: run ci on pr 2022-09-23 14:31:37 -07:00
Ladislau Szomoru 924d7622fa
Engineering - use specific image version (#160878) 2022-09-14 09:14:46 +02:00
Ladislau Szomoru 8ced34cb31
Engineering - unify all Code OSS pipeline jobs (#156552) 2022-07-28 12:38:45 +02:00
Ladislau Szomoru 96c1ab3fa9
Engineering - Add missing variable to cache maintenance job (#156540)
Add missing variable to cache maintenance job
2022-07-28 09:25:22 +02:00
Ladislau Szomoru 36a09b3cd2
Engineering - Tactical change so that we do not run the Test stage for CodeOSS CI builds (#155829) 2022-07-21 13:30:17 +02:00
Ladislau Szomoru 34f1bc679d
Engineering - update Code OSS pipeline (#155610) 2022-07-19 13:40:33 +00:00
Ladislau Szomoru 2be99473d5
Engineering - execute tests in parallel for the CI build (#151593) 2022-06-10 04:35:28 -07:00
Ladislau Szomoru 986ef1c76d
Disable Terrapin for OSS builds (#150374) 2022-05-25 13:43:11 +00:00
Ladislau Szomoru d1f882f635
Engineering - Exploration to run tests in parallel (#149698) 2022-05-18 10:37:44 +02:00
Ladislau Szomoru f2380f2c90
Engineering - Run PR pipeline for the main branch (#149700)
* Add trigger for the main branch

* Add trigger for release branches
2022-05-17 12:49:52 +02:00
Ladislau Szomoru 83213f7bac
Switch agent pools (#149691) 2022-05-17 10:42:31 +02:00
Ladislau Szomoru 2a9f19d36f
Engineering - create pull request pipeline (#149171) 2022-05-11 03:08:54 -07:00