Uh oh!
There was an error while loading. Please reload this page.
fix: consistent log_step for in-progress messages - #757
Conversation
… (green)
Consistently use log_step for progress/status messages ("Waiting for...",
"Fetching...", "Creating...") and reserve log_info for success/completion
messages. This gives users a clear visual distinction between operations
that are still running (cyan) vs operations that have completed (green).
Also adds periodic progress updates to silent polling loops in ramnode,
cherry, and netcup IP wait functions so users see activity during long waits.
Agent: ux-engineer
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
la14-1
left a comment
There was a problem hiding this comment.
Self-review by ux-engineer:
This PR fixes the remaining log_info/log_step inconsistencies across the codebase. The changes are purely cosmetic (color of progress messages) and add progress indicators to 3 silent polling loops. All 20 files pass bash -n syntax checks.
Changes are low-risk:
- log_info -> log_step swaps don't change behavior, only output color (green -> cyan)
- New progress indicators in wait loops only add
log_stepcalls every 5th attempt - Error messages now include attempt count for better diagnostics
No functional changes to provisioning, authentication, or script execution logic.
la14-1
commented
Feb 12, 2026
PR Review by pr-maintainer: Reviewed. This consistently replaces |
louisgv
left a comment
There was a problem hiding this comment.
Security Review
Verdict: APPROVED
Findings
No security issues found. All changes are purely cosmetic (log_info -> log_step function name swaps for correct color coding) with minor additions of progress indicators using safe, locally-scoped integer variables. No new command execution, no user input handling changes, no credential exposure.
Tests
- bash -n: PASS (all 20 modified files)
- bun test: N/A (no .ts files changed)
- curl|bash pattern: OK (no source/eval patterns modified)
- macOS compat: OK (new arithmetic patterns use bash 3.2 compatible syntax)
Automated security review by spawn security team
Uh oh!
There was an error while loading. Please reload this page.
…lpers Add comprehensive test coverage for previously untested utility functions in shared/common.sh that are used pervasively across all cloud providers: - log_step: cyan progress messages (added PR #757) - _log_diagnostic: structured error output (header + causes + numbered fixes) - check_python_available: Python 3 dependency detection with install hints - find_node_runtime: bun/node runtime discovery - track_temp_file + cleanup_temp_files: secure credential temp file cleanup - register_cleanup_trap: EXIT/INT/TERM signal handlers - get_cloud_init_userdata: cloud-init YAML generation for provisioning - calculate_retry_backoff: jittered exponential backoff - generate_ssh_key_if_missing: ed25519 key generation with directory creation - get_ssh_fingerprint: MD5 fingerprint extraction - opencode_install_cmd: opencode install script content - POLL_INTERVAL / SSH_OPTS: configurable constants and defaults - All 4 log functions: stderr-only output verification Agent: test-engineer Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…lpers (#765) Add comprehensive test coverage for previously untested utility functions in shared/common.sh that are used pervasively across all cloud providers: - log_step: cyan progress messages (added PR #757) - _log_diagnostic: structured error output (header + causes + numbered fixes) - check_python_available: Python 3 dependency detection with install hints - find_node_runtime: bun/node runtime discovery - track_temp_file + cleanup_temp_files: secure credential temp file cleanup - register_cleanup_trap: EXIT/INT/TERM signal handlers - get_cloud_init_userdata: cloud-init YAML generation for provisioning - calculate_retry_backoff: jittered exponential backoff - generate_ssh_key_if_missing: ed25519 key generation with directory creation - get_ssh_fingerprint: MD5 fingerprint extraction - opencode_install_cmd: opencode install script content - POLL_INTERVAL / SSH_OPTS: configurable constants and defaults - All 4 log functions: stderr-only output verification Agent: test-engineer Co-authored-by: A <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
log_step(cyan) instead oflog_info(green) for in-progress/status messages across 20 shell scriptsRationale
The convention (established in PR #440) is:
log_step(cyan): progress messages for operations still runninglog_info(green): success/completion messagesSeveral scripts were still using
log_infofor in-progress operations, making it hard for users to distinguish "still working" from "done". This PR fixes the remaining inconsistencies.Files changed
shared/common.sh-- 4 messages (OAuth wait, credential test, interactive picker)cherry/lib/common.sh-- 3 messages + progress indicator in IP wait loopcontabo/lib/common.sh-- 1 messagenetcup/lib/common.sh-- 1 message + progress indicator in IP wait loopramnode/lib/common.sh-- 4 messages + progress indicator in IP wait loopgithub-codespaces/lib/common.sh-- 2 messagesgithub-codespaces/*.shagent scripts -- 1 message eachTest plan
bash -nsyntax check passes on all 20 modified filesCo-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com