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

[it tests] Upload logs as buildkite artifact even on failure #1838

Merged
merged 2 commits into from
May 29, 2024

Conversation

favilo
Copy link
Contributor

@favilo favilo commented Mar 21, 2024

  • (Only for maintainers) Did you apply appropriate labels and a milestone?

@favilo favilo requested review from pquentin and gbanasiak March 21, 2024 17:29
@favilo favilo added enhancement Improves the status quo :ci Everything related to CI labels Mar 21, 2024
Comment on lines +7 to +11
function upload_logs {
echo "--- Upload artifacts"
buildkite-agent artifact upload "${RALLY_HOME}/.rally/logs/*.log"
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should this go somewhere common, like .buildkite/retry.sh? It relies on $RALLY_HOME being set, so it could be fragile, is why I didn't just go ahead and do it.

Copy link
Member

Choose a reason for hiding this comment

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

I'd say it is ok where it is. If we wanted in a seperate file, having it in something like utils.sh or upload.sh might be better, but seems a little overkill in this case. It's only a few lines

@pquentin pquentin removed their request for review April 15, 2024 13:42
Copy link
Member

@gareth-ellis gareth-ellis left a comment

Choose a reason for hiding this comment

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

LGTM

@gbanasiak gbanasiak merged commit 9a734c2 into elastic:master May 29, 2024
15 checks passed
@favilo favilo deleted the upload_logs_on_error branch August 15, 2024 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:ci Everything related to CI enhancement Improves the status quo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants