Skip to content

Conversation

@SarahFrench
Copy link
Member

@SarahFrench SarahFrench commented Nov 17, 2025

Related Issue

Follows investigations in #180

Description

This PR stops log messages with type init_output being parsed as UnknownLogMessage structs, and instead adds support for the new InitOutputMessage struct. This allows the parsed init logs to also retain data about the message_code value.

Those message codes are documented in the Machine-readable UI Output Reference docs and were added to Terraform Core in hashicorp/terraform#34886.

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

N/A

Copy link
Member

@radeksimko radeksimko left a comment

Choose a reason for hiding this comment

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

This looks pretty good to me, what is the reason for keeping it in draft currently?

@SarahFrench SarahFrench changed the title Sarah/add init output log type feat: Add init_output log type for use when parsing logs from the init command Nov 19, 2025
@SarahFrench
Copy link
Member Author

This looks pretty good to me, what is the reason for keeping it in draft currently?

Partly because this PR is stacked on #180, and also because I didn't know whether changing how a log is parsed (long after a that type of log was introduced to Terraform) counted as a breaking change or not, and what the norms around that where in this project.

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