CircleCI-Archived / Orb-Project-Template

A starter template for orb projects. Build, test, and publish orbs automatically on CircleCI. Use the Orb Development Kit to get started.
https://circleci.com/docs/2.0/orb-author/#orb-development-kit
MIT License
24 stars 34 forks source link

Unable to add new command/job and a test for it in the same commit #37

Open jsab opened 2 years ago

jsab commented 2 years ago

Orb version:

Which orb?

What happened:

When using the Orb-Project-Template, if you create a commit for the orb you are working on that contains both a new command or job and an integration test for it, workflow execution will fail with a message similar to:

Error calling workflow: 'integration-test_deploy'Error calling job: 'integration-test-3'Cannot find a definition for command named cci-orb/test2

Expected behavior:

Being able to add a command and a test for it in the same commit.

If that is not possible to fix, clear documentation about this limitation in the readme would be appreciated.

Additional Information:

The workaround I've been using is to add another commit with the test removed from .circleci/config.yml and push it. Once that has been built and deployed you can then drop the commit, force push and finally get to where you wanted to be in the first place.

Looks like other people are also encountering the problem for example https://discuss.circleci.com/t/jobs-in-private-orbs-not-recognized-by-integration-tests/42812