-
Notifications
You must be signed in to change notification settings - Fork 530
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 possibility to trigger specific module's tests in CI on Pull Requests via issue comments #1408
Conversation
That would indeed be very useful. Maybe we could also parse the corresponding github comments (if any) - then we could trigger it on other people's code. |
Yeah, that would be even better.. 👍 |
This should enable requesting specific modules' tests via comments.. e.g. using: +TESTS:clients.fdsn,clients.iris todo:
|
66563cd
to
faa5d71
Compare
Works in principle but I'll put it on hold.. no time to work on refactoring this cleanly in |
afacbfc
to
956bcc5
Compare
Only thing missing is also do the check for requested additional tests in appveyor, too. Not so good with the windows syntax, so leaving it out for now. In any case Travis will test any additionally requested modules (or |
3c741ff
to
6a684cb
Compare
Some of the failing tests should work if you rebase on the lastest master. |
specific module tests
… hidden in a special folder `.github`, IMHO
tests will have to be handled differently, in CI scripts Revert "docker tests: also check github PR comments for additional modules to" This reverts commit e479742. Revert "CI: parse issue comments for regex to run tests for specific modules" This reverts commit faa5d71. Revert "run_tests: add option to check for requests of specific (network) module" This reverts commit 90eaa28.
6a684cb
to
c680d36
Compare
Rebased on current master (hope I got those conflicts right..) |
Todo:
|
Hmm.. thinking about it, the other option would be to set Travis to test all modules for pushes (as opposed to PRs) to master/maintenance. That wouldn't impede speed of feedback on PRs commit status and would move those tests more to the core of our CI setup. btw. @krischer, there's a test fail in fdsn mass downloader on old scipy (https://travis-ci.org/obspy/obspy/jobs/164580925), not sure if it's worth to fix.. |
Sounds good. But I guess then we really need to make our networks tests more stable.
Probably not worth to fix but the tests should be skipped for old scipy versions. |
Doesn't matter much actually.. any commit status with whatever context that sets a status of "error" or "failed" will make our build show up as broken.. |
..and also purge outdated comment on base branch switching
Good to merge, I think. (stray Travis fail is due to some fdsn mass downloader issues with old scipy) Short summary of what this now actually does:
|
Looks good to me :-) |
For PRs that make changes on network modules, I think it would be good to have some possibility to trigger some specific network module's tests (alongside the default non-network modules tests) during CI. We could e.g. check the commit message for a magic regex, something like 'TEST:clients.fdsn'..