-
-
Notifications
You must be signed in to change notification settings - Fork 323
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
temporal: handle SQLite < 3.33 #3723
Conversation
Travis still runs Ubuntu focal. We could create a second PR with temporary changes to the config to run these tests, and never merge that PR. |
I'm running a modified CI run based on your PR. The current Ubuntu workflow built successfully, now waiting for the tests to finish in about 30 min. https://github.com/echoix/grass/actions/runs/9151666333/job/25158041723?pr=91 It has SQLite 3.31.1
|
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.
Thank you. This solves it!
I tested locally with Ubuntu 20.04 and all pytest tests run (at least one temporal one was failing previously).
Please, include in the commit message more details on when to delete what parts when the time comes. I guess reverting this commit will do the trick, but it is not clear to me what is legacy from reading the code and seeing the _v3
and _old
files.
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.
As mentioned, indications on what and when to clean up later would be helpful.
@wenzeslaus great for pytest, as my CI run was only for the gunittest-based tests. So together we have complete coverage |
The "old" way of original reporter (myself) testing it was just simple in this case. ;-) Generally, I think the idea would be to test the full supported range of dependencies in the CI. We sort of do that with Python and C in couple places. I think the same idea was there for Ubuntu to get old version of dependencies determined common Linux distro. I'm not sure why we dropped 20.04 in GitHub Actions. Did GitHub make that deprecated? I don't see any warnings in your run, @echoix. (?) |
I'm not sure I was following the CI when Ubuntu 20.04 was dropped (if it was ever there). I know the transition that dropped things like centos and others were made before too. One consideration that we need to have, is that the CI runs we have are already really long, and multiple. We are sometimes fighting for CI time against other OSGeo projects, so adding 1 or 2 hours per PR commit + per PR merge should be thought of a little bit. Another one, is that now the ubuntu-24.04 runner images are out (in beta, and the proportion of machines with that image is being scaled, the capacity will be balanced in the next weeks). If we were to add some platforms, I would run with 24.04 instead. If you aren't paying by minute, maybe for now something reasonable would be to make Travis run gunittest tests while keeping it at Ubuntu 20.04 (focal), as it is compiling but doing nothing based on it, and we aren't fighting over capacity for it now. |
There were test failures for the temporal tests in gunittest (2 files, 2 failed tests). But there was also a failure in the gunittest in folders other than temporal (1 file, 1 failed test) https://github.com/echoix/grass/actions/runs/9151666333/job/25158041723?pr=91
And https://github.com/echoix/grass/actions/runs/9151666333/job/25158041637
|
Thanks for the effort with testing. I simulated the test here by locally and temporarily inverting the check for the SQLite version. And now tests with SQLite < 3.33 should pass... Please try again! |
For the non-temporal:
no errors reported in the temporal folder |
I don't get it. All pytest tests run for me, but I tried
Clearly unrelated to this PR. I rebuilt GRASS and this branch has a recent merge from main, so it has #2895. (?) |
As the AddOn issue is unrelated, do you feel this is ready to merge? |
I don't have any problems with merging this |
This is an attempt to address:
#3466
Not sure how to test with Ubuntu 20.04. It is not part of CI, and I do not have Ubuntu 20.04 at hand right now...
I would appreciate if anyone with Ubuntu 20.04 could run temporal tests with this PR applied...