-
Notifications
You must be signed in to change notification settings - Fork 22
Implement EWA workflow and tool to parse TCMS Run results #302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
The pull request introduces a new tool, testrun_analyzer.py, designed to provide detailed output about test statuses in a TestRun (TR). It includes options to filter the output and exclude specific patterns. The tool uses the optparse module for argument parsing, regular expressions for pattern matching, and the nitrate module from the qe package to interact with TestRun data. The tool allows users to analyze test runs by ID and filter the output to show only essential information, such as test case status and errata-resolution data from notes, if the test case did not pass.
|
OK, so is very interesting in showing what we can get out of TCMS. I tried it on one TCMS test run: I feel like whether we fed the model the unfiltered or filtered form, we'd need to be very explicit about rules: (Note that the regression line above is probably wrong I just pulled it out of thin air) What I'd ideally like long term is something a bit different - what I'd like to do is present the results in a form that is structured, human readable, and also LLM readable - I think TOML would work well - something like: [summary]
passed_count=100
regressed_count=2
fixed_count=4
broken_count=10
[[regressed]]
name="/Regression/replace-network-manager-patch-in-the-current-version"
arch="x86_64"
avc_check=true
url="https://src.fedoraproject.org/tests/frr.git"
ref="main"
path="Regression/replace-network-manager-patch-in-the-current-version"
old_logs="https://beaker-archive.prod.engineering.redhat.com/beaker-logs/2025/10/117487/11748745/19715109/203402372/taskout.log"
old_result="pass"
new_logs="https://beaker-archive.prod.engineering.redhat.com/beaker-logs/2025/10/213121/blah/blah/blah/taskout.log"
new_result="fail"And have a common format we can use whether we're getting results from EWA or NEWA or whatever that would be hopefully complete enough to have an agent in the future that digs into failures, comes up with patches, etc. I don't think we can get that level of detail out of TCMS, because the results have already been squished down into a quasi-human-readable form to put into the "notes" field - you'd have to dig out the recipe task IDs and go into beaker to find the details - and at that point, we might as well start from the beaker results already. But rather than go down that route immediately, let's try keeping it simple and see if we can get the model going with something similar to what you have here. Notes:
|
|
Thanks for the insights.
|
mrge from upstream
owtaylor
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's great to have something working here!
Various comments about style and structure. Once you've fixed up these, please rebase everything to a single commit on top of upstream.
git rebase -i origin/main
# Edit it so everything after the first commit is 's' for squash
# Edit the commit message
git push --force martinky82 mkyral-ewa
b7b865b to
66297c9
Compare
66297c9 to
8684414
Compare
owtaylor
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally looks good to land, one small disagreement with the instructions.
Co-authored-by: Owen Taylor <[email protected]>
it provides detailed output about the test statuses in thr TR. With the -f/--filter option it print only the esential intomation: test case status and if not PASS, then errata-resolution data from the notes
TODO:
packit/packit.dev.Fixes
Related to
Merge before/after
RELEASE NOTES BEGIN
Packit now supports automatic ordering of ☕ after all checks pass.
RELEASE NOTES END