Skip to content

Commit f25768a

Browse files
authored
Merge branch 'main' into im-coder-lg-code-server-coder-diff
2 parents fbeb038 + 94b2774 commit f25768a

File tree

16 files changed

+591
-653
lines changed

16 files changed

+591
-653
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
name: Run audit-ci
6161
needs: prebuild
6262
runs-on: ubuntu-latest
63-
timeout-minutes: 5
63+
timeout-minutes: 15
6464
steps:
6565
- name: Checkout repo
6666
uses: actions/checkout@v2
@@ -378,9 +378,6 @@ jobs:
378378
with:
379379
node-version: "14"
380380

381-
- name: Install playwright OS dependencies
382-
run: npx playwright install-deps
383-
384381
- name: Fetch dependencies from cache
385382
id: cache-yarn
386383
uses: actions/cache@v2
@@ -406,14 +403,10 @@ jobs:
406403
if: steps.cache-yarn.outputs.cache-hit != 'true'
407404
run: yarn --frozen-lockfile
408405

409-
# HACK: this shouldn't need to exist, but put it here anyway
410-
# in an attempt to solve Playwright cache failures.
411-
- name: Reinstall playwright
412-
if: steps.cache-yarn.outputs.cache-hit == 'true'
406+
- name: Install Playwright OS dependencies
413407
run: |
414-
cd test/
415-
rm -r node_modules/playwright
416-
yarn install --check-files
408+
./test/node_modules/.bin/playwright install-deps
409+
./test/node_modules/.bin/playwright install
417410
418411
- name: Run end-to-end tests
419412
run: yarn test:e2e

.github/workflows/docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
workflow_dispatch:
77

88
release:
9-
types: [published]
9+
types: [released]
1010

1111
jobs:
1212
docker-images:

.github/workflows/npm-brew.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
workflow_dispatch:
77

88
release:
9-
types: [published]
9+
types: [released]
1010

1111
jobs:
1212
# NOTE: this job requires curl, jq and yarn

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ vendor/modules
1212
node-*
1313
/plugins
1414
/lib/coder-cloud-agent
15-
/lib/linkup
1615
.home
1716
coverage
1817
**/.DS_Store

ci/build/build-code-server.sh

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,6 @@ main() {
3030
chmod +x ./lib/coder-cloud-agent
3131
set -e
3232
fi
33-
34-
if ! [ -f ./lib/linkup ]; then
35-
echo "Downloading Link agent..."
36-
37-
set +e
38-
curl -fsSL "https://storage.googleapis.com/coder-link-releases/latest/linkup-$OS-$ARCH" -o ./lib/linkup
39-
chmod +x ./lib/linkup
40-
set -e
41-
fi
4233
}
4334

4435
main "$@"

ci/build/build-release.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ EOF
6161
rsync node_modules/ "$RELEASE_PATH/node_modules"
6262
mkdir -p "$RELEASE_PATH/lib"
6363
rsync ./lib/coder-cloud-agent "$RELEASE_PATH/lib"
64-
rsync ./lib/linkup "$RELEASE_PATH/lib"
6564
fi
6665
}
6766

ci/build/npm-postinstall.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,6 @@ main() {
6666
echo "Failed to download cloud agent; --link will not work"
6767
fi
6868

69-
if curl -fsSL "https://storage.googleapis.com/coder-link-releases/latest/linkup-$OS-$ARCH" -o ./lib/linkup; then
70-
chmod +x ./lib/linkup
71-
else
72-
echo "Failed to download Link agent; the Link extension will not work"
73-
fi
74-
7569
if ! vscode_yarn; then
7670
echo "You may not have the required dependencies to build the native modules."
7771
echo "Please see https://github.com/cdr/code-server/blob/master/docs/npm.md"

ci/dev/postinstall.sh

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,28 @@ main() {
66

77
echo "Installing code-server test dependencies..."
88

9+
local args=(install)
10+
if [[ ${CI-} ]]; then
11+
args+=(--frozen-lockfile)
12+
fi
13+
914
cd test
10-
yarn install
15+
yarn "${args[@]}"
1116
cd ..
1217

1318
cd vendor
1419
echo "Installing vendor dependencies..."
1520

16-
# * We install in 'modules' instead of 'node_modules' because VS Code's extensions
17-
# use a webpack config which cannot differentiate between its own node_modules
18-
# and itself being in a directory with the same name.
19-
#
20-
# * We ignore scripts because NPM/Yarn's default behavior is to assume that
21-
# devDependencies are not needed, and that even git repo based packages are
22-
# assumed to be compiled. Because the default behavior for VS Code's `postinstall`
23-
# assumes we're also compiled, this needs to be ignored.
21+
# We install in 'modules' instead of 'node_modules' because VS Code's
22+
# extensions use a webpack config which cannot differentiate between its own
23+
# node_modules and itself being in a directory with the same name.
24+
args+=(--modules-folder modules)
2425

25-
local args=(install --modules-folder modules --ignore-scripts)
26-
27-
if [[ ${CI-} ]]; then
28-
args+=("--frozen-lockfile")
29-
fi
26+
# We ignore scripts because NPM/Yarn's default behavior is to assume that
27+
# devDependencies are not needed, and that even git repo based packages are
28+
# assumed to be compiled. Because the default behavior for VS Code's
29+
# `postinstall` assumes we're also compiled, this needs to be ignored.
30+
args+=(--ignore-scripts)
3031

3132
yarn "${args[@]}"
3233

ci/helm-chart/values.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,6 @@ podAnnotations: {}
2828
podSecurityContext: {}
2929
# fsGroup: 2000
3030

31-
securityContext: {}
32-
# capabilities:
33-
# drop:
34-
# - ALL
35-
# readOnlyRootFilesystem: true
36-
# runAsNonRoot: true
37-
# runAsUser: 1000
38-
3931
service:
4032
type: ClusterIP
4133
port: 8080
@@ -127,10 +119,6 @@ persistence:
127119
# existingClaim: ""
128120
# hostPath: /data
129121

130-
serviceAccount:
131-
create: true
132-
name:
133-
134122
## Enable an Specify container in extraContainers.
135123
## This is meant to allow adding code-server dependencies, like docker-dind.
136124
extraContainers: |

docs/CONTRIBUTING.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Contributing
44

55
- [Requirements](#requirements)
6+
- [Linux-specific requirements](#linux-specific-requirements)
67
- [Creating pull requests](#creating-pull-requests)
78
- [Commits and commit history](#commits-and-commit-history)
89
- [Development workflow](#development-workflow)
@@ -42,13 +43,21 @@ Here is what is needed:
4243
signature
4344
verification](https://docs.github.com/en/github/authenticating-to-github/managing-commit-signature-verification)
4445
or follow [this tutorial](https://joeprevite.com/verify-commits-on-github)
45-
- `build-essential` (Linux only - used by VS Code)
46-
- Get this by running `apt-get install -y build-essential`
4746
- `rsync` and `unzip`
4847
- Used for code-server releases
4948
- `bats`
5049
- Used to run script unit tests
5150

51+
### Linux-specific requirements
52+
53+
If you're developing code-server on Linux, make sure you have installed or install the following dependencies:
54+
55+
```shell
56+
sudo apt-get install build-essential g++ libx11-dev libxkbfile-dev libsecret-1-dev python-is-python3
57+
```
58+
59+
These are required by VS Code. See [their Wiki](https://github.com/microsoft/vscode/wiki/How-to-Contribute#prerequisites) for more information.
60+
5261
## Creating pull requests
5362

5463
Please create a [GitHub Issue](https://github.com/cdr/code-server/issues) that

0 commit comments

Comments
 (0)