Skip to content
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

Unable to publish and pack multiple orbs within single workflow. #195

Closed
adomaskizogian opened this issue Mar 12, 2023 · 1 comment · Fixed by #181
Closed

Unable to publish and pack multiple orbs within single workflow. #195

adomaskizogian opened this issue Mar 12, 2023 · 1 comment · Fixed by #181
Assignees
Labels
bug Something isn't working

Comments

@adomaskizogian
Copy link

adomaskizogian commented Mar 12, 2023

Orb version 11.6.1:

What happened:

Packing and publishing multiple orbs within a single workflow does not work.

Pack produces an orb file that is later stored on the workspace.
Publish job attaches the workspace and publishes the file.

In case multiple pack jobs were run, workspace cannot be successfully attached due to multiple files with the same filename were stored on the workspace.

Downloading workspace layers
  workspaces/ed1e4069-e3ce-4e8a-98d6-5beebd13986d/fd9d2277-73d4-4686-ba7b-080c284bc9b7/587e1c44-1efc-441a-8feb-5ee64dde4570/0/104.tar.gz - 7.5 kB
  workspaces/ed1e4069-e3ce-4e8a-98d6-5beebd13986d/fd9d2277-73d4-4686-ba7b-080c284bc9b7/e76bd927-9091-459d-98a1-9b906927e441/0/104.tar.gz - 2.0 kB
Total size downloaded: 9.2 KiB
Applying workspace layers
  587e1c44-1efc-441a-8feb-5ee64dde4570
Concurrent upstream jobs persisted the same file(s) into the workspace:
  - orb.yml

Error applying workspace layer for job 587e1c44-1efc-441a-8feb-5ee64dde4570: Concurrent upstream jobs persisted the same file(s)

Our use case is that we've set up a monorepo containing source of multiple orbs. On pipeline runs we use matrix jobs to lint, pack and publish orbs.

There is a workaround to use multiple workflows but this results in a lot of duplication within configuration as workflows cannot be parameterized.

For a potential solution I've created a pull request that introduces new parameters for pack and publish jobs - orb filename param. #194

@adomaskizogian adomaskizogian added the bug Something isn't working label Mar 12, 2023
@adomaskizogian adomaskizogian changed the title Unable to publish and pack multiple orbs within single pipeline run. Unable to publish and pack multiple orbs within single workflow. Mar 12, 2023
@KyleTryon
Copy link
Contributor

I have added your suggestion as a part of orb tools 12, thank you!
#181

@KyleTryon KyleTryon self-assigned this Apr 28, 2023
@KyleTryon KyleTryon linked a pull request May 1, 2023 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants