File tree 2 files changed +74
-0
lines changed
2 files changed +74
-0
lines changed Original file line number Diff line number Diff line change 32
32
aws_access_key_id : " ${{ env.AWS_ACCESS_KEY_ID }}"
33
33
aws_secret_access_key : " ${{ secrets.AWS_SECRET_ACCESS_KEY }}"
34
34
if : github.ref == 'refs/heads/master' || github.ref == 'refs/heads/deploy'
35
+
35
36
test_benchmarks :
36
37
name : Test benchmarks
37
38
runs-on : ubuntu-latest
60
61
run : sh -x -c "ci/check-benchmarks.sh"
61
62
env :
62
63
BENCH_INCLUDE_EXCLUDE_OPTS : " --exclude script-servo"
64
+
63
65
test_script_servo :
64
66
name : Test benchmark script-servo
65
67
runs-on : ubuntu-latest
92
94
env :
93
95
BENCH_INCLUDE_EXCLUDE_OPTS : " --include script-servo"
94
96
SHELL : " /bin/bash"
97
+
98
+ test_profiling :
99
+ name : Test profiling
100
+ runs-on : ubuntu-latest
101
+ steps :
102
+ - name : Checkout the source code
103
+ uses : actions/checkout@v2
104
+ with :
105
+ fetch-depth : 1
106
+
107
+ - name : Install latest nightly
108
+ uses : actions-rs/toolchain@v1
109
+ with :
110
+ toolchain : nightly
111
+ override : true
112
+
113
+ - name : Configure environment
114
+ run : |
115
+ sudo apt-get update
116
+ sudo apt-get install -y linux-tools-common linux-tools-generic linux-tools-`uname -r`
117
+ echo -1 | sudo tee /proc/sys/kernel/perf_event_paranoid
118
+
119
+ - name : Build collector
120
+ run : cargo build -p collector
121
+
122
+ - name : Check benchmarks
123
+ run : sh -x -c "ci/check-profiling.sh"
124
+
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ #
3
+ # This script is basically just a smoke test. It tests a couple of the
4
+ # profiling tools on a few benchmarks.
5
+
6
+ set -x;
7
+
8
+ bash -c " while true; do sleep 30; echo \$ (date) - running ...; done" &
9
+ PING_LOOP_PID=$!
10
+ trap - ERR
11
+
12
+ RUST_BACKTRACE=1 RUST_LOG=collector_raw_cargo=trace,collector=debug,rust_sysroot=debug \
13
+ bindir=` cargo run -p collector --bin collector install_next` \
14
+ && \
15
+ \
16
+ RUST_BACKTRACE=1 RUST_LOG=collector_raw_cargo=trace,collector=debug,rust_sysroot=debug \
17
+ cargo run -p collector --bin collector -- \
18
+ profile_local eprintln $bindir /rustc Test \
19
+ --cargo $bindir /cargo \
20
+ --include helloworld \
21
+ --runs Full \
22
+ && \
23
+ test -f results/eprintln-Test-helloworld-Check-Full && \
24
+ test -f results/eprintln-Test-helloworld-Debug-Full && \
25
+ test -f results/eprintln-Test-helloworld-Opt-Full && \
26
+ test ! -e results/eprintln-Test-helloworld-Doc-Full && \
27
+ \
28
+ RUST_BACKTRACE=1 RUST_LOG=collector_raw_cargo=trace,collector=debug,rust_sysroot=debug \
29
+ cargo run -p collector --bin collector -- \
30
+ profile_local self-profile $bindir /rustc Test \
31
+ --builds Debug \
32
+ --cargo $bindir /cargo \
33
+ --include futures \
34
+ --runs IncrUnchanged \
35
+ && \
36
+ test -f results/crox-Test-futures-Debug-IncrUnchanged && \
37
+ test -f results/flamegraph-Test-futures-Debug-IncrUnchanged && \
38
+ test -f results/summarize-Test-futures-Debug-IncrUnchanged && \
39
+ test -d results/Zsp-Test-futures-Debug-IncrUnchanged
40
+
41
+ code=$?
42
+ kill $PING_LOOP_PID
43
+ exit $code
44
+
You can’t perform that action at this time.
0 commit comments