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-8626: Standardize Lucene Test Files #2026
LUCENE-8626: Standardize Lucene Test Files #2026
Conversation
LGTM. We can check these in piecemeal rather than do them all at once, as you say the PRs get massive... |
Wouldn't it be better to add test convention enforcement first, followed by gradual rename of all convention-excluded files? I filed a suggestion on how this could be done - it doesn't have to be that particular one; can be anything but would be better than nothing? |
@dweiss I'm of the opinion that they could happen in parallel because we know in which direction we are going given the current state. The enforcement will obviously be a plus, but both the enforcement and the renaming are both in flight and gradually landing. |
ok. |
import org.locationtech.spatial4j.context.SpatialContext; | ||
import org.locationtech.spatial4j.shape.Shape; | ||
|
||
public class TestQueryEqualsHashCode extends LuceneTestCase { |
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.
Did you intend to add this as a duplicate file?
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.
what is the duplicate?
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.
I intended to remove the previous file lucene/spatial-extras/src/test/org/apache/lucene/spatial/QueryEqualsHashCodeTest.java
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.
I see, I didn't remove the original in that case good catch
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.
LGTM!, Gonna commit it after waiting for a day.
Thank you @MarcusSorealheis and everyone |
Description
Janitor here, moving a closer to a standard test file naming convention, starting with Lucene.
Solution
Janitorial work based on the work that @cpoerschke started a couple years ago in the ticket from the title.Almost every change was identical. More to come. PR was already growing too big.
Tests
These are all tests.
Checklist
Please review the following and check all that apply:
master
branch../gradlew check
.