toddlers/toddlers.toml.example
Jakub Kadlcik 5dab177ea4
All checks were successful
CI / flake8 (pull_request) Successful in 2m5s
CI / format (pull_request) Successful in 2m9s
CI / mypy (pull_request) Successful in 2m19s
CI / python3.11 (pull_request) Successful in 2m20s
CI / python3.12 (pull_request) Successful in 1m42s
CI / python3.13 (pull_request) Successful in 2m25s
CI / python3.14 (pull_request) Successful in 2m27s
Add a new toddler ApprovedPackageProcessor
See https://discussion.fedoraproject.org/t/fedora-package-review-process-reimagined/198109
2026-10-02 10:10:15 +02:00

427 lines
14 KiB
TOML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# A basic configuration for Fedora's message broker, using the example callback
# which simply prints messages to standard output.
#
# This file is in the TOML format.
amqp_url = "amqps://fedora:@rabbitmq.fedoraproject.org/%2Fpublic_pubsub"
callback = "toddlers.runner:RunningToddler"
[tls]
ca_cert = "/etc/fedora-messaging/cacert.pem"
keyfile = "/etc/fedora-messaging/fedora-key.pem"
certfile = "/etc/fedora-messaging/fedora-cert.pem"
[client_properties]
app = "Example toddlers"
app_url = "https://pagure.io/fedora-infra/toddlers"
[exchanges."amq.topic"]
type = "topic"
durable = true
auto_delete = false
arguments = {}
# Queue names *must* be in the normal UUID format: run "uuidgen" and use the
# output as your queue name. If your queue is not exclusive, anyone can connect
# and consume from it, causing you to miss messages, so do not share your queue
# name. Any queues that are not auto-deleted on disconnect are garbage-collected
# after approximately one hour.
#
# If you require a stronger guarantee about delivery, please talk to Fedora's
# Infrastructure team.
[queues.00000000-0000-0000-0000-000000000000]
durable = true
auto_delete = false
exclusive = false
arguments = {}
[[bindings]]
queue = "00000000-0000-0000-0000-000000000000"
exchange = "amq.topic"
routing_keys = ["#"] # This is dynamically generated in the code
[consumer_config]
# Comment out or remove this line if you want to enable the debug toddler.
# Or add more toddlers to the list (using their name) if you want to disable
# more of them.
blocked_toddlers = ["debug"]
# Caching. The default is in-memory caching, here is an example for memcached.
# [consumer_config.cache]
# backend = "dogpile.cache.pylibmc"
# expiration_time = 3600
# [consumer_config.cache.arguments]
# url = ["127.0.0.1"]
# binary = true
# behaviors = {"tcp_nodelay": true, "ketama": true}
[consumer_config.default]
# Configuration common to all toddlers.
#
# You can override any of these in the section of a particular toddler, e.g.:
#
# [consumer_config.default]
# somekey = "somevalue"
#
# [consumer_config.default.subsection]
# key1 = "value1"
# key2 = "value2"
#
# ...
#
# [consumer_config.sometoddler]
# somekey = "someothervalue"
#
# [consumer_config.sometoddler.subsection]
# key2 = "othervalue2"
# Configuration used when sending notifications:
mail_server = "bastion.fedoraproject.org"
admin_email = "admin@fedoraproject.org"
# Whether or not to use fasjson
fasjson = false
# Account to use to connect to FAS
fas_url = "https://fasjson.fedoraproject.org/"
fas_username = "FAS username"
fas_password = "FAS password for that account"
# Account to use to connect to bugzilla
bugzilla_url = "https://bugzilla.redhat.com"
bugzilla_api_key = "API Key generated in Bugzilla instance"
bugzilla_group = "fedora_contrib"
# Base URL for the Koji build system
koji_url = "https://koji.fedoraproject.org"
# Credentials for koji session
principal = "insert_principal"
keytab = "path_to_file"
# Base URL for the Koji package db
kojipkgs_url = "https://kojipkgs.fedoraproject.org"
# Base URL for Bodhi
bodhi_url = "https://bodhi.fedoraproject.org"
# Temp folder to use for toddlers temp files
temp_folder = "/var/tmp"
# Env vars for bootstraping ipalib API
KRB5_CONF = "path_to_krb5.conf"
IPA_CONFDIR = "path_to_dir/synced_folders/ipa/ipa"
# Account to use to connect to Pagure-as-dist-git
dist_git_url = "https://src.fedoraproject.org"
dist_git_token_seed = "private random string to change"
dist_git_token = "private random string to change"
# URL to lookaside cache
lookaside_url = "https://src.fedoraproject.org/lookaside"
# Configuration file storing all the email overrides in the form of:
# "foo@bar.com" = "bar@foo.org"
# This is the same format as used by the distgit_bugzilla_sync cron/app
email_overrides_file = "/path/to/email_overrides.toml"
# Path to temporary directory
# Will be used for creating temporary files and directories
temp_dir = "path/to/temporary/folder"
[consumer_config.default.pdc_config]
# Configuration to talk to PDC, as understood by pdc-client.
server = "https://pdc.fedoraproject.org/rest_api/v1/"
ssl_verify = false # Enable if using a self-signed cert
# XXX - getting the token is a bit of a pain, but here's a walk through
# 1) go to https://pdc.fedoraproject.org/ in your browser and login.
# 2) go to https://pdc.fedoraproject.org/rest_api/v1/auth/token/obtain/
# 3) open up the devtools console in your browser, and find the request for the current page.
# 4) right click to open a context menu and select 'copy as cURL'
# 5) paste that into a terminal. It should have your saml cookie.
# 6) before hitting enter, edit the command to add the following option
# -H 'Accept: application/json' # to tell the API you want data
# 7) the command should print out your token.
token = "PUT_HERE_THE_TOKEN_OBTAINED_MANUALLY"
[consumer_config.flag_ci_pr]
[consumer_config.flag_commit_build]
[consumer_config.distgit_bugzilla_sync]
# List of accounts we do not want to report about
ignorable_accounts = ["packagerbot", "zuul"]
# Email of default QA contact for bugzilla tickets
# default_qa_contact = "extras-qa@fedoraproject.org"
# Admin addresses to notify
notify_admins = [
"root@localhost.localdomain",
]
# PDC types mapping for distgit_bugzilla_sync toddler
[consumer_config.distgit_bugzilla_sync.pdc_types]
"rpms" = "rpm"
"modules" = "module"
"container" = "container"
# Bugzilla products informations for Fedora
[consumer_config.distgit_bugzilla_sync.products]
[consumer_config.distgit_bugzilla_sync.products.Fedora]
branch_regex = '^((f\d+)|rawhide)$'
namespace = "rpms"
versions = ["rawhide", "33", "32", "31"]
[consumer_config.distgit_bugzilla_sync.products."Fedora EPEL"]
branch_regex = '^epel\d+$'
versions = ["epel9", "epel8"]
[consumer_config.packager_bugzilla_sync]
# List of accounts we do not want to report about
ignorable_accounts = ["packagerbot", "zuul"]
[consumer_config.pdc_retired_packages]
file_check_url = "https://src.fedoraproject.org/%(namespace)s/%(repo)s/blob/%(branch)s/f/%(file)s"
[consumer_config.pdc_import_compose]
old_composes_url = "https://kojipkgs.fedoraproject.org/compose/"
[consumer_config.check_email_overrides]
email_overrides_url = "https://pagure.io/fedora-infra/ansible/raw/master/f/roles/openshift-apps/distgit-bugzilla-sync/templates/email_overrides.toml"
[consumer_config.clean_retired_packages]
[consumer_config.koji_block_retired]
[consumer_config.packagers_without_bugzilla]
ignorable_namespaces = ["tests"]
[consumer_config.pdc_update_critpath]
critpath_groups = [
'@core', '@critical-path-apps', '@critical-path-base',
'@critical-path-gnome', '@critical-path-kde', '@critical-path-lxde',
'@critical-path-xfce'
]
primary_arches = ['armhfp', 'aarch64', 'x86_64']
alternate_arches = ['ppc64le','s390x']
releases = ['rawhide', '33', '32']
fedora_dl_baseurl = 'http://dl.fedoraproject.org/pub/fedora/linux/'
fedora_dl_alternateurl = 'http://dl.fedoraproject.org/pub/fedora-secondary/'
# Package excluded
excludes = [ 'tzdata' ]
[consumer_config.pdc_update_critpath.releasepath]
devel = 'development/rawhide/Everything/$basearch/os/'
rawhide = 'development/rawhide/Everything/$basearch/os/'
33 = 'releases/33/Everything/$basearch/os/'
32 = 'releases/32/Everything/$basearch/os/'
31 = 'releases/31/Everything/$basearch/os/'
[consumer_config.pdc_update_critpath.updatepath]
devel = ''
rawhide = ''
33 = 'updates/33/$basearch/'
32 = 'updates/32/$basearch/'
31 = 'updates/31/$basearch/'
[consumer_config.pdc_update_critpath.fakearch]
i386 = 'i686'
x86_64 = 'x86_64'
ppc64 = 'ppc64'
ppc = 'ppc64'
armhfp = 'armv7hl'
aarch64 = 'aarch64'
ppc64le = 'ppc64le'
s390x = 's390x'
# Configuration section for scm_request_processor
[consumer_config.scm_request_processor]
# FAS username of the user that will comment on behalf of toddler
forgejo_user = "releng-bot"
forgejo_url = "https://forge.fedoraproject.org"
# Token needs to have issue read/write on the scm-requests project
forgejo_api_key = "API token for forgejo"
project_namespace = "releng/fedora-scm-requests"
# Org team whose members are pinged / allowed to @releng-bot valid
validator_team = "scm-validators"
# Labels applied when closing tickets (create these on the Forge repo)
label_invalid = "Invalid"
label_processed = "Processed"
# Monitoring choices for release-monitoring.org
monitor_choices = ['no-monitoring', 'monitoring', 'monitoring-with-scratch']
# Text for the ping if the ticket needs to be manually verified
ping_comment = "This request wants to skip bugzilla validation! {maintainers} could you check if this is correct? If yes, please respond to this ticket with 'valid' comment"
# This is a OIDC token that allows forgejo_user to push changes to dist git
oidc_distgit_token = "OIDC token used to push git changes using forgejo_user"
# Anitya access token and endpoint for managing project in release-monitoring
anitya_access_token = "API token for Anitya"
anitya_endpoint = "https://release-monitoring.org"
# Configuration section for approved_package_processor
[consumer_config.approved_package_processor]
forgejo_url = "https://forge.fedoraproject.org"
# Token needs to have issue read/write on the scm-requests project
forgejo_api_key = "API token for forgejo"
scm_requests_repo_owner = "releng"
scm_requests_repo_name = "fedora-scm-requests"
package_review_repo_owner = "packaging"
package_review_repo_name = "review"
# Obtain the config at https://copr.fedorainfracloud.org/api/
copr_config = "~/.config/copr"
copr_owner = "@fedora-review"
# Pagure mapping to bugzilla
[consumer_config.scm_request_processor.pagure_namespace_to_component]
rpms = 'Package Review'
container = 'Container Review'
modules = 'Module Review'
test-modules = 'Module Review'
[consumer_config.scm_request_processor.pagure_namespace_to_product]
rpms = ['Fedora', 'Fedora EPEL']
container = ['Fedora Container Images']
modules = ['Fedora Modules']
test-modules = ['Fedora']
# SLAS configuration for scm_request_processor
[consumer_config.scm_request_processor.branch_slas]
[consumer_config.scm_request_processor.branch_slas.rawhide]
rawhide = '2222-01-01'
[consumer_config.scm_request_processor.branch_slas.stable]
rawhide = '2222-01-01'
[consumer_config.scm_request_processor.branch_slas.main]
rawhide = '2222-01-01'
[consumer_config.scm_request_processor.branch_slas.epel8]
stable_api = '2029-05-31'
security_fixes = '2029-05-31'
bug_fixes = '2029-05-31'
[consumer_config.scm_request_processor.branch_slas.epel8-playground]
stable_api = '2029-05-31'
security_fixes = '2029-05-31'
bug_fixes = '2029-05-31'
[consumer_config.scm_request_processor.branch_slas.epel8-next]
stable_api = '2024-05-31'
security_fixes = '2024-05-31'
bug_fixes = '2024-05-31'
[consumer_config.scm_request_processor.branch_slas.epel7]
stable_api = '2024-06-30'
security_fixes = '2024-06-30'
bug_fixes = '2024-06-30'
[consumer_config.scm_request_processor.branch_slas.f35]
security_fixes = '2022-11-26'
bug_fixes = '2022-11-26'
[consumer_config.scm_request_processor.branch_slas.f34]
security_fixes = '2022-03-08'
bug_fixes = '2022-03-08'
# Configuration section for unretire_packages (same Forge ticket queue as scm_request)
[consumer_config.unretire_packages]
# FAS username of the user that will comment / commit on behalf of toddler
forgejo_user = "releng-bot"
forgejo_url = "https://forge.fedoraproject.org"
# Token needs to have issue read/write on the scm-requests project
forgejo_api_key = "API token for forgejo"
project_namespace = "releng/fedora-scm-requests"
# Labels applied when closing tickets (create these on the Forge repo)
label_invalid = "Invalid"
label_processed = "Processed"
# This is a OIDC token that allows forgejo_user to push changes to dist git
oidc_distgit_token = "OIDC token used to push git changes using forgejo_user"
[consumer_config.pagure_fas_groups_sync]
pagure_url = "https://pagure.io"
# Token needs to have following permissions:
# - adding_member_to_group
# - removing_member_from_group
pagure_api_key = "API token for pagure"
[consumer_config.pagure_fas_groups_sync.group_map]
#Mapping of FAS groups to Pagure groups
infra-sig = 'fedora-infra'
[consumer_config.cleaning_packager_groups]
watched_groups = ["packager"]
ignored_groups = ["sysadmin-main"]
notify_emails = [
"root@localhost.localdomain",
]
[consumer_config.ci_resultsdb_listener]
resultsdb_username = "username"
resultsdb_password = "password"
resultsdb_url = "http://resultsdb-api.resultsdb.svc.cluster.local:5001/api/v2.0"
[qos]
prefetch_size = 0
prefetch_count = 25
[log_config]
version = 1
disable_existing_loggers = true
[log_config.formatters.simple]
format = "[%(levelname)s %(name)s] %(message)s"
[log_config.handlers.console]
class = "logging.StreamHandler"
formatter = "simple"
stream = "ext://sys.stdout"
[log_config.loggers.fedora_messaging]
level = "INFO"
propagate = false
handlers = ["console"]
[log_config.loggers.twisted]
level = "INFO"
propagate = false
handlers = ["console"]
[log_config.loggers.pika]
level = "WARNING"
propagate = false
handlers = ["console"]
# Toddlers logger, feel free to bump the level to DEBUG if you need to
[log_config.loggers.toddlers]
level = "INFO"
propagate = false
handlers = ["console"]
[log_config.root]
level = "ERROR"
handlers = ["console"]
# Configuration section for check_commit_rights
[consumer_config.check_commit_rights]
exclude_users = []
notify_emails = [
"root@localhost.localdomain",
]
# Configuration section for distgit_commit_processor
[consumer_config.distgit_commit_processor]
mail_from = "notifications@fedoraproject.org"
mail_to = "scm-commits@lists.fedoraproject.org"
# The templates are passed to str.format() => no quotes in dictionary keys!
mail_subject_tmpl = "{message.summary}"
mail_content_tmpl = """Notification time stamped {headers[sent-at]}
{message}
{commit[url]}
"""