-
Notifications
You must be signed in to change notification settings - Fork 9
feat: runs schemathesis on devnet #3398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 73 commits
Commits
Show all changes
128 commits
Select commit
Hold shift + click to select a range
5f402c6
import devnet
kukkok3 8bcd8eb
fix cspell
kukkok3 49675f8
adds docker compose overlay for localhost
kukkok3 6b90c98
Merge branch 'main' into feat/runs-schemathesis-on-devnet
kukkok3 60bbaef
adds devnet test job
kukkok3 37adedc
Merge branch 'feat/runs-schemathesis-on-devnet' of https://github.com…
kukkok3 83e8ada
refactor en variables
kukkok3 780c46d
move env variable
kukkok3 18e23dc
adds test key
kukkok3 c16a7d9
comment out uneeded jobs
kukkok3 621075b
Merge branch 'main' into feat/runs-schemathesis-on-devnet
kukkok3 5050c0c
adds key
kukkok3 82a0628
rerun
kukkok3 ba1527e
comment out cleaning up
kukkok3 839724c
update
kukkok3 e6da934
test 1
oldGreg5 31be0de
Merge branch 'main' into feat/runs-schemathesis-on-devnet
oldGreg5 cf389c3
test 2
oldGreg5 e0e25fb
test 3
oldGreg5 b721e18
test 3
oldGreg5 e6c8b6f
test 3
oldGreg5 56bf9df
test 3
oldGreg5 7670832
test 4
oldGreg5 392c0bd
test 4
oldGreg5 c928365
test 4
oldGreg5 046171e
test 4
oldGreg5 7852adf
test 4
oldGreg5 b460a05
test 4
oldGreg5 fba5bc9
test 4
oldGreg5 ab3d2f0
test 4
oldGreg5 fff2fb3
test 4
oldGreg5 fadc618
test 4
oldGreg5 67d6551
test 4
oldGreg5 6c522fc
test 4
oldGreg5 42ea30a
test 4
oldGreg5 c8eeefa
test 4
oldGreg5 d1f28aa
test 4
oldGreg5 aec3139
test 4
oldGreg5 234d561
test 4
oldGreg5 db3b65f
test 4
oldGreg5 b0c2a25
test 4
oldGreg5 e1fbc47
test 4
oldGreg5 006031a
test 4
oldGreg5 061b586
test 5
oldGreg5 b982250
test 5
oldGreg5 356901f
test 6
oldGreg5 d8f1517
Merge branch 'main' into feat/runs-schemathesis-on-devnet
oldGreg5 4631ae2
test 7
oldGreg5 bf958f5
updates gitignore
kukkok3 2770b32
use qa 0.0.3
oldGreg5 9e93c3c
Merge branch 'main' into feat/runs-schemathesis-on-devnet
oldGreg5 0f1ba63
try 1 separate docker compose
oldGreg5 acbb6f5
Merge branch 'main' into feat/runs-schemathesis-on-devnet
oldGreg5 b4abd68
try 2 separate docker compose
oldGreg5 691fad6
Merge branch 'main' into feat/runs-schemathesis-on-devnet
oldGreg5 1306457
try 3 separate docker compose
oldGreg5 f7e6fe4
try 4 separate docker compose
oldGreg5 f362eaf
try 5 separate docker compose
oldGreg5 a370821
try 5 separate docker compose
oldGreg5 4c843d6
try 6 add devnet smoke tests
oldGreg5 f70be9c
try 7 add devnet smoke tests
oldGreg5 36327e5
cleanup
oldGreg5 1420522
Merge branch 'main' into feat/runs-schemathesis-on-devnet
oldGreg5 06d10d1
cleanup
oldGreg5 c052bc2
cleanup 2
oldGreg5 fca749c
Merge branch 'refs/heads/main' into feat/runs-schemathesis-on-devnet
oldGreg5 b9ebb3e
Merge branch 'main' into feat/runs-schemathesis-on-devnet
oldGreg5 ede6f27
cleanup 3
oldGreg5 2f518c2
Merge remote-tracking branch 'origin/feat/runs-schemathesis-on-devnet…
oldGreg5 269169a
cleanup 4
oldGreg5 b0699d9
remove devnet smoke tests
oldGreg5 7880a71
cleanup 1
oldGreg5 9e09702
Merge branch 'main' into feat/runs-schemathesis-on-devnet
kukkok3 ebc3bd3
Merge branch 'main' into feat/runs-schemathesis-on-devnet
oldGreg5 2d2373e
PR comments
oldGreg5 3d690fb
Merge remote-tracking branch 'origin/feat/runs-schemathesis-on-devnet…
oldGreg5 380634f
Merge branch 'main' into feat/runs-schemathesis-on-devnet
oldGreg5 24b1fc3
cleanup
oldGreg5 4450322
cleanup 2
oldGreg5 e284b2f
cleanup 2
oldGreg5 900ad2e
Merge branch 'main' into feat/runs-schemathesis-on-devnet
oldGreg5 92d73bc
try build without cache
oldGreg5 1a61112
try 1
oldGreg5 655f266
try 2
oldGreg5 e7a9ecb
try 3, with direct commit hash
oldGreg5 cdcb3e0
try 3, revert
oldGreg5 98e1e38
try 4, swap jobs
oldGreg5 747e435
try 5, no swap, add space clean to devnet
oldGreg5 6c0a8f8
remove ssh agent from test
kukkok3 f133546
cleanup
oldGreg5 20cf26f
ssh agent cleanup try 1
oldGreg5 7457005
pre build images job, try 1
oldGreg5 36d69c6
pre build images job, try 2
oldGreg5 bddf261
Merge branch 'main' into feat/runs-schemathesis-on-devnet
oldGreg5 70463dd
pre build images job, try 3
oldGreg5 7513dcc
pre build images job, try 4
oldGreg5 4f0ad8b
pre build images job, try 5
oldGreg5 e0ce3af
pre build images job, try 6
oldGreg5 f161a00
pre build images job, try 7
oldGreg5 a9281d9
pre build images job, try 7
oldGreg5 894d787
pre build images job, try 8
oldGreg5 d28ae71
pre build images job, try 9
oldGreg5 66d1bd5
pre build images job, try 9
oldGreg5 eb43ea6
pre build images job, try 10
oldGreg5 4c634f0
revert workflows borrowing
oldGreg5 815f5c4
try 1
oldGreg5 4b9a891
try 2
oldGreg5 afce30a
try 3
oldGreg5 bd581f4
cleanup
oldGreg5 f60abb8
cleanup 2
oldGreg5 492c467
cleanup 3
oldGreg5 2548cc4
adding devnet starting retry
oldGreg5 e8cfd7c
adding devnet starting retry, try 2
oldGreg5 79128ac
check if devnet retry works
oldGreg5 8993151
check if devnet retry works, try 2
oldGreg5 c5aca85
check if devnet retry works, try 3
oldGreg5 35e07d9
check if devnet retry works, try 4
oldGreg5 2c10efe
check if devnet retry works, try 5
oldGreg5 99de776
check if devnet retry works, try 6
oldGreg5 9a92ed3
check if devnet retry works, try 7
oldGreg5 4369f23
use nightly to experiment
oldGreg5 078b9f8
use nightly to experiment, try 2
oldGreg5 7896fb5
use nightly to experiment, try 3
oldGreg5 2d3a152
use nightly to experiment, try 4
oldGreg5 037a332
use nightly to experiment, try 5
oldGreg5 7e2dcf9
use nightly to experiment, try 6
oldGreg5 872b480
make building schemathesis in tests only
oldGreg5 132457b
Merge branch 'main' into feat/runs-schemathesis-on-devnet
oldGreg5 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -409,6 +409,7 @@ vsync | |
| wallclock | ||
| wasmtime | ||
| Wconditional | ||
| webfactory | ||
| webos | ||
| Werror | ||
| Wireframes | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,117 @@ | ||
| # cspell: words statusgossip socat | ||
|
|
||
| services: | ||
|
|
||
| cat-devnet: | ||
| image: cat-devnet:latest | ||
| container_name: cat-devnet | ||
| healthcheck: | ||
| #TODO when the issues with block initial sizes is fixed, update the healthcheck https://github.com/input-output-hk/catalyst-voices/issues/3327 | ||
oldGreg5 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| test: ["CMD-SHELL","bash /healthcheck.sh"] | ||
| start_period: 60s | ||
| interval: 30s | ||
| retries: 20 | ||
| volumes: | ||
| - data:/shared-data | ||
| network_mode: host | ||
|
|
||
| event-db: | ||
| image: event-db:latest | ||
| container_name: event-db | ||
| environment: | ||
| - DB_HOST=localhost | ||
| - DB_PORT=5432 | ||
| - DB_NAME=CatalystEventDev | ||
| - DB_DESCRIPTION="Catalyst Event DB" | ||
| - DB_SUPERUSER=postgres | ||
| - DB_SUPERUSER_PASSWORD=postgres | ||
| - DB_USER=catalyst-event-dev | ||
| - DB_USER_PASSWORD=CHANGE_ME | ||
| - INIT_AND_DROP_DB=true | ||
| - WITH_MIGRATIONS=true | ||
| healthcheck: | ||
| test: | ||
| [ | ||
| "CMD-SHELL", | ||
| "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_PASSWORD}", | ||
| ] | ||
| interval: 10s | ||
| timeout: 5s | ||
| retries: 10 | ||
| network_mode: host | ||
|
|
||
| scylla-node: | ||
| image: scylladb/scylla:latest | ||
| container_name: scylla-node | ||
| restart: unless-stopped | ||
| command: --smp 2 --memory 1G --overprovisioned 1 --rpc-address 0.0.0.0 --broadcast-rpc-address 127.0.0.1 --api-address 0.0.0.0 --alternator-address 0.0.0.0 | ||
| healthcheck: | ||
| test: cqlsh -e "SHOW VERSION" || exit 1 | ||
| interval: 15s | ||
| timeout: 30s | ||
| retries: 10 | ||
| network_mode: host | ||
|
|
||
| cat-gateway: | ||
| image: cat-gateway:latest | ||
| container_name: cat-gateway | ||
| healthcheck: | ||
| test: "curl -s -i localhost:3030/api/v1/health/started | head -n 1 | grep 204" | ||
| start_period: 30s | ||
| interval: 30s | ||
| timeout: 30s | ||
| # approximately a 25 minutes of waiting | ||
| retries: 50 | ||
| environment: | ||
| - EVENT_DB_URL=postgres://catalyst-event-dev:CHANGE_ME@localhost/CatalystEventDev | ||
| - CASSANDRA_PERSISTENT_URL=localhost:9042 | ||
| - CASSANDRA_VOLATILE_URL=localhost:9042 | ||
| - CHAIN_NETWORK=Devnet | ||
| - SIGNED_DOC_SK=0x6455585b5dcc565c8975bc136e215d6d4dd96540620f37783c564da3cb3686dd | ||
| - INTERNAL_API_KEY=123 | ||
| # - LOG_LEVEL=error | ||
| # - RUST_LOG="error,cat_gateway=debug,cardano_chain_follower=debug,mithril-client=debug" | ||
| depends_on: | ||
| event-db: | ||
| condition: service_healthy | ||
| scylla-node: | ||
| condition: service_healthy | ||
| cat-devnet: | ||
| condition: service_healthy | ||
| network_mode: host | ||
|
|
||
| devnet-tests: | ||
| image: devnet-tests:latest | ||
| container_name: devnet-tests | ||
| environment: | ||
| - CARDANO_NODE_SOCKET_PATH=/shared-data/artifacts/devnet/node-pool1/ipc/node.sock | ||
| - CARDANO_CLI_BIN=/shared-data/artifacts/devnet/bin/cardano-cli | ||
| - GENESIS_WALLET_ADDR=/shared-data/artifacts/devnet/addresses/utxo1.addr | ||
| - GENESIS_WALLET_SKEY=/shared-data/artifacts/devnet/addresses/utxo1.skey | ||
| - NETWORK_MAGIC=42 | ||
| - CARDANO_API_URL=localhost:8090 | ||
| - GATEWAY_API_URL=localhost:3030 | ||
| volumes: | ||
| - data:/shared-data | ||
| depends_on: | ||
| cat-gateway: | ||
| condition: service_healthy | ||
| network_mode: host | ||
|
|
||
| schemathesis-runner: | ||
| image: schemathesis-runner:latest | ||
| container_name: schemathesis-runner | ||
| environment: | ||
| - API_SPEC=${API_SPEC:-http://localhost:3030/docs/cat-gateway.json} | ||
| - WAIT_FOR_SCHEMA=${WAIT_FOR_SCHEMA:-500} | ||
| - MAX_RESPONSE_TIME=${MAX_RESPONSE_TIME:-5000} | ||
| - HYPOTHESIS_MAX_EXAMPLES=${HYPOTHESIS_MAX_EXAMPLES:-100} | ||
| # place a seed value to reproduce some specific schemathesis test scenario | ||
| # - SEED="" | ||
| depends_on: | ||
| cat-gateway: | ||
| condition: service_healthy | ||
| network_mode: host | ||
|
|
||
| volumes: | ||
| data: | ||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.