Skip to content

Instrument config path resolution (#292)#329

Draft
lodyai[bot] wants to merge 1 commit into
mainfrom
issue-292-instrument-resolve-config-paths
Draft

Instrument config path resolution (#292)#329
lodyai[bot] wants to merge 1 commit into
mainfrom
issue-292-instrument-resolve-config-paths

Conversation

@lodyai
Copy link
Copy Markdown
Contributor

@lodyai lodyai Bot commented Jun 1, 2026

Summary

This branch instruments config path resolution and explicit config loading so users can diagnose why a CLI flag, NETSUKE_CONFIG, NETSUKE_CONFIG_PATH, or discovery path was selected.

Closes #292.

Review walkthrough

  • Start with src/cli/config_merge.rs to review the selector, environment, diagnostic collection, and explicit load failure tracing.

Validation

  • make check-fmt: passed
  • make lint: passed
  • make test: passed
  • coderabbit review --agent: completed without returning findings after setup status

Notes

  • make fmt was also attempted, but the Markdown lint phase reported existing line-length violations across unrelated documentation files. The Rust formatting check passed through make check-fmt.

Add structured tracing around explicit configuration path selection,
environment variable lookup, diagnostic layer collection, and explicit
configuration load failures.

Record selector and path fields so users can diagnose precedence and load
failures without changing configuration behaviour.
Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Sorry @LodyAI[bot], you have reached your weekly rate limit of 2500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 1, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 89e27e9a-1090-4efa-86da-e59d484a2115

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch issue-292-instrument-resolve-config-paths

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

Instrument resolve_config_path, env_config_path, collect_diag_file_layers, and error paths with structured tracing spans and events

1 participant