Skip to content

simplify ./gradlew run-ccs#89711

Merged
jakelandis merged 2 commits intoelastic:mainfrom
jakelandis:fix_run_ccs
Aug 30, 2022
Merged

simplify ./gradlew run-ccs#89711
jakelandis merged 2 commits intoelastic:mainfrom
jakelandis:fix_run_ccs

Conversation

@jakelandis
Copy link
Copy Markdown
Contributor

This commit reverts the changes introduced via #89442 / 20ed7e3
and re-implements the same goals but with fewer changes. Also included in this commit
is the ability to change the proxyMode via system property and mention of this
new run task in the testing documentation.

===

While working #89563 I found a better pattern that does not require updates to the run task. I think this approach is cleaner especially for debugging.

@github-actions
Copy link
Copy Markdown
Contributor

Documentation preview:


default void enableDebug(int portOffset) {
int debugPort = 5007 + portOffset;
default void enableDebug() {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

part of the revert

public void beforeStart() {
if (debugServer) {
enableDebug(0);
enableDebug();
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

part of the revert

@@ -35,16 +35,12 @@ public class RunTask extends DefaultTestClustersTask {

private Boolean debug = false;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all changes are part of the revert

node.setting('cluster.remote.my_remote_cluster.seeds', fulfillingCluster.get().getAllTransportPortURI().collect { "\"$it\"" }.toString())
}
}
queryingCluster.get().restart() //updates the on-disk config
Copy link
Copy Markdown
Contributor Author

@jakelandis jakelandis Aug 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the main change. specifically calling .restart() to update the configuration on disk

@jakelandis jakelandis added >non-issue :Delivery/Build Build or test infrastructure labels Aug 29, 2022
@jakelandis jakelandis requested a review from mark-vieira August 29, 2022 23:39
@jakelandis jakelandis marked this pull request as ready for review August 29, 2022 23:40
@elasticsearchmachine elasticsearchmachine added the Team:Delivery Meta label for Delivery team label Aug 29, 2022
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

Copy link
Copy Markdown
Contributor

@mark-vieira mark-vieira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jakelandis
Copy link
Copy Markdown
Contributor Author

thanks Mark!

@jakelandis jakelandis changed the title reimplement ./gradlew run-ccs simplify ./gradlew run-ccs Aug 30, 2022
@jakelandis jakelandis merged commit 54e1309 into elastic:main Aug 30, 2022
@jakelandis jakelandis deleted the fix_run_ccs branch August 30, 2022 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Delivery/Build Build or test infrastructure >non-issue Team:Delivery Meta label for Delivery team v8.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants