Repository navigation
Conversation
|
the ECA is signed my Eclipse account is frossoni |
EclipseSourceAI
left a comment
There was a problem hiding this comment.
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 rpmto pass inpackage_version,build_version,build_commitandbuild_date. Packit passes none of them, so the Copr binary probably reports0.0.0 (unknown, unknown). I couldn't reach the Copr build from here, so this is unconfirmed. Check it by installing the RPM and runningenclave version. - Copr target: the release job publishes to the author's personal
filippor/testsproject. 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.yamlhas none, andscripts/check-license-headers.shfails on it. - Changelog: the
changelogblock in the PR description is empty. Writenonethere, or add an entry if the Copr repo is announced as an install option.
| actions: | ||
| get-current-version: |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
| project: tests | ||
| targets: |
There was a problem hiding this comment.
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.
| @@ -0,0 +1,46 @@ | |||
| # See the documentation for more information: | |||
There was a problem hiding this comment.
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.
| # name in upstream package repository or registry (e.g. in PyPI) | ||
| upstream_package_name: enclave | ||
| # downstream (Fedora) RPM package name | ||
| downstream_package_name: enclave |
There was a problem hiding this comment.
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.
| # See the documentation for more information: | ||
| # https://packit.dev/docs/configuration/ | ||
|
|
||
| specfile_path: packaging/rpm/enclave.spec |
There was a problem hiding this comment.
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.
|
Thanks for the PR, @filippor! I will review it this week! |
|
Thanks @filippor, I'll have a look! |
|
a sample PR on my repo filippor#2 |
b1f347c to
b70876b
Compare
|
Sorry for being slow with this! I like your contribution and I'll get to it soon. |
EclipseSourceAI
left a comment
There was a problem hiding this comment.
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:
- build_version/build_commit/build_date are now stamped via build-info, and
.packit.yamlhas the license header .packit.yamllicense header added
I can't resolve them myself as I would need write permission on this repository.
| identifier: main | ||
| branch: main | ||
| owner: filippor | ||
| project: enclave |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
I will create a copr account for the project.
| @@ -0,0 +1,69 @@ | |||
| summary: Smoke test plan for the enclave CLI | |||
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
not sure if that is really needed. your decision.
| @@ -0,0 +1,14 @@ | |||
| # Copyright (C) 2026 EclipseSource GmbH and others. | |||
There was a problem hiding this comment.
Same as smoke.fmf, missing the MIT license header while the other .fmf files in this PR carry it.
There was a problem hiding this comment.
not sure if that is really needed. your decision.
|
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.
add tests on main
add more tests
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
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
Review checklist