feat(segkit): add ci wrap and ci summary subcommands#63
Draft
Conversation
Adds `segkit ci wrap -- <command>` to run commands with timing/exit/stderr capture to JSONL reports, and `segkit ci summary` to generate markdown tables from those artifacts for $GITHUB_STEP_SUMMARY. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
segkit ci wrapandsegkit ci summary— the first CI observability subcommands for the segkit CLI. This is PR 1.5a from the segkit migration plan.Changes
segkit ci wrap -- <command>: Spawns a child process, captures wall-clock timing, exit code, and stderr tail. Writes JSONL toreports/segkit-timing.jsonl(always) andreports/segkit-errors.jsonl(on failure). Propagates the child's exit code.segkit ci summary --platform <name> --device <name>: Reads timing/error JSONL artifacts and generates a markdown table. Writes to stdout and appends to$GITHUB_STEP_SUMMARYwhen set.segkit/src/ci.rsmodule with unit tests for duration formattingtests/cli.rscovering wrap success/failure/no-args and summary with/without data/errorsWhy
CI E2E failures currently require digging through raw process-compose logs to understand what happened. These commands provide structured timing and error capture that can be surfaced directly in GitHub Actions job summaries, making failures immediately visible.
🤖 Generated with Claude Code