-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(tests): e2e improvements (#17310)
* rename ecosystem to e2e * rename utils folder * improve cli for starting tests * add hook for buildkite * remove comment * simplify skip build feature * fix renamed path * use github action instead * add setup phase * make e2e tests verbose * attempt rename _example to example * display how many tests passed * remove --build in favor of --skipBuild * add a way to cleanup files that cannot be removed on linux
- Loading branch information
Showing
22 changed files
with
157 additions
and
55 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
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
File renamed without changes.
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,15 @@ | ||
version: '3.7' | ||
|
||
services: | ||
# not an actual service, just a helper to clean up the workspace | ||
clean: | ||
image: alpine | ||
command: | ||
- /bin/sh | ||
- -c | ||
- | | ||
rm -fr /e2e/.cache | ||
rm -fr /e2e/*.tgz | ||
find /e2e -name ".logs.*.txt" -type f -exec rm -fr {} + | ||
volumes: | ||
- ../:/e2e |
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
4 changes: 2 additions & 2 deletions
4
...tests/ecosystem/_utils/docker-compose.yml → ...lient/tests/e2e/_utils/docker-compose.yml
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,9 +1,9 @@ | ||
version: '3.7' | ||
|
||
services: | ||
_example: | ||
example: | ||
extends: | ||
file: docker-compose-common.yml | ||
service: test | ||
environment: | ||
- NAME=_example | ||
- NAME=example |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
|
||
( | ||
rm -fr /e2e/$NAME/.logs.* && \ | ||
cp -r /e2e/_utils /_utils && \ | ||
cp -r /e2e/$NAME /test && \ | ||
cp /e2e/prisma-0.0.0.tgz prisma-0.0.0.tgz && \ | ||
cp /e2e/prisma-client-0.0.0.tgz prisma-client-0.0.0.tgz && \ | ||
cp /e2e/jest.config.js /test/jest.config.js && \ | ||
cd /test && rm -fr node_modules && \ | ||
export NODE_PATH="$(npm root --quiet -g)" && \ | ||
node -r 'esbuild-register' _steps.ts \ | ||
) > /$NAME.logs.txt 2>&1 ; \ | ||
EXIT_CODE=$? && \ | ||
mv /$NAME.logs.txt /e2e/$NAME/.logs.$EXIT_CODE.txt && \ | ||
exit $EXIT_CODE |
2 changes: 1 addition & 1 deletion
2
...ests/ecosystem/_utils/standard.dockerfile → ...ient/tests/e2e/_utils/standard.dockerfile
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,4 +1,4 @@ | ||
FROM node:16 | ||
|
||
RUN npm i -g pnpm zx typescript jest ts-node esbuild esbuild-register @swc/jest | ||
CMD chmod +x ./ecosystem/_utils/standard.cmd.sh && ./ecosystem/_utils/standard.cmd.sh | ||
CMD chmod +x ./e2e/_utils/standard.cmd.sh && ./e2e/_utils/standard.cmd.sh |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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