-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Option to run kibana from build for CI #19125
Conversation
💔 Build Failed |
💚 Build Succeeded |
💔 Build Failed |
💚 Build Succeeded |
Huzzah! Looks like it's working. |
`--elasticsearch.username=${servers.elasticsearch.username}`, | ||
`--elasticsearch.password=${servers.elasticsearch.password}`, | ||
], | ||
}, |
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.
Just had to reogranize what's provided by common config.
return installDir | ||
? [...serverArgs, ...buildArgs] | ||
: [KIBANA_EXEC_PATH, ...serverArgs, ...sourceArgs]; | ||
} |
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.
Here's where we collect the right CLI args based on whether installDir was passed (based --kibana-install-dir
)
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, thanks!
💚 Build Succeeded |
jenkins test this |
💚 Build Succeeded |
Much better! |
@spalger pointed out that the code for running kibana from an installation (build) for x-pack tests was bumped out with #18568 merging with opening-xpack.
These files show the flow that we used to run from build:
kibana/x-pack/dev-tools/functional_tests/lib/run_kibana_server.js
Lines 36 to 42 in 2f0b420
kibana/x-pack/dev-tools/functional_tests/tasks.js
Lines 46 to 49 in 2f0b420
kibana/test/scripts/jenkins_xpack.sh
Lines 29 to 47 in 2f0b420
This PR integrates that with the new setup.
Also addresses and fixes #19181, making sure to run
node scripts/functional_tests_server
with the--dev
flag, to watch for code changes and restart Kibana.