profiler fix #2246
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!2246
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2246/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: #1666
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/1666
Original created: 2025-09-28T22:31:06Z
Original updated: 2025-12-08T06:55:34Z
Original head: carverauto/serviceradar:update/profiler_build_rpm_fix
Original base: main
Original merged: 2025-09-28T22:32:01Z by @mfreeman451
PR Type
Bug fix
Description
Install eBPF build dependencies (clang, llvm, libbpf)
Add bpf-linker cargo tool installation
Copy workspace cargo configuration for better builds
Diagram Walkthrough
File Walkthrough
Dockerfile.rpm.rust.profiler
Add eBPF dependencies and cargo configdocker/rpm/Dockerfile.rpm.rust.profiler
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1666#issuecomment-3344343973
Original created: 2025-09-28T22:31:24Z
PR Reviewer Guide 🔍
Here are some key observations to aid the review process:
Reproducibility
Installing latest clang/llvm/libbpf from system repos without pinning versions can lead to non-reproducible builds; consider pinning versions or using a specific repo snapshot.
Cache Efficiency
Installing cargo tool 'bpf-linker' after system deps but before copying sources is good; however, consider moving it even earlier and using '--root /usr/local' and adding it to PATH explicitly to avoid layer invalidation; also evaluate using 'cargo binstall' or caching CARGO_HOME.
Missing Tools
eBPF builds may require 'bpftool' and kernel headers matching the image kernel; verify 'kernel-headers' is sufficient for build stage or add 'bpftool' if used by the build scripts.
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1666#issuecomment-3344345749
Original created: 2025-09-28T22:32:09Z
PR Code Suggestions ✨
Explore these optional code suggestions:
Separate RUN commands for better caching
Separate the
dnfpackage installation and thecargo installcommand into twodistinct
RUNinstructions. This will improve Docker's layer caching and lead tofaster build times.
docker/rpm/Dockerfile.rpm.rust.profiler [23-25]
Suggestion importance[1-10]: 6
__
Why: The suggestion correctly applies a Docker best practice to improve layer caching, which will optimize future build times by separating commands with different change frequencies.