Skip to content

Commit aaa49d3

Browse files
authored
Merge branch 'main' into docs/add-issue-rsp-install
2 parents 4aed005 + 3054f09 commit aaa49d3

38 files changed

+404
-185
lines changed

.github/workflows/ci.yaml

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
node-version: "16"
4040

4141
- name: Install helm
42-
uses: azure/setup-helm@v2.1
42+
uses: azure/setup-helm@v3.3
4343

4444
- name: Fetch dependencies from cache
4545
id: cache-yarn
@@ -143,14 +143,20 @@ jobs:
143143
id: vscode-rev
144144
run: echo "::set-output name=rev::$(git rev-parse HEAD:./lib/vscode)"
145145

146-
# We need to rebuild when we have a new version of Code or when any of
147-
# the patches changed. Use VSCODE_CACHE_VERSION to force a rebuild.
146+
- name: Get version
147+
id: version
148+
run: echo "::set-output name=version::$(jq -r .version package.json)"
149+
150+
# We need to rebuild when we have a new version of Code, when any of
151+
# the patches changed, or when the code-server version changes (since
152+
# it gets embedded into the code). Use VSCODE_CACHE_VERSION to
153+
# force a rebuild.
148154
- name: Fetch prebuilt Code package from cache
149155
id: cache-vscode
150156
uses: actions/cache@v3
151157
with:
152158
path: lib/vscode-reh-web-*
153-
key: vscode-reh-package-${{ secrets.VSCODE_CACHE_VERSION }}-${{ steps.vscode-rev.outputs.rev }}-${{ hashFiles('patches/*.diff') }}
159+
key: vscode-reh-package-${{ secrets.VSCODE_CACHE_VERSION }}-${{ steps.vscode-rev.outputs.rev }}-${{ steps.version.outputs.version }}-${{ hashFiles('patches/*.diff') }}
154160

155161
- name: Build vscode
156162
if: steps.cache-vscode.outputs.cache-hit != 'true'
@@ -164,7 +170,9 @@ jobs:
164170
if: success()
165171

166172
- name: Upload coverage report to Codecov
167-
run: yarn coverage
173+
uses: codecov/codecov-action@v3
174+
with:
175+
token: ${{ secrets.CODECOV_TOKEN }}
168176
if: success()
169177

170178
# The release package does not contain any native modules
@@ -288,8 +296,11 @@ jobs:
288296
- name: Build standalone release
289297
run: source scl_source enable devtoolset-9 && yarn release:standalone
290298

291-
- name: Sanity test standalone release
292-
run: yarn test:standalone-release
299+
- name: Install test dependencies
300+
run: SKIP_SUBMODULE_DEPS=1 yarn install
301+
302+
- name: Run integration tests on standalone release
303+
run: yarn test:integration
293304

294305
- name: Build packages with nfpm
295306
run: yarn package
@@ -421,8 +432,11 @@ jobs:
421432
- name: Build standalone release
422433
run: yarn release:standalone
423434

424-
- name: Sanity test standalone release
425-
run: yarn test:standalone-release
435+
- name: Install test dependencies
436+
run: SKIP_SUBMODULE_DEPS=1 yarn install
437+
438+
- name: Run integration tests on standalone release
439+
run: yarn test:integration
426440

427441
- name: Build packages with nfpm
428442
run: yarn package
@@ -509,7 +523,7 @@ jobs:
509523
fetch-depth: 0
510524

511525
- name: Run Trivy vulnerability scanner in repo mode
512-
uses: aquasecurity/trivy-action@7b7aa264d83dc58691451798b4d117d53d21edfe
526+
uses: aquasecurity/trivy-action@5144f05a8dca0b158e81bc678b850c7999e67c8a
513527
with:
514528
scan-type: "fs"
515529
scan-ref: "."

.github/workflows/docs-preview.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
pull_request:
55
branches:
66
- main
7+
paths:
8+
- "docs/**"
79

810
permissions:
911
actions: none

.github/workflows/installer.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
run: ./install.sh
3535

3636
- name: Test code-server
37-
run: yarn test:standalone-release code-server
37+
run: CODE_SERVER_PATH="code-server" yarn test:integration
3838

3939
alpine:
4040
name: Test installer on Alpine
@@ -66,4 +66,4 @@ jobs:
6666
run: ./install.sh
6767

6868
- name: Test code-server
69-
run: yarn test:standalone-release code-server
69+
run: CODE_SERVER_PATH="code-server" yarn test:integration

.github/workflows/npm-brew.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
uses: dawidd6/action-download-artifact@v2
3232
id: download
3333
with:
34-
branch: v${{ steps.version.outputs.version }}
34+
branch: release/v${{ steps.version.outputs.version }}
3535
workflow: ci.yaml
3636
workflow_conclusion: completed
3737
name: "npm-package"

.github/workflows/trivy-docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
uses: actions/checkout@v3
5252

5353
- name: Run Trivy vulnerability scanner in image mode
54-
uses: aquasecurity/trivy-action@7b7aa264d83dc58691451798b4d117d53d21edfe
54+
uses: aquasecurity/trivy-action@5144f05a8dca0b158e81bc678b850c7999e67c8a
5555
with:
5656
image-ref: "docker.io/codercom/code-server:latest"
5757
ignore-unfixed: true

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lib/vscode

.prettierrc.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,3 @@ trailingComma: all
44
arrowParens: always
55
singleQuote: false
66
useTabs: false
7-
8-
overrides:
9-
# Attempt to keep VScode's existing code style intact.
10-
- files: "lib/vscode/**/*.ts"
11-
options:
12-
# No limit defined upstream.
13-
printWidth: 10000
14-
semi: true
15-
singleQuote: true
16-
useTabs: true
17-
arrowParens: avoid

CHANGELOG.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,62 @@ Code v99.99.999
2020
2121
-->
2222

23+
## [4.5.1](https://github.com/coder/code-server/releases/tag/v4.5.1) - 2022-07-18
24+
25+
Code v1.68.1
26+
27+
### Changed
28+
29+
- We now use `release/v<0.0.0>` for the release branch name so it doesn't
30+
conflict with the tag name
31+
- Added `.prettierignore` to ignore formatting files in `lib/vscode`
32+
33+
### Added
34+
35+
- Allow more comprehensive affinity config in Helm chart
36+
- Added custom message in Homebrew PR to make sure code-server maintainers are
37+
tagged
38+
- Allow setting `priorityClassName` via Helm chart
39+
- Added troubleshooting docs to `CONTRIBUTING.md`
40+
41+
### Fixed
42+
43+
- Removed default memory limit which was set via `NODE_OPTIONS`
44+
- Changed output in pipe to make it easier to debug code-server when doing live
45+
edits
46+
- Fixed display-language patch to use correct path which broke in 4.5.0
47+
- Fixed multiple code-server windows opening when using the code-server CLI in
48+
the Integrated Terminal
49+
- Fixed Integrated Terminal not working when web base was not the root path
50+
51+
### Security
52+
53+
- Updated `glob-parent` version in dependencies
54+
55+
## [4.5.0](https://github.com/coder/code-server/releases/tag/v4.5.0) - 2022-06-29
56+
57+
Code v1.68.1
58+
59+
### Changed
60+
61+
- Updated codecov to use codecov uploader
62+
- Moved integration tests to Jest
63+
- Fixed docker release to only download .deb
64+
- Upgraded to Code 1.68.1
65+
- Install `nfpm` from GitHub
66+
- Upgraded to TypeScript 4.6
67+
68+
### Added
69+
70+
- Added tests for `open`, `isWsl`, `handlePasswordValidation`
71+
- Provided alternate image registry to dockerhub
72+
- Allowed users to have scripts run on container with `ENTRYPOINTD` environment
73+
variable
74+
75+
### Fixed
76+
77+
- Fixed open CLI command to work on macOS
78+
2379
## [4.4.0](https://github.com/coder/code-server/releases/tag/v4.4.0) - 2022-05-06
2480

2581
Code v1.66.2

ci/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ You can disable minification by setting `MINIFY=`.
4545
- Builds vscode into `./lib/vscode/out-vscode`.
4646
- [./ci/build/build-release.sh](./build/build-release.sh) (`yarn release`)
4747
- Bundles the output of the above two scripts into a single node module at `./release`.
48-
- [./ci/build/build-standalone-release.sh](./build/build-standalone-release.sh) (`yarn release:standalone`)
49-
- Requires a node module already built into `./release` with the above script.
50-
- Will build a standalone release with node and node_modules bundled into `./release-standalone`.
5148
- [./ci/build/clean.sh](./build/clean.sh) (`yarn clean`)
5249
- Removes all build artifacts.
5350
- Useful to do a clean build.
@@ -97,6 +94,8 @@ Helps avoid clobbering the CI configuration.
9794
- Runs `yarn lint`.
9895
- [./steps/test-unit.sh](./steps/test-unit.sh)
9996
- Runs `yarn test:unit`.
97+
- [./steps/test-integration.sh](./steps/test-integration.sh)
98+
- Runs `yarn test:integration`.
10099
- [./steps/test-e2e.sh](./steps/test-e2e.sh)
101100
- Runs `yarn test:e2e`.
102101
- [./steps/release.sh](./steps/release.sh)

ci/build/test-standalone-release.sh

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)