Skip to contentSkip to conversation

drm/doc: ci: Require more context for flaky tests

PATCH Applied Maxime Ripard 3 participants 10 messages Oct 19, 2023 – Oct 26, 2023

Subsystems (4)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore

Maxime Ripard

author maintainer
#0 lore raw

PATCH 1/1 drm/doc: ci: Require more context for flaky tests

Flaky tests can be very difficult to reproduce after the facts, which will make it even harder to ever fix.

Let's document the metadata we agreed on to provide more context to anyone trying to address these fixes.

---
 Documentation/gpu/automated_testing.rst | 13 +++++++++++++
 1 file changed, 13 insertions(+)
Documentation/gpu/automated_testing.rst +13 -0
index 469b6fb65c30..2dd0e221c2c3 100644
@@ -67,6 +67,19 @@ Lists the tests that for a given driver on a specific hardware revision are
 known to behave unreliably. These tests won't cause a job to fail regardless of
 the result. They will still be run.
 
+Each new flake entry must be associated with a link to a bug report to
+the author of the affected driver, the board name or Device Tree name of
+the board, the first kernel version affected, and an approximation of
+the failure rate.
+
+They should be provided under the following format::
+
+  # Bug Report: $LORE_OR_PATCHWORK_URL
+  # Board Name: broken-board.dtb
+  # Version: 6.6-rc1
+  # Failure Rate: 100
+  flaky-test
+
 drivers/gpu/drm/ci/${DRIVER_NAME}-${HW_REVISION}-skips.txt
 -----------------------------------------------------------
 
Signature · 1 line
2.41.0
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Maxime Ripard

Flaky tests can be very difficult to reproduce after the facts, which will make it even harder to ever fix.

Let's document the metadata we agreed on to provide more context to anyone trying to address these fixes.

Not that my opinion matters much since I'm really not involved in the details, and no opinion on the specific format and all that, but this sounds like a very good idea too me.

Cheers, Sima

Quoted 31 lines
---
 Documentation/gpu/automated_testing.rst | 13 +++++++++++++
 1 file changed, 13 insertions(+)
Documentation/gpu/automated_testing.rst +13 -0
index 469b6fb65c30..2dd0e221c2c3 100644
@@ -67,6 +67,19 @@ Lists the tests that for a given driver on a specific hardware revision are
 known to behave unreliably. These tests won't cause a job to fail regardless of
 the result. They will still be run.
 
+Each new flake entry must be associated with a link to a bug report to
+the author of the affected driver, the board name or Device Tree name of
+the board, the first kernel version affected, and an approximation of
+the failure rate.
+
+They should be provided under the following format::
+
+  # Bug Report: $LORE_OR_PATCHWORK_URL
+  # Board Name: broken-board.dtb
+  # Version: 6.6-rc1
+  # Failure Rate: 100
+  flaky-test
+
 drivers/gpu/drm/ci/${DRIVER_NAME}-${HW_REVISION}-skips.txt
 -----------------------------------------------------------
 
Signature · 1 line
2.41.0
Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
#2 lore raw
In reply to Maxime Ripard
Quoted 17 lines · Maxime Ripard

Flaky tests can be very difficult to reproduce after the facts, which will make it even harder to ever fix.

Let's document the metadata we agreed on to provide more context to anyone trying to address these fixes.

---
  Documentation/gpu/automated_testing.rst | 13 +++++++++++++
  1 file changed, 13 insertions(+)
Documentation/gpu/automated_testing.rst +0 -0
index 469b6fb65c30..2dd0e221c2c3 100644

Documentation/gpu/automated_testing.rst Lists the tests that for a given driver on a specific hardware revision are · line 70

Quoted 4 lines
Documentation/gpu/automated_testing.rst +1 -0
@@ -67,6 +67,19 @@ Lists the tests that for a given driver on a specific hardware revision are
  known to behave unreliably. These tests won't cause a job to fail regardless of
  the result. They will still be run.
 
+Each new flake entry must be associated with a link to a bug report to

What do you mean by but report? Just a link to an email to the mailing list is enough?

Also, I had made a mistake to the first flakes lists, which I corrected with https://www.spinics.net/lists/kernel/msg4959629.html (there was a bug in my script which ended up erroneous adding a bunch of tests in the flake list, so I cleaned them up), I would like to kind request to let me add those documentation in a future patch to not block that patch series.

Thanks
Helen

Quoted 15 lines
Documentation/gpu/automated_testing.rst +12 -0
+the author of the affected driver, the board name or Device Tree name of
+the board, the first kernel version affected, and an approximation of
+the failure rate.
+
+They should be provided under the following format::
+
+  # Bug Report: $LORE_OR_PATCHWORK_URL
+  # Board Name: broken-board.dtb
+  # Version: 6.6-rc1
+  # Failure Rate: 100
+  flaky-test
+
  drivers/gpu/drm/ci/${DRIVER_NAME}-${HW_REVISION}-skips.txt
  -----------------------------------------------------------
 
#3 lore raw
Quoted 33 lines · Helen Koike
Quoted 17 lines · Maxime Ripard

Flaky tests can be very difficult to reproduce after the facts, which will make it even harder to ever fix.

Let's document the metadata we agreed on to provide more context to anyone trying to address these fixes.

---
  Documentation/gpu/automated_testing.rst | 13 +++++++++++++

  1 file changed, 13 insertions(+)
Documentation/gpu/automated_testing.rst +0 -0
index 469b6fb65c30..2dd0e221c2c3 100644
@@ -67,6 +67,19 @@ Lists the tests that for a given driver on a 
Quoted 4 lines

specific hardware revision are
  known to behave unreliably. These tests won't cause a job to fail regardless of the result. They will still be run.
+Each new flake entry must be associated with a link to a bug report to

What do you mean by but report? Just a link to an email to the mailing list is enough?

Also, I had made a mistake to the first flakes lists, which I corrected with https://www.spinics.net/lists/kernel/msg4959629.html (there was a bug in my script which ended up erroneous adding a bunch of tests in the flake list, so I cleaned them up), I would like to kind request to let me add those documentation in a future patch to not block that patch series.

Thanks
Helen

Quoted 7 lines

Documentation/gpu/automated_testing.rst Lists the tests that for a given driver on a specific hardware revision are · line 77

Quoted 7 lines
Documentation/gpu/automated_testing.rst +7 -0
+the author of the affected driver, the board name or Device Tree name of
+the board, the first kernel version affected, and an approximation of
+the failure rate.
+
+They should be provided under the following format::
+
+  # Bug Report: $LORE_OR_PATCHWORK_URL

I wonder if the commit adding the test into the flakes.txt file with and Acked-by from the device maintainer shouldn't be already considered the Bug Report.

Quoted 1 line
Quoted 1 line

+  # Board Name: broken-board.dtb

Maybe Board Name isn't required, since it is already in the name of the file.

Quoted 2 lines
Quoted 2 lines

+  # Version: 6.6-rc1
+  # Failure Rate: 100

Maybe also:

# Pipeline url:
https://gitlab.freedesktop.org/helen.fornazier/linux/-/pipelines/1014435

All this info will complicated a bit the update-xfails.py script, but well, we can handle... (see https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/ ) We need to update that script to make life easier.
Vignesh sent a patch adding at least the pipeline url to the file
https://patchwork.kernel.org/project/linux-arm-msm/patch/[email protected]/
but to meet this doc that needs to be updated too.

Regards,
Helen

Quoted 4 lines
Quoted 4 lines

+  flaky-test
+ drivers/gpu/drm/ci/${DRIVER_NAME}-${HW_REVISION}-skips.txt
  -----------------------------------------------------------

author maintainer
#7 lore raw
In reply to Helen Koike
Quoted 15 lines · Helen Koike
Quoted 12 lines · Maxime Ripard

Flaky tests can be very difficult to reproduce after the facts, which will make it even harder to ever fix.

Let's document the metadata we agreed on to provide more context to anyone trying to address these fixes.

---
  Documentation/gpu/automated_testing.rst | 13 +++++++++++++
  1 file changed, 13 insertions(+)
Quoted 11 lines

Documentation/gpu/automated_testing.rst Lists the tests that for a given driver on a specific hardware revision are · line 69

Quoted 8 lines
Documentation/gpu/automated_testing.rst +1 -0
index 469b6fb65c30..2dd0e221c2c3 100644
@@ -67,6 +67,19 @@ Lists the tests that for a given driver on a specific hardware revision are
  known to behave unreliably. These tests won't cause a job to fail regardless of
  the result. They will still be run.
+Each new flake entry must be associated with a link to a bug report to

What do you mean by but report? Just a link to an email to the mailing list is enough?

Yes, a mail to the maintainers of that driver is enough. Waiting for an actual fix would take too long, but at least that way we have the opportunity to come back later on and see if there's progress.

Quoted 5 lines

Also, I had made a mistake to the first flakes lists, which I corrected with
https://www.spinics.net/lists/kernel/msg4959629.html (there was a bug in my script which ended up erroneous adding a bunch of tests in the flake list, so I cleaned them up), I would like to kind request to let me add those documentation in a future patch to not block that patch series.

Sounds fair, especially since you remove a significant number of them

Maxime

author maintainer
#4 lore raw
In reply to Helen Koike
Quoted 40 lines · Helen Koike
Quoted 39 lines · Helen Koike
Quoted 18 lines · Maxime Ripard

Flaky tests can be very difficult to reproduce after the facts, which will make it even harder to ever fix.

Let's document the metadata we agreed on to provide more context to anyone trying to address these fixes.

---
  Documentation/gpu/automated_testing.rst | 13 +++++++++++++

  1 file changed, 13 insertions(+)
Documentation/gpu/automated_testing.rst +0 -0
index 469b6fb65c30..2dd0e221c2c3 100644
@@ -67,6 +67,19 @@ Lists the tests that for a given driver on a
Quoted 5 lines

specific hardware revision are
  known to behave unreliably. These tests won't cause a job to fail regardless of
  the result. They will still be run.
+Each new flake entry must be associated with a link to a bug report to

What do you mean by but report? Just a link to an email to the mailing list is enough?

Also, I had made a mistake to the first flakes lists, which I corrected with https://www.spinics.net/lists/kernel/msg4959629.html (there was a bug in my script which ended up erroneous adding a bunch of tests in the flake list, so I cleaned them up), I would like to kind request to let me add those documentation in a future patch to not block that patch series.

Thanks
Helen

Quoted 11 lines
Quoted 7 lines

Documentation/gpu/automated_testing.rst Lists the tests that for a given driver on a specific hardware revision are · line 77

Quoted 7 lines
Documentation/gpu/automated_testing.rst +7 -0
+the author of the affected driver, the board name or Device Tree name of
+the board, the first kernel version affected, and an approximation of
+the failure rate.
+
+They should be provided under the following format::
+
+  # Bug Report: $LORE_OR_PATCHWORK_URL

I wonder if the commit adding the test into the flakes.txt file with and Acked-by from the device maintainer shouldn't be already considered the Bug Report.

I guess it could, yes. I think I'd still prefer the link since it would allow to also evaluate if the issue is fixed or not now.

Quoted 4 lines
Quoted 1 line
Quoted 1 line

+  # Board Name: broken-board.dtb

Maybe Board Name isn't required, since it is already in the name of the file.

I have no idea how the i915 naming works, but on ARM at least the name of the file contains the name of the SoC, not the board where it was observed.

Quoted 7 lines
Quoted 2 lines
Quoted 2 lines

+  # Version: 6.6-rc1
+  # Failure Rate: 100

Maybe also:

# Pipeline url:
https://gitlab.freedesktop.org/helen.fornazier/linux/-/pipelines/1014435

Sounds like a good idea yeah :) Are those artifacts archived/deleted at some point or do they stick around forever?

Quoted 5 lines

All this info will complicated a bit the update-xfails.py script, but well,
we can handle...
(see https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/
)
We need to update that script to make life easier.

I guess we could just add a template for now? It would keep the script easy and yet still hint its user that we want more data

Quoted 3 lines

Vignesh sent a patch adding at least the pipeline url to the file
https://patchwork.kernel.org/project/linux-arm-msm/patch/[email protected]/
but to meet this doc that needs to be updated too.

Sure, I'll update it

Maxime

#5 lore raw
Quoted 56 lines · Maxime Ripard
Quoted 40 lines · Helen Koike
Quoted 39 lines · Helen Koike
Quoted 18 lines · Maxime Ripard

Flaky tests can be very difficult to reproduce after the facts, which will make it even harder to ever fix.

Let's document the metadata we agreed on to provide more context to anyone trying to address these fixes.

