Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Log parser: Reduce name repetition #1144

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

katieworton
Copy link
Member

Change the log parser regexes so there is less repetition in the name.

Instead of "check-kernel-oops-oops-preempt-smp" naming would be "check-kernel-oops-preempt-smp".

Add support for a test name regex to extract parts of the log parser
outputs to produce more meaningful test names.

Instead of producing test names with the "REGEX_NAME" + SHA, create test
names with "REGEX_NAME"+"REGEX_EXTRACT_NAME"+SHA to make the test names
easier to interpret.

Example test name before:
check-kernel-oops-a1acf2f0467782c9c2f6aeadb1d1d3cec136642b13d7231824a66ef63ee62220

Example test name after:
check-kernel-oops-oops-bug-preempt-smp-a1acf2f0467782c9c2f6aeadb1d1d3cec136642b13d7231824a66ef63ee62220

Signed-off-by: Katie Worton <[email protected]>
Move the meaningful name extracted by the REGEX_EXTRACT_NAME regex to be
included in the "higher-level" test name.

Before, test names would look like:
"check-kernel-oops"
And these would then be broken down into smaller test buckets with names
like:
"check-kernel-oops-oops-preempt-smp-a1acf2f0467782c9c2f6aeadb1d1d3cec136642b13d7231824a66ef63ee62220"

Now, the higher-level test would be called:
"check-kernel-oops-oops-preempt-smp"
And the broken down tests would still look like:
"check-kernel-oops-oops-preempt-smp-a1acf2f0467782c9c2f6aeadb1d1d3cec136642b13d7231824a66ef63ee62220"

This makes the higher-level test names more meaningful, then if there
are differences which are not captured by the higher-level name, the SHA
can be used to differentiate the different cases.

Signed-off-by: Katie Worton <[email protected]>
Add an extra test case for multiple failures with SHAs.

Signed-off-by: Katie Worton <[email protected]>
Change the log parser regexes so there is less repetition in the name.

Instead of "check-kernel-oops-oops-preempt-smp" naming would be
"check-kernel-oops-preempt-smp".

Signed-off-by: Katie Worton <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant