mirror of
https://github.com/coder/code-server.git
synced 2026-04-16 21:31:43 -05:00
Compare commits
19 Commits
v4.9.0-rc.
...
v4.9.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8ed7498b3c | ||
|
|
73b61ecfb6 | ||
|
|
292a63dccd | ||
|
|
f43082e142 | ||
|
|
b6adcf50c6 | ||
|
|
60ab23f008 | ||
|
|
40396cc810 | ||
|
|
0c7a60e407 | ||
|
|
e701b74952 | ||
|
|
c761199923 | ||
|
|
956ed96a2c | ||
|
|
2b32b10e87 | ||
|
|
ace09103a2 | ||
|
|
f7db2a0dd8 | ||
|
|
0f66360646 | ||
|
|
130f52e6b7 | ||
|
|
c9279ccbe4 | ||
|
|
fc4d2b532f | ||
|
|
df49838739 |
18
.github/workflows/build.yaml
vendored
18
.github/workflows/build.yaml
vendored
@@ -24,7 +24,7 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
prettier:
|
prettier:
|
||||||
name: Format with Prettier
|
name: Format with Prettier
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
@@ -37,7 +37,7 @@ jobs:
|
|||||||
|
|
||||||
doctoc:
|
doctoc:
|
||||||
name: Doctoc markdown files
|
name: Doctoc markdown files
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
@@ -66,7 +66,7 @@ jobs:
|
|||||||
|
|
||||||
lint-helm:
|
lint-helm:
|
||||||
name: Lint Helm chart
|
name: Lint Helm chart
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
@@ -97,7 +97,7 @@ jobs:
|
|||||||
|
|
||||||
lint-ts:
|
lint-ts:
|
||||||
name: Lint TypeScript files
|
name: Lint TypeScript files
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
@@ -141,7 +141,7 @@ jobs:
|
|||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build code-server
|
name: Build code-server
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
env:
|
env:
|
||||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
@@ -244,7 +244,7 @@ jobs:
|
|||||||
# Only run if PR comes from base repo or event is not a PR
|
# Only run if PR comes from base repo or event is not a PR
|
||||||
# Reason: forks cannot access secrets and this will always fail
|
# Reason: forks cannot access secrets and this will always fail
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request'
|
if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -295,8 +295,8 @@ jobs:
|
|||||||
test-e2e:
|
test-e2e:
|
||||||
name: Run e2e tests
|
name: Run e2e tests
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes: 15
|
timeout-minutes: 25
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -351,7 +351,7 @@ jobs:
|
|||||||
test-e2e-proxy:
|
test-e2e-proxy:
|
||||||
name: Run e2e tests behind proxy
|
name: Run e2e tests behind proxy
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes: 25
|
timeout-minutes: 25
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
|
|||||||
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
@@ -322,6 +322,8 @@ jobs:
|
|||||||
echo "Updating version in lib/vscode/product.json"
|
echo "Updating version in lib/vscode/product.json"
|
||||||
tmp=$(mktemp)
|
tmp=$(mktemp)
|
||||||
jq '.codeServerVersion = "$VERSION"' release/lib/vscode/product.json > "$tmp" && mv "$tmp" release/lib/vscode/product.json
|
jq '.codeServerVersion = "$VERSION"' release/lib/vscode/product.json > "$tmp" && mv "$tmp" release/lib/vscode/product.json
|
||||||
|
# Ensure it has the same permissions as before
|
||||||
|
chmod 644 release/lib/vscode/product.json
|
||||||
|
|
||||||
- name: Compress release package
|
- name: Compress release package
|
||||||
run: tar -czf package.tar.gz release
|
run: tar -czf package.tar.gz release
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
lib/vscode
|
lib/vscode
|
||||||
lib/vscode-reh-web-linux-x64
|
lib/vscode-reh-web-linux-x64
|
||||||
release-standalone
|
release-standalone
|
||||||
|
release-packages
|
||||||
release
|
release
|
||||||
helm-chart
|
helm-chart
|
||||||
test/scripts
|
test/scripts
|
||||||
|
|||||||
@@ -26,6 +26,9 @@ Code v1.73.0
|
|||||||
|
|
||||||
WIP
|
WIP
|
||||||
|
|
||||||
|
known issues: https://github.com/adobe/fetch/pull/318#issuecomment-1306070259
|
||||||
|
cert won't work for anyone using Ubuntu 22.04
|
||||||
|
|
||||||
## [4.8.3](https://github.com/coder/code-server/releases/tag/v4.8.3) - 2022-11-07
|
## [4.8.3](https://github.com/coder/code-server/releases/tag/v4.8.3) - 2022-11-07
|
||||||
|
|
||||||
Code v1.72.1
|
Code v1.72.1
|
||||||
|
|||||||
@@ -42,6 +42,12 @@ main() {
|
|||||||
|
|
||||||
pushd lib/vscode
|
pushd lib/vscode
|
||||||
|
|
||||||
|
if [[ ! ${VERSION-} ]]; then
|
||||||
|
echo "VERSION not set. Please set before running this script:"
|
||||||
|
echo "VERSION='0.0.0' yarn build:vscode"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Set the commit Code will embed into the product.json. We need to do this
|
# Set the commit Code will embed into the product.json. We need to do this
|
||||||
# since Code tries to get the commit from the `.git` directory which will fail
|
# since Code tries to get the commit from the `.git` directory which will fail
|
||||||
# as it is a submodule.
|
# as it is a submodule.
|
||||||
|
|||||||
@@ -387,7 +387,7 @@ install_aur() {
|
|||||||
if [ ! "${DRY_RUN-}" ]; then
|
if [ ! "${DRY_RUN-}" ]; then
|
||||||
cd "$CACHE_DIR/code-server-aur"
|
cd "$CACHE_DIR/code-server-aur"
|
||||||
fi
|
fi
|
||||||
sh_c makepkg -si
|
sh_c makepkg -si --noconfirm
|
||||||
|
|
||||||
echo_systemd_postinstall AUR
|
echo_systemd_postinstall AUR
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,7 +116,8 @@
|
|||||||
"ide",
|
"ide",
|
||||||
"coder",
|
"coder",
|
||||||
"vscode-remote",
|
"vscode-remote",
|
||||||
"browser-ide"
|
"browser-ide",
|
||||||
|
"remote-development"
|
||||||
],
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "16"
|
"node": "16"
|
||||||
|
|||||||
6
src/browser/security.txt
Normal file
6
src/browser/security.txt
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
Contact: mailto:security@coder.com
|
||||||
|
Acknowledgments: https://coder.com/security/thanks
|
||||||
|
Preferred-Languages: en-US
|
||||||
|
Canonical: https://coder.com/.well-known/security.txt
|
||||||
|
Policy: https://coder.com/security/policy
|
||||||
|
Hiring: https://coder.com/careers
|
||||||
@@ -81,6 +81,13 @@ export const register = async (app: App, args: DefaultedArgs): Promise<Disposabl
|
|||||||
return res.redirect(`https://${req.headers.host}${req.originalUrl}`)
|
return res.redirect(`https://${req.headers.host}${req.originalUrl}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Return security.txt.
|
||||||
|
if (req.originalUrl === "/security.txt" || req.originalUrl === "/.well-known/security.txt") {
|
||||||
|
const resourcePath = path.resolve(rootPath, "src/browser/security.txt")
|
||||||
|
res.set("Content-Type", getMediaMime(resourcePath))
|
||||||
|
return res.send(await fs.readFile(resourcePath))
|
||||||
|
}
|
||||||
|
|
||||||
// Return robots.txt.
|
// Return robots.txt.
|
||||||
if (req.originalUrl === "/robots.txt") {
|
if (req.originalUrl === "/robots.txt") {
|
||||||
const resourcePath = path.resolve(rootPath, "src/browser/robots.txt")
|
const resourcePath = path.resolve(rootPath, "src/browser/robots.txt")
|
||||||
|
|||||||
18
test/unit/node/wrapper.test.ts
Normal file
18
test/unit/node/wrapper.test.ts
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
import { ChildProcess } from "child_process"
|
||||||
|
import { ParentProcess, isChild } from "../../../src/node/wrapper"
|
||||||
|
|
||||||
|
describe("wrapper", () => {
|
||||||
|
describe("isChild", () => {
|
||||||
|
it("should return false for parent process", () => {
|
||||||
|
const p = new ParentProcess("1")
|
||||||
|
expect(isChild(p)).toBe(false)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
it("should return false for parent process", () => {
|
||||||
|
const p = new ChildProcess()
|
||||||
|
// our ChildProcess isn't exported
|
||||||
|
// and shouldn't be for a test so surpressing TS error.
|
||||||
|
// @ts-expect-error - see above
|
||||||
|
expect(isChild(p)).toBe(false)
|
||||||
|
})
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user