Skip to content

Conversation

@pieqq
Copy link
Collaborator

@pieqq pieqq commented Jun 21, 2023

Description

When the GIthub actions in charge of building a snap (checkbox runtime, checkbox) fail, no logs are uploaded because the upload-artifact action is not run if the previous step fails. Using a condition in the upload-artifact job to fix this:

https://github.com/actions/upload-artifact#conditional-artifact-upload

Including /home/runner/.local/state/snapcraft/log/ dir as well since this seems to be what snapcraft is doing now:
https://github.com/canonical/checkbox/actions/runs/5329296264/jobs/9654916215#step:6:144

Starting Snapcraft 7.4.3
Logging execution to '/home/runner/.local/state/snapcraft/log/snapcraft-20230621-022645.823345.log'
Snap file not available for arch 'arm64'.
Build log available at 'checkbox18_arm64.txt'
Build failed for arch 'arm64'.
(...)

Resolved issues

Documentation

Tests

Copy link
Collaborator

@Hook25 Hook25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@pieqq pieqq merged commit 74186c2 into main Jun 21, 2023
@pieqq pieqq deleted the snapcraft-logs branch June 21, 2023 08:21
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

Successfully merging this pull request may close these issues.

2 participants