Skip to contentSkip to conversation

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

PATCH Applied Maxime Ripard 2 participants 9 messages Oct 25, 2023 – Oct 27, 2023

Subsystems (4)
lore
Share & tools
lore

Maxime Ripard

author maintainer
#0 lore raw

PATCH v2 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.

---
Cc: Helen Koike <[email protected]>

Changes from v1:
- Rephrase the sentence a bit to make it clearer we expect a bug report by mail

---
 Documentation/gpu/automated_testing.rst | 13 +++++++++++++
 1 file changed, 13 insertions(+)
Documentation/gpu/automated_testing.rst +13 -0
index 469b6fb65c30..792428a2bfdc 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 the email reporting the
+bug 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 v2 1/1
#1 lore raw
Quoted 9 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.

Quoted 35 lines

---
Cc: Helen Koike <[email protected]>

Changes from v1:
- Rephrase the sentence a bit to make it clearer we expect a bug report by mail

---
  Documentation/gpu/automated_testing.rst | 13 +++++++++++++
  1 file changed, 13 insertions(+)
Documentation/gpu/automated_testing.rst +13 -0
index 469b6fb65c30..792428a2bfdc 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 the email reporting the
+bug 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
  -----------------------------------------------------------
 
author maintainer Applied
#2 lore raw

Re: (subset) [PATCH v2] drm/doc: ci: Require more context for flaky tests

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

#3 lore raw

Re: (subset) [PATCH v2] drm/doc: ci: Require more context for flaky tests

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).

Thanks!

Could you also apply https://patchwork.kernel.org/project/dri-devel/cover/[email protected]/ (and the dependencies listed on it).

Drm/ci in drm-misc is broken atm, there are some people asking me how to run it, and this unbreaks it.

Thanks again
Helen

Quoted 4 lines

Thanks!
Maxime

#4 lore raw

Re: (subset) [PATCH v2] drm/doc: ci: Require more context for flaky tests

Quoted 11 lines · Helen Koike
Quoted 8 lines · Maxime Ripard
Quoted 7 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.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

[...]

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

Thanks!

Could you also apply https://patchwork.kernel.org/project/dri-devel/cover/[email protected]/ (and the dependencies listed on it).

For some reason, commit message 7/10 (drm/ci: increase i915 job timeout to 1h30m) looks incomplete in patchwork, but it looks fine in my branch:

https://gitlab.freedesktop.org/helen.fornazier/linux/-/commits/for-drm-misc-wip/

Let me know if you prefer that I send it again or if you could pull from the branch.

Thanks
Helen

Quoted 11 lines

Drm/ci in drm-misc is broken atm, there are some people asking me how to run it, and this unbreaks it.

Thanks again
Helen

Quoted 4 lines

Thanks!
Maxime

author maintainer
#5 lore raw

Re: (subset) [PATCH v2] drm/doc: ci: Require more context for flaky tests

Quoted 23 lines · Helen Koike
Quoted 11 lines · Helen Koike
Quoted 8 lines · Maxime Ripard
Quoted 7 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.

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

[...]

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

Thanks!

Could you also apply https://patchwork.kernel.org/project/dri-devel/cover/[email protected]/
(and the dependencies listed on it).

Quoted 7 lines

For some reason, commit message 7/10 (drm/ci: increase i915 job timeout to 1h30m) looks incomplete in patchwork, but it looks fine in my branch:

https://gitlab.freedesktop.org/helen.fornazier/linux/-/commits/for-drm-misc-wip/

Let me know if you prefer that I send it again or if you could pull from the branch.

It was fine on lore.kernel.org and that's where I'm pulling from, so it all worked out :)

Everything you asked for should be applied now

Maxime

#6 lore raw

Re: (subset) [PATCH v2] drm/doc: ci: Require more context for flaky tests

Quoted 29 lines · Maxime Ripard
Quoted 28 lines · Helen Koike
Quoted 11 lines · Helen Koike
Quoted 8 lines · Maxime Ripard
Quoted 7 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.

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

[...]

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

Thanks!

Could you also apply https://patchwork.kernel.org/project/dri-devel/cover/[email protected]/
(and the dependencies listed on it).

For some reason, commit message 7/10 (drm/ci: increase i915 job timeout to 1h30m) looks incomplete in patchwork, but it looks fine in my branch:

https://gitlab.freedesktop.org/helen.fornazier/linux/-/commits/for-drm-misc-wip/

Quoted 8 lines
Quoted 2 lines

Let me know if you prefer that I send it again or if you could pull from the branch.

It was fine on lore.kernel.org and that's where I'm pulling from, so it all worked out :)

Everything you asked for should be applied now

Maxime

Awesome, thank you!

Sorry, just another request, could you please pull this other one updating MAINTAINERS?

https://patchwork.kernel.org/project/linux-arm-msm/patch/[email protected]/

So get_maintainers.pl returns the right people and we don't forget to notify maintainers when flakes/fails/skips are updated.

Thank again.
Helen

author maintainer
#7 lore raw

Re: (subset) [PATCH v2] drm/doc: ci: Require more context for flaky tests

Hi,

Quoted 37 lines · Helen Koike
Quoted 36 lines · Maxime Ripard
Quoted 23 lines · Helen Koike
Quoted 11 lines · Helen Koike
Quoted 8 lines · Maxime Ripard
Quoted 7 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.

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

[...]

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

Thanks!

Could you also apply https://patchwork.kernel.org/project/dri-devel/cover/[email protected]/
(and the dependencies listed on it).

Quoted 7 lines

For some reason, commit message 7/10 (drm/ci: increase i915 job timeout to 1h30m) looks incomplete in patchwork, but it looks fine in my branch:

https://gitlab.freedesktop.org/helen.fornazier/linux/-/commits/for-drm-misc-wip/

Let me know if you prefer that I send it again or if you could pull from the branch.

It was fine on lore.kernel.org and that's where I'm pulling from, so it all worked out :)

Everything you asked for should be applied now

Quoted 8 lines
Quoted 1 line

Maxime

Awesome, thank you!

Sorry, just another request, could you please pull this other one updating MAINTAINERS?

https://patchwork.kernel.org/project/linux-arm-msm/patch/[email protected]/

I don't mind, but the expectation (the one I had at least) was that you would do it :)

If you don't have drm-misc access, please create an account, you have done way more than expected to get one already

Maxime

#8 lore raw

Re: (subset) [PATCH v2] drm/doc: ci: Require more context for flaky tests

Quoted 47 lines · Maxime Ripard

Hi,

Quoted 44 lines · Helen Koike
Quoted 29 lines · Maxime Ripard
Quoted 28 lines · Helen Koike
Quoted 11 lines · Helen Koike
Quoted 8 lines · Maxime Ripard
Quoted 7 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.

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

[...]

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

Thanks!

Could you also apply https://patchwork.kernel.org/project/dri-devel/cover/[email protected]/
(and the dependencies listed on it).

For some reason, commit message 7/10 (drm/ci: increase i915 job timeout to 1h30m) looks incomplete in patchwork, but it looks fine in my branch:

https://gitlab.freedesktop.org/helen.fornazier/linux/-/commits/for-drm-misc-wip/

Quoted 8 lines
Quoted 2 lines

Let me know if you prefer that I send it again or if you could pull from the branch.

It was fine on lore.kernel.org and that's where I'm pulling from, so it all worked out :)

Everything you asked for should be applied now

Maxime

Awesome, thank you!

Sorry, just another request, could you please pull this other one updating MAINTAINERS?

Quoted 6 lines
Quoted 1 line

https://patchwork.kernel.org/project/linux-arm-msm/patch/[email protected]/

I don't mind, but the expectation (the one I had at least) was that you would do it :)

If you don't have drm-misc access, please create an account, you have done way more than expected to get one already

Nice! I just created this request https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/983

Would you mind approving it?

Thanks!
Helen

Quoted 2 lines

Maxime