Skip to content

Commit 1484bee

Browse files
jsjoeiocode-asher
andauthored
release: 4.9.0 (#5772)
* wip: changelog * fixup * fix: add +x to product.json in build-vscode While testing a pre-release, there seems to be a bug with the file permissions for `product.json`. Adding `chmod +x` to see if that fixes it. * chore: increase timeout * fix: keep product.json file permissions in release When we added the change to modify the `package.json` version using `mv` and `jq` we didn't account for lost file permissions. This caused a bug only happening in CI. This should fix it by giving it 755 via `chmod`. * trigger ci * chore: update package.json bust cache * fixup!: fix: keep product.json file permissions in release * Revert "fix: add +x to product.json in build-vscode" This reverts commit fc4d2b5. * chore: pin ubuntu runner in build code-server * chore: update prettierignore * chore: add notes to changelog * chore: use ubuntu-22.04 for e2e * chore: pin all jobs in build to ubuntu 20.04 * feat(wrapper): add tests for isChild * fixup: include description ts-expect-error comment * chore: update CHANGELOG * chore: update Helm chart * fixup: use our childProcess * Update CHANGELOG.md Co-authored-by: Asher <[email protected]> Co-authored-by: Asher <[email protected]>
1 parent f43082e commit 1484bee

File tree

9 files changed

+54
-14
lines changed

9 files changed

+54
-14
lines changed

.github/workflows/build.yaml

+9-9
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ concurrency:
2424
jobs:
2525
prettier:
2626
name: Format with Prettier
27-
runs-on: ubuntu-latest
27+
runs-on: ubuntu-20.04
2828
timeout-minutes: 5
2929
steps:
3030
- name: Checkout repo
@@ -37,7 +37,7 @@ jobs:
3737

3838
doctoc:
3939
name: Doctoc markdown files
40-
runs-on: ubuntu-latest
40+
runs-on: ubuntu-20.04
4141
timeout-minutes: 5
4242
steps:
4343
- name: Checkout repo
@@ -66,7 +66,7 @@ jobs:
6666

6767
lint-helm:
6868
name: Lint Helm chart
69-
runs-on: ubuntu-latest
69+
runs-on: ubuntu-20.04
7070
timeout-minutes: 5
7171
steps:
7272
- name: Checkout repo
@@ -97,7 +97,7 @@ jobs:
9797

9898
lint-ts:
9999
name: Lint TypeScript files
100-
runs-on: ubuntu-latest
100+
runs-on: ubuntu-20.04
101101
timeout-minutes: 5
102102
steps:
103103
- name: Checkout repo
@@ -141,7 +141,7 @@ jobs:
141141

142142
build:
143143
name: Build code-server
144-
runs-on: ubuntu-latest
144+
runs-on: ubuntu-20.04
145145
timeout-minutes: 30
146146
env:
147147
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
@@ -244,7 +244,7 @@ jobs:
244244
# Only run if PR comes from base repo or event is not a PR
245245
# Reason: forks cannot access secrets and this will always fail
246246
if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request'
247-
runs-on: ubuntu-latest
247+
runs-on: ubuntu-20.04
248248
steps:
249249
- name: Checkout repo
250250
uses: actions/checkout@v3
@@ -295,8 +295,8 @@ jobs:
295295
test-e2e:
296296
name: Run e2e tests
297297
needs: build
298-
runs-on: ubuntu-latest
299-
timeout-minutes: 15
298+
runs-on: ubuntu-20.04
299+
timeout-minutes: 25
300300
steps:
301301
- name: Checkout repo
302302
uses: actions/checkout@v3
@@ -351,7 +351,7 @@ jobs:
351351
test-e2e-proxy:
352352
name: Run e2e tests behind proxy
353353
needs: build
354-
runs-on: ubuntu-latest
354+
runs-on: ubuntu-20.04
355355
timeout-minutes: 25
356356
steps:
357357
- name: Checkout repo

.github/workflows/release.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,8 @@ jobs:
322322
echo "Updating version in lib/vscode/product.json"
323323
tmp=$(mktemp)
324324
jq '.codeServerVersion = "$VERSION"' release/lib/vscode/product.json > "$tmp" && mv "$tmp" release/lib/vscode/product.json
325+
# Ensure it has the same permissions as before
326+
chmod 644 release/lib/vscode/product.json
325327
326328
- name: Compress release package
327329
run: tar -czf package.tar.gz release

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
lib/vscode
22
lib/vscode-reh-web-linux-x64
33
release-standalone
4+
release-packages
45
release
56
helm-chart
67
test/scripts

CHANGELOG.md

+22
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,28 @@ Code v99.99.999
2020
2121
-->
2222

23+
## [4.9.0](https://github.com/coder/code-server/releases/tag/v4.9.0) - 2022-12-06
24+
25+
Code v1.73.1
26+
27+
### Changed
28+
29+
- Upgraded to Code 1.73.1
30+
31+
### Added
32+
33+
- `/security.txt` added as a route with info on our security policy information thanks to @ghuntley
34+
35+
### Fixed
36+
37+
- Installing on majaro images should now work thanks to @MrPeacockNLB for
38+
adding the `--noconfirm` flag in `install.sh`
39+
40+
### Known Issues
41+
42+
- `--cert` on Ubuntu 22.04: OpenSSL v3 is used which breaks `pem` meaning the
43+
`--cert` feature will not work. [Reference](https://github.com/adobe/fetch/pull/318#issuecomment-1306070259)
44+
2345
## [4.8.3](https://github.com/coder/code-server/releases/tag/v4.8.3) - 2022-11-07
2446

2547
Code v1.72.1

ci/helm-chart/Chart.yaml

+2-2
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: 3.3.3
18+
version: 3.4.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.8.3
23+
appVersion: 4.9.0

ci/helm-chart/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ replicaCount: 1
66

77
image:
88
repository: codercom/code-server
9-
tag: '4.8.3'
9+
tag: '4.9.0'
1010
pullPolicy: Always
1111

1212
# Specifies one or more secrets to be used when pulling images from a

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@
116116
"ide",
117117
"coder",
118118
"vscode-remote",
119-
"browser-ide"
119+
"browser-ide",
120+
"remote-development"
120121
],
121122
"engines": {
122123
"node": "16"

src/node/wrapper.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ abstract class Process {
147147
* Child process that will clean up after itself if the parent goes away and can
148148
* perform a handshake with the parent and ask it to relaunch.
149149
*/
150-
class ChildProcess extends Process {
150+
export class ChildProcess extends Process {
151151
public logger = logger.named(`child:${process.pid}`)
152152

153153
public constructor(private readonly parentPid: number) {

test/unit/node/wrapper.test.ts

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { ChildProcess, ParentProcess, isChild } from "../../../src/node/wrapper"
2+
3+
describe("wrapper", () => {
4+
describe("isChild", () => {
5+
it("should return false for parent process", () => {
6+
const p = new ParentProcess("1")
7+
expect(isChild(p)).toBe(false)
8+
})
9+
})
10+
it("should return false for parent process", () => {
11+
const childProc = new ChildProcess(1)
12+
expect(isChild(childProc)).toBe(true)
13+
})
14+
})

0 commit comments

Comments
 (0)