Skip to content

Chore(cicd_bot): Tidy up failure output#4964

Merged
erindru merged 1 commit intomainfrom
erin/cicd-bot-failure-output
Jul 14, 2025
Merged

Chore(cicd_bot): Tidy up failure output#4964
erindru merged 1 commit intomainfrom
erin/cicd-bot-failure-output

Conversation

@erindru
Copy link
Collaborator

@erindru erindru commented Jul 14, 2025

Prior to this, if there was an error creating a PR environment, the output was a bit untidy:

  • Plan application failed message was duplicated
  • Warnings were duplicated
  • Skipped models / failed models lists had inconsistent formatting
  • Failed models code block formatting was off

This PR addresses these issues.

Before

Screenshot From 2025-07-14 14-15-12

After

Screenshot From 2025-07-14 14-18-45

@erindru erindru force-pushed the erin/cicd-bot-failure-output branch from f44fbd4 to dd6ee1c Compare July 14, 2025 02:57
@erindru erindru force-pushed the erin/cicd-bot-failure-output branch from dd6ee1c to e9b2381 Compare July 14, 2025 03:32

# capture_only = True: capture but dont print to console
# capture_only = False: capture and also print to console
self.warning_capture_only = kwargs.pop("warning_capture_only", False)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I can't default these to true because the MarkdownConsole is used as the default console in CircleCI and a bunch of existing tests depend on these getting printed to console.

It's just the bot that wants to capture them and not print to console so it can give them special status in the Check output

@erindru erindru merged commit 6cf1f71 into main Jul 14, 2025
27 checks passed
@erindru erindru deleted the erin/cicd-bot-failure-output branch July 14, 2025 21:34
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