-
Notifications
You must be signed in to change notification settings - Fork 7
52 lines (48 loc) · 1.46 KB
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: CI Experiments
on:
push:
jobs:
test:
name: Test job
runs-on: ["self-hosted", "profiling"]
steps:
- name: show /proc/cpuinfo
run: |
cat /proc/cpuinfo || true
- name: show /proc/stat
run: |
cat /proc/stat || true
- name: show /sys/fs/cgroup/cpuset/cpuset.effective_cpus
run: |
cat /sys/fs/cgroup/cpuset/cpuset.effective_cpus || true
- name: show /proc/meminfo
run: |
cat /proc/meminfo || true
- name: show /proc/self/cgroup
run: |
cat /proc/self/cgroup || true
- name: show /sys/fs/cgroup/memory.max
run: |
cat /sys/fs/cgroup/memory.max || true
- name: show /sys/fs/cgroup/memory.high
run: |
cat /sys/fs/cgroup/memory.high || true
- name: Collect Workflow Telemetry
uses: catchpoint/workflow-telemetry-action@v2
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
timeout-minutes: 30
- name: Test
timeout-minutes: 3
shell: python3 {0}
run: |
import time
from datetime import datetime
print("Hello, world!", flush=True)
for i in range(7):
print(str(datetime.now()))
size = i * 1024 ** 2 * 1024
print(f"I am about to allocate {size / 1024 ** 3} GiB of memory", flush=True)
a = bytearray(size)
time.sleep(20)
a