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

upload-bundle action does not work #40

Open
claudiubelu opened this issue Apr 18, 2022 · 0 comments
Open

upload-bundle action does not work #40

claudiubelu opened this issue Apr 18, 2022 · 0 comments
Labels
Status: Triage Type: Bug Something isn't working

Comments

@claudiubelu
Copy link
Contributor

Bug Description

Using the following upload-bundle action fails with the following error: Parts processing error: Failed to copy '/tmp/.tmpDpiw3w/build/stage/icon.svg': no such file or directory. But the repository [1] has an icon.svg file, and regular charmcraft pack works.

[1] https://github.com/claudiubelu/waltz-juju-bundle

To Reproduce

Github action:

      - name: Upload bundle to edge
        uses: canonical/charming-actions/upload-bundle@1.0.2
        with:
          credentials: "${{ secrets.CHARMCRAFT_AUTH }}"
          github-token: "${{ secrets.GITHUB_TOKEN }}"
          channel: "${{ steps.release-short.outputs.short_version }}/edge"

Environment

Github action: https://github.com/claudiubelu/waltz-juju-bundle/blob/560951f1982fdc6bc37829186c40681d22adfced/.github/workflows/create_release.yaml

Relevant log output

Error: Error running subcommand ``charmcraft pack -p /tmp/.tmpDpiw3w``: `Packing the bundle.                                                            
Parts processing error: Failed to copy '/tmp/.tmpDpiw3w/build/stage/icon.svg': no such file or directory.                                                      
Full execution log: '/home/runner/snap/charmcraft/common/cache/charmcraft/log/charmcraft-20220416-011600.638784.log'       

Failure: https://github.com/claudiubelu/waltz-juju-bundle/runs/6044583147?check_suite_focus=true



### Additional context

_No response_
@claudiubelu claudiubelu added Status: Triage Type: Bug Something isn't working labels Apr 18, 2022
claudiubelu added a commit to claudiubelu/waltz-juju-bundle that referenced this issue Apr 18, 2022
Dispatch create_release.yaml on a new release. The create_release.yaml action will
create a new branch based on that release, create a commit which will update the
bundle.yaml file to make the finos-waltz-k8s charm point towards that release,
and push the new bundle to Charmhub.

When there's a new Waltz image release, we do a charmcraft release
specific for that version in Charmhub.

We're manually packing and uploading the bundle instead of using the
upload-bundle action because of an issue [1]. This will have to be updated
later, when the issue is resolved.

[1] canonical/charming-actions#40
claudiubelu added a commit to claudiubelu/legend-juju-bundle that referenced this issue Apr 19, 2022
We're manually packing and uploading the bundle instead of using the
upload-bundle action because of an issue [1]. This will have to be updated
later, when the issue is resolved.

[1] canonical/charming-actions#40
simskij added a commit that referenced this issue Apr 20, 2022
turn off bundle test pending #23 and #40
simskij added a commit that referenced this issue Apr 29, 2022
* get and update gh Release

* charmcraft parse status and release

* helper function for parsing gh release body

* release charm action

* build release charm action

* catch error from github tagging

* Add charm path input to support multi charm repos

charmcraft.metadata() would fail if metadata.yaml is not in the current
directory
update readme with more information

* polish readme

* no longer support revision number as input

* Update integrate.yaml

turn off bundle test pending #23 and #40

* add description for multi charm repo

* Update release-charm/README.md

Co-authored-by: Simon Aronsson <simme@arcticbit.se>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant