-
Notifications
You must be signed in to change notification settings - Fork 6
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
Discussion: Compatibility verification / testing #37
Comments
This looks great! I've used tox before but not nox. I have a Ubuntu VM with all the Python versions installed that I used for some simple manual version testing for 0.8.0, but some automation is greatly appreciated. |
I'm not ready to add the Github CI changes but if you could put together a PR with the nox changes, I can merge that into the main branch before I spin up a 0.9.0 dev branch. |
Ok, sounds good. When I'm at my computer later today I'll open a new PR
that's just the noxfile.py
If you'd like I can remove the TODO regarding next steps and/or add a
little more to the noxfile docstring about how to get set up with nix.
…On Sat, Dec 9, 2023, 23:11 Paul McGuire ***@***.***> wrote:
I'm not ready to add the Github CI changes but if you could put together a
PR with the nox changes, I can merge that into the main branch before I
spin up a 0.9.0 dev branch.
—
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI3M4SMRFYU7YUKV7BG4AP3YIUY6PAVCNFSM6AAAAABAN5XDNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBYHA2TENBSGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Please just stick to tox for automated testing. I am not looking for any environment or package management integration. |
Sorry, I didn't see this comment until after I pushed. I'll close the PR and make a new one that uses I won't attempt to add any environment/package management. |
Did I say tox? Sorry, I use tox at work, so it was muscle memory. I'm good with learning nox, so don't close that PR yet! |
Hello!
I spend a lot of time digging through logs at work, and was very excited to hear about
logmerger
on The Real Python Podcast. I installedlogmerger
withpipx
, but when I tried to use it I got anImportError
. I was going to open an issue, but saw that you had already fixed it inv0.8.0
!Since on that same issue you noted that you were interested in maintaining support for Python 3.9 and up, I put together a couple ways to automatically verify that
logmerger
is compatible with versions of Python from 3.9 - 3.12. I've got them in thematrix
branch on my fork of your repo: link.At this time, both methods are simple "smoke tests" that just call the CLI help (
logmerger -h
) and fail if they exit with an error code. I don't have experience testing TUI frameworks, so don't (yet) have good thoughts on how to do more rigorous unit/integration tests.The GitHub Actions workflow is the easiest to include, and doesn't require you to install anything on your local machine. On each push or pull request, the
reusable-test.yml
workflow is run, andlogmerger -h
is run on Python 3.9 - 3.12. These jobs will fail iflogmerger
exits with a nonzero exit code.I also added a
noxfile.py
for use with thenox
automation tool.nox
requires you to have all the versions of Python already set up on your local machine, but can be run locally without having to push to GitHub. Thenox
tests are set up with the samelogmerger -h
"smoke test" that are in the GitHub Actions. I've verified that they do fail with thev0.7.0
release, so even without any more in-depth testing, they would catch e.g. syntax errors.With
v0.7.0
:And with
v0.8.0
:I know this is a bit of a wall of text and introduces a couple tools that you're not currently using. If you're not interested, that's totally OK! But if you're interested in adding a test harness this may be a decent place to start. As I have more time to work with
logmerger
at work, I may be able provide some more informed feedback and/or pull requests.Thanks,
Joe
The text was updated successfully, but these errors were encountered: