Skip to content

Create jvm options dsl and generator in gradle #32257

@rjernst

Description

@rjernst

Elasticsearch has a text file called jvm.options which is pretty much a line delimited set of additional command line arguments for java when invoked by bin/elasticsearch (with the caveat it has version specific conditionals to allow eg java 9 specific options). While the integration tests, by virtue of running bin/elasticsearch, use these options, the unit tests do not. This issue is intended to outline a proposal for how unit tests can use these options, without the need for duplication across gradle and the jvm.options text file.

The proposal is to move the specification of the jvm options we ship with into gradle itself. That would allow the unit tests to consume the dsl (or rather, the dsl can fan it's configured settings out to all RandomizedTestTasks or something like that), and the shipped jvm.options file can be generated from the dsl as part of the distribution build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Delivery/BuildBuild or test infrastructureTeam:DeliveryMeta label for Delivery team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions