Skip to content

feat(scripts): colored, repo-labeled logging in update scripts#4

Merged
sksizer merged 1 commit into
mainfrom
feat/update-script-logging
Apr 7, 2026
Merged

feat(scripts): colored, repo-labeled logging in update scripts#4
sksizer merged 1 commit into
mainfrom
feat/update-script-logging

Conversation

@sksizer

@sksizer sksizer commented Apr 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • cargo_update_all.sh: buffers each parallel job's output to its own log file and replays it in a labeled ▶ repo-name block, so concurrent runs no longer interleave and every line is attributable.
  • cargo_update.sh: tags every log line with [<repo>] via a new REPO_LABEL env var and surfaces the detected PR URL alongside the repo name.
  • ANSI colors are added throughout, auto-disabled when not a TTY or when NO_COLOR is set.

Motivation: when running update_all, output from multiple downstream repos was indistinguishable — including the final "Opening PR: ..." line — making it hard to tell which project a PR belonged to.

Test plan

  • Run bash scripts/cargo_update_all.sh (dry run) and confirm the plan + per-repo blocks render
  • Run bash scripts/cargo_update_all.sh --execute and confirm PR URLs are tagged with repo names
  • Run with NO_COLOR=1 and confirm output is plain

Output from parallel cargo_update_all runs is now buffered per repo and
replayed in labeled blocks, so it's always clear which downstream project
a given log line (or PR URL) belongs to. cargo_update.sh tags every line
with a [repo] prefix via REPO_LABEL and surfaces the PR URL with the
repo name.
@sksizer
sksizer merged commit 37b3a6a into main Apr 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant