Enhancements to abra recipe lint
#685
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is a proposal to help recipe maintainers with building and maintaining working recipes by performing a couple of checks. Once stable, it should be run at the beginning of
abra recipe releaseto mitigate faulty releases and improve recipe quality.The following checks I can think of that would not duplicate checks done during deployment:
${STACK_NAME}_name_${SECRET_NAME_VERSION}SECRET_NAME_VERSION=v1are present in.env.sample(even if commented out)${STACK_NAME}_name_${NAME_CONFIG_VERSION}NAME_CONFIG_VERSION=are present inabra.shREADME.mdcontains metadatacompose.yml(mitigate documentation drift)"coop-cloud.${STACK_NAME}.version=XXX"Of course, just add anything that makes sense to you to check :)
From a technical point I am not sure if there would be a big overlap with using
recipe release --dry-runand if refactoring those checks so they can be performed independently makes sense. I would be also fine with just adding as many checks as possible to the release command.@iexos we have
abra recipe lint <recipe>, should we just extend this? It seems to have a different purpose to suggest / highlight other optional things that you might want to do as a maintainer. However, havingcheckandlintmight be confusing. And what do you think about that output format with the table? Is that necessary?Ah, I didn't know about
recipe lint. Thats cool! Then we could simply add the suggestions above to that one :) I don't see a benefit in splitting checks/lints.I added an issue for the docs: toolshed/docs.coopcloud.tech#288
I think the default output format of
recipe lintshould only show unresolved issues (even though its nice to have a lot of green check marks 😄) especially if more rules are to be added. Having an option to show all rules is nice, but not sure if really needed.Leaves me with the question if and how this should become better integrated into the release process. Documentation changes are a start, for a future CI integration and catalogue enhancements it could become an indicator for recipe stability. But maybe this is out of scope for this issue? (I still have to learn smth about scope discipline 😅)
Add `abra recipe check`to Enhancements to `abra recipe lint`