Skip to content

fix: make training examples self-contained - #386

Open
njzjz-bot wants to merge 1 commit into
deepmodeling:masterfrom
njzjz-bot:fix/issue-360-self-contained-examples
Open

fix: make training examples self-contained#386
njzjz-bot wants to merge 1 commit into
deepmodeling:masterfrom
njzjz-bot:fix/issue-360-self-contained-examples

Conversation

@njzjz-bot

Copy link
Copy Markdown

Summary

  • add a shared repository DPA-2 training template under examples/
  • update every previously missing train.json reference to resolve to that template
  • validate that each tested example references existing, valid JSON templates

Tests

  • PYTHONPATH=tests python -m unittest -v tests.test_check_examples
  • repository-wide script verifying every example template_script path resolves
  • ruff format --check tests/test_check_examples.py
  • isort --check-only tests/test_check_examples.py
  • python -m json.tool examples/train.json
  • git diff --check

Closes #360

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

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Aug 23, 2026
@coderabbitai

coderabbitai Bot commented Aug 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 59 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 29a1bab2-bec0-4ba5-ba0a-5770a9a695d8

📥 Commits

Reviewing files that changed from the base of the PR and between 6b01f29 and d32656e.

📒 Files selected for processing (11)
  • examples/calypso/input.test.json
  • examples/ch4/input_dist.json
  • examples/diffcsp/dpgen.json
  • examples/train.json
  • examples/water/input_distill.json
  • examples/water/input_dpgen.json
  • examples/water/input_dpgen_abacus.json
  • examples/water/input_dpgen_cp2k.json
  • examples/water/input_dpgen_slurm.json
  • examples/water/input_multitask.json
  • tests/test_check_examples.py

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.

Add a shared repository training template, point previously broken example references to it, and validate referenced templates in the example test.

Closes deepmodeling#360

Coding-Agent: Codex
Codex-Version: codex-cli 0.149.1
Model: gpt-5.6-sol
Reasoning-Effort: xhigh
@njzjz-bot
njzjz-bot force-pushed the fix/issue-360-self-contained-examples branch from 399efa9 to d32656e Compare August 26, 2026 11:00
@codecov

codecov Bot commented Aug 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.43%. Comparing base (6b01f29) to head (d32656e).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #386   +/-   ##
=======================================
  Coverage   84.43%   84.43%           
=======================================
  Files         104      104           
  Lines        6110     6110           
=======================================
  Hits         5159     5159           
  Misses        951      951           

☔ 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Code scan] Make example template_script references self-contained and tested

1 participant