Skip to content

Add packit rpm build and publish on copr - #214

Open
filippor wants to merge 6 commits into
eclipse-enclave:mainfrom
filippor:main
Open

filippor wants to merge 6 commits into
eclipse-enclave:mainfrom
filippor:main

Conversation

@filippor

@filippor filippor commented Nov 5, 2026 •

Copy link
Copy Markdown

What it does

Add packit https://packit.dev/docs/guide build configuration and publish build on copr

make package easily available for multiple fedora version

How to test

check build on https://dashboard.packit.dev/jobs/copr/4190509
or https://github.com/filippor/enclave/runs/136271251006

the result of this pull request can be installed form copr filippor/enclave copr repo

sudo dnf install -y 'dnf*-command(copr)'
sudo dnf copr enable filippor/enclave
sudo dnf install enclave

the test result are available at
https://github.com/filippor/enclave/runs/136273724731

Follow-ups

Now it publish release on my test copr
Let me know if you want to accept the PR and need help on configure copr repo or install pakit github application

if needed the test on installed distro can be run on fedora test farm https://packit.dev/docs/configuration/upstream/tests

Changelog

Breaking changes

  • This PR introduces breaking changes and has been coordinated with maintainers.

Review checklist

@filippor

filippor commented Nov 6, 2026

Copy link
Copy Markdown
Author

the ECA is signed my Eclipse account is frossoni

@tortmayr

tortmayr commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

@EclipseSourceAI

@EclipseSourceAI EclipseSourceAI 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.

Note

Autonomous AI review.

This review was done by an AI agent and therefore may contain mistakes. Feel free to ignore any comment you disagree with. A thumbs-down reaction on a comment marks it as rejected for follow-up reviews. Noting why in a reply helps, since replies are read too.

Resolving all AI comments does not lead to an automatic approval. A maintainer still needs to review and sign off on the overall architecture and design.

To get an updated review after pushing changes, a maintainer may re-request a review from this account.

Running in Eclipse Enclave, submitted via review-guard-mcp

This PR adds a .packit.yaml that builds the existing packaging/rpm/enclave.spec on Copr for every Fedora x86_64 release. Commits to main go to packit's default Copr project and GitHub releases go to a named project. The source tarball is made with git archive and then go mod vendor, so the offline mock build has its dependencies. The spec now skips go mod vendor when vendor/modules.txt is already there. The version comes from scripts/version.sh --package, so it matches make rpm.

What maintainers should look at:

  • Build stamps: the spec relies on make rpm to pass in package_version, build_version, build_commit and build_date. Packit passes none of them, so the Copr binary probably reports 0.0.0 (unknown, unknown). I couldn't reach the Copr build from here, so this is unconfirmed. Check it by installing the RPM and running enclave version.
  • Copr target: the release job publishes to the author's personal filippor/tests project. Maintainers need to decide whether to adopt Copr as a channel, who owns the project, and whether to install the packit GitHub app.
  • License header: .packit.yaml has none, and scripts/check-license-headers.sh fails on it.
  • Changelog: the changelog block in the PR description is empty. Write none there, or add an entry if the Copr repo is announced as an install option.

Comment thread .packit.yaml
Comment on lines +29 to +30
actions:
get-current-version:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Packit only rewrites the Version: tag. Nothing defines package_version, build_version, build_commit or build_date, which make rpm passes in (Makefile). So the spec falls back to its defaults (spec), and enclave version in the Copr RPM should report 0.0.0 (unknown, unknown), which also ends up in the image's enclave.version label. Run rpm -qp on the built package and then enclave version to check, and stamp these, for example with a fix-spec-file action that writes the %globals.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

packit by default set build date. The get version can be omitted The default behavior use git tags

rpm -qi enclave
Name : enclave
Version : 1.0.1
Release : 1.fc45
Architecture : x86_64
Install Date : gio 5 nov 2026, 23:58:54
Group : Unspecified
Size : 15865812
License : MIT
Signature :
RSA/SHA256, gio 5 nov 2026, 23:31:16, Key ID ab1f2f79e1bbae1c
RSA/SHA256, gio 5 nov 2026, 23:31:16, Key ID ab1f2f79e1bbae1c
Source RPM : enclave-1.0.1-1.fc45.src.rpm
Build Date : gio 5 nov 2026, 23:30:53
Build Host : aws-x86-64-reserved-prod-71699154-20261105-221948
Vendor : Fedora Copr - user filippor
URL : https://github.com/eclipse-enclave/enclave
Summary : Container-based development environment manager
Description :
Enclave provides isolated container environments for AI coding assistants and
development tools. It manages Docker or Podman containers with network isolation,
authentication injection, and tool-specific configurations.

Comment thread .packit.yaml Outdated
Comment on lines +25 to +26
project: tests
targets:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This sends release builds to your personal filippor/tests Copr project. It has to point at a project the maintainers own (or be dropped so packit uses its default) before this can be merged.

Comment thread .packit.yaml
@@ -0,0 +1,46 @@
# See the documentation for more information:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing the MIT license header. ./scripts/check-license-headers.sh .packit.yaml fails because root *.yaml files are covered (check), so make lint/CI will flag it.

Comment thread .packit.yaml
Comment on lines +6 to +9
# name in upstream package repository or registry (e.g. in PyPI)
upstream_package_name: enclave
# downstream (Fedora) RPM package name
downstream_package_name: enclave

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

These comments are left over from the packit template (the PyPI one doesn't apply here). Drop them along with the "See the documentation" lines, or replace them with a short note on what publishes where.

Comment thread .packit.yaml
# See the documentation for more information:
# https://packit.dev/docs/configuration/

specfile_path: packaging/rpm/enclave.spec

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

docs/ARCHITECTURE.md lists the packaging definitions (here). Add .packit.yaml there. If the Copr repo becomes an official install channel, docs/DEV.md#releases and the README install section need it too.

@tortmayr
tortmayr requested a review from xai November 9, 2026 16:51
@xai

xai commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the PR, @filippor! I will review it this week!

@xai

xai commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

Thanks @filippor, I'll have a look!

@filippor

Copy link
Copy Markdown
Author

@filippor
filippor force-pushed the main branch 5 times, most recently from b1f347c to b70876b Compare November 20, 2026 17:52
@xai
xai requested a review from EclipseSourceAI November 21, 2026 01:47
@xai

xai commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

Sorry for being slow with this! I like your contribution and I'll get to it soon.

@EclipseSourceAI EclipseSourceAI 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.

Note

Autonomous AI review. May contain mistakes.

Useful comment? React 👍. Disagree? React 👎 to reject it for follow-up reviews. A reply explaining why helps too.

This agent never approves PRs. A maintainer must sign off.

Only a maintainer can re-request a review from this agent.

Powered by Eclipse Enclave via review-guard-mcp

Follow-up since my last review. The build-stamp fix is in: .packit.yaml now writes commit/date into build-info in post-upstream-clone and the spec sources it in %build, so enclave version on the Copr RPM should no longer read unknown/0.0.0 for commit and date (version comes from get-current-version via scripts/version.sh --package as before). The .packit.yaml license header is also in place now.

Still open: the Copr target is still the personal filippor account, the project was just renamed from tests to enclave, and the commit-trigger job now also pins to it (previously it had no owner/project), so that's broader than before, see inline comment. The leftover PyPI-template comments and the docs/ARCHITECTURE.md entry for .packit.yaml are both still unaddressed.

New since last review: a sizeable tests/ TMT suite (smoke + version-metadata plans) was added, wired into .packit.yaml as tests jobs. Looks reasonable and directly exercises the packaging fixes, just two of the new .fmf plan files are missing the license header that their sibling .fmf files in the same PR do carry.

These previous comments can be resolved as they are now handled:

I can't resolve them myself as I would need write permission on this repository.

Comment thread .packit.yaml
Comment on lines +24 to +27
identifier: main
branch: main
owner: filippor
project: enclave

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This commit-trigger job now also pins owner: filippor / project: enclave (previously it had no owner/project set at all for pushes to main). That extends the still-open concern on the release job below to every push to main as well: both copr_build jobs now publish only to your personal Copr account.

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.

I will create a copr account for the project.

Comment thread tests/plans/smoke.fmf
@@ -0,0 +1,69 @@
summary: Smoke test plan for the enclave CLI

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing the MIT license header. The other .fmf test files added in this PR (e.g. tests/backend-lifecycle/main.fmf) have it, this plan file and version.fmf don't.

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.

not sure if that is really needed. your decision.

Comment thread tests/plans/version.fmf
@@ -0,0 +1,14 @@
# Copyright (C) 2026 EclipseSource GmbH and others.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Same as smoke.fmf, missing the MIT license header while the other .fmf files in this PR carry it.

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.

not sure if that is really needed. your decision.

@xai

xai commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

I had our review agent make a pass over the changes (which we do for all of our PRs just to assist the reviewer before the actual review). I will now proceed to create a copr account for the project and get back to you.

publish build on release

Refactor .packit.yaml for build targets and notifications

Updated targets for copr_build jobs and added notifications for pull requests. Modified create-archive script to use a simpler tar command.

This branch has not been deployed

No deployments
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.

4 participants