cki_tools.bugzilla_components
Overview
The bugzilla-components service provides a web UI for searching the RHEL
userspace Bugzilla component data maintained in the
bugzilla-data/components
repository: assignees, sustaining engineers, QA contacts, SST pools and
assigned teams for every component of every release (RHEL6 through RHEL11,
RHIVOS1, RHIVOS2).
The service replaces two earlier tools: the component_webview NiceGUI
application in kernel-workflow and the component_jsonify artifact pipeline
that published a monolithic components.json.
How it works
- On the first request, the service downloads the repository archive from the GitLab API (about 1.6 MB, anonymous, TLS-verified) and parses all component files into an in-memory index (~22,000 records, parsed in under a second).
- The index is refreshed automatically at 02:00 and 19:00
America/New_York. Refreshes build a new index and swap it in atomically. - The web UI is server-rendered Flask + Jinja with htmx (vendored) for search-as-you-type. It works without JavaScript as a plain form.
- Search blends two scorers from
rapidfuzz: JaroWinkler for
typo tolerance (
kernalfindskernel) and partial ratio for substring matches.
Configuration
| Variable | Description |
|---|---|
SENTRY_DSN |
Sentry DSN (optional) |
BUGZILLA_COMPONENTS_ARCHIVE_URL |
Override the archive URL (defaults to the bugzilla-data components repository) |
CLI Usage
# start the web server
python3 -m cki_tools.bugzilla_components.cli serve --host 0.0.0.0 --port 8080
# rebuild the index once and print record counts
python3 -m cki_tools.bugzilla_components.cli refresh
Local run
podman run --rm --publish 8080:8080 \
quay.io/cki/cki-bugzilla-components:production
History
Replaces component_webview (kernel-workflow, Apache-2.0, Derek Barbosa,
with contributions from Jarod Wilson, Michael Hofmann and Charles
Haithcock) and component_jsonify (Derek Barbosa). This service is a
clean rewrite; no code was carried over.