Skip to content

Conversation

runningcode
Copy link
Contributor

@runningcode runningcode commented Sep 29, 2025

Summary

Lowers the logging level from warn to info when failing to detect base branch reference in build uploads.

Why

The warning message confuses users as it appears even in cases where we don't expect there to be a base reference (detached HEAD states, main/master builds, etc.). Changing to info level keeps the message available for debugging while hiding it by default.

Changes

  • Changed warn! to info! in base ref detection error handling
  • Removed --log-level=error from build upload tests to ensure info messages work correctly

🤖 Generated with Claude Code


Note

Lower base-ref detection logging to info and update build upload trycmd tests to remove log-level flag and assert experimental warning output.

  • Build upload:
    • Lower log level from warn! to info! when failing to detect base branch reference in src/commands/build/upload.rs.
  • Tests:
    • Update trycmd cases (tests/integration/_cases/build/*) to remove --log-level=error and expect the experimental warning line in output.

Written by Cursor Bugbot for commit a0961a1. This will update automatically on new commits. Configure here.

Copy link

linear bot commented Sep 29, 2025

@runningcode runningcode force-pushed the fix/eme-369-improve-logging-in-cli branch from 491d9ac to 2bddbe0 Compare September 29, 2025 15:13
@runningcode runningcode changed the title fix: lower log level for missing base ref on main/master builds (EME-369) fix: lower log level for missing base ref detection (EME-369) Sep 29, 2025
@runningcode runningcode force-pushed the fix/eme-369-improve-logging-in-cli branch 2 times, most recently from 6d5dc18 to a1a4ced Compare September 29, 2025 15:19
Changes the logging level from warn to info when failing to detect base
branch reference in build uploads. This reduces noise in build logs for
common scenarios including detached HEAD states in PRs and main/master
branch builds where base ref detection failures are expected.

Also removes --log-level=error from all build upload tests and updates
test expectations to include the experimental warning that is now visible.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@runningcode runningcode force-pushed the fix/eme-369-improve-logging-in-cli branch from a1a4ced to a0961a1 Compare September 29, 2025 15:28
@runningcode runningcode marked this pull request as ready for review September 29, 2025 15:32
@runningcode runningcode requested review from a team and szokeasaurusrex as code owners September 29, 2025 15:32
@runningcode runningcode merged commit 2229943 into master Sep 29, 2025
25 checks passed
@runningcode runningcode deleted the fix/eme-369-improve-logging-in-cli branch September 29, 2025 16:54
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.

2 participants