fixing kong build for rpm #2239
No reviewers
Labels
No labels
1week
2weeks
Failed compliance check
IP cameras
NATS
Possible security concern
Review effort 1/5
Review effort 2/5
Review effort 3/5
Review effort 4/5
Review effort 5/5
UI
aardvark
accessibility
amd64
api
arm64
auth
back-end
bgp
blog
bug
build
checkers
ci-cd
cleanup
cnpg
codex
core
dependencies
device-management
documentation
duplicate
dusk
ebpf
enhancement
eta 1d
eta 1hr
eta 3d
eta 3hr
feature
fieldsurvey
github_actions
go
good first issue
help wanted
invalid
javascript
k8s
log-collector
mapper
mtr
needs-triage
netflow
network-sweep
observability
oracle
otel
plug-in
proton
python
question
reddit
redhat
research
rperf
rperf-checker
rust
sdk
security
serviceradar-agent
serviceradar-agent-gateway
serviceradar-web
serviceradar-web-ng
siem
snmp
sysmon
topology
ubiquiti
wasm
wontfix
zen-engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
carverauto/serviceradar!2239
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2239/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from GitHub pull request.
Original GitHub pull request: #1659
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/1659
Original created: 2025-09-24T22:49:30Z
Original updated: 2025-09-24T22:51:01Z
Original head: carverauto/serviceradar:updates/kong_updates
Original base: main
Original merged: 2025-09-24T22:50:58Z by @mfreeman451
PR Type
Bug fix, Enhancement
Description
Fix Kong package channel derivation for RPM builds
Add systemd-rpm-macros dependency for RPM packaging
Support "none" build method in package setup
Add OCSF alignment documentation and BuildBuddy config
Diagram Walkthrough
File Walkthrough
fetch-kong-artifacts.sh
Fix Kong package channel derivation logicscripts/fetch-kong-artifacts.sh
derive_channel()function to properly format Kong package channelsDockerfile.rpm.proton
Fix RPM Docker build dependenciesdocker/rpm/Dockerfile.rpm.proton
systemd-rpm-macrospackage dependency for RPM buildssetup-package.sh
Support "none" build method in packagingscripts/setup-package.sh
SRQL_OCSF_ALIGNMENT_PLAN.md
Add OCSF alignment plan documentationSRQL_OCSF_ALIGNMENT_PLAN.md
architecture
buildbuddy.yaml
Add BuildBuddy CI/CD configurationbuildbuddy.yaml
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1659#issuecomment-3330948615
Original created: 2025-09-24T22:50:02Z
PR Reviewer Guide 🔍
Here are some key observations to aid the review process:
Possible Issue
The derived channel concatenates major and minor (e.g., 3.11 -> 311) but does not prepend the expected 'gateway-' or similar prefix used by Kong package channels; verify downstream usage expects just digits vs. full channel name.
Logic Order
The new 'none' build_method branch short-circuits before 'external'; confirm no configs rely on empty or 'none' falling through to external logic and that required variables (e.g., output paths) are still handled when skipping.
Build Reproducibility
Adding 'systemd-rpm-macros' and keeping 'policycoreutils-python-utils' without fixed versions may affect reproducibility; consider pinning or documenting required versions for Rocky 9.
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1659#issuecomment-3330950746
Original created: 2025-09-24T22:51:00Z
PR Code Suggestions ✨
Explore these optional code suggestions:
Pin container image to a specific version
In
buildbuddy.yaml, pin thecontainer-imageto a specific version or digestinstead of using the
:latesttag to ensure build reproducibility.buildbuddy.yaml [20]
Suggestion importance[1-10]: 7
__
Why: The suggestion addresses a common anti-pattern in CI/CD configurations. Pinning the container image version instead of using
:latestis a crucial best practice for ensuring reproducible and stable builds.Handle version strings with 'v' prefix
In the
derive_channelfunction, make the script more robust by stripping anyleading 'v' from the version string before parsing it.
scripts/fetch-kong-artifacts.sh [12-17]
Suggestion importance[1-10]: 6
__
Why: This suggestion correctly identifies a potential bug where version strings with a 'v' prefix would be parsed incorrectly and provides a simple, robust fix, improving the script's reliability.