utilities/gitlab-ci: Change base machine type to 2-cpu to fix make check
PATCH 1/1 utilities/gitlab-ci: Change base machine type to 2-cpu to fix make check
make -C CodeSamples/ check currently fails on Gitlab-CI.
Failure happen on sched_setaffinity:sched_setaffinity: Invalid argument
Further debuging, it's possible to notice that some tests are trying to set the cpu affinity in CPUs 0 and 1, so at least 2 cpus are needed for the test to run properly.
Current (default) saas-linux-small-amd64 instances used for testing on Gitlab-CI only offer a single CPU, which is not enough.
For the test_codesamples pre-test, change the instance type to saas-linux-medium-amd64 so the tests can run properly.
test_codesamples")
--- utilities/gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+)
utilities/gitlab-ci.yml +1 -0
@@ -5,6 +5,7 @@ stages: - build test_codesamples: + tags: [ saas-linux-medium-amd64 ] stage: test before_script:
Signature · 1 line
2.39.1
Quoted 12 lines · Leonardo Bras
make -C CodeSamples/ checkcurrently fails on Gitlab-CI.Failure happen on
sched_setaffinity:sched_setaffinity: Invalid argumentFurther debuging, it's possible to notice that some tests are trying to set the cpu affinity in CPUs 0 and 1, so at least 2 cpus are needed for the test to run properly.
Current (default) saas-linux-small-amd64 instances used for testing on Gitlab-CI only offer a single CPU, which is not enough.
Quoted 6 lines
For the
test_codesamplespre-test, change the instance type to saas-linux-medium-amd64 so the tests can run properly.Fixes 9217963c ("utilities/gitlab-ci.yml: Add 'make check' on
test_codesamples")Signed-off-by Leonardo Bras <[email protected]>
Hi,
I see that this change worked at:
https://gitlab.com/linux-kernel/perfbook/-/jobs/3723917786
So FWIW,
I don't have a list of minimum CPU count for programs under CodeSamples/, but I guess there are a few which need more than two CPUs.
You might need to add conditionals in Makefile to exclude those tests depending on available CPU count.
Thanks, Akira
Quoted 16 lines
--- utilities/gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+)utilities/gitlab-ci.yml +1
-0@@ -5,6 +5,7 @@ stages: - build test_codesamples: + tags: [ saas-linux-medium-amd64 ] stage: test before_script:
Paul E. McKenney
AppliedQuoted 22 lines · Akira Yokosawa
Quoted 12 lines · Leonardo Bras
make -C CodeSamples/ checkcurrently fails on Gitlab-CI.Failure happen on
sched_setaffinity:sched_setaffinity: Invalid argumentFurther debuging, it's possible to notice that some tests are trying to set the cpu affinity in CPUs 0 and 1, so at least 2 cpus are needed for the test to run properly.
Current (default) saas-linux-small-amd64 instances used for testing on Gitlab-CI only offer a single CPU, which is not enough.
Quoted 6 lines
For the
test_codesamplespre-test, change the instance type to saas-linux-medium-amd64 so the tests can run properly.Fixes 9217963c ("utilities/gitlab-ci.yml: Add 'make check' on
test_codesamples")Signed-off-by Leonardo Bras <[email protected]>Hi,
Quoted 7 lines
I see that this change worked at:
https://gitlab.com/linux-kernel/perfbook/-/jobs/3723917786So FWIW,
Reviewed-by Akira Yokosawa <[email protected]>
Queued and pushed, thank you both!
Quoted 6 lines
I don't have a list of minimum CPU count for programs under CodeSamples/, but I guess there are a few which need more than two CPUs.
You might need to add conditionals in
Makefileto exclude those tests depending on available CPU count.
In addition, some of the tests may need special command-line arguments. For example, most of the tests that take "--smoketest" probably want to use that argument for "make check".
One thought is to take this one directory at a time. Any better ideas?
Thanx, Paul
Quoted 18 lines
Thanks, Akira
Quoted 16 lines
--- utilities/gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+)utilities/gitlab-ci.yml +1
-0@@ -5,6 +5,7 @@ stages: - build test_codesamples: + tags: [ saas-linux-medium-amd64 ] stage: test before_script:
Quoted 25 lines · Paul E. McKenney
Quoted 24 lines · Akira Yokosawa
Quoted 12 lines · Leonardo Bras
make -C CodeSamples/ checkcurrently fails on Gitlab-CI.Failure happen on
sched_setaffinity:sched_setaffinity: Invalid argumentFurther debuging, it's possible to notice that some tests are trying to set the cpu affinity in CPUs 0 and 1, so at least 2 cpus are needed for the test to run properly.
Current (default) saas-linux-small-amd64 instances used for testing on Gitlab-CI only offer a single CPU, which is not enough.
Quoted 6 lines
For the
test_codesamplespre-test, change the instance type to saas-linux-medium-amd64 so the tests can run properly.Fixes 9217963c ("utilities/gitlab-ci.yml: Add 'make check' on
test_codesamples")Signed-off-by Leonardo Bras <[email protected]>Hi,
I see that this change worked at:
Quoted 14 lines
Quoted 5 lines
https://gitlab.com/linux-kernel/perfbook/-/jobs/3723917786So FWIW,
Reviewed-by Akira Yokosawa <[email protected]>Queued and pushed, thank you both!
Quoted 6 lines
I don't have a list of minimum CPU count for programs under CodeSamples/, but I guess there are a few which need more than two CPUs.
You might need to add conditionals in
Makefileto exclude those tests depending on available CPU count.
Sure,
I think my project group (linux-kernel) has an Ultimate subscription for being open-source (I recall filling-in a form and getting for that in the past).
So, if it's up to 4 cpus, I think we can manage to test on the Gitlab-ci.
Quoted 4 lines
In addition, some of the tests may need special command-line arguments. For example, most of the tests that take "--smoketest" probably want to use that argument for "make check".
For directories with those cases, we could write a script for calling every test with their command-line arguments, and then call it from the directory's Makefile.
Quoted 4 lines
One thought is to take this one directory at a time. Any better ideas?
Thanx, Paul
That works for me!
Every directory could have it's own make check, and we could call them from the CodeSamples directory's make check
Thanks,
Leo
Quoted 19 lines
Quoted 19 lines
Thanks, Akira
Quoted 16 lines
--- utilities/gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+)utilities/gitlab-ci.yml +1
-0@@ -5,6 +5,7 @@ stages: - build test_codesamples: + tags: [ saas-linux-medium-amd64 ] stage: test before_script: