[PR #754] [CLOSED] docs: point the test instructions at the files that actually exist #759

Closed
opened 2026-10-27 21:06:00 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/deepseek-ai/DeepEP/pull/754
Author: @PerryLink
Created: 9/19/2026
Status: ❌ Closed

Base: main ← Head: docs/fix-stale-test-paths


📝 Commits (1)

  • b685043 docs: point the test instructions at the files that actually exist

📊 Changes

2 files changed (+5 additions, -5 deletions)

View changed files

📝 README.md (+1 -1)
📝 docs/legacy.md (+4 -4)

📄 Description

What

Both README.md and docs/legacy.md tell the reader to edit init_dist in a file that is not in the repository; docs/legacy.md also names three test scripts that do not exist.

Why

init_dist lives in deep_ep/utils/envs.py. Checked against main:

  • GET /repos/deepseek-ai/DeepEP/contents/tests/utils/envs.py?ref=main → 404
  • GET /repos/deepseek-ai/DeepEP/contents/tests/utils.py?ref=main → 404
  • GET /repos/deepseek-ai/DeepEP/contents/deep_ep/utils/envs.py?ref=main → 200, blob f6e34d988339be78296306727df5ee34a2f35eac, def init_dist(local_rank, num_local_ranks, seed=0) at line 73

The tests import it that way: tests/elastic/test_ep.py:14 and tests/legacy/test_intranode.py:8, test_internode.py:9, test_low_latency.py:9 all contain from deep_ep.utils.envs import init_dist.

The three scripts now live in tests/legacy/: contents/tests/test_intranode.py?ref=main → 404, while contents/tests/legacy/test_intranode.py?ref=main → 200 (blob 5a1730fbfbd93a83553e356e086b82e8083ba61b); likewise test_internode.py (6c4a9b795ff0cb219369fb51da5a5b4b073cc483) and test_low_latency.py (99a78bc8ab9ee7cdf64446a7b28425a7966fcd10).

Change

 # Run test cases
-# NOTES: you may modify the `init_dist` function in `tests/utils/envs.py`   (README.md:95)
-# NOTES: you may modify the `init_dist` function in `tests/utils.py`        (docs/legacy.md:67)
+# NOTES: you may modify the `init_dist` function in `deep_ep/utils/envs.py`
 # according to your own cluster settings, and launch into multiple nodes
-python tests/test_intranode.py       (docs/legacy.md:69)
-python tests/test_internode.py       (docs/legacy.md:70)
-python tests/test_low_latency.py     (docs/legacy.md:71)
+python tests/legacy/test_intranode.py
+python tests/legacy/test_internode.py
+python tests/legacy/test_low_latency.py

Validation

Documentation only — no runtime or API change. I enumerated every repository path and relative link in both files and checked each against GET /repos/deepseek-ai/DeepEP/git/trees/main?recursive=1, resolving relative links against the file's own directory. Before the patch two references are dead (tests/utils/envs.py in README.md; tests/utils.py in docs/legacy.md); after it, every reference in both files resolves.

Review history

ds-review-bot reviewed an earlier revision of this branch, 5c6776e2, before the commit was corrected. That revision was built with the wrong tree and its git show --stat read 108 files changed, 5 insertions(+), 24001 deletions(-) — the bot was right to reject it, and its inline suggestion asked for exactly this: a commit on top of the parent containing only the two documentation hunks.

The branch was then rebuilt and force-pushed. The current head is b685043b and the diff is 2 files, +5/−5 (README.md +1/−1, docs/legacy.md +4/−4), which is the expected stat. Verified independently after the rebuild by diffing each file's live content against its upstream blob: the only removed lines are the four stale instruction lines, and the only added lines are their four corrections. No file outside these two is touched.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/deepseek-ai/DeepEP/pull/754 **Author:** [@PerryLink](https://github.com/PerryLink) **Created:** 9/19/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `docs/fix-stale-test-paths` --- ### 📝 Commits (1) - [`b685043`](https://github.com/deepseek-ai/DeepEP/commit/b685043b3037c74f1f2cc1f792e2f35be77fe3f5) docs: point the test instructions at the files that actually exist ### 📊 Changes **2 files changed** (+5 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -1) 📝 `docs/legacy.md` (+4 -4) </details> ### 📄 Description ## What Both `README.md` and `docs/legacy.md` tell the reader to edit `init_dist` in a file that is not in the repository; `docs/legacy.md` also names three test scripts that do not exist. ## Why `init_dist` lives in `deep_ep/utils/envs.py`. Checked against `main`: - `GET /repos/deepseek-ai/DeepEP/contents/tests/utils/envs.py?ref=main` → **404** - `GET /repos/deepseek-ai/DeepEP/contents/tests/utils.py?ref=main` → **404** - `GET /repos/deepseek-ai/DeepEP/contents/deep_ep/utils/envs.py?ref=main` → **200**, blob `f6e34d988339be78296306727df5ee34a2f35eac`, `def init_dist(local_rank, num_local_ranks, seed=0)` at line 73 The tests import it that way: `tests/elastic/test_ep.py:14` and `tests/legacy/test_intranode.py:8`, `test_internode.py:9`, `test_low_latency.py:9` all contain `from deep_ep.utils.envs import init_dist`. The three scripts now live in `tests/legacy/`: `contents/tests/test_intranode.py?ref=main` → **404**, while `contents/tests/legacy/test_intranode.py?ref=main` → **200** (blob `5a1730fbfbd93a83553e356e086b82e8083ba61b`); likewise `test_internode.py` (`6c4a9b795ff0cb219369fb51da5a5b4b073cc483`) and `test_low_latency.py` (`99a78bc8ab9ee7cdf64446a7b28425a7966fcd10`). ## Change ```diff # Run test cases -# NOTES: you may modify the `init_dist` function in `tests/utils/envs.py` (README.md:95) -# NOTES: you may modify the `init_dist` function in `tests/utils.py` (docs/legacy.md:67) +# NOTES: you may modify the `init_dist` function in `deep_ep/utils/envs.py` # according to your own cluster settings, and launch into multiple nodes -python tests/test_intranode.py (docs/legacy.md:69) -python tests/test_internode.py (docs/legacy.md:70) -python tests/test_low_latency.py (docs/legacy.md:71) +python tests/legacy/test_intranode.py +python tests/legacy/test_internode.py +python tests/legacy/test_low_latency.py ``` ## Validation Documentation only — no runtime or API change. I enumerated every repository path and relative link in both files and checked each against `GET /repos/deepseek-ai/DeepEP/git/trees/main?recursive=1`, resolving relative links against the file's own directory. Before the patch two references are dead (`tests/utils/envs.py` in `README.md`; `tests/utils.py` in `docs/legacy.md`); after it, every reference in both files resolves. ## Review history `ds-review-bot` reviewed an earlier revision of this branch, `5c6776e2`, before the commit was corrected. That revision was built with the wrong tree and its `git show --stat` read `108 files changed, 5 insertions(+), 24001 deletions(-)` — the bot was right to reject it, and its inline suggestion asked for exactly this: a commit on top of the parent containing only the two documentation hunks. The branch was then rebuilt and force-pushed. The current head is `b685043b` and the diff is **2 files, +5/−5** (`README.md` +1/−1, `docs/legacy.md` +4/−4), which is the expected stat. Verified independently after the rebuild by diffing each file's live content against its upstream blob: the only removed lines are the four stale instruction lines, and the only added lines are their four corrections. No file outside these two is touched. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-27 21:06:00 +00:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepEP#759
No description provided.