Migration to Forgejo: releng/tooling Pt 1

Signed-off-by: Samyak Jain <samyak.jn11@gmail.com>
This commit is contained in:
Samyak Jain 2025-10-10 12:59:13 +05:30
commit 6554031ffb
117 changed files with 0 additions and 895 deletions

View file

@ -1,59 +0,0 @@
PYTHON=python3
PEP8=$(PYTHON)-pep8
COVERAGE=coverage
ifeq ($(PYTHON),python3)
COVERAGE=coverage3
endif
TEST_DEPENDENCIES = python3-pep8 python3-pocketlint
TEST_DEPENDENCIES += python3-koji fedora-cert packagedb-cli
TEST_DEPENDENCIES += python3-fedmsg-core python3-configparser
TEST_DEPENDENCIES := $(shell echo $(sort $(TEST_DEPENDENCIES)) | uniq)
check-requires:
@echo "*** Checking if the dependencies required for testing and analysis are available ***"
@status=0 ; \
for pkg in $(TEST_DEPENDENCIES) ; do \
test_output="$$(rpm -q --whatprovides "$$pkg")" ; \
if [ $$? != 0 ]; then \
echo "$$test_output" ; \
status=1 ; \
fi ; \
done ; \
exit $$status
install-requires:
@echo "*** Installing the dependencies required for testing and analysis ***"
dnf install -y $(TEST_DEPENDENCIES)
test: check-requires
@echo "*** Running unittests with $(PYTHON) ***"
PYTHONPATH=.:scripts/:$(PYTHONPATH) $(PYTHON) -m unittest discover -v -s tests/ -p '*_test.py'
coverage: check-requires
@echo "*** Running unittests with $(COVERAGE) for $(PYTHON) ***"
PYTHONPATH=.:tests/ $(COVERAGE) run --branch -m unittest discover -v -s tests/ -p '*_test.py'
$(COVERAGE) report --include="scripts/*" --show-missing
$(COVERAGE) report --include="scripts/*" > coverage-report.log
pylint: check-requires
@echo "*** Running pylint ***"
PYTHONPATH=.:tests/:$(PYTHONPATH) tests/pylint/runpylint.py
pep8: check-requires
@echo "*** Running pep8 compliance check ***"
$(PEP8) --ignore=E501,E402,E731 tests/ scripts/ > pep8.log
check:
@status=0; \
$(MAKE) pylint || status=1; \
$(MAKE) pep8 || status=1; \
exit $$status
flake8:
@echo "*** Running flake8 against push-two-week-atomic only ***"
flake8-2 --ignore=W503,E131,E501,E226,E302,E265,E303 scripts/push-two-week-atomic.py
ci: check coverage
.PHONY: check pylint pep8 test

47
README
View file

@ -1,47 +0,0 @@
This is the Fedora Release Engineering GIT repo. Random stuff is tossed
here.
#########################################################################
# #
# For more information please see: #
# https://docs.fedoraproject.org/en-US/infra/ #
# #
#########################################################################
Everything is copyrighted by the respective authors. You can use and
redistribute the code under the terms of version 2 or later of the
GNU Public License as published by the Free Software Foundation.
To make licensing easier, license headers in the source files will be
a single line reference to Unique License Identifiers as defined by
the Linux Foundation's SPDX project [1]. For example,
in a source file the full "GPL v2.0 or later" header text will be
replaced by a single line:
SPDX-License-Identifier: GPL-2.0+
the license terms of all files in the source tree should be defined
by such License Identifiers; in no case a file can contain more than
one such License Identifier list.
If a "SPDX-License-Identifier:" line references more than one Unique
License Identifier, then this means that the respective file can be
used under the terms of either of these licenses, i. e. with
SPDX-License-Identifier: GPL-2.0+ LGPL-2.1+
you can chose between GPL-2.0+ and LGPL-2.1+ licensing.
We use the SPDX Unique License Identifiers here; these are available
at [2].
[1] http://spdx.org/
[2] http://spdx.org/licenses/
Full name SPDX Identifier OSI Approved File name URI
============================================================================================================================================================
GNU General Public License v2.0 or later GPL-2.0+ Y gpl-2.0.txt http://www.gnu.org/licenses/gpl-2.0.txt
GNU Lesser General Public License v2.1 or later LGPL-2.1+ Y lgpl-2.1.txt http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt
Creative Commons Attribution Share Alike 3.0 CC-BY-SA-3.0 CC-BY-SA-3.0.html http://spdx.org/licenses/CC-BY-SA-3.0.html

