Skip to content

SOLR-18449 standard test properties naming - #4913

Open
epugh wants to merge 7 commits into
apache:mainfrom
epugh:SOLR-18449-migrate-test-properties
Open

epugh wants to merge 7 commits into
apache:mainfrom
epugh:SOLR-18449-migrate-test-properties

Conversation

@epugh

@epugh epugh commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

https://issues.apache.org/jira/browse/:SOLR-18449

Description

Looks like most of our tests are tests.blah but you could make an argument we prefer solr.tests?

Solution

Sweep thorugh with a pattern of tests. with booleans ending in .enabled. The only excpetion is tests.verbose which technically should be tests.verbose.enabled but that is totally werid.

Tests

re run existing test.

@epugh

epugh commented Sep 15, 2026

Copy link
Copy Markdown
Contributor Author

@dsmiley I took out some backwards compat checking in 42d5b47 but maywe we want to keep that? We shouldn't need it, but maybe existing tooling? Jenkins?

…ention

These six config files (and one inline test schema) still referenced the
old solr.test.* sysprop names while the corresponding test classes had
already been switched to setting tests.solr.*, leaving the placeholders
unresolved and silently falling back to their XML defaults.
@dsmiley

dsmiley commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

note: the props starting with "tests" (e.g. tests.seed) have historically been (only?) ones related to our build randomization infrastructure. When I see a "tests.somethign", I think this is something controllable via a gradle property (not same as a system property). We could expand that... okay... but I suspect you went down this path without knowing the context

@dsmiley

dsmiley commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

meaning, if we do this, we might want to ensure that all "tests" prefixed properties behave uniformly with respect to the gradle propagation/integration.

@epugh

epugh commented Sep 16, 2026

Copy link
Copy Markdown
Contributor Author

meaning, if we do this, we might want to ensure that all "tests" prefixed properties behave uniformly with respect to the gradle propagation/integration.

Thats an interesting idea, do you whtink that would be valuable? So if you pass it in from gradle, it overrides what is already defined? And we have some sort of good gradle tooling to be smart about tests. properties?

@epugh

epugh commented Sep 16, 2026

Copy link
Copy Markdown
Contributor Author

note: the props starting with "tests" (e.g. tests.seed) have historically been (only?) ones related to our build randomization infrastructure. When I see a "tests.somethign", I think this is something controllable via a gradle property (not same as a system property). We could expand that... okay... but I suspect you went down this path without knowing the context

Yeah, I didn't know that bit of context, thank you. I was assumign it was more like the managed.schema.mutable type of property.

At the bottom of https://cwiki.apache.org/confluence/spaces/SOLR/pages/287607235/System+property+naming+structure is the various test properties, it's not comphrensive, but it's a lot of them...

Do you think this is moving in the right direction, or did I miss on some of these and should roll back? Or, group in different ways?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment