Skip to content

Upload Piper voice components from CI - #1

Closed
paul-geoghegan wants to merge 1 commit into
project-spiel:mainfrom
paul-geoghegan:ci/piper-voice-artifacts
Closed

paul-geoghegan wants to merge 1 commit into
project-spiel:mainfrom
paul-geoghegan:ci/piper-voice-artifacts

Conversation

@paul-geoghegan

Copy link
Copy Markdown
Contributor

CI builds Piper’s 21 voice components but only uploads the snap. This uploads the components as a separate artifact on main and manual runs; pull requests still build them without uploading the large bundle. The README documents both artifacts.

Not yet verified in a workflow run. Relates to UDENG-12310.

Upload generated voice components on main and manual runs while keeping
pull-request builds free of the large voice bundle. Document both artifact
names and the upload policy.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@@ -64,3 +64,12 @@ jobs:
name: ${{ matrix.snap.snap_name }}-snap
path: ${{ steps.build.outputs.snap }}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The action allows for multiple paths here, but given the README update I suppose not doing this was intentional:

Suggested change
path: ${{ steps.build.outputs.snap }}
path: |
${{ steps.build.outputs.snap }}
${{ matrix.snap.snap_dir }}/*.comp

Comment thread README.md
Comment on lines +19 to +23
CI uploads the Piper snap as the `speech-provider-piper-snap` artifact and its
voice components as the separate `speech-provider-piper-voices` artifact. The
voice artifact is uploaded on pushes to `main` and on manually dispatched
runs; pull requests still build the components but do not upload the large
voice bundle.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What's the motivation for keeping the artifact size low? You'd want at least one component present to perform testing on the main snap.

One major limitation of the current CI job is that it only confirms the artifacts build, not that they actually work. There's plenty of code in the tests directory to confirm end-to-end that the snaps install and generate speech, but require a human to listen for output. If you know of a good approach to automate this as part of CI, that would be a much welcome contribution :)

@steinbro

Copy link
Copy Markdown
Collaborator

Never mind, this has been superseded by #2.

@steinbro steinbro closed this Nov 28, 2026
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