Skip to content

Commit b60e592

Browse files
committed
why are you getting stuck
Signed-off-by: Patrick Roy <[email protected]>
1 parent 3c52a87 commit b60e592

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.buildkite/common.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,12 @@ def to_json(self):
364364
"""Serialize the pipeline to JSON"""
365365
return json.dumps(self.to_dict(), indent=4, sort_keys=True, ensure_ascii=False)
366366

367-
def devtool_test(self, devtool_opts=None, pytest_opts=None):
367+
def devtool_test(self, devtool_opts=None, pytest_opts=None, strace=False):
368368
"""Generate a `devtool test` command"""
369369
cmds = []
370370
parts = ["./tools/devtool -y test"]
371+
if strace:
372+
parts.insert(0, "strace -f")
371373
if self.shared_build is not None:
372374
parts.append("--no-build")
373375
if devtool_opts:

.buildkite/pipeline_pr.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
pipeline.devtool_test(
101101
devtool_opts="--performance -c 1-10 -m 0",
102102
pytest_opts="../tests/integration_tests/performance/",
103+
strace=True
103104
),
104105
**DEFAULTS_PERF,
105106
)

tools/devtool

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -755,10 +755,10 @@ cmd_test() {
755755

756756
huge_pages_old=$(cat /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages)
757757
huge_pages_new=$(echo $num_hugetlbfs_pages |sudo tee /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages)
758-
fi
759758

760-
if [[ "$huge_pages_new" -ne "$num_hugetlbfs_pages" ]]; then
761-
die "Failed to allocate $num_hugetlbfs_pages hugetlbfs pages, only got $huge_pages_new"
759+
if [[ "$huge_pages_new" -ne "$num_hugetlbfs_pages" ]]; then
760+
#die "Failed to allocate $num_hugetlbfs_pages hugetlbfs pages, only got $huge_pages_new"
761+
fi
762762
fi
763763

764764
say "Starting test run ..."

0 commit comments

Comments
 (0)