-
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
Add a docs link to the log message about each failing bootstrap check #99644
Add a docs link to the log message about each failing bootstrap check #99644
Conversation
Pinging @elastic/es-core-infra (Team:Core/Infra) |
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.
Looks great, I left only superficial comments.
server/src/test/java/org/elasticsearch/bootstrap/BootstrapChecksTests.java
Outdated
Show resolved
Hide resolved
...y/src/main/java/org/elasticsearch/xpack/security/SecurityImplicitBehaviorBootstrapCheck.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/common/ReferenceDocs.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/common/ReferenceDocs.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/bootstrap/BootstrapChecks.java
Outdated
Show resolved
Hide resolved
qa/evil-tests/src/test/java/org/elasticsearch/bootstrap/EvilBootstrapChecksTests.java
Outdated
Show resolved
Hide resolved
@elasticmachine ok to test |
I pushed a formatting fix and a changelog entry to your branch. |
@NEUpanning could you make sure your code passes |
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 like it, just a few formatting comments left.
+ "." | ||
+ Version.CURRENT.minor | ||
+ "/security-minimal-setup.html to configure security, or explicitly disable security by " | ||
+ "See " + this.referenceDocs() + " to configure security, or explicitly disable security by " |
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.
👍
containsString("For more information see " + | ||
"[https://www.elastic.co/guide/en/elasticsearch/reference/") |
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.
nit: combine string constants (may need reformatting)
containsString("For more information see " + | |
"[https://www.elastic.co/guide/en/elasticsearch/reference/") | |
containsString("For more information see [https://www.elastic.co/guide/en/elasticsearch/reference/") |
assertThat(e.getMessage(), containsString("; for more information see " + | ||
"[https://www.elastic.co/guide/en/elasticsearch/reference/")); |
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.
nit: combine string constants (may need reformatting)
assertThat(e.getMessage(), containsString("; for more information see " + | |
"[https://www.elastic.co/guide/en/elasticsearch/reference/")); | |
assertThat(e.getMessage(), containsString("; for more information see [https://www.elastic.co/guide/en/elasticsearch/reference/")); |
(same comment for the other assertions added in this test suite)
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 (assuming CI is happy)
I see that we don't have G1GC bootstrap check but there is its own page.Does we do this check in other place? |
Aha good catch, this check is obsolete in 8.x and was removed in #85361 but we failed to clean up the docs. |
I see that execution failed for task ':x-pack:plugin:esql:compute:test' in the Jenkins logs.But my code passes this task locally.I will try to fix it. |
…NEUpanning/add_docs_link_to_bootstrap_checks
It seems like the reason for the build failure is #97795 |
Yes we're seeing a little instability in CI at the moment. Don't worry about it, we'll get this merged eventually. |
@elasticmachine please run elasticsearch-ci/part-1 |
@DaveCTurner Thanks for your review and patience. |
Add a docs link to the log message about each failing bootstrap check to help new users to understand failing bootstrap checks.
Closes #99614