Skip to content

Commit

Permalink
mounting test source into different path
Browse files Browse the repository at this point in the history
fixing up paths for output to avoid paths with "//".
  • Loading branch information
mike dupont committed Sep 26, 2024
1 parent a60706a commit b62fc17
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
22 changes: 12 additions & 10 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: '3'
services:
mina-local-network:
restart: no
#image: o1js-build
#image: o1js-build
image: ghcr.io/meta-introspector/o1js/o1js-perf-recording:latest
build: .
privileged: true
Expand All @@ -15,7 +15,7 @@ services:
- SYS_PTRACE
- SYS_ADMIN
command: "bash -x /app/run-all-tests.sh"

mixed-source:
restart: no
image: ghcr.io/meta-introspector/o1js/o1js-perf-recording:latest
Expand All @@ -24,16 +24,19 @@ services:
- PROOF_LEVEL=full
- LOG_LEVEL=Debug
working_dir: /app

# mount the source
volumes:
- type: bind
source: "/home/runner/work/o1js/o1js/"
target: "/app/source/"
target: "/opt/introspector/test/"

cap_add:
- SYS_PTRACE
- SYS_ADMIN

# run the test from the mounted source
command: "bash -x /app/source/run-all-tests.sh"
command: "bash -x /opt/introspector/test/run-all-tests.sh"

reporting:
restart: no
Expand All @@ -44,7 +47,7 @@ services:
volumes:
- type: bind
source: "data"
target: "/app/perf-reporting/data2/"
target: "/app/perf-reporting/data2/"
environment:
- PROOF_LEVEL=full
- LOG_LEVEL=Debug
Expand All @@ -61,17 +64,16 @@ services:
volumes:
- type: bind
source: "data"
target: "/app/perf-reporting/input_data/"
target: "/app/perf-reporting/input_data/"
- type: bind
source: "perf-reporting/output"
target: "/app/perf-reporting/output/"
target: "/app/perf-reporting/output/"
- type: bind
source: "perf-reporting/scripts"
target: "/app/perf-reporting/scripts/"
target: "/app/perf-reporting/scripts/"
environment:
- PROOF_LEVEL=full
- LOG_LEVEL=Debug
- WORKSPACE_DIR=$WORKSPACE_DIR
working_dir: /app
working_dir: /app
command: "bash -x /app/perf-reporting/perf-report.sh"

2 changes: 1 addition & 1 deletion run-all-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ run_test() {
testname=$1
export MULTIPLE="${testname}"
export perfdata="${testname}.perf.data"
OUTPUT_DIR2="${OUTPUT_DIR}/$testname/"
OUTPUT_DIR2="${OUTPUT_DIR}$testname/"
mkdir -p "${OUTPUT_DIR2}clinic/"
mkdir -p "${OUTPUT_DIR2}log/"
mkdir -p "${OUTPUT_DIR2}coverage/"
Expand Down

0 comments on commit b62fc17

Please sign in to comment.