Skip to content

Conversation

@njzjz
Copy link
Member

@njzjz njzjz commented Sep 3, 2025

Summary by CodeRabbit

  • Documentation

    • Updated installation guide to reference LAMMPS stable_22Jul2025_update1 in all commands, paths, and environment variables.
  • Chores

    • Bumped LAMMPS version to stable_22Jul2025_update1 across build and test workflows.
    • Updated CI environment variables to use the new LAMMPS version.
    • Refreshed Python dependency pin for LAMMPS (mpi) to 2025.7.22.1.0.
  • Tests

    • Aligned test configurations to target LAMMPS stable_22Jul2025_update1.

@github-actions github-actions bot added the Docs label Sep 3, 2025
@codecov
Copy link

codecov bot commented Sep 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.28%. Comparing base (68ea2aa) to head (33e4778).
⚠️ Report is 67 commits behind head on devel.

Additional details and impacted files
@@           Coverage Diff           @@
##            devel    #4955   +/-   ##
=======================================
  Coverage   84.28%   84.28%           
=======================================
  Files         705      705           
  Lines       69097    69097           
  Branches     3572     3573    +1     
=======================================
  Hits        58239    58239           
  Misses       9717     9717           
  Partials     1141     1141           

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@njzjz njzjz marked this pull request as ready for review September 3, 2025 15:13
@njzjz njzjz requested review from Copilot and wanghan-iapcm and removed request for Copilot September 3, 2025 15:13
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 3, 2025

📝 Walkthrough

Walkthrough

Bumps LAMMPS version references from stable_22Jul2025 to stable_22Jul2025_update1 across build scripts, docs, and pyproject.toml, plus updates the Python dependency pin for lammps. No other logic, flow, or API changes.

Changes

Cohort / File(s) Summary of changes
Build scripts
source/install/build_lammps.sh, source/install/build_cc.sh, source/install/build_from_c.sh, source/install/test_cc.sh, source/install/test_cc_local.sh, .devcontainer/build_cxx.sh
Updated CMake arg/value for LAMMPS_VERSION from stable_22Jul2025 to stable_22Jul2025_update1; no other script logic changes.
Documentation
doc/install/install-lammps.md
Replaced tarball names, source dir paths, and environment references from stable_22Jul2025 to stable_22Jul2025_update1 throughout.
Project config
pyproject.toml
Updated lammps[mpi] pin to ~=2025.7.22.1.0; set DP_LAMMPS_VERSION (macOS/Linux cibuildwheel env) to stable_22Jul2025_update1.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested labels

LAMMPS

Suggested reviewers

  • wanghan-iapcm
  • Yi-FanLi
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

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

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (6)
source/install/build_from_c.sh (1)

16-16: Bump is correct; quote vars on this long CMake line and reuse a central version var

Quoting prevents surprises if paths contain spaces; centralizing the version reduces future edits.

-cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DDEEPMD_C_ROOT=${DEEPMD_C_ROOT} -DLAMMPS_VERSION=stable_22Jul2025_update1 ..
+cmake -DCMAKE_INSTALL_PREFIX="${INSTALL_PREFIX}" -DDEEPMD_C_ROOT="${DEEPMD_C_ROOT}" -DLAMMPS_VERSION="${LAMMPS_VERSION}" ..

Add near the top (outside this hunk):

LAMMPS_VERSION="${LAMMPS_VERSION:-${DP_LAMMPS_VERSION:-stable_22Jul2025_update1}}"
.devcontainer/build_cxx.sh (1)

16-16: Container build update looks good; align with env-driven version

Consistent with other scripts; recommend using the same env-based variable for maintainability.

-    -D LAMMPS_VERSION=stable_22Jul2025_update1 \
+    -D LAMMPS_VERSION=${LAMMPS_VERSION} \

Add near the top (outside this hunk):

LAMMPS_VERSION="${LAMMPS_VERSION:-${DP_LAMMPS_VERSION:-stable_22Jul2025_update1}}"
source/install/test_cc_local.sh (1)

31-31: Test config bump is fine; reuse the shared LAMMPS_VERSION variable

Keeps CI/local tests in sync with build scripts.

-    -D LAMMPS_VERSION=stable_22Jul2025_update1 \
+    -D LAMMPS_VERSION=${LAMMPS_VERSION} \

