Skip to content

Conversation

@ModeSevenIndustrialSolutions
Copy link
Contributor

@ModeSevenIndustrialSolutions ModeSevenIndustrialSolutions commented Oct 3, 2025

Debug logging output was not visible in verbose mode once the pull request details were displayed. Several problems related to the log handling needed to be fixed.

Copilot AI review requested due to automatic review settings October 3, 2025 09:07
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds enhanced diagnostic logging and improves commit metadata trailer handling. Key changes introduce double-newline separation for injected GitHub metadata trailers to avoid malformed footer sections and expand SSH / push error logging for better troubleshooting.

  • Added regression tests around metadata trailer separation (double newline requirement)
  • Replaced single newline injections in core commit paths with double newline for proper footer separation
  • Expanded verbose and unconditional logging for SSH setup and Gerrit push failure analysis (including conditional raw output)

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
tests/test_metadata_trailer_separation_bug.py New regression tests validating correct separation and idempotency of metadata trailers.
src/github2gerrit/core.py Adds extensive debug logging, switches trailer injection to double newlines, enhances error analysis, and revises push failure handling.
src/github2gerrit/cli.py Improves surfaced error messaging and adds optional verbose traceback logging.

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Debug logging output was not visible in verbose mode once the pull request
details were displayed. Several problems related to the log handling needed
to be fixed.

Signed-off-by: ModeSevenIndustrialSolutions <mwatkins@linuxfoundation.org>
@ModeSevenIndustrialSolutions ModeSevenIndustrialSolutions changed the title Feat: Improve logging after pull request evaluation Fix: Improve logging after pull request evaluation Oct 3, 2025
@ModeSevenIndustrialSolutions ModeSevenIndustrialSolutions added bug Something isn't working and removed feature labels Oct 3, 2025
@tykeal tykeal merged commit 8cd9174 into lfreleng-actions:main Oct 3, 2025
16 of 17 checks passed
@ModeSevenIndustrialSolutions ModeSevenIndustrialSolutions deleted the add-logging branch January 30, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants