nbapi missing build <id> subcommand — individual build lookup and status_message not surfaced
#3
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
The nixbuild.net HTTP API exposes individual build records at
GET /builds/<id>, which includes astatus_messagefield containing the human-readable build error (e.g. "builder failed with exit code 1"). This is valuable for diagnosing CI failures without needing the full log.Currently
nbapihas no dedicated subcommand for this — users must usenbapi raw /builds/<id>which is not discoverable. Add:Also consider adding
--drv <path>tonbapi buildsto filter by derivation path, so users can go from a nix error message directly to the build record:Discovery gap found during: mempalace CI failure on nixbuild.net — the
status_messageon the HTTP build record was sufficient to show the drv failed, but the agent went tonbshell 'builds log <id>'instead becausenbapi build <id>doesn't exist.Note: actual build logs (stdout/stderr) are only available via
nbshell 'builds log <id>'— the HTTP API returns 404 for/builds/{id}/log. That's a separate limitation of the nixbuild.net API itself.Fixed in main (commits 2f03a04–e167c29): added
nbapi build <id>subcommand, documentednbshell 'builds log <id>'in ops.md and nixbuild-usage skill, added routing triggers for build log / remote builder output queries, added.markdownlint-cli2.yaml. Version bumped to 0.2.0.