Bug 2270592 - Review Request: keydb - keydb is a multi-threaded fork of redis
Summary: Review Request: keydb - keydb is a multi-threaded fork of redis
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://keydb.dev/
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-03-21 05:20 UTC by Jonathan Wright
Modified: 2024-04-19 21:24 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-04-06 01:41:17 UTC
Type: ---
Embargoed:
ngompa13: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 7191618 to 7193730 (2.19 KB, patch)
2024-03-21 15:34 UTC, Fedora Review Service
no flags Details | Diff
The .spec file difference from Copr build 7193730 to 7194011 (510 bytes, patch)
2024-03-21 17:25 UTC, Fedora Review Service
no flags Details | Diff

Comment 1 Fedora Review Service 2024-03-21 05:42:36 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/7191618
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2270592-keydb/fedora-rawhide-x86_64/07191618-keydb/fedora-review/review.txt

Found issues:

- Systemd service file(s) in keydb
  Read more: https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_scriptlets

Please know that there can be false-positives.

---
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 2 Neal Gompa 2024-03-21 11:35:21 UTC
Taking this review.

Comment 3 Neal Gompa 2024-03-21 11:56:41 UTC
Spec review:

> %post
> %systemd_post %{name}.service
> %systemd_post %{name}-sentinel.service
> 
> 
> %postun
> %systemd_postun_with_restart %{name}.service
> %systemd_postun_with_restart %{name}-sentinel.service

You're missing the preun scriptlets. Please add them.

Comment 4 Leon Fauster 2024-03-21 13:42:58 UTC
The client (cli) and the server are calling home (api.keydb.dev). The server config has a "enable-motd no"
that disable this, leaving the client doing it. It seams that they have a build switch "make NO_MOTD=yes". Not tested ...

Comment 5 Leon Fauster 2024-03-21 13:45:32 UTC
Just to consolidate this info (already send via mail, sorry to break the medium):

One thing that shows up, are the drop-in directories and files
of redis:

# rpm -ql redis |grep systemd
/etc/systemd/system/redis-sentinel.service.d
/etc/systemd/system/redis-sentinel.service.d/limit.conf
/etc/systemd/system/redis.service.d
/etc/systemd/system/redis.service.d/limit.conf

Both add a LimitNOFILE=10240 to the service section.

The same is done by upstream

https://download.keydb.dev/pkg/open_source/rpm/centos8/x86_64/

They have some security stuff more in the main unit file but both
(redis, upstream keydb) do update the above limits.

Comment 6 Jonathan Wright 2024-03-21 14:52:43 UTC
(In reply to Neal Gompa from comment #3)
> You're missing the preun scriptlets. Please add them.

I was laying in bed last night and it hit me that I forgot this :(

(In reply to Leon Fauster from comment #4)
> The client (cli) and the server are calling home (api.keydb.dev). The server
> config has a "enable-motd no"
> that disable this, leaving the client doing it. It seams that they have a
> build switch "make NO_MOTD=yes". Not tested ...

Good catch, testing the compile-time flag to make sure it fully disables it.

(In reply to Leon Fauster from comment #5)
> Just to consolidate this info (already send via mail, sorry to break the
> medium):
> 
> One thing that shows up, are the drop-in directories and files
> of redis:
> 
> # rpm -ql redis |grep systemd
> /etc/systemd/system/redis-sentinel.service.d
> /etc/systemd/system/redis-sentinel.service.d/limit.conf
> /etc/systemd/system/redis.service.d
> /etc/systemd/system/redis.service.d/limit.conf
> 
> Both add a LimitNOFILE=10240 to the service section.
> 
> The same is done by upstream
> 
> https://download.keydb.dev/pkg/open_source/rpm/centos8/x86_64/
> 
> They have some security stuff more in the main unit file but both
> (redis, upstream keydb) do update the above limits.

Adding this.

Will have a new build shortly.

Comment 8 Fedora Review Service 2024-03-21 15:34:34 UTC
Created attachment 2022940 [details]
The .spec file difference from Copr build 7191618 to 7193730

Comment 9 Fedora Review Service 2024-03-21 15:34:36 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/7193730
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2270592-keydb/fedora-rawhide-x86_64/07193730-keydb/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 10 Remi Collet 2024-03-21 16:16:20 UTC
I don't see any %build section

So package is built during %{make_install} which have no parallelism option (-j)
So the build is quite slow.

Comment 11 Jonathan Wright 2024-03-21 16:41:40 UTC
(In reply to Remi Collet from comment #10)
> I don't see any %build section
> 
> So package is built during %{make_install} which have no parallelism option
> (-j)
> So the build is quite slow.

Hah good catch.  My only explanation for that is that I started this spec file back in 2022 and I really don't know why I didn't make a %build section then and didn't even notice I didn't have one.

Wish someone called me out on this sooner and it'd have saved me a lot of time while working on the spec and waiting on mockbuild and COPR builds lol.

Comment 13 Fedora Review Service 2024-03-21 17:25:38 UTC
Created attachment 2022945 [details]
The .spec file difference from Copr build 7193730 to 7194011

Comment 14 Fedora Review Service 2024-03-21 17:25:40 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/7194011
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2270592-keydb/fedora-rawhide-x86_64/07194011-keydb/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 15 Neal Gompa 2024-03-23 05:41:35 UTC
Review notes:

* Package follows Fedora Packaging Guidelines
* Package builds and installs
* Package licensing is correctly handled and recorded
* No serious issues from rpmlint

Comment 16 Neal Gompa 2024-03-23 05:41:48 UTC
PACKAGE APPROVED. :)

Comment 17 Fedora Admin user for bugzilla script actions 2024-03-23 05:59:26 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/keydb

Comment 18 Fedora Update System 2024-03-27 18:03:22 UTC
FEDORA-EPEL-2024-3a9b69d18c (keydb-6.3.4-2.el9) has been submitted as an update to Fedora EPEL 9.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-3a9b69d18c

Comment 19 Fedora Update System 2024-03-27 18:03:43 UTC
FEDORA-2024-3e94473821 (keydb-6.3.4-2.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-3e94473821

Comment 20 Fedora Update System 2024-03-27 18:04:15 UTC
FEDORA-2024-0a13c27363 (keydb-6.3.4-2.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-0a13c27363

Comment 21 Fedora Update System 2024-03-27 18:04:32 UTC
FEDORA-2024-0a38b15e34 (keydb-6.3.4-2.fc38) has been submitted as an update to Fedora 38.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-0a38b15e34

Comment 22 Fedora Update System 2024-03-27 18:04:48 UTC
FEDORA-EPEL-2024-687a561785 (keydb-6.3.4-2.el8) has been submitted as an update to Fedora EPEL 8.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-687a561785

Comment 23 Fedora Update System 2024-03-29 02:09:09 UTC
FEDORA-2024-fb1f3ce6e2 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-fb1f3ce6e2`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-fb1f3ce6e2

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

Comment 24 Fedora Update System 2024-03-29 02:23:53 UTC
FEDORA-2024-c36ab1c701 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-c36ab1c701`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-c36ab1c701

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

Comment 25 Fedora Update System 2024-03-29 02:35:21 UTC
FEDORA-EPEL-2024-0267e2a685 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-0267e2a685

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

Comment 26 Fedora Update System 2024-03-29 02:42:41 UTC
FEDORA-EPEL-2024-60bac4845e has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-60bac4845e

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

Comment 27 Fedora Update System 2024-03-29 02:55:23 UTC
FEDORA-2024-e7ca3a9f30 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-e7ca3a9f30`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-e7ca3a9f30

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

Comment 28 Fedora Update System 2024-04-06 01:41:17 UTC
FEDORA-2024-c36ab1c701 (keydb-6.3.4-3.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 29 Fedora Update System 2024-04-06 02:05:13 UTC
FEDORA-EPEL-2024-0267e2a685 (keydb-6.3.4-3.el9) has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 30 Fedora Update System 2024-04-06 02:34:43 UTC
FEDORA-EPEL-2024-60bac4845e (keydb-6.3.4-3.el8) has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 31 Fedora Update System 2024-04-06 03:13:33 UTC
FEDORA-2024-fb1f3ce6e2 (keydb-6.3.4-3.fc38) has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 32 Fedora Update System 2024-04-19 21:24:25 UTC
FEDORA-2024-e7ca3a9f30 (keydb-6.3.4-3.fc40) has been pushed to the Fedora 40 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.