Obs Build Logs
DevOps & Securityobs-build-logsObs Build Logs is an Agent Skill for devops & security published in the Nuitka/Nuitka repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Access and diagnose openSUSE Build Service (OBS) package build logs. Use when the user provides a `build.opensuse.org` live build log URL, a package page, or a `project/package/repository/arch` tuple, or asks why an OBS RPM build failed. Prefer this skill for translating OBS URLs into raw log URLs, fetching public `_log` output, and finding the actual failing step instead of earlier noise.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/Nuitka/Nuitka/blob/HEAD/.agents/skills/obs-build-logs/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/obs-build-logs, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
OBS Build Logs
Use the public logfile route first. The live-log page is often awkward to scrape, and the API _log
route may require authentication.
Normalize The Input
Extract project, package, repository, and arch first.
- Live log page:
https://build.opensuse.org/package/live_build_log/<project>/<package>/<repository>/<arch> - Public raw logfile:
https://build.opensuse.org/public/build/<project>/<repository>/<arch>/<package>/_log - API raw logfile:
https://api.opensuse.org/build/<project>/<repository>/<arch>/<package>/_log
Remember the ordering difference:
live_build_logputspackagesecond.- Raw
_logURLs putpackagelast.
Fetch The Log
Prefer the public raw logfile URL on build.opensuse.org.
- It is the route OBS uses for the web UI "Download logfile" action.
- Use the API route only when authentication is available or required.
- On Windows, do not rely on
oscfor this unless it is already known to work in the current environment; recentoscbuilds may fail because they importfcntl.
If shell access is allowed, fetch the public log directly rather than the live page.
Read The Failure From The Bottom
Start near the end of the log and work upward.
Look for the first load-bearing failure marker near the bottom:
RPM build errors:Bad exit status from ...FATAL:FAILEDTracebackError, results differed- compiler or linker
error:
Treat earlier lines as suspect until the final failing section confirms they matter.
Common false leads:
- early
spec file parser line ... cannot expand %(...) - dependency cycle output during setup
- unrelated package install warnings
- earlier warnings that do not match the terminal failure
Classify The Failure
Map the terminal failure to one of these buckets:
- Spec or packaging failure
- Build dependency resolution failure
%buildscript failure%checktest failure- Compiler or linker failure
- Runtime failure in a smoke test
State explicitly which stage failed and quote the smallest useful log fragment.
Trace The Failure Back Into This Repository
For this repository, inspect these files first when the log points to packaging or OBS upload logic:
nuitka/tools/release/rpm/nuitka.specnuitka/tools/release/osc_upload/__main__.pyrpm/make-osc-upload.pyrpm/check-osc-status.py
If the failure is inside generated code, tests, or a runtime warning, inspect the named module or test file from the log before changing packaging.
Report The Result
Report these items in order:
- The exact stage that failed
- The real terminal error
- Why earlier warnings are or are not the root cause
- The local file or code path that should be changed
- The most direct fix or next verification step
If the public logfile fetch fails, say which URL variant was tried and whether the failure looks like bad path ordering, missing auth, or network restrictions.