-
Notifications
You must be signed in to change notification settings - Fork 15
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
Review Orbs Best Practices doc and tweak as needed #8
Comments
Reading the docs, here are some updates I think that could be made. I guess separate issues can be created for the changes that make sense 👍 WDYT? Metadata
Examples
Commands
Parameters
Executors
|
Thanks for taking look @kenfdev! Yes, filing an issue for each of those areas would be reasonable. As far as addressing them, a few notes:
Not sure how familiar you are with Pulumi, but this link should probably give you all the info you need:
We certainly should be consistent in our names and following published best practices for new orbs, but you are right that we probably shouldn't break anything right now. What is "more standard"? I would guess we should only be using "snake_case"? I filed #17, an issue to track the future "Pulumi Orbs v2.0" release so we can list all of the places where we don't follow best practices and would like to make a breaking change in the future. So that way when we are ready to ship a new version, we can document what we want to update.
If that is the case, then definitely. The Pulumi orbs were created before the initial release of CircleCI orbs, so it's possible
The |
Thanks again for the detailed response! I'm still new to pulumi but am excited to using it in place of terraform. About the executor, do you have a recommendation for a default executor? Looks like the slack's orb is using https://github.com/CircleCI-Public/slack-orb/blob/staging/src/executors/alpine.yml Another thing I noticed which is not written in the best practice is about dividing the yaml to separate files. This has downsides as well, but since the current yaml will easily grow in size, maybe it'll make sense to divide them as mentioned here |
TBH I don't know enough to have a strong opinion here. It makes sense that we would use the That container comes with
I saw that too a while ago, but erred on the side of keeping them all in a single file. We can split them up if it ever becomes difficult to maintain, but for now things seem to be working fine IMHO. |
https://circleci.com/docs/2.0/orbs-best-practices/#examples Related issue: pulumi#8 Signed-off-by: Ken Fukuyama <[email protected]>
https://circleci.com/docs/2.0/orbs-best-practices/#metadata Related issue: pulumi#8 Signed-off-by: Ken Fukuyama <[email protected]>
I've noticed that adding a default executor without a job doesn't make much sense. IIUC, the executor defined in the orb shines when it is used inside its job. I think it'll make sense to add a default executor when we have a job inside this orb. Do you have any thoughts on what kind of job you'd like to add @chrsmith ? A |
Yeah, you are probably right there. So let's just skip that for the time being.
I can think of plenty of things along more advanced scenarios -- such as a "review app" or the automatic setup and deployment of an existing app. (e.g. deploying a new WordPress instance by just using a single command or something.) But for now we can just get the more basic steps working, like landing |
* Update examples to show x.y for versions https://circleci.com/docs/2.0/orbs-best-practices/#examples Related issue: #8 Signed-off-by: Ken Fukuyama <[email protected]> * Add description about the access token https://circleci.com/docs/2.0/orbs-best-practices/#metadata Related issue: #8 Signed-off-by: Ken Fukuyama <[email protected]>
Review the CircleCI Orbs Best Practices and tweak the Pulumi orbs as needed.
https://circleci.com/docs/2.0/orbs-best-practices/#orb-best-practices-guidelines
https://github.com/CircleCI-Public/Orb-Policies/blob/master/Orb%20Best%20Practices%20Guidelines.md
Note: If you are looking to participate in Hacktoberfest, feel free to submit a PR with some of the recommendations applied. And feel free to test out any larger work items into a new, separate issue.
The text was updated successfully, but these errors were encountered: