public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michel Lind <salimma@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/folly-rpm-macros] rawhide: Document the license_check_only bcond in AGENTS.md
Date: Tue, 29 Sep 2026 15:26:17 GMT [thread overview]
Message-ID: <179069557761.1.2135208016444636335.rpms-folly-rpm-macros-2934bd515b0e@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/folly-rpm-macros
Branch : rawhide
Commit : 2934bd515b0eed30dc3ef973ebc37d821aa8e548
Author : Michel Lind <salimma@fedoraproject.org>
Date : 2026-09-29T10:34:36+01:00
Stats : +21/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/folly-rpm-macros/c/2934bd515b0eed30dc3ef973ebc37d821aa8e548?branch=rawhide
Log:
Document the license_check_only bcond in AGENTS.md
- Record how to check a new vendor tarball's licenses without the build,
and why restricting the full pass to one architecture was rejected
Assisted-by: Claude Code:claude-opus-5
Signed-off-by: Michel Lind <salimma@fedoraproject.org>
---
diff --git a/AGENTS.md b/AGENTS.md
index 9e46a45..8f234a1 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -219,6 +219,27 @@ Details that will come back:
- The check macro's own comment says "for `%check`"; the specs deliberately
run it at the start of `%build` instead, see section 3.
+- **Checking a new tarball without the compile.** Each spec carries
+ `%bcond_with license_check_only`, which runs the check and then fails on
+ purpose:
+
+ ```
+ %getdeps_vendor_license_check -c %{SOURCE2} -L %{?with_license_full_check:-f}
+ %{?with_license_check_only: echo "license check only: stopping before the build"; exit 1}
+ ```
+
+ `mock -r fedora-rawhide-aarch64-getdeps --rebuild <srpm> --with
+ license_check_only` answers "does this tarball need a different License
+ tag" in about ten minutes, dependency install and `%prep` included, instead
+ of the hours a full build takes. A pass prints "License tag covers every
+ detected license", and that is exactly what `vendor_checked_sha512`
+ records, so it can be recorded off this run. The build failing is the
+ point, so it is for local use and must never be wired into CI, where a red
+ build has to keep meaning something is wrong.
+- An architecture restriction on the full pass was considered and dropped:
+ koji builds architectures in parallel, so scanning identical source three
+ times costs about five minutes of wall clock, not fifteen, and any fixed
+ architecture is the wrong one for whoever builds locally on another.
- The full licensecheck pass takes about five minutes and a lot of memory
(fedora-review has OOMed laptops); hence the sha512 gate. A failing check
ends with "the tag needs: ..." so the fix is a copy.
reply other threads:[~2026-09-29 15:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179069557761.1.2135208016444636335.rpms-folly-rpm-macros-2934bd515b0e@fedoraproject.org \
--to=salimma@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox