Skip to content

Conversation

@kuklyy
Copy link
Contributor

@kuklyy kuklyy commented Nov 3, 2025

Summary

Removes unnecessary is_hidden() filter that prevented loading from directories starting with . (dot). The existing file type filters are sufficient to exclude problematic paths.

Changes

  • Removed is_hidden() function and filter from weaver_resolver/src/lib.rs (registry loading)
  • Removed is_hidden() function and filter from weaver_checker/src/lib.rs (policy loading)
  • Added integration test to verify hidden registry directories work correctly

Test plan

  • Added test test_hidden_directory that verifies loading from .hidden_reg/ directory
  • All existing tests pass
  • CI quality checks pass (fmt, clippy, doc)

Fixes #958

🤖 Generated with Claude Code

Remove unnecessary is_hidden() filter that prevented loading from
directories starting with '.' (dot). The existing file type filters
(is_semantic_convention_file and is_policy_file) are sufficient to
exclude problematic paths.

Fixes open-telemetry#958

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@kuklyy kuklyy requested a review from a team as a code owner November 3, 2025 09:25
Replaced manual Default implementation with derived Default trait
and #[default] attribute to fix clippy::derivable_impls warning.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@codecov
Copy link

codecov bot commented Nov 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.3%. Comparing base (aea946b) to head (ab10d41).

Additional details and impacted files
@@           Coverage Diff           @@
##            main    #992     +/-   ##
=======================================
- Coverage   78.3%   78.3%   -0.1%     
=======================================
  Files         77      77             
  Lines       6122    6114      -8     
=======================================
- Hits        4799    4789     -10     
- Misses      1323    1325      +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@lquerel lquerel left a comment

Choose a reason for hiding this comment

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

I'd prefer an opt-in parameter (e.g. --include-hidden) that allows exploring hidden files/directories, to avoid surprising other users who would not find it normal for a CLI to inspect files in locations such as .git, .svn, .idea, .vscode, .cache, .local, .venv, .aws/credentials, .kube/config, ...

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.

Weaver cannot load registry directory beginning with .

2 participants