Commit graph

26 commits

Author SHA1 Message Date
a55dbbd764 Revert "test"
Some checks failed
Build RPMs / build (sonic-win.spec) (push) Has been cancelled
Build RPMs / build (sonic-interface-libraries.spec) (push) Has been cancelled
Build RPMs / build (sonic-workspace.spec) (push) Failing after 13s
This reverts commit 05dc5dfe72.
2026-05-27 15:09:23 -03:00
db62c6ca62 Revert "Build only spec files that were changed in the push"
This reverts commit 7cbd8b6f3d.
2026-05-27 15:08:04 -03:00
f11a33cad0 Revert "Simplify workflow: single job loop over changed specs"
This reverts commit 80b2b48515.
2026-05-27 15:07:55 -03:00
05dc5dfe72 test
Some checks failed
Build RPMs / build (push) Failing after 5s
2026-05-27 18:06:02 +00:00
80b2b48515 Simplify workflow: single job loop over changed specs
Remove the overcomplicated two-job dynamic matrix setup.
Now a single job determines changed specs with git diff and loops
over them sequentially. Much simpler and less error-prone.
2026-05-27 15:03:53 -03:00
020a56822f add knighttime to sonic-workspace
Some checks failed
Build RPMs / changed (push) Failing after 3s
2026-05-27 15:01:19 -03:00
7cbd8b6f3d Build only spec files that were changed in the push
Add a 'changed' job that determines which .spec files were modified
using git diff between push before/after SHAs. The build job now
uses a dynamic matrix (fromJSON) so only changed specs are built.
For workflow_dispatch, all specs are still built.
2026-05-27 15:00:15 -03:00
1e507a71fa Scrub mock chroot before build and force --clean on rebuild
Cancelled jobs can leave the mock chroot in a corrupted state, causing
either 'Failed to resolve user mockbuild' or missing directories like
/var/lib/mock/custom/root/var. Add --scrub=chroot before build and
--clean flag to --rebuild to always start from a fresh chroot.
2026-05-27 14:51:38 -03:00
f8372d9df4 Fix Source0 URL fragment for consistent tarball naming
Some checks failed
Build RPMs / build (sonic-win.spec) (push) Has been cancelled
Build RPMs / build (sonic-interface-libraries.spec) (push) Has been cancelled
Build RPMs / build (sonic-workspace.spec) (push) Failing after 10s
GitHub archive URLs without a filename fragment download as just the
version number (e.g. 6.6.4.tar.gz), which confuses %setup when it tries
to cd into the expected %{name}-%{version} directory. Add
#/%{name}-%{version}.tar.gz suffix to ensure correct local filenames
matching the extracted directory names.
2026-05-27 14:43:16 -03:00
8d06d0d2e8 Fix mock: override root name after include to prevent cache collision
The included alma+epel-10-x86_64.cfg sets config_opts['root'], which
overrides --root custom and causes mock to reuse the old cached chroot
where mockbuild user was missing. Explicitly set config_opts['root'] after
the include to force a fresh custom root.
2026-05-27 14:03:37 -03:00
7ba22c2249 add knighttime
Some checks failed
Build RPMs / build (sonic-workspace.spec) (push) Has been cancelled
Build RPMs / build (sonic-interface-libraries.spec) (push) Has been cancelled
Build RPMs / build (sonic-win.spec) (push) Failing after 47s
2026-05-27 13:45:20 -03:00
7c3341d729 Fix mock: use --root with name instead of -r path for mockbuild user
When using -r /path/to/custom.cfg, mock fails to resolve the mockbuild
user because the config isn't in the standard /etc/mock/ directory.
Copy the generated config to /etc/mock/custom.cfg and reference it with
--root custom instead.
2026-05-27 13:18:54 -03:00
d357aae360 Fix mock: use custom config with extra repos instead of --shell injection
The --init/--shell/--no-clean approach caused a corrupted RPM database
in the chroot. Instead, generate a custom mock config that includes
both the Forgejo package registry and the xlibre Copr repos directly
in config_opts['yum.conf'] before the chroot is created. This is the
standard, reliable way to add extra repositories to mock.
2026-05-27 13:14:52 -03:00
b868b75011 Add Copr xlibre-xserver repo to mock chroot for build deps
sonic-win.spec requires xlibre-xserver-devel which is only available in
the xlibre Copr repository. Download and inject this alongside the
existing Forgejo package registry repo before mock --rebuild.
2026-05-27 13:10:25 -03:00
de70b9ccc0 Fix mock --shell: create /etc/yum.repos.d with mkdir -p before writing repo file 2026-05-27 13:05:00 -03:00
5820feee12 Fix mock repo injection: use --shell instead of --copyin 2026-05-27 13:00:59 -03:00
abae2a5400 add own repo 2026-05-27 12:57:40 -03:00
17dcd83976 Also clean up SRPMS directory after build 2026-05-27 12:52:07 -03:00
20a249a768 Add Forgejo Actions workflow to build RPMs with mock
- Build all three spec files on push via matrix strategy
- Use mock (alma+epel-10-x86_64) for clean isolated buildroot
- Inject Forgejo Package Registry as DNF repo inside mock chroot
- Derive exact SRPM path from rpmspec to avoid stale package matches
- Upload built RPMs to Forgejo Package Registry
- Clean up mock-results after each job (always)
- Bump all specs to 6.6.4-1 and fix Source0 tag (drop v-prefix)
2026-05-27 12:49:53 -03:00
02e484411c use alma+epel 2026-05-27 12:28:14 -03:00
71458745d9 Upgrade to 6.6.4
Some checks failed
Build RPMs / build (sonic-interface-libraries.spec) (push) Failing after 21s
Build RPMs / build (sonic-win.spec) (push) Failing after 22s
Build RPMs / build (sonic-workspace.spec) (push) Failing after 19s
2026-05-27 12:23:52 -03:00
f7e5b1e324 use mock instead 2026-05-27 12:19:07 -03:00
7910fb076b fix runner name 2026-05-27 11:58:52 -03:00
d6b4c4948a build rpm packages 2026-05-27 11:56:14 -03:00
5e82f9fb9b Add EL 10.1 version 2026-05-27 11:46:26 -03:00
1bc48111cd Initial commit 2026-05-27 14:36:26 +00:00