CircleCI-Public / orb-tools-orb

Various tools for authoring and publishing CircleCI orbs
https://circleci.com/orbs/registry/orb/circleci/orb-tools
MIT License
51 stars 75 forks source link

[semver:major] Orb Tools Orb v10 #90

Closed gmemstr closed 4 years ago

gmemstr commented 4 years ago

Orb Pack v10

A number of large orb updates are coming! In preparation, we are looking to create a new v10 version of the Orb-Tools-Orb reimagined with some changes we have been working on, while also giving us a chance to clean up and reorganize the orb.

The primary focus of this change is around the new circleci orb pack cli command currently in beta in the CircleCI CLI. Read more here: https://discuss.circleci.com/t/circleci-cli-orb-pack-beta/36598

The orb pack command will replace (but not remove!) the config pack command for the purposes of creating orbs. The major benefit being you may now import files directly into your config! This means you can write your bash shell scripts as bash scripts and import them into the command section of a config. This opens up many opportunities for local execution and testing.

Added:

Changed:

Removed:

KyleTryon commented 4 years ago

Consider for removal:

Consider for change:

gmemstr commented 4 years ago

@KyleTryon https://github.com/CircleCI-Public/orb-tools-orb/blob/orb-pack-10/src/scripts/shellcheck.sh does shellchecking of both the scripts folder as well as the YAML strings, but I'd be okay with dropping the YAML extraction.

I'm okay with removing the local-test-build, and probably move the check-env-var-param to build-tools - I can see it's utility being useful. But we can drop it if we think it's ultimately useless.

KyleTryon commented 4 years ago

Removed local-test-build.

May be useful for local testing, but as the orb is in the cloud, there doesnt seem to be any reason to run "local" tests, on the cloud. Integration tests would be preferred here.

Thoughts @gmemstr @lokst ? https://github.com/CircleCI-Public/orb-tools-orb/pull/90/commits/1a0f2ac24470109c9c632f4a7a61b0cab78018d2

gmemstr commented 4 years ago

@KyleTryon Makes sense - with the new orb testing standards (prefering actual language testing frameworks over extracting from YAML or testing within), I think it's less neccesary.