Bug 1820391 - Review Request: RediSearch - full-text search over Redis
Summary: Review Request: RediSearch - full-text search over Redis
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Andreas Gerstmayr
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-02 23:18 UTC by Nathan Scott
Modified: 2020-04-17 10:45 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-04-17 10:45:24 UTC
Type: ---
Embargoed:
agerstmayr: fedora-review+


Attachments (Terms of Use)

Description Nathan Scott 2020-04-02 23:18:22 UTC
Spec URL: https://nathans.fedorapeople.org/RediSearch/RediSearch.spec
SRPM URL: https://nathans.fedorapeople.org/RediSearch/RediSearch-1.2.2-1.fc31.src.rpm

Description:
RediSearch implements a search engine on top of Redis, providing
three main features - full text search, secondary indexing and a
suggestion (auto-completion) engine.

It provides advanced search features like exact phrase matching
and numeric filtering for text queries, that are not possible or
efficient with traditional Redis search approaches.

Fedora Account System Username: nathans

Comment 1 Andreas Gerstmayr 2020-04-03 18:03:16 UTC
I'm confused, https://github.com/RedisLabsModules/RediSearch/ redirects me to https://github.com/RediSearch/RediSearch and I can't find version 1.2.2 there, it jumps from v1.2.0 (released on 19 Jun 2018) to v1.3.0-beta1. The latest release on GitHub is 1.6.11 (released 10 days ago).

Is there any requirement on this specific version, and where can I find it?

Comment 2 Nathan Scott 2020-04-04 06:22:32 UTC
(In reply to Andreas Gerstmayr from comment #1)
> I'm confused, https://github.com/RedisLabsModules/RediSearch/ redirects me

Oh, I've used the wrong URL in the spec - fixed now.

> to https://github.com/RediSearch/RediSearch and I can't find version 1.2.2
> there, it jumps from v1.2.0 (released on 19 Jun 2018) to v1.3.0-beta1. The
> latest release on GitHub is 1.6.11 (released 10 days ago).

That is the latest release with a non-open-source license. :(

The open source fork, as used on Debian and Ubuntu, is here:
https://github.com/GoodFORM/RediSearch/

> Is there any requirement on this specific version, and where can I find it?

See goodformcode.com for the background.

Comment 3 Andreas Gerstmayr 2020-04-06 17:08:11 UTC
(In reply to Nathan Scott from comment #2)
> That is the latest release with a non-open-source license. :(

Hmm, that's quite unfortunate - so we'll be stuck on an outdated version forever if no volunteers are working on the open source fork :/



Package Review
==============

Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated
[ ] = Manual review needed



===== MUST items =====

C/C++:
[X]: Package does not contain kernel modules.
[X]: Package contains no static executables.
[-]: Development (unversioned) .so files in -devel subpackage, if present.
     Note: Unversioned so-files in private %_libdir subdirectory (see
     attachment). Verify they are not in ld path.
[x]: If your application is a C or C++ application you must list a
     BuildRequires against gcc, gcc-c++ or clang.
[x]: Header files in -devel subpackage, if present.
[x]: Package does not contain any libtool archives (.la)
[x]: Rpath absent or only used for internal libs.

Generic:
[X]: Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
     Guidelines.
[X]: License field in the package spec file matches the actual license.
[X]: License file installed when any subpackage combination is installed.
[X]: %build honors applicable compiler flags or justifies otherwise.
[X]: Package contains no bundled libraries without FPC exception.
[X]: Changelog in prescribed format.
[X]: Sources contain only permissible code or content.
[-]: Package contains desktop file if it is a GUI application.
[-]: Development files must be in a -devel package
[X]: Package uses nothing in %doc for runtime.
[X]: Package consistently uses macros (instead of hard-coded directory
     names).
[X]: Package is named according to the Package Naming Guidelines.
[X]: Package does not generate any conflict.
[X]: Package obeys FHS, except libexecdir and /usr/target.
[-]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
[X]: Requires correct, justified where necessary.
[X]: Spec file is legible and written in American English.
[-]: Package contains systemd file(s) if in need.
[X]: Useful -debuginfo package or justification otherwise.
[X]: Package is not known to require an ExcludeArch tag.
[-]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 296960 bytes in 32 files.
[X]: Package complies to the Packaging Guidelines
[x]: Package successfully compiles and builds into binary rpms on at least
     one supported primary architecture.
[x]: Package installs properly.
[x]: Rpmlint is run on all rpms the build produces.
     Note: There are rpmlint messages (see attachment).
[x]: If (and only if) the source package includes the text of the
     license(s) in its own file, then that file, containing the text of the
     license(s) for the package is included in %license.
[x]: Package requires other packages for directories it uses.
[x]: Package must own all directories that it creates.
[x]: Package does not own files or directories owned by other packages.
[x]: Package uses either %{buildroot} or $RPM_BUILD_ROOT
[x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
     beginning of %install.
[x]: Macros in Summary, %description expandable at SRPM build time.
[x]: Dist tag is present.
[x]: Package does not contain duplicates in %files.
[x]: Permissions on files are set properly.
[x]: Package must not depend on deprecated() packages.
[x]: Package use %makeinstall only when make install DESTDIR=... doesn't
     work.
[x]: Package is named using only allowed ASCII characters.
[x]: Package does not use a name that already exists.
[x]: Package is not relocatable.
[x]: Sources used to build the package match the upstream source, as
     provided in the spec URL.
[x]: Spec file name must match the spec package %{name}, in the format
     %{name}.spec.
[x]: File names are valid UTF-8.
[x]: Packages must not store files under /srv, /opt or /usr/local

===== SHOULD items =====

Generic:
[!]: Sources can be downloaded from URI in Source: tag
     Note: Could not download Source0:
     https://github.com/GoodFORM/RediSearch/archive/1.2.2/RediSearch-1.2.2.tar.gz
     See: https://docs.fedoraproject.org/en-US/packaging-
     guidelines/SourceURL/
[-]: If the source package does not include license text(s) as a separate
     file from upstream, the packager SHOULD query upstream to include it.
[X]: Final provides and requires are sane (see attachments).
[?]: Package functions as described.
[X]: Latest version is packaged.
[X]: Package does not include license text files separate from upstream.
[-]: SourceX tarball generation or download is documented.
     Note: Package contains tarball without URL, check comments
[-]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[-]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[X]: Package should compile and build into binary rpms on all supported
     architectures.
[X]: %check is present and all tests pass.
[X]: Packages should try to preserve timestamps of original installed
     files.
[x]: Reviewer should test that the package builds in mock.
[x]: Buildroot is not present
[x]: Package has no %clean section with rm -rf %{buildroot} (or
     $RPM_BUILD_ROOT)
[x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: Fully versioned dependency in subpackages if applicable.
[x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: Uses parallel make %{?_smp_mflags} macro.
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define unless justified.

===== EXTRA items =====

Generic:
[x]: Rpmlint is run on debuginfo package(s).
     Note: No rpmlint messages.
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[x]: Large data in /usr/share should live in a noarch subpackage if package
     is arched.
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: RediSearch-1.2.2-1.fc33.x86_64.rpm
          RediSearch-debuginfo-1.2.2-1.fc33.x86_64.rpm
          RediSearch-debugsource-1.2.2-1.fc33.x86_64.rpm
          RediSearch-1.2.2-1.fc33.src.rpm
RediSearch.src: E: specfile-error warning: line 20: Possible unexpanded macro in: Requires:	redis(modules_abi)(x86-64) = %{redis_modules_abi}
4 packages and 0 specfiles checked; 1 errors, 0 warnings.




Rpmlint (debuginfo)
-------------------
Checking: RediSearch-debuginfo-1.2.2-1.fc33.x86_64.rpm
1 packages and 0 specfiles checked; 0 errors, 0 warnings.





Rpmlint (installed packages)
----------------------------
RediSearch-debugsource.x86_64: W: invalid-url URL: https://goodformcode.com/ <urlopen error [Errno -2] Name or service not known>
RediSearch.x86_64: W: invalid-url URL: https://goodformcode.com/ <urlopen error [Errno -2] Name or service not known>
RediSearch-debuginfo.x86_64: W: invalid-url URL: https://goodformcode.com/ <urlopen error [Errno -2] Name or service not known>
3 packages and 0 specfiles checked; 0 errors, 3 warnings.



Unversioned so-files
--------------------
RediSearch: /usr/lib64/redis/modules/redisearch.so

Requires
--------
RediSearch (rpmlib, GLIBC filtered):
    libc.so.6()(64bit)
    libdl.so.2()(64bit)
    libm.so.6()(64bit)
    libpthread.so.0()(64bit)
    redis
    redis(modules_abi)(x86-64)
    rtld(GNU_HASH)

RediSearch-debuginfo (rpmlib, GLIBC filtered):

RediSearch-debugsource (rpmlib, GLIBC filtered):



Provides
--------
RediSearch:
    RediSearch
    RediSearch(x86-64)

RediSearch-debuginfo:
    RediSearch-debuginfo
    RediSearch-debuginfo(x86-64)
    debuginfo(build-id)

RediSearch-debugsource:
    RediSearch-debugsource
    RediSearch-debugsource(x86-64)



Generated by fedora-review 0.7.5 (5fa5b7e) last change: 2020-02-16
Command line :/usr/bin/fedora-review -b 1820391
Buildroot used: fedora-rawhide-x86_64
Active plugins: C/C++, Generic, Shell-api
Disabled plugins: R, Haskell, fonts, Perl, Python, Ocaml, SugarActivity, PHP, Java
Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH




> [!]: Sources can be downloaded from URI in Source: tag
>     Note: Could not download Source0:
>     https://github.com/GoodFORM/RediSearch/archive/1.2.2/RediSearch-1.2.2.tar.gz
>     See: https://docs.fedoraproject.org/en-US/packaging-
>     guidelines/SourceURL/

The git tag is prefixed with "v", which is missing in the URL.


> Unversioned so-files
> --------------------
> RediSearch: /usr/lib64/redis/modules/redisearch.so

I guess this is not a problem, as no other binary is linking to it and redis will just load all files in that folder?


Package approved when the URL issue is fixed.

Comment 4 Nathan Scott 2020-04-07 04:21:01 UTC
(In reply to Andreas Gerstmayr from comment #3)
> (In reply to Nathan Scott from comment #2)
> > That is the latest release with a non-open-source license. :(
> 
> Hmm, that's quite unfortunate - so we'll be stuck on an outdated version
> forever if no volunteers are working on the open source fork :/

Indeed.  Fortunately it was a fairly mature version they forked from,
with good automated testing in place, and the sorts of features they're
now adding have tended to be scaling (clustering) related - not super
important for our immediate needs (and those of many other folk).

It is what it is.

> > [!]: Sources can be downloaded from URI in Source: tag
> >     Note: Could not download Source0:
> >     https://github.com/GoodFORM/RediSearch/archive/1.2.2/RediSearch-1.2.2.tar.gz
> >     See: https://docs.fedoraproject.org/en-US/packaging-
> >     guidelines/SourceURL/
> 
> The git tag is prefixed with "v", which is missing in the URL.

Ah - thanks, fixed.

> > Unversioned so-files
> > --------------------
> > RediSearch: /usr/lib64/redis/modules/redisearch.so
> 
> I guess this is not a problem, as no other binary is linking to it and redis

Yep, and its not visible to ldconfig in the Fedora location
(so no ldd search path will 'accidentally' find it)

> Package approved when the URL issue is fixed.

Thanks for the review!

Comment 5 Gwyn Ciesla 2020-04-16 13:17:48 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/RediSearch


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