-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Show -Dlicense.key value in test repro info #66179
Show -Dlicense.key value in test repro info #66179
Conversation
Pinging @elastic/es-delivery (Team:Delivery) |
@@ -181,10 +182,32 @@ private ReproduceErrorMessageBuilder appendESProperties() { | |||
appendOpt("tests.timezone", TimeZone.getDefault().getID()); | |||
appendOpt("tests.distribution", System.getProperty("tests.distribution")); | |||
appendOpt("runtime.java", Integer.toString(JavaVersion.current().getVersion().get(0))); | |||
appendOpt("runtime.java", Integer.toString(JavaVersion.current().getVersion().get(0))); |
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.
This line seems to be duplicated?
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.
fixed
appendOpt(ESTestCase.FIPS_SYSPROP, System.getProperty(ESTestCase.FIPS_SYSPROP)); | ||
return this; | ||
} | ||
|
||
private String relativePath(String pathProperty) { |
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.
Is this necessary once the fix is made in xpack to use Gradle's file resolution to get the path relative to the root project? With that change, and using a relative path in CI, shouldn't the reproduction line should just work for devs copying it from CI to their machines?
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.
This also works with having an absolute path passed in the commandline (e.g.on ci)
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.
But it will not required if we ensure we always pass a relative path here only
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'm just wondering if is necessary at all. It is specifically for CI. If a developer passes an absolute path, it will still work. We just need to ensure we pass a relative path in CI.
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.
in that case I can remove this
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.
done
- When a -Dlicense.key sys property is passed to the build we want to consider this in the test reproduction info message - absolute Paths tried to be converted to relative paths relative to workspace root to allow simply copy & paste - Also fixes a inconsistency for checking license existence in x-pack plugin core build
85ce4ce
to
70a72aa
Compare
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
- When a -Dlicense.key sys property is passed to the build we want to consider this in the test reproduction info message - Absolute Paths tried to be converted to relative paths relative to workspace root to allow simply copy & paste - Also fixes a inconsistency for checking license existence in x-pack plugin core build
- When a -Dlicense.key sys property is passed to the build we want to consider this in the test reproduction info message - Absolute Paths tried to be converted to relative paths relative to workspace root to allow simply copy & paste - Also fixes a inconsistency for checking license existence in x-pack plugin core build
- When a -Dlicense.key sys property is passed to the build we want to consider this in the test reproduction info message - Absolute Paths tried to be converted to relative paths relative to workspace root to allow simply copy & paste - Also fixes a inconsistency for checking license existence in x-pack plugin core build
this in the test reproduction info message
root to allow simply copy & paste