ansibullbot
ansibullbot copied to clipboard
allow automerge on module PRs with tests.
https://github.com/ansible/ansible/pull/31607
This is definitely necessary if we are demanding new tests with every PR.
Just raised this issue in testing meeting, seems we all are for 'automerge' working with modules + matching tests.
- Only if
test/integration/target/$modulename/(not just anything with label:test, for example we don't want automerge on changes totest/runner) - Should also apply to
test/units//$modulename/
Perhaps also corresponding rules for ./test/legacy/?
@andreaso Good point, thank you
Note to self: Need to define a clear set of rules for this
As part of this work we should apply any labels that the corresponding module (or plugin/module_util would have added.
ie
- change to
test/integration/target/nxos_commandshould result with:
- label
networkingas modules/network/nxos/nxos_command's BOTMETA has label:networking - Notify
$team_nxos, again via BOTMETA entry for the module - support:network, again via BOTMETA entry for the module
-
Same for
test/legacy/roles/{module} -
Same for
test/units/modules/ -
change to
test/units/plugins/httpapi/Match BOTMETA forlib/ansible/plugins/connection/httpapi.py
- support: network
- label: network
- maintainers: $team_networking
This also means that the shipit/merge rules for the code itself apply to the test code
See also https://github.com/ansible/ansibullbot/issues/811
Currently it seems that some module-only PRs with accompanied tests can't be automerged: https://github.com/ansible/ansible/pull/44789#issuecomment-424976045
(I later modified the PR and added some changelog fragment, which is known to block automerge anyway currently... But at the time of that bot_status comment, all conditions for automerge were fulfilled IMO.)
blocking module automerges because of updated tests, bites me again.