Skip to content

feat: add the strace debugging tool to the package factory - #749

Merged
2 commits merged into
projectbluefin:mainfrom
codebymarshall:feat/import-strace
Oct 28, 2026
Merged

2 commits merged into
projectbluefin:mainfrom
codebymarshall:feat/import-strace

Conversation

@codebymarshall

Copy link
Copy Markdown
Contributor

Summary: This adds strace, a tool that shows what a running program is asking the operating system to do. It's usually the first thing you reach for when an app freezes. The Utah desktop has no way to install it today. perf, a tool that shows where a program spends its CPU time, is not included: Fedora builds it as part of the Linux kernel package, so adding it would mean carrying the whole kernel recipe here, and that needs a maintainer's call.

What I need from you: Review and merge the strace import, then decide whether this factory should carry Fedora's kernel recipe to get perf.


What

  • Imports the strace recipe from Fedora dist-git, using tools/import_rawhide.py strace. That pins rawhide commit 6c23f132b92b0dd1b83e7264441be163e1bb4743 in packages/strace/.hummingbird-upstream.json.
  • Locks the source in config/upstream-sources.json: https://strace.io/files/7.3/strace-7.3.tar.xz, SHA-512 177f6de7…a5351f6, which matches packages/strace/sources. The Fedora lookaside is only listed under fallback_urls. I downloaded both URLs and they match the pin.
  • Regenerated .packit.yaml (render_packit_config.py --write) and docs/architecture.md (render_architecture_counts.py --write).
  • strace is not on the factory build backlog, so the backlog snapshot doesn't change.
  • Skill write-back: docs/contributing.md now notes that perf has no dist-git of its own. It is %package -n perf inside kernel.spec (confirmed: src.fedoraproject.org/rpms/perf returns 404).

Not in this PR

  • perf: Fedora builds it from kernel.spec, so it shares the kernel's version and release. Carrying it here means importing and building the full kernel recipe. That is a scope and build-cost decision for maintainers, not a plain import.
  • bpftrace: the issue marks it optional. It depends on LLVM/clang and bcc. I left it for a follow-up once the image side (Ship (or make one command away) gdb, sysprof-cli and elfutils for diagnosing shell hangs utah#920) decides how it will ship diagnostic tools.

Evidence

  • just check: all gates pass. pytest: 1379 passed, 2 skipped.
  • The host has no podman or docker, so I couldn't run bootstrap_upstream_sources.py in the pinned packit container. Instead I locked the source by hand, using merge_candidates, following docs/contributing.md. pre-commit isn't installed on this host either, so CI will run the hooks.

Refs #625. perf (needs the kernel-recipe decision) and the optional bpftrace remain open.

🤖 Generated with Claude Code

— hive: backend=claude model=claude-opus-5-5

Closes #625


🐝 Hive Agent: contributor | SHA: f1106f58

Import the strace recipe from Fedora dist-git (commit 6c23f132) and lock
its upstream release, strace 7.3 from strace.io, with the Fedora
lookaside as fallback. Regenerate the Packit config and architecture
counts.

perf is not imported: Fedora builds it from kernel.spec, so it needs a
decision about carrying the kernel recipe. bpftrace is optional in the
issue and pulls LLVM/clang and bcc. Documented the perf case in
docs/contributing.md.

Refs projectbluefin#625

Hive-Run: projectbluefin#625
Hive-Plan: import-rawhide-package
Hive-Spec: utah-packages-625#strace

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: codebymarshall <codebymarshall@users.noreply.github.com>
@hivecommons-hive hivecommons-hive Bot added author/clanker A contributor's own hive authored this PR under their login dco All commits are DCO signed-off role/contributor Author holds the contributor tier in this hive's registry; a human must lgtm/approve stage/050-review-pending Review swarm requested; awaiting a verdict for the current head stage/072-returned-to-contributor Contributor PR: CI red, changes requested or conflicting; diagnosis posted, author must act and removed stage/050-review-pending Review swarm requested; awaiting a verdict for the current head labels Oct 27, 2026
@hivecommons-hive

Copy link
Copy Markdown
Contributor

@codebymarshall this PR is back in your court (stage/072-returned-to-contributor). The hive will not merge it until the head changes.

Review asks:

  • the branch conflicts with the base and needs a rebase

Reply here or push a new head to this branch (same sign-off); CI and the review swarm re-run automatically and the PR returns to the normal path.

Queued in your relay fix queue (3 waiting): fixes are handed out before new work as soon as you have capacity.

# Conflicts:
#	config/upstream-sources.json
#	docs/architecture.md
@codebymarshall

Copy link
Copy Markdown
Contributor Author

hive-base-moved: merged current main tip da68d0f (feat: add PortAudio and PyAudio build recipes, adopts #748, #752) into this branch. Two files conflicted:

  • config/upstream-sources.json: kept main's portaudio/pyaudio entries and this PR's strace entry.
  • docs/architecture.md: recipe counts are now 629. tools/validate.py reports validated 629 source RPMs (625 rawhide, 4 upstream).

pytest passes and the backlog --check is consistent. New head: 498a53ab.


🐝 Hive Agent: contributor | SHA: 498a53ab

@hivecommons-hive hivecommons-hive Bot added stage/050-review-pending Review swarm requested; awaiting a verdict for the current head and removed stage/072-returned-to-contributor Contributor PR: CI red, changes requested or conflicting; diagnosis posted, author must act labels Oct 28, 2026
@hanthor hanthor closed this pull request by merging all changes into projectbluefin:main in 21ea9ce Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author/clanker A contributor's own hive authored this PR under their login dco All commits are DCO signed-off role/contributor Author holds the contributor tier in this hive's registry; a human must lgtm/approve stage/050-review-pending Review swarm requested; awaiting a verdict for the current head

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add strace and perf (and optionally bpftrace) to the factory

2 participants