Bug 2120396 - Review Request: google-osconfig-agent - Google OS Config Agent
Summary: Review Request: google-osconfig-agent - Google OS Config Agent
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mikel Olasagasti Uranga
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-22 19:28 UTC by Major Hayden 🤠
Modified: 2024-04-10 15:24 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-08-23 14:09:34 UTC
Type: ---
Embargoed:
mikel: fedora-review+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Pagure releng/fedora-scm-requests issue 46724 0 None None None 2022-08-23 12:01:22 UTC

Comment 1 Mikel Olasagasti Uranga 2022-08-22 21:24:39 UTC
> Version:                20220801.00
> %global tag             %{version}

You can skip the %global tag entry

> %goprep -k

Why are you using -k flag?

On the cosmetic side, the spec has double new lines between some sections. The "go2rpm style" uses only one.

Comment 2 Major Hayden 🤠 2022-08-22 21:38:47 UTC
(In reply to Mikel Olasagasti Uranga from comment #1)
> > Version:                20220801.00
> > %global tag             %{version}
> 
> You can skip the %global tag entry

Thanks!

> > %goprep -k
> 
> Why are you using -k flag?

I kept it from the original go2rpm output. It might not be needed here. I'll remove it.

> On the cosmetic side, the spec has double new lines between some sections.
> The "go2rpm style" uses only one.

I'll fix those.

Comment 3 Major Hayden 🤠 2022-08-22 22:07:25 UTC
Updated:

Spec URL: https://download.copr.fedorainfracloud.org/results/mhayden/gcp-infra/fedora-rawhide-x86_64/04756165-google-osconfig-agent/google-osconfig-agent.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/mhayden/gcp-infra/fedora-rawhide-x86_64/04756165-google-osconfig-agent/google-osconfig-agent-20220801.00-1.fc38.src.rpm

There's one flaky test (agentendpoint) with a race condition on slower systems that seems to crop up on aarch64 every so often. I'll have to dig into that a bit more or disable it until we can get an upstream fix.

Comment 4 Mikel Olasagasti Uranga 2022-08-23 11:41:58 UTC
> You can skip the %global tag entry

My bad, tag is required in this case.

go2rpm package, fedora-review is correct:

- The specfile is sane.
- License is correct.
- Builds successfully in mock.
- No rpmlint errors.
- %check section passes.
- The latest version is packaged.
- The package complies with the Packaging Guidelines.

Package approved! On import, don't forget to do the following:

- Add package to release-monitoring.org
- Add package to Koschei
- Give go-sig privileges on package
- Close the review bug by referencing it in the rpm changelog and/or the Bodhi ticket. (rhbz#BUG_ID)

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

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

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

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.
     Note: There is no build directory. Running licensecheck on vanilla
     upstream sources. Licenses found: "Unknown or generated", "*No
     copyright* Apache License 2.0", "Apache License 2.0", "BSD 3-Clause
     License", "BSD 2-Clause License", "MIT License". 66 files have unknown
     license. Detailed output of licensecheck in /tmp/major/2120396-google-
     osconfig-agent/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[x]: Package does not own files or directories owned by other packages.
[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.
[x]: Package contains desktop file if it is a GUI application.
[x]: 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.
[x]: 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.
[x]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 122880 bytes in 47 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 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.
[-]: 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:
[x]: 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).
[-]: Fully versioned dependency in subpackages if applicable.
[x]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[x]: Patches link to upstream bugs/comments/lists or are otherwise
     justified.
[-]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[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]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: Sources can be downloaded from URI in Source: tag
[x]: SourceX is a working URL.
[x]: Package should compile and build into binary rpms on all supported
     architectures.
[x]: Spec use %global instead of %define unless justified.

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

Generic:
[x]: Rpmlint is run on debuginfo package(s).
     Note: There are rpmlint messages (see attachment).
[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
-------
Cannot parse rpmlint output:


Rpmlint (debuginfo)
-------------------
Cannot parse rpmlint output:



Rpmlint (installed packages)
----------------------------
Cannot parse rpmlint output:


Source checksums
----------------
https://github.com/GoogleCloudPlatform/osconfig/archive/20220801.00/osconfig-20220801.00.tar.gz :
  CHECKSUM(SHA256) this package     : 2fe8898c65e4d7d4e69ab158ca7b3ee18dfdd94f56b1f316a9c083b105d33d6b
  CHECKSUM(SHA256) upstream package : 2fe8898c65e4d7d4e69ab158ca7b3ee18dfdd94f56b1f316a9c083b105d33d6b


Requires
--------
google-osconfig-agent (rpmlib, GLIBC filtered):
    libc.so.6()(64bit)
    rtld(GNU_HASH)

golang-github-googlecloudplatform-osconfig-devel (rpmlib, GLIBC filtered):
    go-filesystem
    golang(cloud.google.com/go/compute/metadata)
    golang(cloud.google.com/go/osconfig/agentendpoint/apiv1)
    golang(cloud.google.com/go/osconfig/agentendpoint/apiv1beta)
    golang(cloud.google.com/go/storage)
    golang(github.com/GoogleCloudPlatform/guest-logging-go/logger)
    golang(github.com/golang/mock/gomock)
    golang(github.com/tarm/serial)
    golang(github.com/ulikunitz/xz)
    golang(github.com/ulikunitz/xz/lzma)
    golang(golang.org/x/crypto/openpgp)
    golang(golang.org/x/crypto/openpgp/armor)
    golang(golang.org/x/crypto/openpgp/packet)
    golang(golang.org/x/oauth2/jws)
    golang(golang.org/x/sys/unix)
    golang(google.golang.org/api/option)
    golang(google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1)
    golang(google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1beta)
    golang(google.golang.org/genproto/googleapis/rpc/errdetails)
    golang(google.golang.org/genproto/googleapis/type/date)
    golang(google.golang.org/grpc)
    golang(google.golang.org/grpc/codes)
    golang(google.golang.org/grpc/credentials)
    golang(google.golang.org/grpc/status)
    golang(google.golang.org/protobuf/encoding/protojson)
    golang(google.golang.org/protobuf/proto)
    golang(google.golang.org/protobuf/types/known/timestamppb)

google-osconfig-agent-debuginfo (rpmlib, GLIBC filtered):

google-osconfig-agent-debugsource (rpmlib, GLIBC filtered):



Provides
--------
google-osconfig-agent:
    google-osconfig-agent
    google-osconfig-agent(x86-64)

golang-github-googlecloudplatform-osconfig-devel:
    golang(github.com/GoogleCloudPlatform/osconfig/agentconfig)
    golang(github.com/GoogleCloudPlatform/osconfig/agentconfig)(tag=20220801.00)
    golang(github.com/GoogleCloudPlatform/osconfig/agentendpoint)
    golang(github.com/GoogleCloudPlatform/osconfig/agentendpoint)(tag=20220801.00)
    golang(github.com/GoogleCloudPlatform/osconfig/attributes)
    golang(github.com/GoogleCloudPlatform/osconfig/attributes)(tag=20220801.00)
    golang(github.com/GoogleCloudPlatform/osconfig/clog)
    golang(github.com/GoogleCloudPlatform/osconfig/clog)(tag=20220801.00)
    golang(github.com/GoogleCloudPlatform/osconfig/config)
    golang(github.com/GoogleCloudPlatform/osconfig/config)(tag=20220801.00)
    golang(github.com/GoogleCloudPlatform/osconfig/external)
    golang(github.com/GoogleCloudPlatform/osconfig/external)(tag=20220801.00)
    golang(github.com/GoogleCloudPlatform/osconfig/inventory)
    golang(github.com/GoogleCloudPlatform/osconfig/inventory)(tag=20220801.00)
    golang(github.com/GoogleCloudPlatform/osconfig/osinfo)
    golang(github.com/GoogleCloudPlatform/osconfig/osinfo)(tag=20220801.00)
    golang(github.com/GoogleCloudPlatform/osconfig/ospatch)
    golang(github.com/GoogleCloudPlatform/osconfig/ospatch)(tag=20220801.00)
    golang(github.com/GoogleCloudPlatform/osconfig/packages)
    golang(github.com/GoogleCloudPlatform/osconfig/packages)(tag=20220801.00)
    golang(github.com/GoogleCloudPlatform/osconfig/policies)
    golang(github.com/GoogleCloudPlatform/osconfig/policies)(tag=20220801.00)
    golang(github.com/GoogleCloudPlatform/osconfig/policies/recipes)
    golang(github.com/GoogleCloudPlatform/osconfig/policies/recipes)(tag=20220801.00)
    golang(github.com/GoogleCloudPlatform/osconfig/pretty)
    golang(github.com/GoogleCloudPlatform/osconfig/pretty)(tag=20220801.00)
    golang(github.com/GoogleCloudPlatform/osconfig/retryutil)
    golang(github.com/GoogleCloudPlatform/osconfig/retryutil)(tag=20220801.00)
    golang(github.com/GoogleCloudPlatform/osconfig/tasker)
    golang(github.com/GoogleCloudPlatform/osconfig/tasker)(tag=20220801.00)
    golang(github.com/GoogleCloudPlatform/osconfig/util)
    golang(github.com/GoogleCloudPlatform/osconfig/util)(tag=20220801.00)
    golang(github.com/GoogleCloudPlatform/osconfig/util/mocks)
    golang(github.com/GoogleCloudPlatform/osconfig/util/mocks)(tag=20220801.00)
    golang-github-googlecloudplatform-osconfig-devel
    golang-ipath(github.com/GoogleCloudPlatform/osconfig)
    golang-ipath(github.com/GoogleCloudPlatform/osconfig)(tag=20220801.00)

google-osconfig-agent-debuginfo:
    debuginfo(build-id)
    google-osconfig-agent-debuginfo
    google-osconfig-agent-debuginfo(x86-64)

google-osconfig-agent-debugsource:
    google-osconfig-agent-debugsource
    google-osconfig-agent-debugsource(x86-64)



Generated by fedora-review 0.8.0 (e988316) last change: 2022-04-07
Command line :/usr/bin/fedora-review -b 2120396
Buildroot used: fedora-rawhide-x86_64
Active plugins: Shell-api, Generic
Disabled plugins: Perl, C/C++, Java, Python, R, fonts, SugarActivity, Ocaml, Haskell, PHP
Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH

Comment 5 Major Hayden 🤠 2022-08-23 12:01:22 UTC
Thanks, Mikel! Will do.

Repo requested: https://pagure.io/releng/fedora-scm-requests/issue/46724

Comment 6 Gwyn Ciesla 2022-08-23 13:19:03 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/google-osconfig-agent

Comment 7 Major Hayden 🤠 2022-08-23 13:29:18 UTC
(In reply to Mikel Olasagasti Uranga from comment #4)
> Package approved! On import, don't forget to do the following:
> 
> - Add package to release-monitoring.org
> - Add package to Koschei
> - Give go-sig privileges on package
> - Close the review bug by referencing it in the rpm changelog and/or the
> Bodhi ticket. (rhbz#BUG_ID)

Done, except for Koschei. Waiting on it to hit the database...

Comment 8 Fedora Update System 2022-08-23 13:39:43 UTC
FEDORA-2022-875535ebe3 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2022-875535ebe3

Comment 9 Fedora Update System 2022-08-23 14:09:34 UTC
FEDORA-2022-875535ebe3 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2022-08-23 14:09:38 UTC
FEDORA-2022-875535ebe3 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2024-04-10 15:21:37 UTC
FEDORA-2024-195a7c511e (google-osconfig-agent-20240409.00-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-195a7c511e

Comment 12 Fedora Update System 2024-04-10 15:24:22 UTC
FEDORA-2024-195a7c511e (google-osconfig-agent-20240409.00-1.fc41) has been pushed to the Fedora 41 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.