-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Use the zim files in zim-testing-suite for unit tests. #531
Conversation
7365992
to
7d72dc8
Compare
08c3eea
to
00f04f3
Compare
Codecov Report
@@ Coverage Diff @@
## master #531 +/- ##
==========================================
- Coverage 76.39% 76.37% -0.03%
==========================================
Files 89 89
Lines 3661 3661
Branches 1630 1630
==========================================
- Hits 2797 2796 -1
- Misses 863 864 +1
Partials 1 1
Continue to review full report at Codecov.
|
0f71799
to
732194a
Compare
Brew changes its backend. We must update it before using it.
732194a
to
5fb5f36
Compare
@legoktm The idea behind this PR is to move all the test zim files in a separated repository (https://github.com/openzim/zim-testing-suite). |
Can we do what we did in openzim/python-libzim@ff560ea and have the tests be skipped if the zim test files are missing? And then, how many repositories do you expect will use the new zim-testing-suite repository? If it's just this one, then we can add it as an additional source, but if it'll be multiple we probably want to just package it separately and have libzim, etc. depend on it. |
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.
Before this change we must agree on the new/proposed workflow of managing test ZIM archives and unit-tests depending on them? In particular:
- Under what circumstances and how existing ZIM archives can be updated in the broad sense (even if it means creating a new manually versioned revision of that archive)?
- How their versioning is going to be handled?
- What is the envisioned approach to creating and maintaining backward compatibility tests (when the same test must run on various versions of the conceptually "same" ZIM archive)?
- How do you make sure that developers have the most up-to-date test data on their local development hosts? zim-testing-suite becomes a weak dependency of the source repositories since it is used only for unit-tests. How to avoid scenarios when unit-tests might fail on more fresh test data but keep passing because they use the old data? This now becomes a problem since zim-testing-suite must be updated separately.
@mgautierfr I have extracted the commit about Brew update in the CI, to speed-up the fix and make it independant. Here is the dedicated PR #533 |
I prefer not, if we silently skip the tests we can be pretty sure that we will miss that.
This is a open question. For now only one. |
This is somehow something I didn't want to discuss now.
For now, zim files in zim-testing-suite must not be changed.
Manually for now.
The next step here is to move the existing zim files in On libzim's test side, update
We can add a check in meson to check the data version. As said at the beginning of my comment. This solution is not perfect. |
Then I don't see why we need to switch existing tests to a new approach now. You could have created |
Because current tests must be run on current test zim files AND new ones. |
Still, we better arrive at it by creating one such test first, ironing out any issues and then migrating existing tests that rely on large test data. I am going to defend my opinion of keeping small data with the tests. |
PR #535 add the new test files and update the tests. |
Superseeded by #538 |
No description provided.