18
TESTING
View file

@ -1,18 +0,0 @@
Code testing helps shake out issues before they get into the wider world.
A very basic vagrant file is provided to allow contributors to work on issues
without installing all of the python3 libaries to their local workstation.
Tests may be added via the tests directory in the format:
tests/<class|script>_test.py
'make test' - runs current tests
'make pylint' - runs the python3 linter
'make pep8' - runs pep8 checks against the code
'make install-requires' - installs required python libraries
'make check' - runs pylint and pep8 against all code
'make flake8' - runs fake8 test against scripts/push-two-week-atomic.py
The testing framework is written for Python3 to help fix issues during the
conversion to Python3 scheduled for Fedora 27.

14
Vagrantfile vendored
View file

@ -1,14 +0,0 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
# SPDX-License-Identifier: GPL-2.0+
# Authors:
# Robert Marshall <rmarshall@redhat.com>
Vagrant.configure("2") do |config|
config.vm.box = "fedora/29-cloud-base"
config.vm.provision "shell", inline: <<-SHELL
dnf update -y
dnf install -y vim python3 fpaste
SHELL
end

View file

@ -1,21 +0,0 @@
# mash config file
[23-atomic-updates]
rpm_path = %(arch)s/
repodata_path = %(arch)s/
source_path = source/
debuginfo = True
multilib = True
multilib_method = devel
tag = f23-atomic-updates
inherit = False
strict_keys = True
keys = 34EC9CBA
arches = i386 x86_64 armhfp
delta = True
max_delta_rpm_size = 800000000
max_delta_rpm_age = 604800
delta_workers = 1
distro_tags = cpe:/o:fedoraproject:fedora:23 Twenty Three
hash_packages = True

View file

@ -1,22 +0,0 @@
# mash config file
[24-openh264]
rpm_path = %(arch)s/
repodata_path = %(arch)s/
source_path = source/
debuginfo = True
multilib = True
multilib_method = devel
tag = f24-openh264
inherit = False
strict_keys = True
keys = 81b46521
arches = i386 x86_64 armhfp
delta = True
max_delta_rpm_size = 800000000
max_delta_rpm_age = 604800
delta_workers = 8
# Change distro_tags as fedora-release version gets bumped
distro_tags = cpe:/o:fedoraproject:fedora:24 Twenty Four
hash_packages = True

View file

@ -1,22 +0,0 @@
# mash config file
[26-openh264]
rpm_path = %(arch)s/
repodata_path = %(arch)s/
source_path = source/
debuginfo = True
multilib = True
multilib_method = devel
tag = f26-openh264
inherit = False
strict_keys = True
keys = 81b46521
arches = i386 x86_64 armhfp
delta = True
max_delta_rpm_size = 800000000
max_delta_rpm_age = 604800
delta_workers = 8
# Change distro_tags as fedora-release version gets bumped
distro_tags = cpe:/o:fedoraproject:fedora:26 Twenty Six
hash_packages = True

View file

@ -1,22 +0,0 @@
# mash config file
[27-openh264]
rpm_path = %(arch)s/
repodata_path = %(arch)s/
source_path = source/
debuginfo = True
multilib = True
multilib_method = devel
tag = f27-openh264
inherit = False
strict_keys = True
keys = 81b46521
arches = i386 x86_64 armhfp
delta = True
max_delta_rpm_size = 800000000
max_delta_rpm_age = 604800
delta_workers = 8
# Change distro_tags as fedora-release version gets bumped
distro_tags = cpe:/o:fedoraproject:fedora:27 Twenty Seven
hash_packages = True

View file

@ -1,22 +0,0 @@
# mash config file
[28-openh264]
rpm_path = %(arch)s/
repodata_path = %(arch)s/
source_path = source/
debuginfo = True
multilib = True
multilib_method = devel
tag = f28-openh264
inherit = False
strict_keys = True
keys = 9DB62FB1
arches = i386 x86_64 armhfp aarch64 ppc64 ppc64le s390x
delta = True
max_delta_rpm_size = 800000000
max_delta_rpm_age = 604800
delta_workers = 8
# Change distro_tags as fedora-release version gets bumped
distro_tags = cpe:/o:fedoraproject:fedora:28 Twenty Eight
hash_packages = True

View file

@ -1,22 +0,0 @@
# mash config file
[29-openh264]
rpm_path = %(arch)s/
repodata_path = %(arch)s/
source_path = source/
debuginfo = True
multilib = True
multilib_method = devel
tag = f29-openh264
inherit = False
strict_keys = True
keys = 429476b4
arches = i386 x86_64 armhfp aarch64 ppc64 ppc64le s390x
delta = True
max_delta_rpm_size = 800000000
max_delta_rpm_age = 604800
delta_workers = 8
# Change distro_tags as fedora-release version gets bumped
distro_tags = cpe:/o:fedoraproject:fedora:29 Twenty Nine
hash_packages = True

View file

@ -1,8 +0,0 @@
[defaults]
configdir = ./configs/
buildhost = https://koji.fedoraproject.org/kojihub
repodir = file:///mnt/koji
use_sqlite = True
use_repoview = False
workdir = /var/tmp/releng-mash/

View file

@ -1,115 +0,0 @@
# Don't mess with things already moved
volume fedora_koji_archive00 :: skip
hastag do-not-archive-yet :: skip
# Don't move modular builds yet
hashtag f*modular* :: skip
#match release *.el[5678] *.el[5678]_[0-9] *.el[5678]_1[0-9] :: skip
# stuff we're not ready to move yet
#buildtag RHEL-[5678]* rhel-[5678]* *-rhel-[5678]* dist-[567]E* :: skip
#buildtag *-[567]E *-[567]E-* :: skip
#hastag RHEL-[5678]* rhel-[5678]* *-rhel-[5678]* dist-[567]E* :: skip
#hastag *-[567]E *-[567]E-* :: skip
buildtag dist-fc6* :: fedora_koji_archive00
imported && hastag dist-fc6* :: fedora_koji_archive00
buildtag dist-fc7* :: fedora_koji_archive00
hastag f7-final :: fedora_koji_archive00
hastag f7-test4 :: fedora_koji_archive00
imported && hastag dist-fc7* :: fedora_koji_archive00
imported && hastag fe7-merge :: fedora_koji_archive00
buildtag dist-f8* :: fedora_koji_archive00
hastag dist-f8* :: fedora_koji_archive00
hastag f8-final :: fedora_koji_archive00
buildtag dist-f9* :: fedora_koji_archive00
hastag dist-f9* :: fedora_koji_archive00
hastag f9-alpha :: fedora_koji_archive00
hastag f9-betal :: fedora_koji_archive00
hastag f9-final :: fedora_koji_archive00
hastag f9-build-cutoff :: fedora_koji_archive00
hastag f9-cutoff :: fedora_koji_archive00
buildtag dist-f10* :: fedora_koji_archive00
hastag dist-f10* :: fedora_koji_archive00
hastag f10-alpha :: fedora_koji_archive00
hastag f10-betal :: fedora_koji_archive00
hastag f10-final :: fedora_koji_archive00
hastag f10-kernel :: fedora_koji_archive00
buildtag dist-f11* :: fedora_koji_archive00
hastag dist-f11* :: fedora_koji_archive00
hastag f11* :: fedora_koji_archive00
buildtag dist-f12* :: fedora_koji_archive00
hastag dist-f12* :: fedora_koji_archive00
hastag f12* :: fedora_koji_archive00
buildtag dist-f13* :: fedora_koji_archive00
hastag dist-f13* :: fedora_koji_archive00
hastag f13* :: fedora_koji_archive00
buildtag dist-f14* :: fedora_koji_archive00
hastag dist-f14* :: fedora_koji_archive00
hastag f14* :: fedora_koji_archive00
buildtag dist-f15* :: fedora_koji_archive00
hastag dist-f15* :: fedora_koji_archive00
hastag f15* :: fedora_koji_archive00
buildtag dist-f16* :: fedora_koji_archive00
hastag dist-f16* :: fedora_koji_archive00
hastag f16* :: fedora_koji_archive00
buildtag dist-f17* :: fedora_koji_archive00
hastag dist-f17* :: fedora_koji_archive00
hastag f17* :: fedora_koji_archive00
buildtag dist-f18* :: fedora_koji_archive00
hastag dist-f18* :: fedora_koji_archive00
hastag f18* :: fedora_koji_archive00
buildtag dist-f19* :: fedora_koji_archive00
hastag dist-f19* :: fedora_koji_archive00
hastag f19* :: fedora_koji_archive00
buildtag dist-f20* :: fedora_koji_archive00
hastag dist-f20* :: fedora_koji_archive00
hastag f20* :: fedora_koji_archive00
buildtag dist-f21* :: fedora_koji_archive01
hastag dist-f21* :: fedora_koji_archive01
hastag f21* :: fedora_koji_archive01
buildtag dist-f22* :: fedora_koji_archive01
hastag dist-f22* :: fedora_koji_archive01
hastag f22* :: fedora_koji_archive01
buildtag dist-f23* :: fedora_koji_archive01
hastag dist-f23* :: fedora_koji_archive01
hastag f23* :: fedora_koji_archive01
buildtag dist-f24* :: fedora_koji_archive01
hastag dist-f24* :: fedora_koji_archive01
hastag f24* :: fedora_koji_archive01
buildtag dist-f25* :: fedora_koji_archive01
hastag dist-f25* :: fedora_koji_archive01
hastag f25* :: fedora_koji_archive01
buildtag dist-f26* :: fedora_koji_archive01
hastag dist-f26* :: fedora_koji_archive01
hastag f26* :: fedora_koji_archive01
buildtag dist-f27* :: fedora_koji_archive02
hastag dist-f27* :: fedora_koji_archive02
hastag f27* :: fedora_koji_archive02
buildtag dist-f28* :: fedora_koji_archive02
hastag dist-f28* :: fedora_koji_archive02
hastag f28* :: fedora_koji_archive02

