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

flatpak generation for python project fails because artifact cannot be downloaded #202

Open
chipmuenk opened this issue Oct 15, 2024 · 0 comments

Comments

@chipmuenk
Copy link

I'm trying to use flatpak-builder to wrap my project https://github.com/chipmuenk/pyfda into a flatpak. The action script is https://github.com/chipmuenk/pyfda/actions/workflows/build_flatpak.yml. I think the actual build process works fine but there is something wrong with uploading / downloading the artifacts for release.

- name: Build package
  uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v6
  with:
    bundle: com.github.chipmuenk.pyfda.flatpak
    manifest-path: com.github.chipmuenk.pyfda/com.github.chipmuenk.pyfda.yaml
    cache: false
    branch: development

The build process runs successfully, files are uploaded but I have no idea where to:

Creating a bundle...
/usr/bin/flatpak build-bundle repo com.github.chipmuenk.pyfda.flatpak --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo --arch=x86_64 com.github.chipmuenk.pyfda development
Uploading artifact...
Starting artifact upload
For more detailed logs during the artifact upload process, enable step-debugging: https://docs.github.com/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging#enabling-step-debug-logging
Artifact name is valid!
Container for artifact "com.github.chipmuenk.pyfda-x86_64" successfully created. Starting upload of file(s)
...
Total size of all the files uploaded is 54986200 bytes
File upload process has finished. Finalizing the artifact upload
Artifact has been finalized. All files have been successfully uploaded!

The raw size of all the files that were specified for upload is 54986200 bytes

The next step also is successful and uploads more files:

- name: Publish build artifacts
  uses: actions/upload-artifact@v4
  with:
    path: com.github.chipmuenk.pyfda/*
    name: pyfda Flatpak

... giving the following output.

Run actions/upload-artifact@v4
  with:
    path: com.github.chipmuenk.pyfda/*
    name: pyfda Flatpak
    if-no-files-found: warn
    compression-level: 6
    overwrite: false
    include-hidden-files: false
/usr/bin/docker exec  9b2ced314f022e9fe8efb59f5d57f13304f9bd0d1a83bcdd98204bb68d2ee1a0 sh -c "cat /etc/*release | grep ^ID"
With the provided path, there will be 8 files uploaded
Artifact name is valid!
Root directory input is valid!
Beginning upload of artifact content to blob storage
Uploaded bytes 11493
Finished uploading artifact content to blob storage!
SHA256 hash of uploaded artifact zip is YYY
Finalizing artifact upload
Artifact pyfda Flatpak.zip successfully finalized. Artifact ID xxx
Artifact pyfda Flatpak has been successfully uploaded! Final size is 11493 bytes. Artifact ID is xxx
Artifact download URL: https://github.com/chipmuenk/pyfda/actions/runs/11321603163/artifacts/xxx

The problem occurs during download of the artifacts:

- name: Download artifacts
  uses: actions/[email protected]
  with:
    path: artifacts

- name: list artifacts folder
  run: |
    echo "*** Show artifacts folder: ***"
    ls artifacts
    echo "*** Show artifacts/pyfda Flatpak folder: ***"
    ls "artifacts/pyfda Flatpak"
    # This doesn't work, path / file not found
    echo "*** Show com.github.chipmuenk.pyfda-x86_64: ***"
    ls "com.github.chipmuenk.pyfda-x86_64"

giving the following output:

Run actions/[email protected]
  with:
    path: artifacts
    merge-multiple: false
    repository: chipmuenk/pyfda
    run-id: 11321603163
Found 1 artifact(s)
No input name or pattern filtered specified, downloading all artifacts
An extra directory with the artifact name will be created for each download
Preparing to download the following artifacts:
- pyfda Flatpak (ID: 2051632930, Size: 11493)
Redirecting to blob download url: https://productionresultssa11.blob.core.windows.net/actions-results/257f05f2-8a9b-43d5-ae1f-174286de7091/workflow-job-run-a187e388-c9ad-5cfd-c7bd-4b71dca68066/artifacts/13dd00d6cad7cd862e9ff996de0250acb53fd27407c587e278e245d080c604b0.zip
Starting download of artifact to: /home/runner/work/pyfda/pyfda/artifacts/pyfda Flatpak
(node:1779) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Artifact download completed successfully.
Total of 1 artifact(s) downloaded
Download artifact has finished successfully

However, the large artifact has not been downloaded, causing the workflow to fail.

Run echo "*** Show artifacts folder: ***"
*** Show artifacts folder: ***
pyfda Flatpak
*** Show artifacts/pyfda Flatpak folder: ***
Readme.md
build.sh
com.github.chipmuenk.pyfda.yaml
flathub.json
flatpak-github-action-modified-com.github.chipmuenk.pyfda.yaml
install.sh
matplotlib-setup.cfg
pyqt5.json
*** Show com.github.chipmuenk.pyfda-x86_64: ***
ls: cannot access 'com.github.chipmuenk.pyfda-x86_64': No such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant