Skip to content
This repository was archived by the owner on Jun 1, 2022. It is now read-only.

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

@jsab

Description

@jsab

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions