Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Leshiy committed Feb 9, 2025
1 parent f522dc5 commit 98e9d7b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 5 deletions.
6 changes: 3 additions & 3 deletions catalyst-gateway/tests/schemathesis_tests/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ test-fuzzer-api:
--compose schemathesis-docker-compose.yml \
--load schemathesis:latest=(+package-schemathesis --api_spec=$api_spec --seed=$seed) \
--load event-db:latest=(../../event-db+build) \
--load cat-gateway:latest=(../+package-cat-gateway-integration) \
--service event-db \
--load cat-gateway:latest=(../../+docker) \
--pull scylladb/scylla:latest \
--service cat-gateway \
--allow-privileged
# Need to wait until cat-gateway will successfully connect to the scylladb
RUN sleep 10; docker run --net=host --name=st schemathesis:latest || echo fail > fail; \
RUN docker run --net=host --name=st schemathesis:latest || echo fail > fail; \

Check failure on line 55 in catalyst-gateway/tests/schemathesis_tests/Earthfile

View workflow job for this annotation

GitHub Actions / ci / test / ./catalyst-gateway/tests/schemathesis_tests+test-fuzzer-api

Error

The command WITH DOCKER RUN --privileged docker run --net=host --name=st schemathesis:latest || echo fail > fail; docker cp st:/results/junit-report.xml junit-report.xml && docker cp st:/results/cassette.yaml cassette.yaml did not complete successfully. Exit code 1

Check failure on line 55 in catalyst-gateway/tests/schemathesis_tests/Earthfile

View workflow job for this annotation

GitHub Actions / test_reporting / Generate test reports

Error

The command WITH DOCKER RUN --privileged docker run --net=host --name=st schemathesis:latest || echo fail > fail; docker cp st:/results/junit-report.xml junit-report.xml && docker cp st:/results/cassette.yaml cassette.yaml did not complete successfully. Exit code 1
docker cp st:/results/junit-report.xml junit-report.xml && \
docker cp st:/results/cassette.yaml cassette.yaml
END
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# cspell: words statusgossip

version: "3"
name: myproject
services:
event-db:
image: event-db:latest
environment:
# Required environment variables for migrations
- DB_HOST=localhost
- DB_PORT=5432
- DB_NAME=CatalystEventDev
Expand All @@ -16,7 +17,6 @@ services:

- INIT_AND_DROP_DB=true
- WITH_MIGRATIONS=true
- WITH_SEED_DATA=true
ports:
- 5432:5432
healthcheck:
Expand All @@ -25,10 +25,38 @@ services:
timeout: 5s
retries: 10

scylla-node:
image: scylladb/scylla:latest
restart: unless-stopped
command: --api-address 0.0.0.0
ports:
- "9042:9042"
healthcheck:
test: ["CMD-SHELL", "[ $$(nodetool statusgossip) = running ]"]
interval: 10s
timeout: 5s
retries: 10

cat-gateway:
image: cat-gateway:latest
environment:
- EVENT_DB_URL=postgres://catalyst-event-dev:CHANGE_ME@event-db/CatalystEventDev
- CASSANDRA_PERSISTENT_URL=scylla-node:9042
- CASSANDRA_VOLATILE_URL=scylla-node:9042
- CAT_ADDRESS=0.0.0.0:3030
- CHAIN_NETWORK="Preprod"
- LOG_LEVEL=error
- RUST_LOG="error,cat_gateway=debug,cardano_chain_follower=debug,mithril-client=debug"
- DATA_REFRESH_TICK=5
- CHECK_CONFIG_TICK=5
- CHAIN_FOLLOWER_SYNC_TASKS="16"
- MACHINE_ID="UID"
- RBAC_OFF=true
hostname: 127.0.0.1
ports:
- 3030:3030
depends_on:
event-db:
condition: service_healthy
scylla-node:
condition: service_healthy

0 comments on commit 98e9d7b

Please sign in to comment.