Add near the top (outside this hunk):

LAMMPS_VERSION="${LAMMPS_VERSION:-${DP_LAMMPS_VERSION:-stable_22Jul2025_update1}}"
source/install/test_cc.sh (1)

20-20: Bump looks correct; minor improvement to centralize version

Same suggestion as other scripts to avoid drift.

-cmake -DINSTALL_TENSORFLOW=TRUE -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DTENSORFLOW_ROOT=${INSTALL_PREFIX} -DBUILD_TESTING:BOOL=TRUE -DLAMMPS_VERSION=stable_22Jul2025_update1 ${CUDA_ARGS} ..
+cmake -DINSTALL_TENSORFLOW=TRUE -DCMAKE_INSTALL_PREFIX="${INSTALL_PREFIX}" -DTENSORFLOW_ROOT="${INSTALL_PREFIX}" -DBUILD_TESTING:BOOL=TRUE -DLAMMPS_VERSION="${LAMMPS_VERSION}" ${CUDA_ARGS} ..

Add near the top (outside this hunk):

LAMMPS_VERSION="${LAMMPS_VERSION:-${DP_LAMMPS_VERSION:-stable_22Jul2025_update1}}"
pyproject.toml (1)

245-251: Env bump LGTM; consider centralizing the version.

DP_LAMMPS_VERSION="stable_22Jul2025_update1" is consistent. To prevent drift across OSes, consider a single top-level setting (e.g., a [tool.deepmd] table or CI env matrix) consumed by all jobs and scripts.

source/install/build_lammps.sh (1)

17-21: Make version overridable and harden download.

Allow overriding LAMMPS_VERSION via env and fail fast on HTTP errors.

-LAMMPS_VERSION=stable_22Jul2025_update1
+LAMMPS_VERSION=${LAMMPS_VERSION:-stable_22Jul2025_update1}
 if [ ! -d "lammps-${LAMMPS_VERSION}" ]; then
-	curl -L -o lammps.tar.gz https://github.com/lammps/lammps/archive/refs/tags/${LAMMPS_VERSION}.tar.gz
-	tar vxzf lammps.tar.gz
+	curl -fSL -o lammps.tar.gz "https://github.com/lammps/lammps/archive/refs/tags/${LAMMPS_VERSION}.tar.gz"
+	tar xzf lammps.tar.gz
 fi
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 68ea2aa and 33e4778.

📒 Files selected for processing (8)
  • .devcontainer/build_cxx.sh (1 hunks)
  • doc/install/install-lammps.md (4 hunks)
  • pyproject.toml (3 hunks)
  • source/install/build_cc.sh (1 hunks)
  • source/install/build_from_c.sh (1 hunks)
  • source/install/build_lammps.sh (1 hunks)
  • source/install/test_cc.sh (1 hunks)
  • source/install/test_cc_local.sh (1 hunks)
🔇 Additional comments (4)
source/install/build_cc.sh (1)

29-29: LGTM; version bump and pins verified
No leftover stable_22Jul2025 tags were found, and both DP_LAMMPS_VERSION and lammps[mpi] pins in pyproject.toml are correctly updated. Optional: centralize LAMMPS_VERSION in an environment variable and reuse it across install scripts to avoid future drift.

pyproject.toml (2)

111-112: Approve version bump
lammps[mpi] v2025.7.22.1.0 is published on PyPI with 6 artifacts; safe to merge.


281-289: Linux env bump LGTM; no stale references remain. CI will install the pinned LAMMPS wheel for test-extras "lmp"; cache layers are clean.

doc/install/install-lammps.md (1)

20-25: Verified complete version update; no residual tags. Docs now consistently reference stable_22Jul2025_update1. Optionally add a Sphinx |LAMMPS_VERSION| substitution for future updates.

@wanghan-iapcm wanghan-iapcm added this pull request to the merge queue Sep 5, 2025
Merged via the queue into deepmodeling:devel with commit 0fe38c8 Sep 5, 2025
60 checks passed
github-merge-queue bot pushed a commit that referenced this pull request Nov 18, 2025
Updates LAMMPS version reference from `stable_22Jul2025_update1` to
`stable_22Jul2025_update2` across build scripts, documentation, and
Python package configuration.

### Changes
- Build configuration scripts: `.devcontainer/build_cxx.sh`,
`source/install/{build_cc.sh, build_from_c.sh, build_lammps.sh,
test_cc.sh, test_cc_local.sh}`
- Installation documentation: `doc/install/install-lammps.md`
- Python package configuration: `pyproject.toml` (updated `lammps[mpi]`
dependency to `~=2025.7.22.2.0` and CI environment variables for macOS
and Linux)

All references to the LAMMPS version tag have been updated consistently
across the repository, following the pattern from commit
0fe38c8.

- Fixes #5051

<!-- START COPILOT CODING AGENT SUFFIX -->



<details>

<summary>Original prompt</summary>

> 
> ----
> 
> *This section details on the original issue you should resolve*
> 
> <issue_title>Bump LAMMPS version to
stable_22Jul2025_update2</issue_title>
> <issue_description>### Summary
> 
> Bump LAMMPS version to stable_22Jul2025_update2.
> 
> ### Detailed Description
> 
> Follow the style of #4955
(0fe38c8).
> 
> ### Further Information, Files, and Links
> 
> _No response_</issue_description>
> 
> ## Comments on the Issue (you are @copilot in this section)
> 
> <comments>
> </comments>
> 


</details>

- Fixes #5051

<!-- START COPILOT CODING AGENT TIPS -->
---

💡 You can make Copilot smarter by setting up custom instructions,
customizing its development environment and configuring Model Context
Protocol (MCP) servers. Learn more [Copilot coding agent
tips](https://gh.io/copilot-coding-agent-tips) in the docs.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: njzjz <9496702+njzjz@users.noreply.github.com>
ChiahsinChu pushed a commit to ChiahsinChu/deepmd-kit that referenced this pull request Dec 17, 2025
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- Documentation
- Updated installation guide to reference LAMMPS
stable_22Jul2025_update1 in all commands, paths, and environment
variables.

- Chores
- Bumped LAMMPS version to stable_22Jul2025_update1 across build and
test workflows.
  - Updated CI environment variables to use the new LAMMPS version.
  - Refreshed Python dependency pin for LAMMPS (mpi) to 2025.7.22.1.0.

- Tests
- Aligned test configurations to target LAMMPS stable_22Jul2025_update1.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
ChiahsinChu pushed a commit to ChiahsinChu/deepmd-kit that referenced this pull request Dec 17, 2025
…5052)

Updates LAMMPS version reference from `stable_22Jul2025_update1` to
`stable_22Jul2025_update2` across build scripts, documentation, and
Python package configuration.

### Changes
- Build configuration scripts: `.devcontainer/build_cxx.sh`,
`source/install/{build_cc.sh, build_from_c.sh, build_lammps.sh,
test_cc.sh, test_cc_local.sh}`
- Installation documentation: `doc/install/install-lammps.md`
- Python package configuration: `pyproject.toml` (updated `lammps[mpi]`
dependency to `~=2025.7.22.2.0` and CI environment variables for macOS
and Linux)

All references to the LAMMPS version tag have been updated consistently
across the repository, following the pattern from commit
0fe38c8.

- Fixes deepmodeling#5051

<!-- START COPILOT CODING AGENT SUFFIX -->



<details>

<summary>Original prompt</summary>

> 
> ----
> 
> *This section details on the original issue you should resolve*
> 
> <issue_title>Bump LAMMPS version to
stable_22Jul2025_update2</issue_title>
> <issue_description>### Summary
> 
> Bump LAMMPS version to stable_22Jul2025_update2.
> 
> ### Detailed Description
> 
> Follow the style of deepmodeling#4955
(0fe38c8).
> 
> ### Further Information, Files, and Links
> 
> _No response_</issue_description>
> 
> ## Comments on the Issue (you are @copilot in this section)
> 
> <comments>
> </comments>
> 


</details>

- Fixes deepmodeling#5051

<!-- START COPILOT CODING AGENT TIPS -->
---

💡 You can make Copilot smarter by setting up custom instructions,
customizing its development environment and configuring Model Context
Protocol (MCP) servers. Learn more [Copilot coding agent
tips](https://gh.io/copilot-coding-agent-tips) in the docs.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: njzjz <9496702+njzjz@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants