Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mickamy committed Dec 31, 2023
1 parent 9f03671 commit a17d64b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@ jobs:
- "ruby"
steps:
- uses: actions/checkout@v2
- run: sed -i 's/python/'"$ISUCON_APP_LANG"'/g' ./docker-compose.yml && make build
- run: echo 'Run benchmark for ISHOCON2'
- run: |
sed -i 's/python/'"$ISHOCON_APP_LANG"'/g' ./docker-compose.yml
cat ./docker-compose.yml
make build
env:
ISHOCON_APP_LANG: run_${{ matrix.language }}
- run: make up && sleep 10
ISHOCON_APP_LANG: ${{ matrix.language }}
- run: make up && sleep 30
- run: make bench
timeout-minutes: 5
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ up: build
down:
docker compose down

bench: up
bench:
docker exec -i ishocon2-bench-1 sh -c "./benchmark --ip app:443"
2 changes: 2 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

app_lang="${ISHOCON_APP_LANG}"

make build

if [ -z "$app_lang" ]
then
echo "ISHOCON_APP_LANG is not set"
Expand Down

0 comments on commit a17d64b

Please sign in to comment.