From 03f28d895b2b9f092bfa9a598d487a6e8e876946 Mon Sep 17 00:00:00 2001 From: WebFreak001 Date: Wed, 22 Mar 2023 02:52:08 +0100 Subject: [PATCH] test ldc & dmd in RAM/CPU CI test --- .github/workflows/pr_info_untrusted.yml | 5 +++++ ci/summary_comment.sh | 16 +++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pr_info_untrusted.yml b/.github/workflows/pr_info_untrusted.yml index f5a7108..f72c0de 100644 --- a/.github/workflows/pr_info_untrusted.yml +++ b/.github/workflows/pr_info_untrusted.yml @@ -17,6 +17,11 @@ jobs: # (separate step due to needing GITHUB_TOKEN access) # Compiler to test with + - name: Prepare compiler + uses: dlang-community/setup-dlang@v1 + with: + compiler: dmd-latest + - name: Prepare compiler uses: dlang-community/setup-dlang@v1 with: diff --git a/ci/summary_comment.sh b/ci/summary_comment.sh index ae8e6f9..df5d70b 100755 --- a/ci/summary_comment.sh +++ b/ci/summary_comment.sh @@ -19,8 +19,8 @@ dub upgrade --missing-only rm -rf .dub bin start=`date +%s` -dub build --build=release --config=client --force 2>&1 || echo "DCD BUILD FAILED" -dub build --build=release --config=server --force 2>&1 || echo "DCD BUILD FAILED" +dub build --build=release --config=client --compiler=ldc2 --force 2>&1 || echo "DCD BUILD FAILED" +dub build --build=release --config=server --compiler=ldc2 --force 2>&1 || echo "DCD BUILD FAILED" end=`date +%s` build_time=$( echo "$end - $start" | bc -l ) @@ -33,10 +33,6 @@ echo "STAT:server size=$(wc -c bin/dcd-server)" echo "STAT:rough build time=${build_time}s" echo "STAT:" -# now rebuild server with -profile=gc -rm -rf .dub bin/dcd-server -dub build --build=profile-gc --config=server 2>&1 || echo "DCD BUILD FAILED" - cd tests ./run_tests.sh --time-server @@ -46,8 +42,14 @@ echo "STAT:DCD run_tests.sh $(grep -F 'Maximum resident set size (kbytes)' stder echo "STAT:" grep -E 'Request processed in .*' stderr.txt | rdmd ../ci/request_time_stats.d echo "STAT:" -echo "STAT:top 5 GC sources in server:" +# now rebuild server with -profile=gc +rm -rf .dub bin/dcd-server +dub build --build=profile-gc --config=server --compiler=dmd 2>&1 || echo "DCD BUILD FAILED" + +./run_tests.sh --time-server + +echo "STAT:top 5 GC sources in server:" if [ ! -f "profilegc.log" ]; then echo 'Missing profilegc.log file!' echo 'Tail for stderr.txt:'