Skip to content

fix: preserve root $ref base directory in check_value - #167

Merged
njzjz merged 1 commit into
deepmodeling:masterfrom
njzjz-bot:codex/fix-root-ref-check-value
Aug 31, 2026
Merged

fix: preserve root $ref base directory in check_value#167
njzjz merged 1 commit into
deepmodeling:masterfrom
njzjz-bot:codex/fix-root-ref-check-value

Conversation

@njzjz-bot

Copy link
Copy Markdown
Contributor

Summary

  • Preserve the directory returned while resolving a root $ref in Argument.check_value().
  • Pass that directory into nested traversal so relative references resolve beside their declaring file.
  • Add a regression test with a conflicting file in the process working directory.

Validation

  • python -m unittest discover -v — 64 passed, 4 skipped (IPython not installed)
  • ruff check dargs tests
  • ruff format --check dargs tests
  • ty check dargs/dargs.py — no errors; existing deprecated src.root warning only

Coding agent: Codex
Codex version: codex-cli 0.151.0
Model: gpt-5.6-sol
Reasoning effort: xhigh

Pass the directory returned while resolving a root $ref into the subsequent traversal so nested relative references resolve beside their declaring file. Add a regression test that distinguishes the source directory from the process working directory.

Coding-Agent: Codex
Codex-Version: codex-cli 0.151.0
Model: gpt-5.6-sol
Reasoning-Effort: xhigh
@coderabbitai

coderabbitai Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 4d8e14e8-c2b7-4d73-b7d5-c740c2f3fb41


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@codecov

codecov Bot commented Aug 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.91%. Comparing base (196976f) to head (fb743a3).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #167      +/-   ##
==========================================
+ Coverage   78.89%   78.91%   +0.02%     
==========================================
  Files           9        9              
  Lines         886      887       +1     
==========================================
+ Hits          699      700       +1     
  Misses        187      187              

☔ View full report in Codecov by Harness.
📢 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.

@njzjz
njzjz merged commit 24dc5b7 into deepmodeling:master Aug 31, 2026
8 checks passed
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