-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Ensure consistent use of system properties in tests run by Gradle as well IDEA #74737
Comments
Pinging @elastic/es-delivery (Team:Delivery) |
This actually isn't a straitforward problem to solve. Unlike other settings which are applied to all tests, the system property you mention is configured explicitly on some test tasks for some projects. There's no mechanism in IntelliJ to convey this information to the IDE on a per-module basis. Realistically, the best way forward for stuff like this is to get to a position where we can delegate all test execution to Gradle vs using the platform test runner. Only that would guarantee a completely consistent experience. |
Alternatively we could just set this globally for all tests. Would it be problematic to do so? |
I don't think it should be problematic, but I would rather have it the other way around (not having to specify this property in Gradle nor IDEA): Given that this property ( |
I don't have super strong feelings on this but given this is "configuration" couldn't we just add something to |
That would work for me (there is already |
The Gradle test runner is using different system properties when running tests than what is used when tests are launched from the IDE (IntelliJ). This makes it tedious to run tests properly. Many security tests for example break because the system property
es.set.netty.runtime.available.processors
is not set (we set that for the Gradle test runner).This provides a poor experience when running tests in the IDE, so I think that a fix should be prioritized accordingly.
The text was updated successfully, but these errors were encountered: