-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Extend README.md
by runnable default config core-its
#11157
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
Conversation
I don't recall I was asking for this change, quite the opposite. I don't really see the benefits here, as the ITs are not really compiled against the current build, they are only executed. So adding those to the build by default does not much bring any benefit, but just adds modules that are not used unless you use |
I kind of understand, but not in detail to be honest. From my perspective, it provides an easy executable command to apply what’s the default. So, this README change feels a bit unrelated. On the other hand, these kinds of tests are not really designed to be executed by default. It’s more about providing code awareness. The tests work now, luckily, so it’s definitely an improvement. But still, it’s not suitable for running massive tasks locally on default. It’s about including the code that’s already there and treating it as part of the project — which it is, since it was explicitly moved from an external repo into this one. This also improves setup time, since you no longer need to manually import external projects. Of course, one could argue this is not something touched regularly, but if that’s the case, then why was it moved so close? Long story short: the code is now tightly integrated and ready to be excluded. Imho it makes more sense to include it and treat it as a fundamental part of the project. Assuming it has its own Maven parent, it might not even be necessary to include — but that was an additional motivation to do so, in order to align with code conventions, as seen in: In the end, it doesn’t matter too much. |
The problem is not the README change, but the addition of the
They have been moved, because when you develop a new feature, it's a good practice to add an IT to ensure no regression in the future.
That's exactly my point. The code is not tightly integrated imho. It is a fundamental part of the project, but again, if you don't run the ITs locally, you don't care about building those because the only important thing here is when they are executed. When you develop Java code, this is important, as you could change an API and break other classes. This cannot happen here, as all java code in tests is built against old Maven libraries. So this is purely about the execution result.
Right, especially as everything is checked in CI where the ITs are run, so I really don't see any benefit in including those while not running them. |
core-its
README.md
by executable default config core-its
README.md
by executable default config core-its
README.md
by runnable default config core-its
Makes sense now considering the broad insides, meric. |
seems currently be flaky: Caused by: java.lang.OutOfMemoryError: Java heap space |
its/README.md
Outdated
|
||
By default, the project just packages the tests in an artifact. To actually run them, activate the run-its profile: | ||
|
||
` |
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.
You need to use triple backticks here.
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.
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.
The rendering is different. When you use triple backticks, GitHub provides a copy button on the upper-right corner. Single backticks are more to be used within sentences.
By default, the project just packages the tests in an artifact. To actually run them, activate the run-its profile: | ||
|
||
``` | ||
mvn clean test -Prun-its |
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.
it's duplicate of line 33
Following this checklist to help us incorporate your
contribution quickly and easily:
Note that commits might be squashed by a maintainer on merge.
This may not always be possible but is a best-practice.
mvn verify
to make sure basic checks pass.A more thorough check will be performed on your pull request automatically.
If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.
To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.
As requested by @gnodet its seem to be stable now working as expected and quoted on introduction:
now passing
mvn clean test -Prun-its
in roow dir.kindly request feedback, thanks.