-
Notifications
You must be signed in to change notification settings - Fork 49
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
Allow api module to fail #39
Conversation
Codecov Report
@@ Coverage Diff @@
## main #39 +/- ##
==========================================
+ Coverage 79.69% 80.26% +0.56%
==========================================
Files 11 11
Lines 1197 1221 +24
Branches 163 162 -1
==========================================
+ Hits 954 980 +26
- Misses 181 183 +2
+ Partials 62 58 -4
Continue to review full report at Codecov.
|
This took a bit longer, since there were some problems with the tests. These should be fixed now as well :) |
will check today |
(I rebased after merging #37 so the PR's branch contains that PR as well. I didn't make any changes to this PR's code.) |
Ok, this should either be merged in a bit more than a hour, or it has to skip this community.routeros release. Otherwise we might miss Ansible 4.2.0. |
Will try to check the test tonight |
we can merge |
closed by mistake |
@heuels @NikolayDachev @jplitza I've updated the changelog fragment. Please take a look! Also if you think that this shouldn't just show up in a patch release, but potentially a minor or even a major release, please say so! This will very likely break people's roles and playbooks, when they rely on errors not resulting in task failures. We have to decide how breaking this is (all collections stick to semantic versioning). Basically our options are:
What do you think? |
1.3.0 look ok will give a some time for playbook/roles fixes |
1.3.0 will not mean that the release will happen later, it only changes the semantic of the release in terms of semantic versioning. |
This definitely isn't a patch level change. I'm even tempted to say this is worth a new major version, since (roughly) a third of the collection changes a significant portion of its API (namely the return value, if you will). November isn't so far away, and this change isn't really pressing (it's been this way like forever, hasn't it?) |
For me it's also tempting to say it's a major-level release, but still I would stick with a minor-lever here. |
Yes I know, what I try to point here was -> " This is only useful if someone installs the collection manually (i.e. outside of the Ansible package) and uses a version restriction like < 1.2.0 to prevent new features." Other question: Why we should care about "ansible base" release date (except something new is pushed from it which we should implement). If I remember correctly this was the idea of small collections .. to not wait for "ansible base" release .. ? |
The ansible-core release date does not matter at all. What potentially matters is the Ansible release date. Ansible is the community distribution "with batteries included", which consists of ansible-core and a set of collections, including community.routeros. Creating a 2.0.0 release now means that the community.routeros version included in Ansible 4.x.0 will be frozen, except if we backport things and create further community.routeros 1.x.y releases. While this is possible (and not that much work), backporting features is more complicated, so the community.routeros version included in Ansible 4.x.0 will probably only get bugfixes, but no more new features. Considering that we aren't publishing much features anyway, that's probably ok though. |
Well 1.3.0 .. |
I've relabelled the patch as minor_changes in 1128009. I'll try to discuss this with some people in the Ansible community next week to get some more feedback; right now I'm tending a bit to make this a major release. |
Any news? |
From the feedback I got, this should really be a major release, since it is a breaking change in functionality. If that's fine with everyone, I'll adjust the changelog fragment accordingly. |
fix ignoring the Fail task if we get TrapError
@heuels @NikolayDachev is this ok for you? If yes, I'll create a |
I'm OK with it, thanks a lot for the effort |
Fine with me as well! Thanks for doing this. |
@NikolayDachev @jplitza @heuels thanks for your reviews and feedback! |
SUMMARY
Right now, the module will not fail when
return_result
is called withstatus=False
, since it looks forstatus == 'False'
(string instead of boolean).ISSUE TYPE
COMPONENT NAME
api