Skip to content

Commit 467437a

Browse files
committed
Merge branch 'main' into helm-priorityClassName
2 parents 2583a95 + 9ad0d9e commit 467437a

25 files changed

+192
-158
lines changed

.github/workflows/ci.yaml

Lines changed: 15 additions & 7 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.0
4343

4444
- name: Fetch dependencies from cache
4545
id: cache-yarn
@@ -164,7 +164,9 @@ jobs:
164164
if: success()
165165

166166
- name: Upload coverage report to Codecov
167-
run: yarn coverage
167+
uses: codecov/codecov-action@v3
168+
with:
169+
token: ${{ secrets.CODECOV_TOKEN }}
168170
if: success()
169171

170172
# The release package does not contain any native modules
@@ -288,8 +290,11 @@ jobs:
288290
- name: Build standalone release
289291
run: source scl_source enable devtoolset-9 && yarn release:standalone
290292

291-
- name: Sanity test standalone release
292-
run: yarn test:standalone-release
293+
- name: Install test dependencies
294+
run: SKIP_SUBMODULE_DEPS=1 yarn install
295+
296+
- name: Run integration tests on standalone release
297+
run: yarn test:integration
293298

294299
- name: Build packages with nfpm
295300
run: yarn package
@@ -421,8 +426,11 @@ jobs:
421426
- name: Build standalone release
422427
run: yarn release:standalone
423428

424-
- name: Sanity test standalone release
425-
run: yarn test:standalone-release
429+
- name: Install test dependencies
430+
run: SKIP_SUBMODULE_DEPS=1 yarn install
431+
432+
- name: Run integration tests on standalone release
433+
run: yarn test:integration
426434

427435
- name: Build packages with nfpm
428436
run: yarn package
@@ -509,7 +517,7 @@ jobs:
509517
fetch-depth: 0
510518

511519
- name: Run Trivy vulnerability scanner in repo mode
512-
uses: aquasecurity/trivy-action@7b7aa264d83dc58691451798b4d117d53d21edfe
520+
uses: aquasecurity/trivy-action@0105373003c89c494a3f436bd5efc57f3ac1ca20
513521
with:
514522
scan-type: "fs"
515523
scan-ref: "."

.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/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@0105373003c89c494a3f436bd5efc57f3ac1ca20
5555
with:
5656
image-ref: "docker.io/codercom/code-server:latest"
5757
ignore-unfixed: true

CHANGELOG.md

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

23+
## [4.5.0](https://github.com/coder/code-server/releases/tag/v4.5.0) - 2022-06-29
24+
25+
Code v1.68.1
26+
27+
### Changed
28+
29+
- Updated codecov to use codecov uploader
30+
- Moved integration tests to Jest
31+
- Fixed docker release to only download .deb
32+
- Upgraded to Code 1.68.1
33+
- Install `nfpm` from GitHub
34+
- Upgraded to TypeScript 4.6
35+
36+
### Added
37+
38+
- Added tests for `open`, `isWsl`, `handlePasswordValidation`
39+
- Provided alternate image registry to dockerhub
40+
- Allowed users to have scripts run on container with `ENTRYPOINTD` environment
41+
variable
42+
43+
### Fixed
44+
45+
- Fixed open CLI command to work on macOS
46+
2347
## [4.4.0](https://github.com/coder/code-server/releases/tag/v4.4.0) - 2022-05-06
2448

2549
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.

ci/dev/postinstall.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ main() {
2929

3030
install-deps test
3131
install-deps test/e2e/extensions/test-extension
32-
install-deps lib/vscode
32+
# We don't need these when running the integration tests
33+
# so you can pass SKIP_SUBMODULE_DEPS
34+
if [[ ! ${SKIP_SUBMODULE_DEPS-} ]]; then
35+
install-deps lib/vscode
36+
fi
3337
}
3438

3539
main "$@"

ci/dev/test-integration.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
help() {
5+
echo >&2 " You can build the standalone release with 'yarn release:standalone'"
6+
echo >&2 " Or you can pass in a custom path."
7+
echo >&2 " CODE_SERVER_PATH='/var/tmp/coder/code-server/bin/code-server' yarn test:integration"
8+
}
9+
10+
# Make sure a code-server release works. You can pass in the path otherwise it
11+
# will look for release-standalone in the current directory.
12+
#
13+
# This is to make sure we don't have Node version errors or any other
14+
# compilation-related errors.
15+
main() {
16+
cd "$(dirname "$0")/../.."
17+
18+
source ./ci/lib.sh
19+
20+
local path="$RELEASE_PATH-standalone/bin/code-server"
21+
if [[ ! ${CODE_SERVER_PATH-} ]]; then
22+
echo "Set CODE_SERVER_PATH to test another build of code-server"
23+
else
24+
path="$CODE_SERVER_PATH"
25+
fi
26+
27+
echo "Running tests with code-server binary: '$path'"
28+
29+
if [[ ! -f $path ]]; then
30+
echo >&2 "No code-server build detected"
31+
echo >&2 "Looked in $path"
32+
help
33+
exit 1
34+
fi
35+
36+
CODE_SERVER_PATH="$path" CS_DISABLE_PLUGINS=true ./test/node_modules/.bin/jest "$@" --coverage=false --testRegex "./test/integration" --testPathIgnorePatterns "./test/integration/fixtures"
37+
}
38+
39+
main "$@"

ci/dev/test-unit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ main() {
3030
# We must keep jest in a sub-directory. See ../../test/package.json for more
3131
# information. We must also run it from the root otherwise coverage will not
3232
# include our source files.
33-
CS_DISABLE_PLUGINS=true ./test/node_modules/.bin/jest "$@"
33+
CS_DISABLE_PLUGINS=true ./test/node_modules/.bin/jest "$@" --testRegex "./test/unit/.*ts" --testPathIgnorePatterns "./test/unit/node/test-plugin"
3434
}
3535

3636
main "$@"

ci/helm-chart/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 2.5.0
18+
version: 2.6.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
23-
appVersion: 4.4.0
23+
appVersion: 4.5.0

0 commit comments

Comments
 (0)