-
Notifications
You must be signed in to change notification settings - Fork 505
METRON-2324: verify_licenses.sh and list_dependencies.sh don't properly handle maven failures #1568
Conversation
|
@nickwallen Check out the ticket itself, I explain a bit more exactly what's happening there, re: why build. |
|
Can't we just run it as part of the root pom? Like the last module in the list or something? And forget about the if's and but's? |
justinleet
left a comment
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.
@ottobackwards I'm not sure there's any easy way to enforce that it would run last. Other than creating a module and making it depend on every other module or something odd like that. There's not a post-install phase or anything we could easily hook into, it's just deploy afterwards. I'm inclined to just go with Nick's idea of just running maven in the script. Having said that, I do like the idea of having it hook in like that in general a lot, I just don't know a clean way to do it off the top of my head.
…d from Travis step.
|
I moved over to skip.npm in the Travis builds. I haven't run that locally, I'm just letting Travis do it. I also added the build step @nickwallen suggested to the file directly. If we have another way to do it, I'm open to options. As noted above, I like the idea of getting it done in the pom, but I'm not sure how to do it cleanly. |
|
I believe Even then the issue is still that the parent module actually runs first in our case (and this is not a directly controllable or guaranteed thing to the best of my knowledge; it's entirely reactor's call). This means that |
…operly handle maven failures (justinleet via nickwallen) closes apache#1568
|
All the changes are looking good. I am just seeing one issue with the validation. I took this branch and removed the Unfortunately, when running in Travis CI the job does not fail. When running locally everything builds correctly and I see an error message, but the return code is still 0, when it should probably be non-zero. |
|
@nickwallen Should be fixed with a proper exit code in the main script and a more useful message. https://travis-ci.org/justinleet/metron/builds/621750687 succeeds. https://travis-ci.org/justinleet/metron/jobs/621751002 fails (off a branch that is missing the JUnit dep. It doesn't have the changed message commit, but I tested that locally afterwards). |
|
+1 Thanks @justinleet |
|
@ottobackwards Are you okay with this approach, or should we keep looking for an alternative? |
|
No, I am fine with any improvement. |
Contributor Comments
Discovered in #1554
Travis should work the same as local now. Couple changes happened
-Dskip.npm. This ensures that all the modules are built for the verify, but we don't bother with anything related to npm.Pull Request Checklist
Thank you for submitting a contribution to Apache Metron.
Please refer to our Development Guidelines for the complete guide to follow for contributions.
Please refer also to our Build Verification Guidelines for complete smoke testing guides.
In order to streamline the review of the contribution we ask you follow these guidelines and ask you to double check the following:
For all changes:
For code changes:
Have you included steps to reproduce the behavior or problem that is being changed or addressed?
Have you included steps or a guide to how the change may be verified and tested manually?
Have you ensured that the full suite of tests and checks have been executed in the root metron folder via:
Have you written or updated unit tests and or integration tests to verify your changes?
If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
Have you verified the basic functionality of the build by building and running locally with Vagrant full-dev environment or the equivalent?
For documentation related changes:
Have you ensured that format looks appropriate for the output in which it is rendered by building and verifying the site-book? If not then run the following commands and the verify changes via
site-book/target/site/index.html:Have you ensured that any documentation diagrams have been updated, along with their source files, using draw.io? See Metron Development Guidelines for instructions.
Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.
It is also recommended that travis-ci is set up for your personal repository such that your branches are built there before submitting a pull request.