Skip to content

[dev/precommitHook] log all failures, don't stop at first#19271

Merged
spalger merged 4 commits intoelastic:masterfrom
spalger:implement/multiple-precommit-failures
Jun 22, 2018
Merged

[dev/precommitHook] log all failures, don't stop at first#19271
spalger merged 4 commits intoelastic:masterfrom
spalger:implement/multiple-precommit-failures

Conversation

@spalger
Copy link
Copy Markdown
Contributor

@spalger spalger commented May 21, 2018

As pointed out in #19105, if there are multiple failures in the precommit hook only the first failure is logged. Instead, this implementation collects the errors rom all tasks and ensures that all are logged.

Perhaps once #19105 goes in we can migrate this to use listr and merge errors that way.

@spalger spalger added review Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// v7.0.0 v6.4.0 labels May 21, 2018
@spalger spalger requested a review from epixa May 21, 2018 19:23
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@epixa
Copy link
Copy Markdown
Contributor

epixa commented May 24, 2018

You have conflicts here

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@spalger
Copy link
Copy Markdown
Contributor Author

spalger commented May 24, 2018

jenkins, test this

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@spalger
Copy link
Copy Markdown
Contributor Author

spalger commented Jun 18, 2018

@epixa can you take a look at this?

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@spalger
Copy link
Copy Markdown
Contributor Author

spalger commented Jun 18, 2018

retest

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@epixa
Copy link
Copy Markdown
Contributor

epixa commented Jun 19, 2018

@spalger Yep, I will take a look, but it won't be for a couple of days. I'm working through some higher priority PRs first.

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Copy link
Copy Markdown
Contributor

@epixa epixa left a comment

Choose a reason for hiding this comment

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

LGTM

@spalger spalger merged commit d9b3171 into elastic:master Jun 22, 2018
spalger pushed a commit to spalger/kibana that referenced this pull request Jun 22, 2018
spalger pushed a commit that referenced this pull request Jun 22, 2018
…) (#20170)

Backports the following commits to 6.x:
 - [dev/precommitHook] log all failures, don't stop at first  (#19271)
@spalger
Copy link
Copy Markdown
Contributor Author

spalger commented Jun 22, 2018

6.x/6.4: c6a9b3c

@spalger spalger deleted the implement/multiple-precommit-failures branch June 22, 2018 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// v6.4.0 v7.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants