-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update monorepo to node 20, add codecov (#1195)
- Loading branch information
Showing
16 changed files
with
84 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,5 @@ | ||
FROM 528451384384.dkr.ecr.us-west-2.amazonaws.com/buildkite-agent-node16:node-16.16 | ||
FROM 528451384384.dkr.ecr.us-west-2.amazonaws.com/buildkite-agent-node20 | ||
|
||
# 2. Install WebKit dependencies | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
libwoff1 \ | ||
libopus0 \ | ||
libwebp6 \ | ||
libwebpdemux2 \ | ||
libenchant1c2a \ | ||
libgudev-1.0-0 \ | ||
libsecret-1-0 \ | ||
libhyphen0 \ | ||
libgdk-pixbuf2.0-0 \ | ||
libegl1 \ | ||
libnotify4 \ | ||
libxslt1.1 \ | ||
libevent-2.1-6 \ | ||
libgles2 \ | ||
libvpx5 \ | ||
libxcomposite1 \ | ||
libatk1.0-0 \ | ||
libatk-bridge2.0-0 \ | ||
libepoxy0 \ | ||
libgtk-3-0 \ | ||
libharfbuzz-icu0 | ||
|
||
# 3. Install gstreamer and plugins to support video playback in WebKit. | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
libgstreamer-gl1.0-0 \ | ||
libgstreamer-plugins-bad1.0-0 \ | ||
gstreamer1.0-plugins-good \ | ||
gstreamer1.0-libav | ||
|
||
# 4. Install Chromium dependencies | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
libnss3 \ | ||
libxss1 \ | ||
libasound2 \ | ||
fonts-noto-color-emoji \ | ||
libxtst6 | ||
|
||
# 5. Install Firefox dependencies | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
libdbus-glib-1-2 \ | ||
libxt6 | ||
|
||
# 6. Install ffmpeg to bring in audio and video codecs necessary for playing videos in Firefox. | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
ffmpeg | ||
|
||
# 7. (Optional) Install XVFB if there's a need to run browsers in headful mode | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
xvfb | ||
RUN npx playwright install-deps | ||
|
||
ENTRYPOINT [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
# Buildkite setup | ||
|
||
## Dockerfile.agent | ||
|
||
Builds the base image that is used by analytics-next in CI. | ||
# Buildkite | ||
|
||
## How to update the buildkite docker agent | ||
1. Make your changes to `Dockerfile.agent`. | ||
2. Push the changes to ecr | ||
(will need `Ops Write` permission). | ||
```bash | ||
$ robo docker.login-privileged | ||
$ cd .buildkite | ||
$ robo-tooling.docker.login-privileged | ||
$ make agent | ||
``` | ||
|
||
## .pipeline | ||
|
||
Full buildkite configuration. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
16.16 | ||
20.9.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
target: auto | ||
threshold: 0% | ||
base: auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
"scripts" | ||
], | ||
"engines": { | ||
"node": "^16.16.0" | ||
"node": "^20" | ||
}, | ||
"scripts": { | ||
"test": "jest", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,7 @@ | |
}, | ||
"devDependencies": { | ||
"@internal/config": "0.0.0", | ||
"@types/node": "^16", | ||
"@types/node": "^18", | ||
"axios": "^1.6.2" | ||
}, | ||
"packageManager": "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/bin/sh | ||
# Clear build artifacts and build cache | ||
|
||
find . \( -name ".turbo" -o -name "dist" -o -name ".next" -o -name "tsconfig.tsbuildinfo" \) ! -path "*/node_modules/*" -print0 | xargs -0 rm -rf | ||
find . \( -name ".turbo" -o -name "dist" -o -name ".next" -o -name "tsconfig.tsbuildinfo" -o -name "coverage" \) ! -path "*/node_modules/*" -print0 | xargs -0 rm -rf | ||
rm -rf node_modules/.cache | ||
|
||
echo "Build files and cache deleted." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
"packageManager": "[email protected]", | ||
"devDependencies": { | ||
"@node-kit/yarn-workspace-root": "^3.2.0", | ||
"@types/node": "^16", | ||
"@types/node": "^20", | ||
"ts-node": "^10.8.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters