Skip to contentSkip to conversation

keep reducing regression reports noise

PATCH In review [email protected] 2 participants 11 messages Feb 28, 2023 – Mar 1, 2023

lore
Share & tools
lore
#0 lore raw

cover keep reducing regression reports noise

From: Alexis Lothoré <[email protected]>

Hello,
here is another batch of fixes to reduce noise in regression reports. Fixes are directly linked to main noise sources seen in 4.2_M3 regression report ([1]).
- fix some existing selftests for resulttool
- add more filters for ptests incorrectly logging failures. The root cause of those wrongly named test results remained to be fixed to stop saving broken test results, but this series fixes at least parsing for existing results
- Stop logging "newly passing" tests in regression reports. Some real regressions are "hidden" in big chunks of newly passing tests:
foo: FAIL -> PASS
bar: FAIL -> PASS
moo: FAIL -> PASS
[...]
xxx: PASS -> FAIL
[...]
yyy: FAIL -> PASS
zzz: FAIL -> PASS

We are reaching a point where regression reports are small enough to get posted on pastebin, so by following [2] you can find a report sample generated with tooling patched with this series

[1] https://autobuilder.yocto.io/pub/releases/yocto-4.2_M3.rc1/testresults/testresult-regressions-report.txt
[2] https://pastebin.com/QgfLKhpx

Alexis Lothoré (6):
scripts/resulttool: call fixup_ptest_names in regression_common oeqa/selftest/resulttool: fix ptest filtering tests oeqa/selftest/resulttool: fix fake data used for testing scripts/resulttool: fix ptests results containing a non reproducible
path
oeqa/selftest/resulttool: add test for error propagation in test name
filtering
scripts/resulttool: do not count newly passing tests as regressions

 .../oeqa/selftest/cases/resulttooltests.py    | 112 +++++++++++-------
 scripts/lib/resulttool/regression.py          |  66 +++++++----
 2 files changed, 112 insertions(+), 66 deletions(-)
Signature · 1 line
2.39.1
#1 lore raw

PATCH 1/6 scripts/resulttool: call fixup_ptest_names in regression_common

From: Alexis Lothoré <[email protected]>

ptests names not only need to be fixed for regression based on git testresults but also for testsresults provided "manually"

Move ptests naming fixup in regression_common to share the fixup between both regression use cases

---
 scripts/lib/resulttool/regression.py | 41 ++++++++++++++--------------
 1 file changed, 20 insertions(+), 21 deletions(-)
scripts/lib/resulttool/regression.py +20 -21
index 74fd5f38951..ad377c596b6 100644
@@ -206,12 +206,32 @@ def regression(args, logger):
 
     regression_common(args, logger, base_results, target_results)
 
+# Some test case naming is poor and contains random strings, particularly lttng/babeltrace.
+# Truncating the test names works since they contain file and line number identifiers
+# which allows us to match them without the random components.
+def fixup_ptest_names(results, logger):
+    for r in results:
+        for i in results[r]:
+            tests = list(results[r][i]['result'].keys())
+            for test in tests:
+                new = None
+                if test.startswith(("ptestresult.lttng-tools.", "ptestresult.babeltrace.", "ptestresult.babeltrace2")) and "_-_" in test:
+                    new = test.split("_-_")[0]
+                elif test.startswith(("ptestresult.curl.")) and "__" in test:
+                    new = test.split("__")[0]
+                if new:
+                    results[r][i]['result'][new] = results[r][i]['result'][test]
+                    del results[r][i]['result'][test]
+
 def regression_common(args, logger, base_results, target_results):
     if args.base_result_id:
         base_results = resultutils.filter_resultsdata(base_results, args.base_result_id)
     if args.target_result_id:
         target_results = resultutils.filter_resultsdata(target_results, args.target_result_id)
 
+    fixup_ptest_names(base_results, logger)
+    fixup_ptest_names(target_results, logger)
+
     matches = []
     regressions = []
     notfound = []
