Skip to content

Commit c7e492b

Browse files
update node to 18.17.1 (#18525)
* update node to 18.17.1 * use new dev image * fix webpack in supervisor-frontend * bump webpack to 5.88.2 in dashboard * streamline webpack versions * Fix craco config * streamline eslint versions * Update eslint config and disable for now * Enable eslint again * Update vscode-jsonrpc for browser implementation * Polyfill setimmeadiate * Remove NODE_OPTIONS env var from supervisor front end scripts * Fix css * Fix css 2 * Fix checkboxchecked * Add comment * Fix yarn.lock --------- Co-authored-by: Jean Pierre <[email protected]>
1 parent 9cd5741 commit c7e492b

File tree

34 files changed

+5078
-6167
lines changed

34 files changed

+5078
-6167
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM eu.gcr.io/gitpod-core-dev/dev/dev-environment:aledbf-oci-tool-gha.14121
1+
FROM eu.gcr.io/gitpod-core-dev/dev/dev-environment:at-node-18-17-1-gha.15610
22

33
COPY entrypoint.sh /entrypoint.sh
44
ENTRYPOINT ["/entrypoint.sh"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM eu.gcr.io/gitpod-core-dev/dev/dev-environment:aledbf-oci-tool-gha.14121
1+
FROM eu.gcr.io/gitpod-core-dev/dev/dev-environment:at-node-18-17-1-gha.15610
22

33
COPY entrypoint.sh /entrypoint.sh
44
ENTRYPOINT ["/entrypoint.sh"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM eu.gcr.io/gitpod-core-dev/dev/dev-environment:aledbf-oci-tool-gha.14121
1+
FROM eu.gcr.io/gitpod-core-dev/dev/dev-environment:at-node-18-17-1-gha.15610
22

33
COPY entrypoint.sh /entrypoint.sh
44
ENTRYPOINT ["/entrypoint.sh"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM eu.gcr.io/gitpod-core-dev/dev/dev-environment:aledbf-oci-tool-gha.14121
1+
FROM eu.gcr.io/gitpod-core-dev/dev/dev-environment:at-node-18-17-1-gha.15610
22

33
COPY entrypoint.sh /entrypoint.sh
44
ENTRYPOINT ["/entrypoint.sh"]

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
cancel-in-progress: ${{ needs.configuration.outputs.is_main_branch == 'false' }}
9898
runs-on: ${{ needs.create-runner.outputs.label }}
9999
container:
100-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:aledbf-oci-tool-gha.14121
100+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:at-node-18-17-1-gha.15610
101101
outputs:
102102
previewctl_hash: ${{ steps.build.outputs.previewctl_hash }}
103103
steps:
@@ -156,7 +156,7 @@ jobs:
156156
ports:
157157
- 6379:6379
158158
container:
159-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:aledbf-oci-tool-gha.14121
159+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:at-node-18-17-1-gha.15610
160160
env:
161161
DB_HOST: "mysql"
162162
DB_PORT: "23306"
@@ -396,7 +396,7 @@ jobs:
396396
- create-runner
397397
runs-on: ${{ needs.create-runner.outputs.label }}
398398
container:
399-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:aledbf-oci-tool-gha.14121
399+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:at-node-18-17-1-gha.15610
400400
if: needs.configuration.outputs.with_integration_tests != ''
401401
concurrency:
402402
group: ${{ github.ref == 'refs/heads/main' && github.run_id || github.sha }}-integration-test

.github/workflows/code-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ${{ needs.create-runner.outputs.label }}
1717
needs: [create-runner]
1818
container:
19-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:aledbf-oci-tool-gha.14121
19+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:at-node-18-17-1-gha.15610
2020
steps:
2121
- uses: actions/checkout@v3
2222
- uses: ./.github/actions/setup-environment

.github/workflows/ide-integration-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
runs-on: ${{ needs.create-runner.outputs.label }}
3232
needs: [create-runner]
3333
container:
34-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:aledbf-oci-tool-gha.14121
34+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:at-node-18-17-1-gha.15610
3535
outputs:
3636
name: ${{ steps.configuration.outputs.name }}
3737
version: ${{ steps.configuration.outputs.version }}
@@ -100,7 +100,7 @@ jobs:
100100
needs: [configuration, infrastructure, create-runner]
101101
runs-on: ${{ needs.create-runner.outputs.label }}
102102
container:
103-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:aledbf-oci-tool-gha.14121
103+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:at-node-18-17-1-gha.15610
104104
volumes:
105105
- /var/tmp:/var/tmp
106106
- /tmp:/tmp

.github/workflows/lacework-inline-scanner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
needs: [configuration,create-runner]
5252
if: ${{ needs.configuration.outputs.skip == 'false' }}
5353
container:
54-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:aledbf-oci-tool-gha.14121
54+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:at-node-18-17-1-gha.15610
5555
steps:
5656
# Most of this is taken over from the Build workflow/preview-env-check-regressions workflow
5757
- uses: actions/checkout@v3

.github/workflows/preview-env-check-regressions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
if: ${{ needs.configuration.outputs.skip == 'false' }}
8686
runs-on: ${{ needs.create-runner.outputs.label }}
8787
container:
88-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:aledbf-oci-tool-gha.14121
88+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:at-node-18-17-1-gha.15610
8989
volumes:
9090
- /var/tmp:/var/tmp
9191
- /tmp:/tmp

.github/workflows/preview-env-gc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ${{ needs.create-runner.outputs.label }}
1616
needs: [create-runner]
1717
container:
18-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:aledbf-oci-tool-gha.14121
18+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:at-node-18-17-1-gha.15610
1919
outputs:
2020
names: ${{ steps.set-matrix.outputs.names }}
2121
count: ${{ steps.set-matrix.outputs.count }}

.github/workflows/workspace-integration-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
runs-on: ${{ needs.create-runner.outputs.label }}
4646
needs: [create-runner]
4747
container:
48-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:aledbf-oci-tool-gha.14121
48+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:at-node-18-17-1-gha.15610
4949
outputs:
5050
name: ${{ steps.configuration.outputs.name }}
5151
version: ${{ steps.configuration.outputs.version }}
@@ -135,7 +135,7 @@ jobs:
135135
needs: [configuration, infrastructure, create-runner]
136136
runs-on: ${{ needs.create-runner.outputs.label }}
137137
container:
138-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:aledbf-oci-tool-gha.14121
138+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:at-node-18-17-1-gha.15610
139139
steps:
140140
- uses: actions/checkout@v3
141141
- id: auth
@@ -166,7 +166,7 @@ jobs:
166166
if: inputs.skip_delete != 'true' && always()
167167
runs-on: ${{ needs.create-runner.outputs.label }}
168168
container:
169-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:aledbf-oci-tool-gha.14121
169+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:at-node-18-17-1-gha.15610
170170
steps:
171171
- uses: actions/checkout@v3
172172
- name: Delete preview environment

.gitpod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:aledbf-oci-tool-gha.14121
1+
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:at-node-18-17-1-gha.15610
22
workspaceLocation: gitpod/gitpod-ws.code-workspace
33
checkoutLocation: gitpod
44
ports:

components/dashboard/.eslintrc.js

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

77
module.exports = {
88
root: true,
9-
extends: ["react-app"],
9+
extends: ["react-app", "react-app/jest"],
1010
rules: {
1111
"import/no-anonymous-default-export": "error",
1212
"react/jsx-no-constructed-context-values": "error",

components/dashboard/craco.config.js

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,47 @@
44
* See License.AGPL.txt in the project root for license information.
55
*/
66
const { when } = require("@craco/craco");
7+
const webpack = require("webpack");
78

89
module.exports = {
910
style: {
1011
postcss: {
11-
plugins: [require("tailwindcss"), require("autoprefixer")],
12+
mode: "file",
13+
},
14+
},
15+
eslint: {
16+
mode: "file",
17+
},
18+
webpack: {
19+
configure: {
20+
resolve: {
21+
fallback: {
22+
crypto: require.resolve("crypto-browserify"),
23+
stream: require.resolve("stream-browserify"),
24+
url: require.resolve("url"),
25+
util: require.resolve("util"),
26+
net: false,
27+
path: false,
28+
fs: false,
29+
os: false,
30+
},
31+
},
32+
module: {
33+
rules: [
34+
{
35+
test: /\.m?js$/,
36+
resolve: {
37+
fullySpecified: false,
38+
},
39+
},
40+
],
41+
},
42+
plugins: [
43+
new webpack.ProvidePlugin({
44+
process: "process/browser",
45+
Buffer: ["buffer", "Buffer"],
46+
}),
47+
],
1248
},
1349
},
1450
...when(process.env.GP_DEV_HOST && process.env.GP_DEV_COOKIE, () => ({

components/dashboard/package.json

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,19 @@
3939
"react-router-dom": "^5.2.0",
4040
"validator": "^13.9.0",
4141
"xterm": "^4.11.0",
42-
"xterm-addon-fit": "^0.5.0"
42+
"xterm-addon-fit": "^0.5.0",
43+
"crypto-browserify": "3.12.0",
44+
"stream-browserify": "^2.0.1",
45+
"url": "^0.11.1",
46+
"util": "^0.11.1",
47+
"buffer": "^4.3.0",
48+
"process": "^0.11.10",
49+
"setimmediate": "^1.0.5"
4350
},
4451
"devDependencies": {
45-
"@craco/craco": "^6.1.2",
46-
"@tailwindcss/forms": "^0.3.2",
47-
"@tailwindcss/postcss7-compat": "^2.2.4",
52+
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
53+
"@craco/craco": "^7.1.0",
54+
"@tailwindcss/forms": "^0.5.5",
4855
"@testing-library/jest-dom": "^5.11.10",
4956
"@testing-library/react": "^11.2.6",
5057
"@testing-library/user-event": "^12.1.10",
@@ -58,18 +65,19 @@
5865
"@types/react-portal": "^4.0.4",
5966
"@types/react-router": "^5.1.13",
6067
"@types/react-router-dom": "^5.1.7",
68+
"@types/setimmediate": "^1.0.2",
6169
"@types/uuid": "^8.3.1",
6270
"@types/validator": "^13.7.12",
63-
"@typescript-eslint/eslint-plugin": "^4.21.0",
64-
"@typescript-eslint/parser": "^4.21.0",
71+
"@typescript-eslint/eslint-plugin": "^5.5.0",
72+
"@typescript-eslint/parser": "^5.5.0",
6573
"@useorbital/client-types": "^1.6.0",
66-
"autoprefixer": "^9.8.6",
67-
"eslint": "^7.24.0",
68-
"eslint-config-react-app": "^6.0.0",
69-
"postcss": "^7.0.36",
70-
"react-scripts": "^4.0.3",
74+
"autoprefixer": "^10.4.15",
75+
"eslint": "^8.47.0",
76+
"eslint-config-react-app": "^7.0.1",
77+
"postcss": "^8.4.28",
78+
"react-scripts": "^5.0.1",
7179
"tailwind-underline-utils": "^1.1.2",
72-
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.4",
80+
"tailwindcss": "^3.3.3",
7381
"tailwindcss-filters": "^3.0.0",
7482
"typescript": "~4.4.2",
7583
"web-vitals": "^1.1.1"
@@ -89,12 +97,6 @@
8997
"build",
9098
"public"
9199
],
92-
"eslintConfig": {
93-
"extends": [
94-
"react-app",
95-
"react-app/jest"
96-
]
97-
},
98100
"browserslist": {
99101
"production": [
100102
">0.2%",

components/dashboard/postcss.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44
* See License.AGPL.txt in the project root for license information.
55
*/
66

7-
module.exports = {
7+
/** @type {import('postcss-load-config').Config} */
8+
const config = {
89
plugins: {
10+
"postcss-import": {},
911
tailwindcss: {},
1012
autoprefixer: {},
1113
},
1214
};
15+
16+
module.exports = config;

components/dashboard/src/components/forms/CheckboxInputField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const CheckboxInputField: FC<CheckboxInputFieldProps> = ({
7070
"h-4 w-4 mt-0.5 rounded cursor-pointer border-2 dark:filter-invert",
7171
"focus:ring-2 ring-blue-400",
7272
"border-gray-600 dark:border-gray-900 bg-transparent",
73-
{ "bg-gray-600 dark:bg-gray-900": checked },
73+
"checked:bg-gray-600 dark:checked:bg-gray-900",
7474
)}
7575
id={elementId}
7676
checked={checked}

components/dashboard/src/components/modal.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
* See License.AGPL.txt in the project root for license information.
55
*/
66

7+
@tailwind base;
8+
@tailwind components;
9+
@tailwind utilities;
10+
711
@layer components {
812
.gp-modal-footer-alert {
913
margin-top: -1px;

components/dashboard/src/components/org-icon/styles.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
* See License.AGPL.txt in the project root for license information.
55
*/
66

7+
@tailwind base;
8+
@tailwind components;
9+
@tailwind utilities;
710

811
@layer components {
912
.bg-gradient-1 {

components/dashboard/src/dedicated-setup/styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
* See License.AGPL.txt in the project root for license information.
55
*/
66

7+
@tailwind base;
8+
@tailwind components;
9+
@tailwind utilities;
10+
711
@layer components {
812
.honeycomb-bg {
913
background: url("../icons/honeycomb-bg.svg") no-repeat top -115px right -160px;

components/dashboard/src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See License.AGPL.txt in the project root for license information.
55
*/
66

7+
import "setimmediate"; // important!, required by vscode-jsonrpc
78
import dayjs from "dayjs";
89
import duration from "dayjs/plugin/duration";
910
import relativeTime from "dayjs/plugin/relativeTime";

components/dashboard/tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const colors = require("tailwindcss/colors");
99

1010
module.exports = {
1111
jit: true,
12-
purge: ["./public/**/*.html", "./src/**/*.{js,ts,tsx}"],
12+
content: ["./public/**/*.html", "./src/**/*.{js,ts,tsx}"],
1313
important: true,
1414
darkMode: "class",
1515
theme: {

components/gitpod-db/leeway.Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
# Licensed under the GNU Affero General Public License (AGPL).
33
# See License.AGPL.txt in the project root for license information.
44

5-
FROM node:16.13.0-slim as builder
5+
FROM node:18.17.1-slim as builder
66
COPY components-gitpod-db--migrations /installer/
77
WORKDIR /app
88
RUN /installer/install.sh
99

10-
FROM node:16.13.0 as proxy
10+
FROM node:18.17.1 as proxy
1111
RUN wget https://storage.googleapis.com/cloudsql-proxy/v1.23.0/cloud_sql_proxy.linux.amd64 -O /bin/cloud_sql_proxy \
1212
&& chmod +x /bin/cloud_sql_proxy
1313

14-
FROM node:16.13.0-slim
14+
FROM node:18.17.1-slim
1515
ENV NODE_OPTIONS=--unhandled-rejections=warn
1616
COPY migrate.sh /app/migrate.sh
1717
COPY migrate_gcp.sh /app/migrate_gcp.sh

components/gitpod-db/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141
"@types/mocha": "^2.2.45",
4242
"@types/mysql": "^2.15.0",
4343
"@types/uuid": "^8.3.1",
44-
"@typescript-eslint/eslint-plugin": "^4.5.0",
45-
"@typescript-eslint/parser": "^4.5.0",
44+
"@typescript-eslint/eslint-plugin": "^5.5.0",
45+
"@typescript-eslint/parser": "^5.5.0",
4646
"chai": "^4.2.0",
47-
"eslint": "^7.11.0",
47+
"eslint": "^8.47.0",
4848
"mocha": "^4.1.0",
4949
"rimraf": "^2.6.1",
5050
"ts-node": "^10.4.0",

components/gitpod-protocol/package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
"@types/random-number-csprng": "^1.0.0",
2525
"@types/uuid": "^8.3.1",
2626
"@types/ws": "^5.1.2",
27-
"@typescript-eslint/eslint-plugin": "^4.5.0",
28-
"@typescript-eslint/parser": "^4.5.0",
27+
"@typescript-eslint/eslint-plugin": "^5.5.0",
28+
"@typescript-eslint/parser": "^5.5.0",
2929
"chai": "^4.3.4",
3030
"chai-subset": "^1.6.0",
31-
"eslint": "^7.11.0",
31+
"eslint": "^8.47.0",
3232
"mocha": "^5.0.0",
3333
"rimraf": "^2.6.2",
3434
"ts-node": "^10.4.0",
@@ -68,8 +68,6 @@
6868
"reflect-metadata": "^0.1.13",
6969
"uuid": "^8.3.2",
7070
"vscode-jsonrpc": "^5.0.1",
71-
"vscode-languageserver-protocol": "3.17.0",
72-
"vscode-languageserver-types": "3.17.0",
7371
"vscode-uri": "^3.0.3",
7472
"vscode-ws-jsonrpc": "^0.2.0",
7573
"ws": "^7.4.6"

0 commit comments

Comments
 (0)