Merge ~gabrielcocenza/charm-hw-health:charm-snap into charm-hw-health:master

Proposed by Gabriel Cocenza
Status: Merged
Approved by: Eric Chen
Approved revision: 4572c4a9af66b44fc0afee3d21b6fd21d95fcfa2
Merged at revision: 415897cb37eb5e74cc13b9e9de16676f70280582
Proposed branch: ~gabrielcocenza/charm-hw-health:charm-snap
Merge into: charm-hw-health:master
Diff against target: 15 lines (+3/-1)
1 file modified
charmcraft.yaml (+3/-1)
Reviewer Review Type Date Requested Status
Eric Chen Needs Information
🤖 prod-jenkaas-bootstack (community) continuous-integration Approve
BootStack Reviewers Pending
Review via email: mp+442308@code.launchpad.net

Commit message

Pin charm snap version as a temporary fix.

- build start failing because of a incompatibility issue with
charmcraft and charm snap.

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :
review: Approve (continuous-integration)
Revision history for this message
Eric Chen (eric-chen) wrote :

Why we didn't encounter this issue 2 weeks before and we already had 23.04 release?

review: Needs Information
Revision history for this message
Gabriel Cocenza (gabrielcocenza) wrote (last edit ):

I'm also very suprised that this error didn't show up before.

I didn't investigate the deep details why this didn't happen 2 weeks ago, but the facts are:

- it's failing to build on launchpad[0] and also on my local machine (it wasn't some days ago).
- the logs[1] show that it's a C dependency issue (lines 1509-1514):
- we already faced that before in other reactive charms using charmcraft.yaml (charm-telegraf [2])
- strangely, just the latest/stable release of the snap `charm`[3] got updated recently (6 April 2023)
- setting the dependency to 3.x/stable didn't fix.
- setting the dependency to 2x/stable fix it.

[0] https://launchpadlibrarian.net/664448358/buildlog_charm_ubuntu_jammy_amd64_daily_BUILDING.txt.gz
[1] https://pastebin.canonical.com/p/Z7bmn9xtXK/
[2] https://chat.canonical.com/canonical/pl/otwweyx5pbb6b8cbngowzzyg4h
[3] https://snapcraft.io/charm

Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 415897cb37eb5e74cc13b9e9de16676f70280582

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/charmcraft.yaml b/charmcraft.yaml
2index 9c68524..0fd1504 100644
3--- a/charmcraft.yaml
4+++ b/charmcraft.yaml
5@@ -3,7 +3,9 @@ parts:
6 charm:
7 source: src
8 plugin: reactive
9- build-snaps: [charm]
10+ build-snaps: [ charm/2.x/stable ] # charmcraft has incompatibility issue
11+ # with the latest charm snap. Pining the
12+ # version to 2.x/stable as a temporary fix
13 bases:
14 - build-on:
15 - name: ubuntu

Subscribers

People subscribed via source and target branches

to all changes: