Bug 2180450 - Review Request: hirte - a service orchestrator tool intended for multi-node devices (e.g.: edge devices) clusters
Summary: Review Request: hirte - a service orchestrator tool intended for multi-node d...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/containers/hirte
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-21 13:50 UTC by Pierre-YvesChibon
Modified: 2023-04-04 18:14 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-04-04 00:54:37 UTC
Type: ---
Embargoed:
ngompa13: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 5690816 to 5712539 (5.18 KB, patch)
2023-03-27 15:08 UTC, Jakub Kadlčík
no flags Details | Diff
The .spec file difference from Copr build 5712539 to 5712589 (1.54 KB, patch)
2023-03-27 15:44 UTC, Jakub Kadlčík
no flags Details | Diff
The .spec file difference from Copr build 5712589 to 5715857 (977 bytes, patch)
2023-03-28 08:09 UTC, Jakub Kadlčík
no flags Details | Diff

Description Pierre-YvesChibon 2023-03-21 13:50:50 UTC
Spec URL: https://pingou.fedorapeople.org/RPMs/hirte.spec
SRPM URL: https://pingou.fedorapeople.org/RPMs/hirte-0.1.0-1.el9.src.rpm
Description:
Hirte is a service orchestrator tool intended for multi-node devices (e.g.: edge devices) clusters with a predefined
number of nodes and with a focus on highly regulated environment such as those requiring functional safety (for example
in cars).

Fedora Account System Username: pingou

Comment 1 Neal Gompa 2023-03-21 13:57:59 UTC
Taking this review.

Comment 2 Jakub Kadlčík 2023-03-21 14:00:44 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5690411
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2180450-hirte/fedora-rawhide-x86_64/05690411-hirte/fedora-review/review.txt

Please take a look if any issues were found.

---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 3 Pierre-YvesChibon 2023-03-21 15:05:33 UTC
Spec URL: https://pingou.fedorapeople.org/RPMs/hirte.spec
SRPM URL: https://pingou.fedorapeople.org/RPMs/hirte-0.1.0-2.el9.src.rpm

With a happier rpmlint :)

Comment 4 Jakub Kadlčík 2023-03-21 15:06:16 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5690809
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2180450-hirte/srpm-builds/05690809/builder-live.log.gz

Please make sure the package builds successfully at least for Fedora Rawhide.

- If the build failed for unrelated reasons (e.g. temporary network
  unavailability), please ignore it.
- If the build failed because of missing BuildRequires, please make sure they
  are listed in the "Depends On" field


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 5 Pierre-YvesChibon 2023-03-21 15:07:41 UTC
Spec URL: https://pingou.fedorapeople.org/RPMs/hirte.spec
SRPM URL: https://pingou.fedorapeople.org/RPMs/hirte-0.1.0-2.fc39.src.rpm

Sorry I had the wrong dist-tag in the src.rpm...

Comment 6 Jakub Kadlčík 2023-03-21 15:20:51 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5690816
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2180450-hirte/fedora-rawhide-x86_64/05690816-hirte/fedora-review/review.txt

Please take a look if any issues were found.

---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 7 Neal Gompa 2023-03-21 16:34:15 UTC
Style nit: if you're going to have scriptlets near the package definition, you should probably group the file lists there too.

For example: https://src.fedoraproject.org/rpms/libheif/blob/rawhide/f/libheif.spec

Comment 8 Pierre-YvesChibon 2023-03-22 09:02:07 UTC
Spec URL: https://pingou.fedorapeople.org/RPMs/hirte.spec
SRPM URL: https://pingou.fedorapeople.org/RPMs/hirte-0.1.0-3.fc39.src.rpm

Structure adjusted as proposed

Comment 9 Pierre-YvesChibon 2023-03-22 09:11:21 UTC
Spec URL: https://pingou.fedorapeople.org/RPMs/hirte.spec
SRPM URL: https://pingou.fedorapeople.org/RPMs/hirte-0.1.0-4.fc39.src.rpm

Fixed the Source0 and replaces tabs with spaces to be consistent

Comment 10 Pierre-YvesChibon 2023-03-22 09:51:09 UTC
Spec URL: https://pingou.fedorapeople.org/RPMs/hirte.spec
SRPM URL: https://pingou.fedorapeople.org/RPMs/hirte-0.1.0-5.fc39.src.rpm

Adjusted summary and description from the upstream PR: https://github.com/containers/hirte/pull/218

Comment 11 Neal Gompa 2023-03-22 11:18:53 UTC
Spec review:

> License:    GPLv2

The license is "GPL-2.0-or-later" from what I see in the sources.

> Source0:    %{url}/archive/refs/tags/%{name}-%{version}.tar.gz

The format should be "%{url}/archive/%{name}-%{version}.tar.gz"

> %{_sysconfdir}/dbus-1/system.d/org.containers.hirte.conf

This should be installed into "%{_datadir}/dbus-1/system.d"

> %{_sysconfdir}/dbus-1/system.d/org.containers.hirte.Agent.conf

Ditto.

> %setup -c -q