View file

@ -1,35 +0,0 @@
Hi all,
Per the Fedora Linux fN schedule [1] we have started a mass rebuild on
YYYY-MM-DD for Fedora fN. We are running this mass rebuild for the
changes listed in:
https://pagure.io/releng/issues?status=Open&tags=mass+rebuild
This mass rebuild will be done in a side tag (fN-rebuild) and merged
when completed.
Failures can be seen
https://kojipkgs.fedoraproject.org/mass-rebuild/fN-failures.html
<https://kojipkgs.fedoraproject.org/mass-rebuild/fN-failures.html>
Things still needing rebuilding
https://kojipkgs.fedoraproject.org/mass-rebuild/fN-need-rebuild.html
<https://kojipkgs.fedoraproject.org/mass-rebuild/fN-need-rebuild.html>
FTBFS (Fails To Build From Source) bugs will be filed shortly after the
mass rebuild is complete.
Please be sure to let releng know if you see any bugs in the reporting.
You can contact releng in the #releng:fedoraproject.org room on Matrix,
or by dropping an email to our list [2] or filing an issue in pagure [3].
This email template is also in https://pagure.io/releng if you wish to
propose improvements or changes to it.
Regards,
Fedora Release Engineering
[1] https://fedorapeople.org/groups/schedule/f-fN/f-fN-key-tasks.html
[2] https://lists.fedoraproject.org/admin/lists/rel-eng.lists.fedoraproject.org/
[3] https://pagure.io/releng/

View file

@ -1,29 +0,0 @@
Hi all,
Per the Fedora Linux fN schedule [1] we started a mass rebuild for
Fedora Linux fN on YYYY-MM-DD. We did a mass rebuild for Fedora Linux fN
for:
<list changes that need mass rebuild here>
https://fedoraproject.org/wiki/Changes/NAME
The mass rebuild was done in a side tag (fN-rebuild) and moved over to
fN. Failures can be seen
https://kojipkgs.fedoraproject.org/mass-rebuild/fN-failures.html
Things still needing rebuilding
https://kojipkgs.fedoraproject.org/mass-rebuild/fN-need-rebuild.html
X builds have been tagged into fN, there is currently Y failed builds
that need to be addressed by the package maintainers. FTBFS bugs will be
filed shortly.
Please be sure to let releng know if you see any bugs in the reporting.
You can contact releng in the #releng:fedoraproject.org room on Matrix,
or by dropping an email to our list [2] or filing an issue in pagure [3].
Regards,
Fedora Release Engineering
[1] https://fedorapeople.org/groups/schedule/f-fN/f-fN-key-tasks.html
[2] https://lists.fedoraproject.org/admin/lists/rel-eng.lists.fedoraproject.org/
[3] https://pagure.io/releng/

View file

@ -1,24 +0,0 @@
Hi All,
Fedora Linux fN has now been branched, please be sure to do a
'git fetch -v' to pick up the new branch. As an additional reminder,
rawhide/fN has been completely isolated from previous releases, which
means that anything you do for fN you also have to do in the rawhide
branch and do a build there. There will be a Fedora Linux fN compose and
it will appear in [1] once complete.
Bodhi is currently enabled in the fN branch like it is for rawhide, with
automatic update creation. At the hit Beta change freeze point in the
Fedora Linux fN schedule [2] updates-testing will be enabled and manual
bodhi updates will be required as in all stable releases.
fN/branched release is frozen right now until we get a successful
compose, expect that your fN builds won't be available immediately.
Thanks for understanding.
Regards,
Fedora Release Engineering
[1] https://dl.fedoraproject.org/pub/fedora/linux/development/fN/
[2] https://fedorapeople.org/groups/schedule/f-fN/f-fN-key-tasks.html

View file

@ -1,40 +0,0 @@
Fedora Linux fN Beta Released
------------------------------------------
The Fedora Project is pleased to announce the immediate availability of
Fedora Linux fN Beta, the next step towards our planned Fedora Linux fN
release at the end of MONTH.
Download the prerelease from our Get Fedora site:
* Get Fedora Linux fN Beta Workstation: https://getfedora.org/workstation/download/
* Get Fedora Linux fN Beta Server: https://getfedora.org/server/download/
* Get Fedora Linux fN Beta IoT: https://getfedora.org/iot/download/
* Get Fedora Linux fN Beta CoreOS: <LINK NEEDED>
* Get Fedora Linux fN Beta Cloud: <LINK NEEDED>
Or, check out one of our popular variants, including KDE Plasma, Xfce,
and other desktop environments:
* Get Fedora Linux fN Beta Spins: https://spins.fedoraproject.org/prerelease
* Get Fedora Linux fN Beta Labs: https://labs.fedoraproject.org/prerelease
## Beta Release Highlights
<insert talking points here>
For more details about the release, read the full announcement at
* https://fedoramagazine.org/announcing-fedora-fN-beta/
or look for the prerelease pages in the download sections at
* https://getfedora.org/
Since this is a Beta release, we expect that you may encounter bugs or
missing features. To report issues encountered during testing, contact
the Fedora QA team via the test@lists.fedoraproject.org mailing list or
in #fedora-qa on Libera Chat or the #qa:fedoraproject.org Matrix room.
Regards,
Fedora Release Engineering

View file

@ -1,21 +0,0 @@
Hi all,
Today, YYYY-MM-DD, we will be removing inactive packagers
from the packager group.
This is in accordance with the FESCo policy on inactive packagers:
https://docs.fedoraproject.org/en-US/fesco/Policy_for_inactive_packagers/
If the removed user is 'main admin' for a package, this package
will be orphaned. If there are co-maintainers for the package,
one of them should take the role of 'main admin',
by clicking "✋ Take" on
`https://src.fedoraproject.org/rpms/<package>`".
Otherwise any packager may take the package while it's orphaned.
After 6 weeks, the package will be retired.
After another 8 weeks, a new review is needed to unretire it.
see https://docs.fedoraproject.org/en-US/fesco/Policy_for_orphan_and_retired_packages/
for more details.
Packages that have been orphaned are:

View file

@ -1,19 +0,0 @@
Hello all,
Fedora Linux NN will go end of life for updates and support on
YYYY-MM-DD.
No more updates of any kind, including security updates or security
announcements, will be available for Fedora Linux NN after this
date. No pending updates for Fedora Linux NN will be pushed to stable.
Fedora Linux NN+1 will continue to receive updates until approximately
one month after the release of Fedora Linux NN+3. The maintenance
schedule of Fedora Linux releases is documented here[1]. The docs also
contain instructions[2] on how to upgrade from a previous release of
Fedora Linux to a version receiving updates.
Regards,
Fedora Release Engineering
[1] https://docs.fedoraproject.org/en-US/releases/lifecycle/#_maintenance_schedule
[2] https://docs.fedoraproject.org/en-US/quick-docs/upgrading-fedora-new-release/

Some files were not shown because too many files have changed in this diff Show more