public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/folly-rpm-macros] rawhide: Document the license_check_only bcond in AGENTS.md
@ 2026-09-29 15:26 Michel Lind
0 siblings, 0 replies; only message in thread
From: Michel Lind @ 2026-09-29 15:26 UTC (permalink / raw)
To: git-commits
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.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-29 15:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-29 15:26 [rpms/folly-rpm-macros] rawhide: Document the license_check_only bcond in AGENTS.md Michel Lind
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox