Skip to content

ci: fix palace container build - #801

Merged
joamatab merged 1 commit into
mainfrom
ci/fix-palace-container
Nov 26, 2026
Merged

joamatab merged 1 commit into
mainfrom
ci/fix-palace-container

Conversation

@nikosavola

@nikosavola nikosavola commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

The palace CI job started failing because the container build compiles palace from its default branch, and current main no longer builds with the container's GCC 11. The compile error was hidden by the definition's post script, so a container without the palace binary got cached and every later run failed with palace not found.

This pins the clone to v0.16.0, the release the definition comes from, and makes the build stop on a compile error. The cache key is bumped so the broken image is dropped, the build no longer depends on sudo finding apptainer, and the version check now fails instead of printing a warning.

Summary by Sourcery

Stabilize Palace CI container builds and ensure failures cannot be silently cached or overlooked.

Bug Fixes:

  • Fix Palace CI container builds by pinning the source to the compatible v0.16.0 release and failing immediately on compilation errors.
  • Require successful Palace installation verification instead of allowing missing binaries to pass.

Enhancements:

  • Make the container build reliably locate Apptainer under sudo and invalidate previously cached broken images.

CI:

  • Harden the Palace GitHub Actions workflow against incompatible upstream changes and stale container caches.

@nikosavola
nikosavola requested a review from joamatab as a code owner November 5, 2026 11:09
@sourcery-ai

sourcery-ai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates the Palace CI workflow to build the source version matching the v0.16.0 definition with fail-fast error handling, invalidate broken cached images, locate Apptainer reliably under sudo, and fail verification when the Palace binary is unavailable.

File-Level Changes

Change Details Files
Make the Palace container build reproducible and fail immediately when compilation fails.
  • Rewrite the definition’s source clone to use the v0.16.0 tag with a shallow checkout.
  • Add shell error handling and validation checks so failed builds cannot produce a usable-looking cached image.
.github/workflows/test_code.yml
Invalidate stale container caches and invoke Apptainer reliably in CI.
  • Add the Palace release to both cache key definitions to discard previously cached broken images.
  • Preserve the action-provided Apptainer path when invoking the build through sudo.
.github/workflows/test_code.yml
Require successful Palace installation before running tests.
  • Change the installation check from a warning-producing help invocation to a failing version check.
.github/workflows/test_code.yml

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

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Approved.


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

@nikosavola nikosavola self-assigned this Nov 5, 2026
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

Label error. Requires at least 1 of: breaking, bug, github_actions, documentation, dependencies, enhancement, feature, maintenance, security. Found:

@joamatab
joamatab merged commit 2cdb643 into main Nov 26, 2026
25 of 27 checks passed
@joamatab
joamatab deleted the ci/fix-palace-container branch November 26, 2026 06:00
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