Skip to content

Include config file name in legacy config loader parse errors#10906

Open
sAchin-680 wants to merge 1 commit into
temporalio:mainfrom
sAchin-680:log-missing-config-key
Open

Include config file name in legacy config loader parse errors#10906
sAchin-680 wants to merge 1 commit into
temporalio:mainfrom
sAchin-680:log-missing-config-key

Conversation

@sAchin-680

Copy link
Copy Markdown

What changed?

Errors from processConfigFile and yaml.Unmarshal in the legacy hierarchical config loader (base.yaml, env.yaml, env_zone.yaml) are now wrapped with the path of the offending file, matching the behavior already used by the newer WithConfigFile/WithEmbedded loading paths.

Why?

Previously these errors were returned bare, so a failure like "did not find expected key" gave no indication of which loaded file caused it — as reported in #455, where a customer's service failed to start with a config error that named a line number but not a file, making the issue difficult to diagnose.

Fixes #455

How did you test it?

  • built
  • covered by existing tests
  • added new unit test(s)

Potential risks

None - this only adds file-path context to existing error paths; the underlying error types and control flow are unchanged.

Previously, errors from processConfigFile and yaml.Unmarshal in the
legacy hierarchical config loader were returned bare, so failures
like "did not find expected key" gave no indication of which of the
loaded files (base.yaml, env.yaml, env_zone.yaml) caused them. Wrap
these errors with the offending file path, matching the behavior
already used by the newer WithConfigFile/WithEmbedded loading paths.

Fixes temporalio#455

Signed-off-by: sAchin-680 <mrmister680@gmail.com>
@sAchin-680 sAchin-680 requested review from a team as code owners July 2, 2026 11:43
@CLAassistant

CLAassistant commented Jul 2, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

If a temporal service fails to start due to a missing config key, log the missing key

2 participants