Commit Graph

133 Commits (cdfd702e2f021df12d8cd8c18f6ed1720a1a5c9a)

Author SHA1 Message Date
João Moreno 7ed772b8b0
remove retry at publish time (#236070)
fixes #236067
2024-12-13 16:50:04 +01:00
João Moreno 714dc6d804
fix concurrency in publish stage (#235411)
* 💄

* use blob leases to prevent artifact overwriting

* more logs

* 💄
2024-12-06 09:09:00 +01:00
João Moreno b4f2157f05
log when asset already exists in DB (#234885) 2024-11-29 11:07:41 +01:00
João Moreno dcd24d94a9
💄 (#234417) 2024-11-22 14:16:40 +01:00
João Moreno 9086857624
update esrp params (#234407) 2024-11-22 10:49:51 +01:00
João Moreno 3175b54dd4
update sign codes (#234183) 2024-11-19 14:37:05 +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 681164aaaa
Move to auth cert for Release service (#233841)
* wip

* move to auto provisioning, only cert based auth

* k

* missing compilation

* remove console logs

* extract get publish auth tokens, wait 5 seconds before polling for release
2024-11-15 11:54:43 +01:00
João Moreno f0a0037891
use longer lived access tokens for cosmosdb auth (#233255) 2024-11-07 06:43:11 +01:00
João Moreno 1f8fd7adef
use oidc (#233126)
* use oidc

* undo dep bump

* use ClientAssertionCredential

* temporarily disable mangle

* adopt oidc
2024-11-05 21:50:01 +01: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
Robo 1835a67cb6
ci: publish win32 arm64 server (#224929) 2024-08-06 14:57:22 +02:00
Benjamin Pasero af5cf640d8
🆙 `"@playwright/test": "^1.45.0"` (#219324) 2024-07-01 12:23:41 +02:00
João Moreno b40321263d
fix legacy builds (#208314)
* fix legacy builds

* update regex

* extra ?

* argh
2024-03-21 17:25:26 +01: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 5e0394c8d1
fix: don't package detection script in legacy server (#208274)
* fix: don't package detection script in legacy server

* chore: address review feedback

* chore: rename download asset name
2024-03-21 14:11:57 +01:00
Robo 1413fc87a7
feat: create and upload legacy remote server (#204139) 2024-03-18 11:09:55 +01:00
Matt Bierner 6403b4367b
Pick up latest TS for building VS Code (#207096) 2024-03-07 12:59:59 -08:00
Matt Bierner 920a3a701e
Pick up latest TS for building VS Code (#206264) 2024-02-26 19:56:20 +01:00
Logan Ramos 5303197950
Update type guard (#204763) 2024-02-08 20:37:39 +01:00
Logan Ramos 2033eae5af
Allow publishing retry (#204758)
* Allow publishing retry

* Update build/azure-pipelines/common/publish.ts

Co-authored-by: Raymond Zhao <7199958+rzhao271@users.noreply.github.com>

* Update build/azure-pipelines/common/publish.ts

Co-authored-by: Raymond Zhao <7199958+rzhao271@users.noreply.github.com>

* Compile

---------

Co-authored-by: Raymond Zhao <7199958+rzhao271@users.noreply.github.com>
2024-02-08 20:00:44 +01:00
Logan Ramos 884acabd70
When receiving an unexpected status code also add information surrounding the headers and body (#204741)
* When receiving an unexpected status code also add information surrounding the headers and body

* Add compiled file
2024-02-08 18:28:40 +01:00
Connor Peet 2a9a0a06f8
end: use a better hash for built-in cache key (#203033)
For CodeQL
2024-01-22 17:17:58 +01:00
Alexandru Dima cea4eee18a
Use sha256 (resolves CodeQL warning) (#201978)
* Use sha256 (resolves CodeQL warning)

* check in JS file too
2024-01-08 17:03:22 +01:00
João Moreno 6f96811659
stop uploading to legacy CDN (#201792)
* stop uploading to legacy CDN

* add missing compilation
2024-01-05 11:45:57 +01:00
João Moreno 91e69a3383
codeql exemption (#201780)
* codeql exemption

* add missing compilation
2024-01-05 11:24:24 +01:00
João Moreno e469272e45
remove inline sourcemaps from build files (#198842) 2023-11-22 14:05:46 +01:00
João Moreno ead63533e1
Make publishing required (#198839)
make publishing required
2023-11-22 12:12:47 +01:00
João Moreno 244c48768d
Make PRSS CDN optional (#198631)
* empty commit

* mooncake creds expired

* more logs

* prevent exit

* log

* async is hard

* 💄

* temporarily ignore PRSS errors

* whitespace
2023-11-19 20:15:53 +01:00
João Moreno b1cddfafe0
tighten up blob uploading (#198553)
* tighten up blob uploading

* bad save

* bad save again
2023-11-18 09:41:37 +01:00
João Moreno fc6b857956
Workaround for AZDO artifact throttling (#198545)
* download and extract in main thread, spin off other threads for rest of IO

* remove limiters: everything runs on workers now

* add docs
2023-11-17 10:54:55 -07:00
João Moreno aa61b56229
Fix issue in counting artifacts on retries, improve parallelization (#198488)
* try to parallelize downloads

* improved logs

* allow 5 parallel downloads

* fake browser requests

* fix artifacts processed file in retries
2023-11-17 15:03:32 +01:00
João Moreno 87e7f8b5e1
replace node-fetch with native fetch (#198408)
* replace node-fetch with native fetch

* fix dep version

* handle terminated error from fetch

* more error handling
2023-11-16 17:29:35 +01:00
João Moreno 0b111a09a1
Publish to new CDN (#198154) 2023-11-16 07:19:59 +01:00
João Moreno 9905225b1a
Remove win32-ia32 target (#195559)
* remove win32-ia32

* update distro
2023-10-16 13:28:09 +02:00
Matt Bierner 10d94ba0f3
Pick up latest TS nightly for building VS Code (#194631) 2023-10-02 19:40:35 +01:00
João Moreno ef023da6db
more defense against bad AAD auth (#193447)
add retry to check blob
2023-09-19 13:19:12 +01:00
João Moreno 7c7f7eee86
rewrite blob upload promises (#193434) 2023-09-19 09:18:20 +01:00
João Moreno 6b74d08f5b
💄 (#191313)
cc @rzhao271
2023-08-25 15:14:07 +02:00
João Moreno f6a5c0ca02
log releaseBuild.ts (#189170) 2023-07-28 15:18:03 +01:00
João Moreno dd149c2255
fix npe in build (#189095)
fixes #189070
2023-07-27 21:48:22 +01:00
Robo 268f34992c
fix: missing condition in createAsset (#189026) 2023-07-27 07:36:08 +01:00
João Moreno 97700a36ca
fix build issue when retrying after one cdn failure (#188939) 2023-07-26 10:20:46 -07:00
João Moreno d568855b2a
build: prevent re-upload of builds (#187680)
would've prevented what #187575 fixed
2023-07-12 11:39:27 +02: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
Logan Ramos a32f38f8ae
Temporarily skip extracting node-debug2 (#177131)
Temporarily skip extracting node-debug-2
2023-03-14 20:52:50 +01:00
Johannes 696c1cf199
build utils with source map to enable JS debug console 2022-11-10 15:05:47 +01:00
Robo ebea50afee
feat: bundle sparse package to integrate with windows context menu (#151186)
* chore: bundle and sign explorer appx

* chore: bump vscode-explorer-command@3.0.1

* chore: explorer install/uninstall stage for appx

* chore: fix format for cmd exec

* chore: cmd file path needs triple quotes

* chore: update vscode-explorer-command@3.0.2

* chore: add reg key for new context menu title

* chore: update vscode-explorer-command@3.0.3

* fix: guard behind insider quality

* chore: fix merge conflict

* fix: type mismatch

* chore: restrict context menu related actions for win11

* refactor appx loading/unloading, revert inno updater

* update powershell

* chore: undo inno_updater changes

* fix: appx install script

* fix: perform install after update step

* fix: mv appx install to files section

* chore: additional fixes

- Remove old context menu entries when updating to newer version
- Remove context menu entry when reinstalling without menu action selected.

* chore: update vscode-explorer-command@3.0.4

- Fixes garbled title for system installation

Co-authored-by: Joao Moreno <joao.moreno@microsoft.com>
2022-10-21 20:17:30 +02:00
Connor Peet 18f743d534
address pr comments 2022-10-05 12:56:07 -07:00
Connor Peet cbc174dcad
Merge remote-tracking branch 'origin/main' into build-integrated-cli 2022-10-05 10:00:18 -07:00