Skip to content

Commit d85b4ae

Browse files
Merge pull request #729 from Mark-Simulacrum/modern-ci
Bump Ubuntu to 20.04 for profiler tests
2 parents f7ecbef + 79d8e1e commit d85b4ae

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282

8383
test_profiling:
8484
name: Test profiling
85-
runs-on: ubuntu-latest
85+
runs-on: ubuntu-20.04
8686
steps:
8787
- name: Checkout the source code
8888
uses: actions/checkout@v2

ci/check-profiling.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,7 @@ RUST_BACKTRACE=1 RUST_LOG=raw_cargo_messages=trace,collector=debug,rust_sysroot=
4343
test -f results/cgout-Test-helloworld-Check-Full
4444
grep -q "events: Ir" results/cgout-Test-helloworld-Check-Full
4545
test -f results/cgann-Test-helloworld-Check-Full
46-
# The Valgrind available on on GitHub is 3.13, which doesn't support the
47-
# `--show-percs=yes` option that we use. So the `cgann` file ends up empty,
48-
# because `cg_annotate` errors out and produces no stdout, but `collector` does
49-
# not check its exit code for failure and so does not fail itself.
50-
#grep -q "PROGRAM TOTALS" results/cgann-Test-helloworld-Check-Full
46+
grep -q "PROGRAM TOTALS" results/cgann-Test-helloworld-Check-Full
5147

5248
# Callgrind.
5349
RUST_BACKTRACE=1 RUST_LOG=raw_cargo_messages=trace,collector=debug,rust_sysroot=debug \
@@ -60,8 +56,7 @@ RUST_BACKTRACE=1 RUST_LOG=raw_cargo_messages=trace,collector=debug,rust_sysroot=
6056
test -f results/clgout-Test-helloworld-Check-Full
6157
grep -q "creator: callgrind" results/clgout-Test-helloworld-Check-Full
6258
test -f results/clgann-Test-helloworld-Check-Full
63-
# See the explanation on the `cgann` file for Cachegrind; it holds here too.
64-
#grep -q "Profile data file" results/clgann-Test-helloworld-Check-Full
59+
grep -q "Profile data file" results/clgann-Test-helloworld-Check-Full
6560

6661
# DHAT: needs Valgrind 3.15, but only Valgrind 3.13 is available on GitHub.
6762

0 commit comments

Comments
 (0)