---
   Documentation/gpu/automated_testing.rst | 13 +++++++++++++
   1 file changed, 13 insertions(+)
Documentation/gpu/automated_testing.rst +0 -0
index 469b6fb65c30..2dd0e221c2c3 100644
@@ -67,6 +67,19 @@ Lists the tests that for a given driver on a
Quoted 5 lines

specific hardware revision are
  known to behave unreliably. These tests won't cause a job to fail
regardless of
  the result. They will still be run.
+Each new flake entry must be associated with a link to a bug report to

What do you mean by but report? Just a link to an email to the mailing list is enough?

Also, I had made a mistake to the first flakes lists, which I corrected with https://www.spinics.net/lists/kernel/msg4959629.html (there was a bug in my script which ended up erroneous adding a bunch of tests in the flake list, so I cleaned them up), I would like to kind request to let me add those documentation in a future patch to not block that patch series.

Thanks
Helen

Quoted 11 lines
Quoted 7 lines

Documentation/gpu/automated_testing.rst Lists the tests that for a given driver on a specific hardware revision are · line 77

Quoted 7 lines
Documentation/gpu/automated_testing.rst +7 -0
+the author of the affected driver, the board name or Device Tree name of
+the board, the first kernel version affected, and an approximation of
+the failure rate.
+
+They should be provided under the following format::
+
+  # Bug Report: $LORE_OR_PATCHWORK_URL

I wonder if the commit adding the test into the flakes.txt file with and Acked-by from the device maintainer shouldn't be already considered the Bug Report.

I guess it could, yes. I think I'd still prefer the link since it would allow to also evaluate if the issue is fixed or not now.

Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line

+  # Board Name: broken-board.dtb

Maybe Board Name isn't required, since it is already in the name of the file.

I have no idea how the i915 naming works, but on ARM at least the name of the file contains the name of the SoC, not the board where it was observed.

right, yeah we could use the dtb to be more clear/precise, no problem.

Quoted 11 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines

+  # Version: 6.6-rc1
+  # Failure Rate: 100

Maybe also:

# Pipeline url:
https://gitlab.freedesktop.org/helen.fornazier/linux/-/pipelines/1014435

Sounds like a good idea yeah :) Are those artifacts archived/deleted at some point or do they stick around forever?

Good point, I asked the admins, they stick for 4 weeks (could be more, but it is not forever) :(

Quoted 9 lines
Quoted 6 lines

All this info will complicated a bit the update-xfails.py script, but well,
we can handle...
(see https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/
)
We need to update that script to make life easier.

I guess we could just add a template for now? It would keep the script easy and yet still hint its user that we want more data

ack

Thanks
Helen

Quoted 8 lines
Quoted 4 lines

Vignesh sent a patch adding at least the pipeline url to the file
https://patchwork.kernel.org/project/linux-arm-msm/patch/[email protected]/
but to meet this doc that needs to be updated too.

Sure, I'll update it

Maxime

author maintainer
#6 lore raw
Quoted 5 lines · Helen Koike
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

+  # Version: 6.6-rc1
+  # Failure Rate: 100

Maybe also:

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

# Pipeline url:
https://gitlab.freedesktop.org/helen.fornazier/linux/-/pipelines/1014435

Sounds like a good idea yeah :) Are those artifacts archived/deleted at some point or do they stick around forever?

Good point, I asked the admins, they stick for 4 weeks (could be more, but it is not forever) :(

That's not even a release cycle :/

I guess it's too short to be useful. We can definitely revisit if that delay is extended at some point though.

Maxime

author maintainer Applied
#8 lore raw
In reply to Maxime Ripard
Quoted 8 lines · Maxime Ripard

Flaky tests can be very difficult to reproduce after the facts, which will make it even harder to ever fix.

Let's document the metadata we agreed on to provide more context to anyone trying to address these fixes.

[...]

Applied to drm/drm-misc (drm-misc-next).

Thanks!
Maxime

author maintainer
#9 lore raw
Quoted 11 lines · Maxime Ripard
Quoted 8 lines · Maxime Ripard

Flaky tests can be very difficult to reproduce after the facts, which will make it even harder to ever fix.

Let's document the metadata we agreed on to provide more context to anyone trying to address these fixes.

[...]

Applied to drm/drm-misc (drm-misc-next).

b4 might have been confused, but I only applied the v2.

Maxime