Skip to content

fix snapcraft - #765

Merged
lidaobing merged 1 commit into
iptux-0-9from
bf_snapcraft
Nov 24, 2026
Merged

lidaobing merged 1 commit into
iptux-0-9from
bf_snapcraft

Conversation

@lidaobing

@lidaobing lidaobing commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Summary by Sourcery

Update Snapcraft metadata to support architecture-specific builds and publish the correct package version.

New Features:

  • Add explicit amd64 and arm64 Snap build targets.

Bug Fixes:

  • Ensure the Snap package reports version 0.9.5 during the build.

@lidaobing
lidaobing marked this pull request as ready for review November 24, 2026 05:07
@sourcery-ai

sourcery-ai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Declare supported amd64 and arm64 build platforms and set the Snap package version to 0.9.5.

  • snap/snapcraft.yaml L8-13, L49

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@lidaobing
lidaobing merged commit 89fac63 into iptux-0-9 Nov 24, 2026
9 of 16 checks passed
@lidaobing
lidaobing deleted the bf_snapcraft branch November 24, 2026 05:07

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="snap/snapcraft.yaml" line_range="9-12" />
<code_context>
 base: core24

+platforms:
+  amd64:
+    build-on: [amd64]
+  arm64:
+    build-on: [arm64]
+
 slots:
</code_context>
<issue_to_address>
**Architectures can ship different source**

When the `iptux-0-9` branch is updated while the amd64 and arm64 builds run, the amd64 and arm64 builds resolve `source-branch` independently while both set version 0.9.5; the Store can then publish packages from different commits under one version, so users get different code by architecture.

Pin both architecture builds to the same immutable commit or source snapshot for each release.
</issue_to_address>

Sourcery assessment

Approval pending. 1 finding to address first.

Blocking findings: snap/snapcraft.yaml:12


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread snap/snapcraft.yaml
Comment on lines +9 to +12
amd64:
build-on: [amd64]
arm64:
build-on: [arm64]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Medium · Architectures can ship different source

When the iptux-0-9 branch is updated while the amd64 and arm64 builds run, the amd64 and arm64 builds resolve source-branch independently while both set version 0.9.5; the Store can then publish packages from different commits under one version, so users get different code by architecture.

Pin both architecture builds to the same immutable commit or source snapshot for each release.

Prompt for AI agents
In `snap/snapcraft.yaml` at lines 9-12:

**Architectures can ship different source**

When the `iptux-0-9` branch is updated while the amd64 and arm64 builds run, the amd64 and arm64 builds resolve `source-branch` independently while both set version 0.9.5; the Store can then publish packages from different commits under one version, so users get different code by architecture.

Pin both architecture builds to the same immutable commit or source snapshot for each release.

@codecov

codecov Bot commented Nov 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.51%. Comparing base (c5350ef) to head (ee36ab0).
⚠️ Report is 1 commits behind head on iptux-0-9.

Additional details and impacted files
@@              Coverage Diff              @@
##           iptux-0-9     #765      +/-   ##
=============================================
- Coverage      52.52%   52.51%   -0.02%     
=============================================
  Files             64       64              
  Lines           8158     8158              
=============================================
- Hits            4285     4284       -1     
- Misses          3873     3874       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sonarqubecloud

Copy link
Copy Markdown

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.

1 participant