Skip to content

Commit b22dc91

Browse files
authored
Merge pull request cardano-foundation#9 from cardano-foundation/karknu/moar_fixes
Some Antithesis fixes
2 parents 3bfdef3 + 96a8d68 commit b22dc91

File tree

4 files changed

+4
-25
lines changed

4 files changed

+4
-25
lines changed

compose/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ query: TESTNET ## Query tip of all pools
7777
for i in $$(seq 1 $${pools}) ; do docker exec -ti p$${i} timeout 0.05 cardano-cli ping --magic 42 --host 127.0.0.1 --port 3001 --tip --quiet -c1; done ; true
7878

7979
validate: TESTNET ## Check for consensus among all pools
80-
docker exec -ti s1 /opt/composer/convergence/eventually_converged.sh
80+
docker exec -ti s1 /opt/antithesis/test/v1/convergence/eventually_converged.sh
8181

8282
anti: TESTNET ## Run Antithesis job
8383
curl --fail -u "${username}:${password}" -X POST ${url} -H "Content-Type: application/json" -d "$$(jq -n \

compose/cardano-node.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ POOL_ID="${POOL_ID:-}"
1717
PORT="${PORT:-3001}"
1818
PROMETHEUS_LISTEN="${PROMETHEUS_LISTEN:-127.0.0.1}"
1919
PROMETHEUS_PORT="${PROMETHEUS_PORT:-12798}"
20-
SYSTEM_START="${SYSTEM_START:-$(date -d "now - 1 minute" +%Y-%m-%dT%H:%M:00Z)}"
20+
SYSTEM_START="${SYSTEM_START:-$(date -d "@$(( ( $(date +%s) / 120 ) * 120 ))" +%Y-%m-%dT%H:%M:00Z)}"
2121
TYPE="${TYPE:-bp}"
2222
USE_LEDGER_AFTER_SLOT="${USE_LEDGER_AFTER_SLOT:-0}"
2323

compose/sidecar/Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,9 @@ RUN groupadd --gid 10000 cardano && \
7575
# Create Antithesis directory
7676
RUN install --directory --owner=cardano --group=cardano --mode=0750 /opt/antithesis/test/v1
7777

78-
# Create Test Composer directory
79-
RUN install --directory --owner=cardano --group=cardano --mode=0750 /opt/composer
80-
8178
# Copy Antithesis scripts
82-
COPY composer /opt/composer
83-
RUN chmod 0755 /opt/composer/*/*
79+
COPY composer /opt/antithesis/test/v1/
80+
RUN chmod 0755 /opt/antithesis/test/v1/*/*
8481

8582
# Copy sidecar.sh
8683
COPY sidecar.sh /

compose/sidecar/sidecar.sh

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,6 @@ verify_environment_variables() {
2121
fi
2222
}
2323

24-
enable_composers() {
25-
# CONVERGENCE_COMPOSER
26-
if [ "${CONVERGENCE_COMPOSER,,}" = "true" ]; then
27-
local src_dir="/opt/composer/convergence"
28-
local dest_dir="/opt/antithesis/test/v1/convergence"
29-
30-
mkdir -p "$dest_dir"
31-
32-
for file in "$src_dir"/*; do
33-
if [ -f "$file" ]; then # Only process regular files (not directories or symlinks)
34-
local filename=$(basename "$file")
35-
ln -snf "$file" "$dest_dir/$filename"
36-
fi
37-
done
38-
fi
39-
}
40-
4124
signal_ready() {
4225
if [ ! -f "${ANTITHESIS_OUTPUT_DIR}/sdk.jsonl" ]; then
4326
for i in $(seq 1 "${POOLS}"); do
@@ -61,7 +44,6 @@ signal_ready() {
6144
# Establish run order
6245
main() {
6346
verify_environment_variables
64-
enable_composers
6547
signal_ready
6648
while true; do
6749
sleep 60

0 commit comments

Comments
 (0)