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 Makefile target to run all CI checks #1299

Merged
merged 3 commits into from
Jul 12, 2021
Merged

Conversation

pquentin
Copy link
Member

@pquentin pquentin commented Jul 2, 2021

And reorganize the docs to mention integration tests and this new target.

I also noticed an opportunity to update the pull request template. I think I prefer not mentioning make check-all there because I still haven't managed to run the integration tests locally!

Closes #1297

pquentin added 2 commits July 2, 2021 10:03
And reorganize the docs to mention integration tests and this new
target.
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.

Many thanks for the quick turnaround in raising this PR!

Generally this looks good, I left a few comments mostly about requiring that a PR, prior to submission, passes all tests locally.

@@ -8,6 +8,6 @@ attention.

* Have you signed the [contributor license agreement](https://www.elastic.co/contributor-agreement)?
* Have you followed the [contributor guidelines](https://github.com/elastic/rally/blob/master/CONTRIBUTING.md)?
* Have you run `make test` and `make it` and both finish without errors?
* Have you run `make lint`, `make test` and `make it` and they finish without errors?
Copy link
Contributor

Choose a reason for hiding this comment

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

Regarding your PR comment we want to ensure all tests pass before raising a community PR is raised so I suggest we replace this with Have you run `make check-all` successfully? This reduces time spent in the PR review process.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, done.

CONTRIBUTING.md Outdated

Consider using editor integrations to do it automatically: you'll need to configure [black](https://black.readthedocs.io/en/stable/integrations/editors.html) and [isort](https://github.com/PyCQA/isort/wiki/isort-Plugins).
Run the test suite to make sure that nothing is broken: `make test`. You can also run integration tests with `make it` (they're much slower, though). To run everything including lint, use `make check-all`.
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest we change the order here and require that make check-all passes first -- since these are the guidelines before raising a PR -- and then explain that to iterate faster make test and make it can also be used. In other words something like:

Ensure that all tests pass by running make check-all. This runs sequentially lint checks, unit tests and integration tests. These can be executed in isolation using make lint, make test and make it respectively, in case you need to iterate over a subset of tests.

Note: Integration tests are much slower than unit tests.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, done.

@dliappis dliappis added :Docs Changes to the documentation enhancement Improves the status quo labels Jul 5, 2021
@dliappis dliappis assigned dliappis and unassigned dliappis Jul 5, 2021
@dliappis dliappis added this to the 2.3.0 milestone Jul 5, 2021
@dliappis
Copy link
Contributor

dliappis commented Jul 5, 2021

@elasticmachine test this please

@dliappis
Copy link
Contributor

dliappis commented Jul 5, 2021

@elasticmachine test this please

@dliappis dliappis self-requested a review July 5, 2021 14:06
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.

Thanks for iterating. LGTM, will merge after CI is green.

@pquentin
Copy link
Member Author

CI is green :)

@dliappis
Copy link
Contributor

@pquentin Ah sorry, yes this fell through the cracks. Merging.

@dliappis dliappis merged commit 945aa82 into elastic:master Jul 12, 2021
@pquentin pquentin deleted the check-all branch July 12, 2021 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Docs Changes to the documentation enhancement Improves the status quo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a check-all Makefile target
2 participants