Use HAX for series which add igt_describe
Hi all.
Last time we got number of patches which don't change test logic so they trigger BAT + IGT runs.
This is imo a waste of time for CI as it doesn't improve anything apart of better in-test documentation.
As such patches needs to be reviewed I think we could use HAX patch in which we remove all subtests in tests/intel-ci/fast-feedback.testlist adding line with:
igt@meta_test@fail-result
Any comments are welcome.
--
Zbigniew
Dnia 2022-03-03 at 07:09:36 +0100, Zbigniew Kempczyński napisał(a):
Quoted 12 lines
Hi all.
Last time we got number of patches which don't change test logic so they trigger BAT + IGT runs.
This is imo a waste of time for CI as it doesn't improve anything apart of better in-test documentation.
As such patches needs to be reviewed I think we could use HAX patch in which we remove all subtests in tests/intel-ci/fast-feedback.testlist adding line with:
Quoted 5 lines
igt@meta_test@fail-result
Any comments are welcome.
--
Zbigniew
imho good idea, but I assume that this should be done by the person sending. I wonder (and I suppose it is question to CI team) if it can be automated based on content of patch ? So no need for additional HAX and cover-letter ?
One more idea - check tag in subject ? like [... NO-TESTS 1/1] ...
We can start with HAX though.
--
Kamil
Quoted 19 lines · Kamil Konieczny
Dnia 2022-03-03 at 07:09:36 +0100, Zbigniew Kempczyński napisał(a):
Quoted 12 lines
Hi all.
Last time we got number of patches which don't change test logic so they trigger BAT + IGT runs.
This is imo a waste of time for CI as it doesn't improve anything apart of better in-test documentation.
As such patches needs to be reviewed I think we could use HAX patch in which we remove all subtests in tests/intel-ci/fast-feedback.testlist adding line with:
Quoted 5 lines
igt@meta_test@fail-result
Any comments are welcome.
--
Zbigniew
Quoted 7 lines
imho good idea, but I assume that this should be done by the person sending. I wonder (and I suppose it is question to CI team) if it can be automated based on content of patch ? So no need for additional HAX and cover-letter ?
One more idea - check tag in subject ? like [... NO-TESTS 1/1] ...We can start with HAX though.
I will accept any solution which would lead to stop unnecessary runs. Both - HAX or NO-TESTS base on people awereness but I think it is worth to do this. @Petri - your opinion?
--
Zbigniew
Quoted 3 lines
--
Kamil
Dnia 2022-03-03 at 12:58:05 +0100, Zbigniew Kempczyński napisał(a):
Quoted 26 lines · Kamil Konieczny
Quoted 25 lines
Dnia 2022-03-03 at 07:09:36 +0100, Zbigniew Kempczyński napisał(a):
Quoted 12 lines
Hi all.
Last time we got number of patches which don't change test logic so they trigger BAT + IGT runs.
This is imo a waste of time for CI as it doesn't improve anything apart of better in-test documentation.
As such patches needs to be reviewed I think we could use HAX patch in which we remove all subtests in tests/intel-ci/fast-feedback.testlist adding line with:
Quoted 5 lines
igt@meta_test@fail-result
Any comments are welcome.
--
Zbigniewimho good idea, but I assume that this should be done by the person sending. I wonder (and I suppose it is question to CI team) if it can be automated based on content of patch ? So no need for additional HAX and cover-letter ?
One more idea - check tag in subject ? like [... NO-TESTS 1/1] ...
Quoted 8 lines
Quoted 1 line
We can start with HAX though.
I will accept any solution which would lead to stop unnecessary runs. Both - HAX or NO-TESTS base on people awereness but I think it is worth to do this. @Petri - your opinion?
--
Zbigniew
One downside is when developers document dynamic subtests, see "test/i915_pm_rpm: Remove igt_describe() from dynamic subtest"
./i915_pm_rpm --run gem-execbuf-stress
[cut]
Starting subtest: gem-execbuf-stress
documenting dynamic subsubtests is impossible, document the subtest instead.please refer to lib/igt_core documentationi915_pm_rpm: ../lib/igt_core.c:365: internal_assert: Assertion `0' failed.
Received signal SIGABRT.
That patch deleted following lines "> -":
Review
Quoted 11 lines
igt_subtest_with_dynamic("gem-execbuf-stress") { for_each_memory_region(r, drm_fd) {(quoted diff) +0
-4- igt_describe("Validate execbuf submission while exercising rpm " - "suspend/resume cycles."); igt_dynamic_f("%s", r->name) gem_execbuf_stress_subtest(rounds, WAIT_STATUS, &r->ci); - igt_describe("Validate execbuf submission while exercising rpm " - "suspend/resume cycles with extra wait."); igt_dynamic_f("%s-%s", "extra-wait", r->name) gem_execbuf_stress_subtest(rounds, WAIT_STATUS | WAIT_EXTRA, &r->ci); }
This fail will not be catched when we will use HAX.
--
Kamil
Quoted 39 lines · Kamil Konieczny
Dnia 2022-03-03 at 12:58:05 +0100, Zbigniew Kempczyński napisał(a):
Quoted 26 lines · Kamil Konieczny
Quoted 25 lines
Dnia 2022-03-03 at 07:09:36 +0100, Zbigniew Kempczyński napisał(a):
Quoted 12 lines
Hi all.
Last time we got number of patches which don't change test logic so they trigger BAT + IGT runs.
This is imo a waste of time for CI as it doesn't improve anything apart of better in-test documentation.
As such patches needs to be reviewed I think we could use HAX patch in which we remove all subtests in tests/intel-ci/fast-feedback.testlist adding line with:
Quoted 5 lines
igt@meta_test@fail-result
Any comments are welcome.
--
Zbigniewimho good idea, but I assume that this should be done by the person sending. I wonder (and I suppose it is question to CI team) if it can be automated based on content of patch ? So no need for additional HAX and cover-letter ?
One more idea - check tag in subject ? like [... NO-TESTS 1/1] ...Quoted 8 lines
Quoted 1 line
We can start with HAX though.
I will accept any solution which would lead to stop unnecessary runs. Both - HAX or NO-TESTS base on people awereness but I think it is worth to do this. @Petri - your opinion?
--
ZbigniewOne downside is when developers document dynamic subtests, see "test/i915_pm_rpm: Remove
igt_describe()from dynamic subtest"
Quoted 6 lines
./i915_pm_rpm --run gem-execbuf-stress
[cut]
Starting subtest: gem-execbuf-stress
documenting dynamic subsubtests is impossible, document the subtest instead.please refer tolib/igt_coredocumentationi915_pm_rpm:../lib/igt_core.c:365:internal_assert: Assertion `0' failed.
Received signal SIGABRT.
Eh, what a pity this is not detected on compile time. Unfortunately this cannot be easily catched if test requirements are not met and test will skip. So you're right, using HAX is bad idea.
Btw shouldn't igt_describe() be no-op with warning in such case instead of asserting?
--
Zbigniew
Quoted 20 lines
That patch deleted following lines "> -":
Review
Quoted 11 lines
igt_subtest_with_dynamic("gem-execbuf-stress") { for_each_memory_region(r, drm_fd) {(quoted diff) +0
-4- igt_describe("Validate execbuf submission while exercising rpm " - "suspend/resume cycles."); igt_dynamic_f("%s", r->name) gem_execbuf_stress_subtest(rounds, WAIT_STATUS, &r->ci); - igt_describe("Validate execbuf submission while exercising rpm " - "suspend/resume cycles with extra wait."); igt_dynamic_f("%s-%s", "extra-wait", r->name) gem_execbuf_stress_subtest(rounds, WAIT_STATUS | WAIT_EXTRA, &r->ci); }This fail will not be catched when we will use HAX.
--
Kamil
Quoted 47 lines · Zbigniew Kempczyński
Quoted 39 lines · Kamil Konieczny
Dnia 2022-03-03 at 12:58:05 +0100, Zbigniew Kempczyński napisał(a):
Quoted 26 lines · Kamil Konieczny
Quoted 25 lines
Dnia 2022-03-03 at 07:09:36 +0100, Zbigniew Kempczyński napisał(a):
Quoted 12 lines
Hi all.
Last time we got number of patches which don't change test logic so they trigger BAT + IGT runs.
This is imo a waste of time for CI as it doesn't improve anything apart of better in-test documentation.
As such patches needs to be reviewed I think we could use HAX patch in which we remove all subtests in tests/intel-ci/fast-feedback.testlist adding line with:
Quoted 5 lines
igt@meta_test@fail-result
Any comments are welcome.
--
Zbigniewimho good idea, but I assume that this should be done by the person sending. I wonder (and I suppose it is question to CI team) if it can be automated based on content of patch ? So no need for additional HAX and cover-letter ?
One more idea - check tag in subject ? like [... NO-TESTS 1/1] ...Quoted 8 lines
Quoted 1 line
We can start with HAX though.
I will accept any solution which would lead to stop unnecessary runs. Both - HAX or NO-TESTS base on people awereness but I think it is worth to do this. @Petri - your opinion?
--
ZbigniewOne downside is when developers document dynamic subtests, see "test/i915_pm_rpm: Remove
igt_describe()from dynamic subtest"Quoted 6 lines
./i915_pm_rpm --run gem-execbuf-stress
[cut]
Starting subtest: gem-execbuf-stress
documenting dynamic subsubtests is impossible, document the subtest instead.please refer tolib/igt_coredocumentationi915_pm_rpm:../lib/igt_core.c:365:internal_assert: Assertion `0' failed.
Received signal SIGABRT.
Quoted 6 lines
Eh, what a pity this is not detected on compile time. Unfortunately this cannot be easily catched if test requirements are not met and test will skip. So you're right, using HAX is bad idea.
Btw shouldn't
igt_describe()be no-op with warning in such case instead of asserting?
We decided to make that assert loudly to catch dead code. Or rather, dead documentation that never reaches docs.
A way to catch those is to build the docs locally
$ ninja -C build igt-gpu-tools-doc
and check the output. That would also preemptively avoid the review round that just points out incorrect use of multiline strings where a space is missing between the lines.
In general people should do some testing locally on their code before they send patches.
Signature · 1 line
Petri Latvala
Quoted 24 lines
--
ZbigniewQuoted 20 lines
That patch deleted following lines "> -":
Review
Quoted 11 lines
igt_subtest_with_dynamic("gem-execbuf-stress") { for_each_memory_region(r, drm_fd) {(quoted diff) +0
-4- igt_describe("Validate execbuf submission while exercising rpm " - "suspend/resume cycles."); igt_dynamic_f("%s", r->name) gem_execbuf_stress_subtest(rounds, WAIT_STATUS, &r->ci); - igt_describe("Validate execbuf submission while exercising rpm " - "suspend/resume cycles with extra wait."); igt_dynamic_f("%s-%s", "extra-wait", r->name) gem_execbuf_stress_subtest(rounds, WAIT_STATUS | WAIT_EXTRA, &r->ci); }This fail will not be catched when we will use HAX.
--
Kamil
On Mon, Mar 21, 2022 at 11:26:28AM +0200, Petri Latvala wrote:
<cut>
Quoted 23 lines
Quoted 10 lines
Quoted 9 lines
One downside is when developers document dynamic subtests, see "test/i915_pm_rpm: Remove
igt_describe()from dynamic subtest"./i915_pm_rpm --run gem-execbuf-stress
[cut]
Starting subtest: gem-execbuf-stress
documenting dynamic subsubtests is impossible, document the subtest instead.please refer tolib/igt_coredocumentationi915_pm_rpm:../lib/igt_core.c:365:internal_assert: Assertion `0' failed.
Received signal SIGABRT.Quoted 6 lines
Eh, what a pity this is not detected on compile time. Unfortunately this cannot be easily catched if test requirements are not met and test will skip. So you're right, using HAX is bad idea.
Btw shouldn't
igt_describe()be no-op with warning in such case instead of asserting?We decided to make that assert loudly to catch dead code. Or rather, dead documentation that never reaches docs.
A way to catch those is to build the docs locally
Quoted 9 lines
$ ninja -C build igt-gpu-tools-docand check the output. That would also preemptively avoid the review round that just points out incorrect use of multiline strings where a space is missing between the lines.
In general people should do some testing locally on their code before they send patches.
Agree, author as well as reviewer should test change locally. I was not careful enough proposing HAX with igt_describe(). I wasn't aware that for dynamic subtests it will assert. Anyway building docs is good tip to catch this locally.
--
Zbigniew
Quoted 29 lines
Signature · 1 line
Petri LatvalaQuoted 24 lines
--
ZbigniewQuoted 20 lines
That patch deleted following lines "> -":
Review
Quoted 11 lines
igt_subtest_with_dynamic("gem-execbuf-stress") { for_each_memory_region(r, drm_fd) {(quoted diff) +0
-4- igt_describe("Validate execbuf submission while exercising rpm " - "suspend/resume cycles."); igt_dynamic_f("%s", r->name) gem_execbuf_stress_subtest(rounds, WAIT_STATUS, &r->ci); - igt_describe("Validate execbuf submission while exercising rpm " - "suspend/resume cycles with extra wait."); igt_dynamic_f("%s-%s", "extra-wait", r->name) gem_execbuf_stress_subtest(rounds, WAIT_STATUS | WAIT_EXTRA, &r->ci); }This fail will not be catched when we will use HAX.
--
Kamil