Skip to content
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 thespian logs to ci #971

Merged
merged 3 commits into from
Apr 29, 2020
Merged

Add thespian logs to ci #971

merged 3 commits into from
Apr 29, 2020

Conversation

hub-cap
Copy link
Contributor

@hub-cap hub-cap commented Apr 21, 2020

Closes #129

@hub-cap hub-cap added enhancement Improves the status quo :misc Changes that don't affect users directly: linter fixes, test improvements, etc. labels Apr 21, 2020
@hub-cap hub-cap added this to the 1.5.0 milestone Apr 21, 2020
@hub-cap hub-cap self-assigned this Apr 21, 2020
@hub-cap hub-cap requested a review from dliappis April 21, 2020 16:30
.ci/build.sh Outdated
@@ -23,11 +23,23 @@ set -e
set -o pipefail

function build {
if [[ ! -d ${RALLY_HOME} ]] ; then
echo "Rally home [${RALLY_HOME}] is not set or does not exist."
Copy link
Contributor

Choose a reason for hiding this comment

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

What about adding a conditional to check if the var is set, first, to help with troubleshooting?

e.g.

if [[ -z ${RALLY_HOME+x} ]]; then
    echo "Env var [RALLY_HOME] is unset."
    exit 1

Then the error message on this line can be clearer like:
echo "\$RALLY_HOME [${RALLY_HOME}] does not exist.

or something along those lines?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You might want to eyeball this again. I went ahead and just removed the check, as rally will just create the directory if it does not exist, and I ensured its set with a set -u, and then changed it to set +u so the rest of the commands would work (IIRC it was pyenv that failed if set -u is set.

Copy link
Contributor

@dliappis dliappis left a comment

Choose a reason for hiding this comment

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

LGTM left a suggestion.

@dliappis dliappis self-requested a review April 29, 2020 15:19
Copy link
Contributor

@dliappis dliappis left a comment

Choose a reason for hiding this comment

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

LGTM

@hub-cap hub-cap merged commit 3baf9d9 into elastic:master Apr 29, 2020
@hub-cap hub-cap deleted the thespian_logs branch April 29, 2020 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves the status quo :misc Changes that don't affect users directly: linter fixes, test improvements, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve internal module structure
2 participants