-
Notifications
You must be signed in to change notification settings - Fork 28
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
ISSUE-185: Output most detailed error messages for each version tested #186
Conversation
When zkq was running tests for each version, if a version failed, it was printing an error without context of the test dir and clone dir, and continuing. It looks however that the code was meant to not continue after that first error check, but after the subsequent error, that sets all passed and prints the more detailed message. I have changed the behavior to not continue at the first check, and added the version under test to the more detailed message.
…failing tests and failing to run tests is preserved improve the failed to run case with the test directory to help understand *something* about this failure
@ckreibich I resolved the merge conflicts, is there something we are waiting on me to do? |
AFAICT this patch only adds version numbers to log lines and does not address #185 at all. To address that issue I would have expected something showing (a possibly abbreviated version of) the test output, e.g., here package-manager/zeekpkg/manager.py Lines 2684 to 2689 in bdc15fa
I am not sure this patch is that useful as is. |
@bbannier I think this helps, after last commit. |
Thanks @ottobackwards. I just played with this a bit and it's headed in the right direction. A few things:
I apologize for dumping all this on you at this stage, not in #185 itself — I hadn't looked over the code in sufficient detail at that point. If you don't have cycles for the above, just let us know and we'll take it from here. If you want to make this a minimally useful PR that we can merge, I'd say implement points 1 and 5, and we can then iterate on it in a subsequent PR. (Btw — the paths are so complicated because testing can theoretically involve pulling in a bunch of dependencies at specific versions, and all of that needs to go somewhere. Hence the |
@ckreibich thanks for the feedback:
|
I do think it's cleaner, yeah. Regarding "as many as possible" — for now the two natural applications are build logs and test logs. We could also consider zkg's operation itself, though that's for sure a separate issue.
Ah, good question. I don't think this matters? The common pattern for build and test logs is that you try to install package, and if it bombs, you check the logs. You can't install multiple versions in parallel anyway, and one also cannot currently keep multiple test artifacts in parallel (at least when using btest). Do you have a use-case that would require multiple-version logs to remain available?
I didn't word that point well. I think
I'm saying it would help to make that first part more accessible. A preamble in the resulting logs could simply indicate in which directory Does that make sense? Let me know how you'd like to proceed with your PR. |
RE: multiple versions RE: metadata RE: other |
When zkq was running tests for each version, if a version failed, it was printing an error without context of the test dir and clone dir, and continuing.
It looks however that the code was meant to not continue after that first error check, but after the subsequent error, that sets all passed and prints the more detailed message.
I have changed the behavior to not continue at the first check, and added
the version under test to the more detailed message.