@@ -248,24 +268,6 @@ def regression_common(args, logger, base_results, target_results):
 
     return 0
 
-# Some test case naming is poor and contains random strings, particularly lttng/babeltrace.
-# Truncating the test names works since they contain file and line number identifiers
-# which allows us to match them without the random components.
-def fixup_ptest_names(results, logger):
-    for r in results:
-        for i in results[r]:
-            tests = list(results[r][i]['result'].keys())
-            for test in tests:
-                new = None
-                if test.startswith(("ptestresult.lttng-tools.", "ptestresult.babeltrace.", "ptestresult.babeltrace2")) and "_-_" in test:
-                    new = test.split("_-_")[0]
-                elif test.startswith(("ptestresult.curl.")) and "__" in test:
-                    new = test.split("__")[0]
-                if new:
-                    results[r][i]['result'][new] = results[r][i]['result'][test]
-                    del results[r][i]['result'][test]
-
-
 def regression_git(args, logger):
     base_results = {}
     target_results = {}
@@ -327,9 +329,6 @@ def regression_git(args, logger):
     base_results = resultutils.git_get_result(repo, revs[index1][2])
     target_results = resultutils.git_get_result(repo, revs[index2][2])
 
-    fixup_ptest_names(base_results, logger)
-    fixup_ptest_names(target_results, logger)
-
     regression_common(args, logger, base_results, target_results)
 
     return 0
Signature · 1 line
2.39.1
#2 lore raw

PATCH 2/6 oeqa/selftest/resulttool: fix ptest filtering tests

In reply to [email protected]

From: Alexis Lothoré <[email protected]>

There are multiple issues with the tests for the ptest fixup mechanism introduced in c45d58f003e8d8b323169ca9d479dc49c43a9974:
- the feature does not impact regression.can_be_compared but directly the comparison step in regression.regression_common
- the "status" field was wrong ("STATUS"), which prevents tests comparison
- there is a typo babeltrace2 ptest result name

---
 .../oeqa/selftest/cases/resulttooltests.py    | 80 ++++++++++---------
 1 file changed, 44 insertions(+), 36 deletions(-)
meta/lib/oeqa/selftest/cases/resulttooltests.py +44 -36
index f059991c19c..8489ae8eb52 100644
@@ -305,39 +305,47 @@ class ResultToolTests(OESelftestTestCase):
                         msg="incorrect ltpresult filtering, matching ltpresult content should be compared")
 
     def test_can_match_non_static_ptest_names(self):
-        base_configuration = {"configuration": {
-            "TEST_TYPE": "runtime",
-            "MACHINE": "qemux86"
-        }, "result": {
-            "ptestresult.lttng-tools.foo_-_bar_-_moo": {
-                "STATUS": "PASSED"
-            },
-            "ptestresult.babeltrace.bar_-_moo_-_foo": {
-                "STATUS": "PASSED"
-            },
-            "ptestresult.babletrace2.moo_-_foo_-_bar": {
-                "STATUS": "PASSED"
-            },
-            "ptestresult.curl.test_0000__foo_out_of_bar": {
-                "STATUS": "PASSED"
-            }
-        }}
-        target_configuration = {"configuration": {
-            "TEST_TYPE": "runtime",
-            "MACHINE": "qemux86"
-        }, "result": {
-            "ptestresult.lttng-tools.xxx_-_yyy_-_zzz": {
-                "STATUS": "PASSED"
-            },
-            "ptestresult.babeltrace.yyy_-_zzz_-_xxx": {
-                "STATUS": "PASSED"
-            },
-            "ptestresult.babletrace2.zzz_-_xxx_-_yyy": {
-                "STATUS": "PASSED"
-            },
-            "ptestresult.curl.test_0000__xxx_out_of_yyy": {
-                "STATUS": "PASSED"
-            }
-            }}
-        self.assertTrue(regression.can_be_compared(self.logger, base_configuration, target_configuration),
-                        msg="incorrect ptests filtering, tests shoould be compared if prefixes match")
+        base_configuration = {"a": {
+            "conf_X": {
+                "configuration": {
+                    "TEST_TYPE": "runtime",
+                    "MACHINE": "qemux86"
+                }, "result": {
+                    "ptestresult.lttng-tools.foo_-_bar_-_moo": {
+                        "status": "PASSED"
+                    },
+                    "ptestresult.babeltrace.bar_-_moo_-_foo": {
+                        "status": "PASSED"
+                    },
+                    "ptestresult.babeltrace2.moo_-_foo_-_bar": {
+                        "status": "PASSED"
+                    },
+                    "ptestresult.curl.test_0000__foo_out_of_bar": {
+                        "status": "PASSED"
+                    }
+                }}}}
+        target_configuration = {"a": {
+            "conf_Y": {
+                "configuration": {
+                    "TEST_TYPE": "runtime",
+                    "MACHINE": "qemux86"
+                }, "result": {
+                    "ptestresult.lttng-tools.foo_-_yyy_-_zzz": {
+                        "status": "PASSED"
+                    },
+                    "ptestresult.babeltrace.bar_-_zzz_-_xxx": {
+                        "status": "PASSED"
+                    },
+                    "ptestresult.babeltrace2.moo_-_xxx_-_yyy": {
+                        "status": "PASSED"
+                    },
+                    "ptestresult.curl.test_0000__xxx_out_of_yyy": {
+                        "status": "PASSED"
+                    }
+                }}}}
+        regression.fixup_ptest_names(base_configuration, self.logger)
+        regression.fixup_ptest_names(target_configuration, self.logger)
+        result, resultstring = regression.compare_result(
+            self.logger, "A", "B", base_configuration["a"]["conf_X"], target_configuration["a"]["conf_Y"])
+        self.assertDictEqual(
+            result, {}, msg=f"ptests should be compared: {resultstring}")
Signature · 1 line
2.39.1
#3 lore raw

PATCH 2/6 oeqa/selftest/resulttool: fix ptest tests

In reply to [email protected]

From: Alexis Lothoré <[email protected]>

There are multiple issues with the tests for the ptest fixup mechanism introduced in c45d58f003e8d8b323169ca9d479dc49c43a9974:
- the feature does not impact regression.can_be_compared but directly the comparison step in regression.regression_common
- the "status" field was wrong ("STATUS"), which prevents tests comparison
- there is a typo babeltrace2 ptest result name

---
 .../oeqa/selftest/cases/resulttooltests.py    | 80 ++++++++++---------
 1 file changed, 44 insertions(+), 36 deletions(-)
meta/lib/oeqa/selftest/cases/resulttooltests.py +44 -36
index f059991c19c..8489ae8eb52 100644
@@ -305,39 +305,47 @@ class ResultToolTests(OESelftestTestCase):
                         msg="incorrect ltpresult filtering, matching ltpresult content should be compared")
 
     def test_can_match_non_static_ptest_names(self):
-        base_configuration = {"configuration": {
-            "TEST_TYPE": "runtime",
-            "MACHINE": "qemux86"
-        }, "result": {
-            "ptestresult.lttng-tools.foo_-_bar_-_moo": {
-                "STATUS": "PASSED"
-            },
-            "ptestresult.babeltrace.bar_-_moo_-_foo": {
-                "STATUS": "PASSED"
-            },
-            "ptestresult.babletrace2.moo_-_foo_-_bar": {
-                "STATUS": "PASSED"
-            },
-            "ptestresult.curl.test_0000__foo_out_of_bar": {
-                "STATUS": "PASSED"
-            }
-        }}
-        target_configuration = {"configuration": {
-            "TEST_TYPE": "runtime",
-            "MACHINE": "qemux86"
-        }, "result": {
-            "ptestresult.lttng-tools.xxx_-_yyy_-_zzz": {
-                "STATUS": "PASSED"
-            },
-            "ptestresult.babeltrace.yyy_-_zzz_-_xxx": {
-                "STATUS": "PASSED"
-            },
-            "ptestresult.babletrace2.zzz_-_xxx_-_yyy": {
-                "STATUS": "PASSED"
-            },
-            "ptestresult.curl.test_0000__xxx_out_of_yyy": {
-                "STATUS": "PASSED"
-            }
-            }}
-        self.assertTrue(regression.can_be_compared(self.logger, base_configuration, target_configuration),
-                        msg="incorrect ptests filtering, tests shoould be compared if prefixes match")
+        base_configuration = {"a": {
+            "conf_X": {
+                "configuration": {
+                    "TEST_TYPE": "runtime",
+                    "MACHINE": "qemux86"
+                }, "result": {
+                    "ptestresult.lttng-tools.foo_-_bar_-_moo": {
+                        "status": "PASSED"
+                    },
+                    "ptestresult.babeltrace.bar_-_moo_-_foo": {
+                        "status": "PASSED"
+                    },
+                    "ptestresult.babeltrace2.moo_-_foo_-_bar": {
+                        "status": "PASSED"
+                    },
+                    "ptestresult.curl.test_0000__foo_out_of_bar": {
+                        "status": "PASSED"
+                    }
+                }}}}
+        target_configuration = {"a": {
+            "conf_Y": {
+                "configuration": {
+                    "TEST_TYPE": "runtime",
+                    "MACHINE": "qemux86"
+                }, "result": {
+                    "ptestresult.lttng-tools.foo_-_yyy_-_zzz": {
+                        "status": "PASSED"
+                    },
+                    "ptestresult.babeltrace.bar_-_zzz_-_xxx": {
+                        "status": "PASSED"
+                    },
+                    "ptestresult.babeltrace2.moo_-_xxx_-_yyy": {
+                        "status": "PASSED"
+                    },
+                    "ptestresult.curl.test_0000__xxx_out_of_yyy": {
+                        "status": "PASSED"
+                    }
+                }}}}
+        regression.fixup_ptest_names(base_configuration, self.logger)
+        regression.fixup_ptest_names(target_configuration, self.logger)
+        result, resultstring = regression.compare_result(
+            self.logger, "A", "B", base_configuration["a"]["conf_X"], target_configuration["a"]["conf_Y"])
+        self.assertDictEqual(
+            result, {}, msg=f"ptests should be compared: {resultstring}")
Signature · 1 line
2.39.1
#4 lore raw

PATCH 3/6 oeqa/selftest/resulttool: fix fake data

In reply to [email protected]

From: Alexis Lothoré <[email protected]>

resulttool searches for "status" field, not "STATUS", in results. This fix is more to avoid confusion than fixing anything, since the updated tests are about regression.can_be_compared, which does not check for "status"

---
 meta/lib/oeqa/selftest/cases/resulttooltests.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
meta/lib/oeqa/selftest/cases/resulttooltests.py +4 -4
index 8489ae8eb52..eeed276b8de 100644
@@ -274,14 +274,14 @@ class ResultToolTests(OESelftestTestCase):
             "MACHINE": "qemux86"
         }, "result": {
             "ltpresult_foo": {
-                "STATUS": "PASSED"
+                "status": "PASSED"
             }}}
         target_configuration = {"configuration": {
             "TEST_TYPE": "runtime",
             "MACHINE": "qemux86_64"
         }, "result": {
             "bar": {
-                "STATUS": "PASSED"
+                "status": "PASSED"
             }}}
         self.assertFalse(regression.can_be_compared(self.logger, base_configuration, target_configuration),
                          msg="incorrect ltpresult filtering, mismatching ltpresult content should not be compared")
@@ -292,14 +292,14 @@ class ResultToolTests(OESelftestTestCase):
             "MACHINE": "qemux86"
         }, "result": {
             "ltpresult_foo": {
-                "STATUS": "PASSED"
+                "status": "PASSED"
             }}}
         target_configuration = {"configuration": {
             "TEST_TYPE": "runtime",
             "MACHINE": "qemux86"
         }, "result": {
             "ltpresult_foo": {
-                "STATUS": "PASSED"
+                "status": "PASSED"
             }}}
         self.assertTrue(regression.can_be_compared(self.logger, base_configuration, target_configuration),
                         msg="incorrect ltpresult filtering, matching ltpresult content should be compared")
Signature · 1 line
2.39.1
#5 lore raw

PATCH 3/6 oeqa/selftest/resulttool: fix fake data used for testing

In reply to [email protected]

From: Alexis Lothoré <[email protected]>

resulttool searches for "status" field, not "STATUS", in results. This fix is more to avoid confusion than fixing anything, since the updated tests are about regression.can_be_compared, which does not check for "status"

---
 meta/lib/oeqa/selftest/cases/resulttooltests.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
meta/lib/oeqa/selftest/cases/resulttooltests.py +4 -4
index 8489ae8eb52..eeed276b8de 100644
@@ -274,14 +274,14 @@ class ResultToolTests(OESelftestTestCase):
             "MACHINE": "qemux86"
         }, "result": {
             "ltpresult_foo": {
-                "STATUS": "PASSED"
+                "status": "PASSED"
             }}}
         target_configuration = {"configuration": {
             "TEST_TYPE": "runtime",
             "MACHINE": "qemux86_64"
         }, "result": {
             "bar": {
-                "STATUS": "PASSED"
+                "status": "PASSED"
             }}}
         self.assertFalse(regression.can_be_compared(self.logger, base_configuration, target_configuration),
                          msg="incorrect ltpresult filtering, mismatching ltpresult content should not be compared")
@@ -292,14 +292,14 @@ class ResultToolTests(OESelftestTestCase):
             "MACHINE": "qemux86"
         }, "result": {
             "ltpresult_foo": {
-                "STATUS": "PASSED"
+                "status": "PASSED"
             }}}
         target_configuration = {"configuration": {
             "TEST_TYPE": "runtime",
             "MACHINE": "qemux86"
         }, "result": {
             "ltpresult_foo": {
-                "STATUS": "PASSED"
+                "status": "PASSED"
             }}}
         self.assertTrue(regression.can_be_compared(self.logger, base_configuration, target_configuration),
                         msg="incorrect ltpresult filtering, matching ltpresult content should be compared")
Signature · 1 line
2.39.1
#6 lore raw

PATCH 4/6 scripts/resulttool: fix ptests results containing a non reproducible path

In reply to [email protected]

From: Alexis Lothoré <[email protected]>

Some ptests results may be wrongly sampled, resulting in some part of the error being propagated in test name. For example:

"ptestresult.binutils-ld.in testcase /home/pokybuild/yocto-worker/qemumips/build/build-st-1666126/tmp/work/mips32r2-poky-linux/binutils-cross-testsuite/2.40-r0/git/ld/testsuite/ld-ctf/ctf.exp" "ptestresult.gcc.Couldn't create remote directory /tmp/runtest.455781 on ssh"
"ptestresult.gcc-libstdc++-v3.Couldn't create remote directory /tmp/runtest.3814266 on target"

While the root errors must be fixed in corresponding ptests packages for those tests, the test results history must still be usable even with this issue

Add new filters to detect if temporary test directories (build-st-*, /tmp/runtime.*) are present in name. If so, truncate test name. As a side effect, it will aggregate multiple failing errors into one, but the regression will still be raised

---
 scripts/lib/resulttool/regression.py | 6 ++++++
 1 file changed, 6 insertions(+)
scripts/lib/resulttool/regression.py +6 -0
index ad377c596b6..d7f0b16ca98 100644
@@ -219,6 +219,12 @@ def fixup_ptest_names(results, logger):
                     new = test.split("_-_")[0]
                 elif test.startswith(("ptestresult.curl.")) and "__" in test:
                     new = test.split("__")[0]
+                elif test.startswith(("ptestresult.dbus.")) and "__" in test:
+                    new = test.split("__")[0]
+                elif test.startswith("ptestresult.binutils") and "build-st-" in test:
+                    new = test.split(" ")[0]
+                elif test.startswith("ptestresult.gcc") and "/tmp/runtest." in test:
+                    new = ".".join(test.split(".")[:2])
                 if new:
                     results[r][i]['result'][new] = results[r][i]['result'][test]
                     del results[r][i]['result'][test]
Signature · 1 line
2.39.1
#7 lore raw

PATCH 5/6 oeqa/selftest/resulttool: add test for error propagation in test name filtering

In reply to [email protected]

From: Alexis Lothoré <[email protected]>

---
 .../oeqa/selftest/cases/resulttooltests.py    | 24 +++++++++++++++++++
 1 file changed, 24 insertions(+)
meta/lib/oeqa/selftest/cases/resulttooltests.py +24 -0
index eeed276b8de..c3303f3fbbe 100644
@@ -322,6 +322,18 @@ class ResultToolTests(OESelftestTestCase):
                     },
                     "ptestresult.curl.test_0000__foo_out_of_bar": {
                         "status": "PASSED"
+                    },
+                    "ptestresult.dbus.test_0000__foo_out_of_bar,_remaining:_00:02,_took_0.032s,_duration:_03:32_": {
+                        "status": "PASSED"
+                    },
+                    "ptestresult.binutils-ld.in testcase /foo/build-st-bar/moo/ctf.exp": {
+                        "status": "PASSED"
+                    },
+                    "ptestresult.gcc-libstdc++-v3.Couldn't create remote directory /tmp/runtest.30975 on target": {
+                        "status": "PASSED"
+                    },
+                    "ptestresult.gcc-libgomp.Couldn't create remote directory /tmp/runtest.3657621 on": {
+                        "status": "PASSED"
                     }
                 }}}}
         target_configuration = {"a": {
@@ -341,6 +353,18 @@ class ResultToolTests(OESelftestTestCase):
                     },
                     "ptestresult.curl.test_0000__xxx_out_of_yyy": {
                         "status": "PASSED"
+                    },
+                    "ptestresult.dbus.test_0000__yyy_out_of_zzz,_remaining:_00:03,_took_0.034s,_duration:_03:30_": {
+                        "status": "PASSED"
+                    },
+                    "ptestresult.binutils-ld.in testcase /xxx/build-st-yyy/zzz/ctf.exp": {
+                        "status": "PASSED"
+                    },
+                    "ptestresult.gcc-libstdc++-v3.Couldn't create remote directory /tmp/runtest.45678 on target": {
+                        "status": "PASSED"
+                    },
+                    "ptestresult.gcc-libgomp.Couldn't create remote directory /tmp/runtest.3657621 on": {
+                        "status": "PASSED"
                     }
                 }}}}
         regression.fixup_ptest_names(base_configuration, self.logger)
Signature · 1 line
2.39.1
#8 lore raw

PATCH 6/6 scripts/resulttool: do not count newly passing tests as regressions

In reply to [email protected]

From: Alexis Lothoré <[email protected]>

resulttool regression module simply compare a base test status to a target test result status. This approach raises many false positives since all XXX -> PASS transitions (XXX being any status different from PASS) are flagged as regression.

- Do not list XXX -> PASS transitions in regression report, instead count them and print a summary of "newly passing tests"
- If an inspected pair has only "newly passing tests", do not print detailed list and print it as "Improvement" instead of "Regression"

Updated output example looks like the following:
[...]
Improvement: oeselftest_fedora-37_qemux86-64_20230127010225

             oeselftest_ubuntu-22.04_qemux86-64_20230226120516
             (+1 test(s) passing)
[...]
Match:       oeselftest_almalinux-8.7_qemuarm64_20230127015830
             oeselftest_almalinux-8.7_qemuarm64_20230227015258
[...]
Regression:  oeselftest_almalinux-9.1_qemumips_20230127000217
             oeselftest_opensuseleap-15.4_qemumips_20230226130046
    ptestresult.glibc-user.debug/tst-read-chk-cancel: PASS -> None
    ptestresult.glibc-user.nptl/tst-mutexpi4: PASS -> FAIL
    ptestresult.glibc-user.nptl/tst-mutexpi5a: PASS -> FAIL
    Additionally, 44 previously failing test(s) is/are now passing
---
 scripts/lib/resulttool/regression.py | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)
scripts/lib/resulttool/regression.py +14 -5
index d7f0b16ca98..1facbcd85e1 100644
@@ -190,11 +190,20 @@ def compare_result(logger, base_name, target_name, base_result, target_result):
             else:
                 logger.error('Failed to retrieved base test case status: %s' % k)
     if result:
-        resultstring = "Regression: %s\n            %s\n" % (base_name, target_name)
-        for k in sorted(result):
-            resultstring += '    %s: %s -> %s\n' % (k, result[k]['base'], result[k]['target'])
+        new_pass_count = sum(test['target'] is not None and test['target'].startswith("PASS") for test in result.values())
+        # Print a regression report only if at least one test has a regression status (FAIL, SKIPPED, absent...)
+        if new_pass_count < len(result):
+            resultstring = "Regression:  %s\n             %s\n" % (base_name, target_name)
+            for k in sorted(result):
+                if not result[k]['target'] or not result[k]['target'].startswith("PASS"):
+                    resultstring += '    %s: %s -> %s\n' % (k, result[k]['base'], result[k]['target'])
+            if new_pass_count > 0:
+                resultstring += f'    Additionally, {new_pass_count} previously failing test(s) is/are now passing\n'
+        else:
+            resultstring = "Improvement: %s\n             %s\n             (+%d test(s) passing)" % (base_name, target_name, new_pass_count)
+            result = None
     else:
-        resultstring = "Match: %s\n       %s" % (base_name, target_name)
+        resultstring = "Match:       %s\n             %s" % (base_name, target_name)
     return result, resultstring
 
 def get_results(logger, source):
@@ -269,9 +278,9 @@ def regression_common(args, logger, base_results, target_results):
         else:
             notfound.append("%s not found in target" % a)
     print("\n".join(sorted(matches)))
+    print("\n")
     print("\n".join(sorted(regressions)))
     print("\n".join(sorted(notfound)))
-
     return 0
 
 def regression_git(args, logger):
Signature · 1 line
2.39.1
#9 lore raw
In reply to [email protected]
Quoted 24 lines · Alexis Lothoré via lists.openembedded.org

From: Alexis Lothoré <[email protected]>

Hello,
here is another batch of fixes to reduce noise in regression reports. Fixes are
directly linked to main noise sources seen in 4.2_M3 regression report ([1]).
- fix some existing selftests for resulttool
- add more filters for ptests incorrectly logging failures. The root cause of
those wrongly named test results remained to be fixed to stop saving
broken
test results, but this series fixes at least parsing for existing results
- Stop logging "newly passing" tests in regression reports. Some real regressions are "hidden" in big chunks of newly passing tests:
foo: FAIL -> PASS
bar: FAIL -> PASS
moo: FAIL -> PASS
[...]
xxx: PASS -> FAIL
[...]
yyy: FAIL -> PASS
zzz: FAIL -> PASS

Quoted 8 lines

We are reaching a point where regression reports are small enough to get posted
on pastebin, so by following [2] you can find a report sample generated with
tooling patched with this series

[1] https://autobuilder.yocto.io/pub/releases/yocto-4.2_M3.rc1/t
<https://autobuilder.yocto.io/pub/releases/yocto-4.2_M3.rc1/testresults/testresult-regressions-report.txt>

It seems a bit odd that all the regressions are changing from a valid state (PASS, SKIP…) -> None. Does this literally mean the only changes were dropped test cases?

estresults/testresult-regressions-report.txt

Quoted 32 lines

<https://autobuilder.yocto.io/pub/releases/yocto-4.2_M3.rc1/testresults/testresult-regressions-report.txt>
[2] https://pastebin.com/QgfLKhpx

Alexis Lothoré (6):
scripts/resulttool: call fixup_ptest_names in regression_common oeqa/selftest/resulttool: fix ptest filtering tests oeqa/selftest/resulttool: fix fake data used for testing scripts/resulttool: fix ptests results containing a non reproducible
path
oeqa/selftest/resulttool: add test for error propagation in test name
filtering
scripts/resulttool: do not count newly passing tests as regressions

 .../oeqa/selftest/cases/resulttooltests.py    | 112 +++++++++++-------
 scripts/lib/resulttool/regression.py          |  66 +++++++----
 2 files changed, 112 insertions(+), 66 deletions(-)

--
2.39.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#177847):
https://lists.openembedded.org/g/openembedded-core/message/177847
Mute This Topic: https://lists.openembedded.org/mt/97296204/924729
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#10 lore raw

Hello Tim,

Quoted 30 lines · Tim Orling

On Tue, Feb 28, 2023 at 10:10 AM Alexis Lothoré via lists.openembedded.org
<http://lists.openembedded.org>
<[email protected] <mailto:[email protected]>> wrote:

From: Alexis Lothoré <[email protected] <mailto:[email protected]>>

Hello,
here is another batch of fixes to reduce noise in regression reports. Fixes are directly linked to main noise sources seen in 4.2_M3 regression report ([1]).
- fix some existing selftests for resulttool
- add more filters for ptests incorrectly logging failures. The root cause of those wrongly named test results remained to be fixed to stop saving broken test results, but this series fixes at least parsing for existing results
- Stop logging "newly passing" tests in regression reports. Some real regressions are "hidden" in big chunks of newly passing tests:
foo: FAIL -> PASS
bar: FAIL -> PASS
moo: FAIL -> PASS
[...]
xxx: PASS -> FAIL
[...]
yyy: FAIL -> PASS
zzz: FAIL -> PASS

We are reaching a point where regression reports are small enough to get posted on pastebin, so by following [2] you can find a report sample generated with tooling patched with this series

Quoted 7 lines

[1] https://autobuilder.yocto.io/pub/releases/yocto-4.2_M3.rc1/t
<https://autobuilder.yocto.io/pub/releases/yocto-4.2_M3.rc1/testresults/testresult-regressions-report.txt>

It seems a bit odd that all the regressions are changing from a valid state (PASS, SKIP…) -> None. Does this literally mean the only changes were dropped test cases?

For most of "XXX -> None" transitions in the 4.2_M3.rc1 regression report, tests were not dropped between base and target tests, they are present in both, but the test names saved and stored in git are incorrect and bear a "non reproducible" part, which makes the tooling raise many of those wrong transitions. Here is an example:

ptestresult.binutils-ld.in testcase /home/pokybuild/yocto-worker/qemux86/build/build-st-15167/tmp/work/core2-32-poky-linux/binutils-cross-testsuite/2.40-r0/git/ld/testsuite/ld-ctf/ctf.exp:
ERROR -> None

This binutils-ld test result is present in both base and target results, but the test name is very likely broken: the error has been captured as part of the test name, and worse than than, it contains multiple parts that change between executions (possibly "core2-32-poky-linux" and "qemux86", but especially "build-st-15167") because of path embedded in the error log. So when running "resulttool regression-git", the tool does not find in target the test it has found in base, which raises a "XXX -> None".
Obviously the main issue has to be fixed in all runners generating those errors (so far, we have seen this kind of issues with ptests for binutils, curl, dbus, toolchains, glibc, etc), but since we want to be able to work with current tests results history, we must make the tools able to circumvent those issues.

Regards,

Signature · 3 lines
Alexis Lothoré, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com