Skip to content

Commit daddd0c

Browse files
author
Akash Satheesan
authored
Merge branch 'main' into parallel-tests
2 parents ae04514 + 4131b3f commit daddd0c

37 files changed

+1078
-4228
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@ If there is no existing issue, please first create one unless the fix is minor.
55
Please make sure the base of your PR is the default branch!
66
-->
77

8-
## Checklist
9-
10-
- [ ] updated `CHANGELOG.md`
8+
Fixes #

.github/codecov.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
codecov:
2+
require_ci_to_pass: yes
3+
allow_coverage_offsets: True
4+
5+
coverage:
6+
precision: 2
7+
round: down
8+
range: "70...100"
9+
10+
parsers:
11+
gcov:
12+
branch_detection:
13+
conditional: yes
14+
loop: yes
15+
method: no
16+
macro: no
17+
18+
comment:
19+
layout: "reach,diff,flags,files,footer"
20+
behavior: default
21+
require_changes: no

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.tsbuildinfo
22
.cache
3-
dist*
43
/out*/
54
release/
65
release-npm-package/

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,12 @@ VS Code v0.00.0
6060
- chore: update node to v14 #3458 @oxy
6161
- chore: update .gitignore #3557 @cuining
6262
- fix: use sufficient computational effort for password hash #3422 @jsjoeio
63+
- docs(CONTRIBUTING): add section on testing #3629 @jsjoeio
6364

6465
### Development
6566

6667
- fix(publish): update cdrci fork in brew-bump.sh #3468 @jsjoeio
68+
- chore(dev): migrate away from parcel #3578 @jsjoeio
6769

6870
## 3.10.2
6971

ci/build/build-code-server.sh

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ set -euo pipefail
33

44
# Builds code-server into out and the frontend into dist.
55

6-
# MINIFY controls whether parcel minifies dist.
7-
MINIFY=${MINIFY-true}
8-
96
main() {
107
cd "$(dirname "${0}")/../.."
118

@@ -32,14 +29,9 @@ main() {
3229
set -e
3330
fi
3431

35-
parcel build \
36-
--public-url "." \
37-
--out-dir dist \
38-
$([[ $MINIFY ]] || echo --no-minify) \
39-
src/browser/register.ts \
40-
src/browser/serviceWorker.ts \
41-
src/browser/pages/login.ts \
42-
src/browser/pages/vscode.ts
32+
yarn browserify out/browser/register.js -o out/browser/register.browserified.js
33+
yarn browserify out/browser/pages/login.js -o out/browser/pages/login.browserified.js
34+
yarn browserify out/browser/pages/vscode.js -o out/browser/pages/vscode.browserified.js
4335
}
4436

4537
main "$@"

ci/build/build-packages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ release_gcp() {
4646
# Generates deb and rpm packages.
4747
release_nfpm() {
4848
local nfpm_config
49-
nfpm_config="$(envsubst <./ci/build/nfpm.yaml)"
49+
nfpm_config="$(envsubst < ./ci/build/nfpm.yaml)"
5050

5151
# The underscores are convention for .deb.
5252
nfpm pkg -f <(echo "$nfpm_config") --target "release-packages/code-server_${VERSION}_$ARCH.deb"

ci/build/build-release.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,20 @@ main() {
2222
bundle_code_server
2323
bundle_vscode
2424

25-
rsync README.md "$RELEASE_PATH"
25+
rsync ./docs/README.md "$RELEASE_PATH"
2626
rsync LICENSE.txt "$RELEASE_PATH"
2727
rsync ./lib/vscode/ThirdPartyNotices.txt "$RELEASE_PATH"
2828
}
2929

3030
bundle_code_server() {
31-
rsync out dist "$RELEASE_PATH"
31+
rsync out "$RELEASE_PATH"
3232

3333
# For source maps and images.
3434
mkdir -p "$RELEASE_PATH/src/browser"
3535
rsync src/browser/media/ "$RELEASE_PATH/src/browser/media"
3636
mkdir -p "$RELEASE_PATH/src/browser/pages"
3737
rsync src/browser/pages/*.html "$RELEASE_PATH/src/browser/pages"
38+
rsync src/browser/pages/*.css "$RELEASE_PATH/src/browser/pages"
3839
rsync src/browser/robots.txt "$RELEASE_PATH/src/browser"
3940

4041
# Add typings for plugins
@@ -43,15 +44,15 @@ bundle_code_server() {
4344

4445
# Adds the commit to package.json
4546
jq --slurp '.[0] * .[1]' package.json <(
46-
cat <<EOF
47+
cat << EOF
4748
{
4849
"commit": "$(git rev-parse HEAD)",
4950
"scripts": {
5051
"postinstall": "./postinstall.sh"
5152
}
5253
}
5354
EOF
54-
) >"$RELEASE_PATH/package.json"
55+
) > "$RELEASE_PATH/package.json"
5556
rsync yarn.lock "$RELEASE_PATH"
5657
rsync ci/build/npm-postinstall.sh "$RELEASE_PATH/postinstall.sh"
5758

@@ -83,18 +84,18 @@ bundle_vscode() {
8384

8485
# Adds the commit and date to product.json
8586
jq --slurp '.[0] * .[1]' "$VSCODE_SRC_PATH/product.json" <(
86-
cat <<EOF
87+
cat << EOF
8788
{
8889
"commit": "$(git rev-parse HEAD)",
8990
"date": $(jq -n 'now | todate')
9091
}
9192
EOF
92-
) >"$VSCODE_OUT_PATH/product.json"
93+
) > "$VSCODE_OUT_PATH/product.json"
9394

9495
# We remove the scripts field so that later on we can run
9596
# yarn to fetch node_modules if necessary without build scripts running.
9697
# We cannot use --no-scripts because we still want dependent package scripts to run.
97-
jq 'del(.scripts)' <"$VSCODE_SRC_PATH/package.json" >"$VSCODE_OUT_PATH/package.json"
98+
jq 'del(.scripts)' < "$VSCODE_SRC_PATH/package.json" > "$VSCODE_OUT_PATH/package.json"
9899

99100
pushd "$VSCODE_OUT_PATH"
100101
symlink_asar

ci/build/build-standalone-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ main() {
1616
# we use the same version it's using so we instead run a script with yarn that
1717
# will print the path to node.
1818
local node_path
19-
node_path="$(yarn -s node <<<'console.info(process.execPath)')"
19+
node_path="$(yarn -s node <<< 'console.info(process.execPath)')"
2020

2121
mkdir -p "$RELEASE_PATH/bin"
2222
rsync ./ci/build/code-server.sh "$RELEASE_PATH/bin/code-server"

ci/build/npm-postinstall.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ set -eu
44
# Copied from arch() in ci/lib.sh.
55
detect_arch() {
66
case "$(uname -m)" in
7-
aarch64)
8-
echo arm64
9-
;;
10-
x86_64 | amd64)
11-
echo amd64
12-
;;
13-
*)
14-
# This will cause the download to fail, but is intentional
15-
uname -m
16-
;;
7+
aarch64)
8+
echo arm64
9+
;;
10+
x86_64 | amd64)
11+
echo amd64
12+
;;
13+
*)
14+
# This will cause the download to fail, but is intentional
15+
uname -m
16+
;;
1717
esac
1818
}
1919

ci/build/release-github-draft.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ main() {
1010
gh release create "v$VERSION" \
1111
--notes-file - \
1212
--target "$(git rev-parse HEAD)" \
13-
--draft <<EOF
13+
--draft << EOF
1414
v$VERSION
1515
1616
VS Code v$(vscode_version)

0 commit comments

Comments
 (0)