-
Notifications
You must be signed in to change notification settings - Fork 1k
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
LUCENE-10352: Convert TestAllAnalyzersHaveFactories and TestRandomChains to a global integration test and discover classes to check from module system #582
Conversation
… to ClasspathResourceLoader and ModuleResourceLoader
…s and don't handle every module on its own). Also add Lucene Core!
…of commons module
lucene/analysis/integration.tests/src/test/org/apache/lucene/analysis/tests/da_UTF8.xml
Outdated
Show resolved
Hide resolved
lucene/analysis/integration.tests/src/test/org/apache/lucene/analysis/tests/simple.aff
Outdated
Show resolved
Hide resolved
lucene/analysis/integration.tests/src/test/org/apache/lucene/analysis/tests/simple.dic
Outdated
Show resolved
Hide resolved
This is gonna be fun :) Thanks for starting this! It is almost guaranteed to find some bugs. Previously only |
@uschindler - can you take a look at #571? Or we can merge that branch here too. I've converted non-distribution .tests projects there to utilize the test framework and generally improved the handling of modular paths (even though the module patching defeated me). |
I will check later, I am a bit busy with argument providers now. |
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.
Yup, looks great.
...alysis/integration.tests/src/test/org/apache/lucene/analysis/tests/ModuleClassDiscovery.java
Outdated
Show resolved
Hide resolved
In both these failures I see the |
There's a bit of difference: There is no "analysis" module. The other modules like core have core.tests (i dont like the name, but Dawid has chosen it). Sure, I can move the classes around no issue. But then analysis.test would be top-level next to the analysis subdirectory. If this is fine to you, I will do. |
I will try to shitlist that one and run another beaster round. If all is fine, I'd like to commit and merge this soon. |
ok, this makes sense to me, if its easy to make it work. |
Another failure:
|
…ucene into draft/random-chains
The "*.tests" convention for project naming is primarily used to exclude these subprojects from being published as Maven artifacts and in various other places in the gradle build code. The prefix does not matter. I think it would be nice to (softly) encourage people to write XYZ.tests projects containing fully modular tests for module XYZ - there are two advantages to this I can think of. For example, a separate source set within the project (src/test-modular...) would complicate the build, add special exclusion rules to tasks and in general be less intuitive. It is an arbitrary choice though - if you can think of a better naming/ solution then it can be certainly changed. |
I successfully got 100 runs of this test to pass:
I think let's leave remaining beasting for jenkins and |
It is similar now for me. I will now move the integration package around and then wait for another round. Otherwise I think it is ready. |
I wanted to originally backport this to 9.x. I am just afraid that the two branches get too different (there are many changes in this PR). @rmuir what do you think? Maybe on 9.x add the filter on "common" and "core"? |
I moved the project now. If you git pull, clean all before, otherwise it will find leftover files on precommit |
if we can backport it, it is ideal. What is the harm? It is just tests. |
and it is running more often! :-) |
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.
Thanks for all the hard work here! This will really help keep everything in order
…ins to a global integration test and discover classes to check from module system (#582) Co-authored-by: Robert Muir <rmuir@apache.org>
See: https://issues.apache.org/jira/browse/LUCENE-10352