-
Notifications
You must be signed in to change notification settings - Fork 7
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 to provide extra labels #43
Allow to provide extra labels #43
Conversation
This is a good idea, my initial reaction is that I'd maybe like to see this as part of the It dovetails with some of my thoughts about So it might fit well with that idea. That would also allow this extra-labels feature to be used when building locally (not using the GH actions). It wouldn't be too bad to add it only to these actions for now, and do the above later, but would like to see tests added since we're actually testing this action! I realize it's still WIP. |
I don't think this should be part of |
I can't argue the merits of one approach or the other but I'm in favor of something that does allow us to inch closer to recommended or mandatory CI tests for all collections in the Ansible package so we can clean up the docs (and links). |
2ddab77
to
0c97e39
Compare
We do have tests (for the action, but not the workflow yet), so I would like to see the tests updated to hit this parameter and do at least some naïve checking on the output. If mitigations are added for the malicious input case, we could probably also add a check for that. |
Hmm, it looks like the tests do not use the actions from this branch, but from the
(See for example the |
hm, that should not be the case, we're using the "local" form where the action is loaded from the files on the runner (so via checkout): And the event is I'll see what I can find, but looking briefly I think it might just be a mismatch on the name of the option provided. |
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.
So with the small change I committed they pass, I have a few more suggestions in this batch, and one I can't suggest directly in the UI, so I won't apply them yet.
Will leave it up to you if you want to keep the matrix name mismatched or make it match the param name.
fb2e29d
to
98d69dc
Compare
98d69dc
to
8d37697
Compare
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.
Looks great, thank you for adding the tests!
I'll hold off on merging in case you had any other changes you wanted to make. If not then it's ready to go from my POV, feel free to merge :)
I think I'm done (with the first version), so let's merge. I'll probably try this out with community.general, and then I'll see whether something is missing ;-) |
@briantist thanks a lot for your review! |
thanks for contributing @felixfontein ! |
Sometimes you don't want to add extra collections to the docs build to resolve some labels, but just provide these label targets. This is useful for community.general which has redirects to infoblox.nios_modules, but we don't want to install that collection to build the docs (it's not under our control and might produce new build errors). Building without that collection gives warnings such as
which would require us to be lenient on docs build errors. With this new option we can add a file (rst/_targets.rst) that contains the given labels.
(Not yet tested.)