Skip to content

Comments

ci: add remote build#412

Merged
sinapah merged 20 commits intomainfrom
ci/release-remote-build
Jan 15, 2026
Merged

ci: add remote build#412
sinapah merged 20 commits intomainfrom
ci/release-remote-build

Conversation

@sinapah
Copy link
Contributor

@sinapah sinapah commented Jan 14, 2026

Combines elements from #405 and adds a workflow input that a caller (from the Otelcol or GA charms) can set to indicate whether the charm release workflow should use local build or remote build. Most observability charm won't need to rely on remote build if they only need to be released for ARM and AMD. For Grafana Agent and Otelcol, we should rely on remote build since they need to also be released for S390x and PPC64EL.

Changes

  1. Adds a pack-using-remote-build input to charm-release and _charm-release that is false by default.
  2. The caller will set pack-using-remote-build when calling charm-release. The value is propagated to _charm-release
  3. The _charm-release WF is adjusted so if pack-using-remote-build is false, it locally packs the charm, similar to what it had done before. Otherwise, it remote builds it.

Testing

PR canonical/o11y-tester-operator#35 in the tester repo tests this workflow. It can test both scenraios (remote vs local build) by setting the pack-using-remote-build parameter when calling the charm-release workflow. When set to false, this workflow uses the AMD and ARM runners to release in parallel. Otherwise, it executes remote-build from the AMD runner.

Copy link
Contributor

@MichaelThamm MichaelThamm left a comment

Choose a reason for hiding this comment

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

I reviewed your o11y-stack PR and it looks identical, therefore LGTM.

@sinapah sinapah marked this pull request as ready for review January 15, 2026 16:33
@sinapah sinapah requested a review from a team as a code owner January 15, 2026 16:33
@sinapah sinapah merged commit 7010b90 into main Jan 15, 2026
1 check passed
@sinapah sinapah deleted the ci/release-remote-build branch January 15, 2026 16:41
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