Shouldn't this be just "%autosetup"? And why are we creating a directory ("-c")?

Comment 12 Neal Gompa 2023-03-22 11:20:32 UTC
(In reply to Neal Gompa from comment #11)
> 
> > Source0:    %{url}/archive/refs/tags/%{name}-%{version}.tar.gz
> 
> The format should be "%{url}/archive/%{name}-%{version}.tar.gz"
> 

Gah, it's "%{url}/archive/%{name}-%{version}/%{name}-%{version}.tar.gz"

Which means you need "%autosetup -n %{name}-%{name}-%{version}" since your tag format is %name-%version.

Comment 13 Pierre-YvesChibon 2023-03-27 14:51:33 UTC
$ wget https://github.com/containers/hirte/archive/hirte-0.1.0/hirte-0.1.0.tar.gz
..
2023-03-27 16:49:30 ERROR 404: Not Found.

Same for 0.1.1

Granted, https://github.com/containers/hirte/archive/refs/tags/hirte-0.1.1.tar.gz also returns a 404 :(

Comment 14 Martin Perina 2023-03-27 15:00:58 UTC
(In reply to Pierre-YvesChibon from comment #13)
> $ wget
> https://github.com/containers/hirte/archive/hirte-0.1.0/hirte-0.1.0.tar.gz
> ..
> 2023-03-27 16:49:30 ERROR 404: Not Found.
> 
> Same for 0.1.1
> 
> Granted,
> https://github.com/containers/hirte/archive/refs/tags/hirte-0.1.1.tar.gz
> also returns a 404 :(

:-(

Looks like GitHub is performing different magic based on the tag name used.

I'm going to revert to the official URL from the GitHub release page:

https://github.com/containers/hirte/archive/refs/tags/v0.1.1.tar.gz

Comment 15 Neal Gompa 2023-03-27 15:01:46 UTC
(In reply to Martin Perina from comment #14)
> (In reply to Pierre-YvesChibon from comment #13)
> > $ wget
> > https://github.com/containers/hirte/archive/hirte-0.1.0/hirte-0.1.0.tar.gz
> > ..
> > 2023-03-27 16:49:30 ERROR 404: Not Found.
> > 
> > Same for 0.1.1
> > 
> > Granted,
> > https://github.com/containers/hirte/archive/refs/tags/hirte-0.1.1.tar.gz
> > also returns a 404 :(
> 
> :-(
> 
> Looks like GitHub is performing different magic based on the tag name used.
> 
> I'm going to revert to the official URL from the GitHub release page:
> 
> https://github.com/containers/hirte/archive/refs/tags/v0.1.1.tar.gz

This works: https://github.com/containers/hirte/archive/v0.1.1/hirte-0.1.1.tar.gz

Please use "%{url}/archive/v%{version}/%{name}-%{version}.tar.gz"

Comment 16 Neal Gompa 2023-03-27 15:02:54 UTC
It was unclear which tag format you were using.

Looking here, it's much more obvious: https://github.com/containers/hirte/tags

Comment 17 Neal Gompa 2023-03-27 15:03:26 UTC
(In reply to Neal Gompa from comment #15)
> (In reply to Martin Perina from comment #14)
> > (In reply to Pierre-YvesChibon from comment #13)
> > > $ wget
> > > https://github.com/containers/hirte/archive/hirte-0.1.0/hirte-0.1.0.tar.gz
> > > ..
> > > 2023-03-27 16:49:30 ERROR 404: Not Found.
> > > 
> > > Same for 0.1.1
> > > 
> > > Granted,
> > > https://github.com/containers/hirte/archive/refs/tags/hirte-0.1.1.tar.gz
> > > also returns a 404 :(
> > 
> > :-(
> > 
> > Looks like GitHub is performing different magic based on the tag name used.
> > 
> > I'm going to revert to the official URL from the GitHub release page:
> > 
> > https://github.com/containers/hirte/archive/refs/tags/v0.1.1.tar.gz
> 
> This works:
> https://github.com/containers/hirte/archive/v0.1.1/hirte-0.1.1.tar.gz
> 
> Please use "%{url}/archive/v%{version}/%{name}-%{version}.tar.gz"


This means that the inner folder in the archive will be %{name}-%{version}, so you don't need -n for %autosetup at all.

Comment 18 Pierre-YvesChibon 2023-03-27 15:04:51 UTC
yup thanks, found it just before refreshing this page :D

Comment 19 Pierre-YvesChibon 2023-03-27 15:06:13 UTC
Spec URL: https://pingou.fedorapeople.org/RPMs/hirte.spec
SRPM URL: https://pingou.fedorapeople.org/RPMs/hirte-0.1.1-1.fc39.src.rpm

- Update to 0.1.1
- Adjust Source0 to point to /archive/hirte-<version>/hirte-<version>.tar.gz
- Adjust the location of dbus-1/system.d/org.containers.hirte.conf and
  bus-1/system.d/org.containers.hirte.Agent.conf so they are in _datadir
- Add the hirte-ctl subpackage (which provides hirtectl for convenience)

Comment 20 Jakub Kadlčík 2023-03-27 15:08:50 UTC
Created attachment 1953958 [details]
The .spec file difference from Copr build 5690816 to 5712539

Comment 21 Jakub Kadlčík 2023-03-27 15:08:52 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5712539
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2180450-hirte/fedora-rawhide-x86_64/05712539-hirte/builder-live.log.gz

Please make sure the package builds successfully at least for Fedora Rawhide.

- If the build failed for unrelated reasons (e.g. temporary network
  unavailability), please ignore it.
- If the build failed because of missing BuildRequires, please make sure they
  are listed in the "Depends On" field


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 22 Neal Gompa 2023-03-27 15:09:46 UTC
For the ctl subpackage

> Requires: %{name} = %{version}-%{release}

Is this actually true? Or can it be installed to control a remote hirte agent?

> - Adjust Source0 to point to /archive/hirte-<version>/hirte-<version>.tar.gz

This is not actually what happened. :)

Comment 23 Neal Gompa 2023-03-27 15:11:29 UTC
Also, hirtectl is included in the agent package too. You should probably remove it from there.

Comment 24 Pierre-YvesChibon 2023-03-27 15:25:10 UTC
>> Requires: %{name} = %{version}-%{release}

> Is this actually true? Or can it be installed to control a remote hirte agent?

The CLI talks locally to hirte, so yeah, they need to be both on the same system.

> This is not actually what happened. :)

Busted :)

> Also, hirtectl is included in the agent package too. You should probably remove it from there.

On it!

Comment 25 Pierre-YvesChibon 2023-03-27 15:35:01 UTC
Spec URL: https://pingou.fedorapeople.org/RPMs/hirte.spec
SRPM URL: https://pingou.fedorapeople.org/RPMs/hirte-0.1.1-2.fc39.src.rpm

Adjusted for the cli in hirte and fixed the built issue from 0.1.1-1

Comment 26 Jakub Kadlčík 2023-03-27 15:44:21 UTC
Created attachment 1953961 [details]
The .spec file difference from Copr build 5712539 to 5712589

Comment 27 Jakub Kadlčík 2023-03-27 15:44:24 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5712589
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2180450-hirte/fedora-rawhide-x86_64/05712589-hirte/fedora-review/review.txt

Please take a look if any issues were found.

---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 28 Neal Gompa 2023-03-27 15:51:18 UTC
> %{_mandir}/man1/hirtectl.*

Still in agent package and ctl package. :)

Comment 29 Neal Gompa 2023-03-27 15:52:22 UTC
(In reply to Neal Gompa from comment #28)
> > %{_mandir}/man1/hirtectl.*
> 
> Still in agent package and ctl package. :)

Err, main package and ctl package.

Comment 30 Pierre-YvesChibon 2023-03-28 07:50:58 UTC
Ah the man page, with the glob, I had missed it. Thanks!

Comment 31 Pierre-YvesChibon 2023-03-28 07:57:51 UTC
Spec URL: https://pingou.fedorapeople.org/RPMs/hirte.spec
SRPM URL: https://pingou.fedorapeople.org/RPMs/hirte-0.1.1-3.fc39.src.rpm

Without the man page for hirtectl in the main hirte package

Comment 32 Jakub Kadlčík 2023-03-28 08:09:06 UTC
Created attachment 1954104 [details]
The .spec file difference from Copr build 5712589 to 5715857

Comment 33 Jakub Kadlčík 2023-03-28 08:09:08 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5715857
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2180450-hirte/fedora-rawhide-x86_64/05715857-hirte/fedora-review/review.txt

Please take a look if any issues were found.

---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 34 Neal Gompa 2023-03-28 12:48:20 UTC
Everything looks good to me now.

PACKAGE APPROVED.

Comment 35 Pierre-YvesChibon 2023-03-28 13:10:32 UTC
Thank you !

Comment 36 Fedora Admin user for bugzilla script actions 2023-03-28 14:44:36 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/hirte

Comment 37 Fedora Update System 2023-03-28 16:06:20 UTC
FEDORA-2023-3f9f794783 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-3f9f794783

Comment 38 Fedora Update System 2023-03-28 16:06:22 UTC
FEDORA-2023-7f21a2f40d has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2023-7f21a2f40d

Comment 39 Fedora Update System 2023-03-29 02:39:12 UTC
FEDORA-2023-7f21a2f40d has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-7f21a2f40d \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-7f21a2f40d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 40 Fedora Update System 2023-03-29 03:55:44 UTC
FEDORA-2023-3f9f794783 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-3f9f794783 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-3f9f794783

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 41 Fedora Update System 2023-04-04 00:54:37 UTC
FEDORA-2023-7f21a2f40d has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 42 Fedora Update System 2023-04-04 01:33:32 UTC
FEDORA-2023-3f9f794783 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 43 Fedora Update System 2023-04-04 10:51:11 UTC
FEDORA-2023-97a6746095 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-97a6746095

Comment 44 Fedora Update System 2023-04-04 18:14:51 UTC
FEDORA-2023-97a6746095 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.