Skip to content

Conversation

@iamrajiv
Copy link
Contributor

@iamrajiv iamrajiv commented Jul 8, 2025

What this PR does:
Adds the missing YAML document separator ---\n to the /status/runtime_config endpoint output. This fixes invalid YAML that was causing validation failures with tools like yq.

Which issue(s) this PR fixes:
Fixes #5146

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should
    be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]:

Notes:

  • Tests updated: Existing tests pass and
    verify the YAML output now includes the separator
  • Documentation added: Not needed - this is a bug fix that
    doesn't change user-facing functionality
  • CHANGELOG.md: You should add an entry under [BUGFIX]
    section if there is one, something like:
Copy link
Contributor

@javiermolinar javiermolinar left a comment

Choose a reason for hiding this comment

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

It looks good. Could you add a test or reuse an existing one to assert that the output YAML can be unmarshalled back? This is what tempo-cli does:

https://github.com/grafana/tempo/blob/main/cmd/tempo-cli/cmd-migrate-overrides-config.go#L52-L62

Please add a changelog entry too

Thank you!

@iamrajiv
Copy link
Contributor Author

iamrajiv commented Jul 9, 2025

sure thanks for review @javiermolinar i added it can u review again?

@iamrajiv iamrajiv requested a review from javiermolinar July 9, 2025 09:54
Copy link
Contributor

@javiermolinar javiermolinar left a comment

Choose a reason for hiding this comment

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

LGTM, Thank you for your contribution :)

@javiermolinar javiermolinar merged commit 04af808 into grafana:main Jul 10, 2025
37 of 38 checks passed
knylander-grafana pushed a commit to knylander-grafana/tempo-doc-work that referenced this pull request Jul 18, 2025
…hod (grafana#5371)

* add separator line in WriteStatusRuntimeConfig method

* fix(tests): Ensure YAML output from runtime config can be unmarshalled correctly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants