Home of the wpt-pr-bot
38
stars
362
commits
JavaScript
primary language
Sep 8, 2026
updated
A helper bot for web-platform-tests.
For the purposes of automated testing, this project uses the replay
module to record responses from the
GitHub HTTP API. Contributors seeking to add new tests or modify existing tests
will need to capture new request/response pairs. This can be achieved as
follows:
GITHUB_TOKEN environment variable to the value created above, set
the REPLAY environment variable to record, and run the tests.Requirements:
Download the dependencies
npm install
To lint and run the tests, run:
npm run test
# Create a variable to represent the version
VERSION_ID="rev-$(git rev-parse --short HEAD)"
# Deploy the new version but do not promote it
gcloud --project=wpt-pr-bot app deploy --no-promote -v "${VERSION_ID}"
gcloud --project=wpt-pr-bot app logs tail -s default -v "${VERSION_ID}"
App started in ....gcloud --project=wpt-pr-bot app services set-traffic default \
--splits="${VERSION_ID}"=1
# Check the number of versions. There should only be two.
gcloud --project=wpt-pr-bot app versions list --service=default
# If there are more than two. Get the version id.
# Given old version ${REALLY_OLD_VERSION_ID}, delete it.
gcloud --project=wpt-pr-bot app versions delete \
${REALLY_OLD_VERSION_ID} --service=default
JavaScript
100.0%
Home of the wpt-pr-bot
38
stars
362
commits
JavaScript
primary language
Sep 8, 2026
updated
A helper bot for web-platform-tests.
For the purposes of automated testing, this project uses the replay
module to record responses from the
GitHub HTTP API. Contributors seeking to add new tests or modify existing tests
will need to capture new request/response pairs. This can be achieved as
follows:
GITHUB_TOKEN environment variable to the value created above, set
the REPLAY environment variable to record, and run the tests.Requirements:
Download the dependencies
npm install
To lint and run the tests, run:
npm run test
# Create a variable to represent the version
VERSION_ID="rev-$(git rev-parse --short HEAD)"
# Deploy the new version but do not promote it
gcloud --project=wpt-pr-bot app deploy --no-promote -v "${VERSION_ID}"
gcloud --project=wpt-pr-bot app logs tail -s default -v "${VERSION_ID}"
App started in ....gcloud --project=wpt-pr-bot app services set-traffic default \
--splits="${VERSION_ID}"=1
# Check the number of versions. There should only be two.
gcloud --project=wpt-pr-bot app versions list --service=default
# If there are more than two. Get the version id.
# Given old version ${REALLY_OLD_VERSION_ID}, delete it.
gcloud --project=wpt-pr-bot app versions delete \
${REALLY_OLD_VERSION_ID} --service=default
JavaScript
100.0%