Skip to content

Commit

Permalink
ci: mark more tests as flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
P403n1x87 committed Jan 28, 2022
1 parent d30b231 commit 06f696d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
16 changes: 8 additions & 8 deletions test/test_attach.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def test_where_multiprocess(py):
assert lines[join_line] == 1, result.stdout


@flaky
@flaky(max_runs=3)
@requires_sudo
@allpythons()
def test_where_kernel(py):
Expand All @@ -146,10 +146,10 @@ def test_where_kernel(py):
result = austinp("-kw", str(p.pid))
assert result.returncode == 0

assert "Process" in result.stdout
assert "Thread" in result.stdout
assert "sleepy.py" in result.stdout
assert "<module>" in result.stdout
assert "__select" in result.stdout
assert "libc" in result.stdout
assert "do_syscall" in result.stdout
assert "Process" in result.stdout, result.stdout
assert "Thread" in result.stdout, result.stdout
assert "sleepy.py" in result.stdout, result.stdout
assert "<module>" in result.stdout, result.stdout
assert "__select" in result.stdout, result.stdout
assert "libc" in result.stdout, result.stdout
assert "do_syscall" in result.stdout, result.stdout
3 changes: 2 additions & 1 deletion test/test_fork.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_fork_wall_time(austin, py, heap):
result = austin("-i", "2ms", *heap, *python(py), target("target34.py"))
assert py in (result.stderr or result.stdout), result.stderr or result.stdout

assert len(processes(result.stdout)) == 1
assert len(processes(result.stdout)) == 1, compress(result.stdout)
ts = threads(result.stdout)
assert len(ts) == 2, compress(result.stdout)

Expand Down Expand Up @@ -177,6 +177,7 @@ def test_fork_multiprocess(py):
assert has_pattern(result.stdout, "target_mp.py:fact:"), result.stdout


@flaky
@allpythons()
def test_fork_full_metrics(py):
result = austin("-i", "10ms", "-f", *python(py), target("target34.py"))
Expand Down

0 comments on commit 06f696d

Please sign in to comment.