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
Only track released versions in oldVersions
.
#13096
Conversation
More fixes are needed, I'm looking. |
We used to have logic to allow up to one missing file to account for in-progress releases: https://github.com/apache/lucene/blob/releases/lucene/9.8.0/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBackwardsCompatibility.java#L805-L843. We need to figure out a way to replicate this logic with the new parameterized testing. It would help if we could have access to an authoritative list of released versions, e.g. via the DOAP file maybe? |
Hahaha that logic is crazy....
This could work, but that would require network access at test time which is not allowed (security manager). Replicating the DOAP file to the repo seems like it defeats its purpose. I tend to replicate the previous logic. |
See this issue for more insights to the "crazy logic": https://issues.apache.org/jira/browse/LUCENE-5936 |
|
@uschindler I also have a bias against adding more dependencies on network resources, this is why I was thinking of the DOAP files since we have them in the repository: https://github.com/apache/lucene/blob/main/dev-tools/doap/lucene.rdf. |
Oh that's new to me. Cool idea. Parsing with a simple stax parser should work. Unfortunately those are outside of test resources and can't be loaded easily. I am tempted to add the legacy behaviour back. It's proven to work since 10 years. The code wasn't changed since that old issue. |
P.S.: Unrelated to this issue here: we should update the doap file to use https links (not for the namespaces and controlled vocabularies, but those to our project homepage). See #13097 |
I pushed a new commit that revives the old logic that allowed up to one version missing backward-compatibility data. |
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. We may look into better solutions at a later stage. For now this is perfect and stops builds from failing.
With our last change, we may need to change the script that adds the backwards indexes. Or is this now how it worked before? |
@uschindler I'm not sure to understand what you mean. The script that adds bw compat indices indeed needs updating to update the |
(which is what Simon is doing at #13095) |
Thanks! |
This would avoid test failures when a release is in progress.