Repository navigation
Commit e27fddc
committed
[nvbugs/6784181][fix] Stop test_relative_path_validity flagging generated docs and installed envs
test_relative_path_validity resolved every relative markdown link against the
worktree, which produced two classes of false positive:
- Links to Sphinx pages that docs/source/helper.py generates at build time
(llm_api_examples, trtllm_serve_examples, visual_gen_examples). These are
gitignored, so they can never exist in a source checkout even though
docs/source/index.rst references them from a real toctree. Add an explicit
allowlist keyed off helper.py's write_index() outputs.
- Third-party markdown vendored inside an installed Python environment under
the repository root. Pruning only matched directories named .venv/venv, so an
environment under any other name was walked and its READMEs validated against
this repository. Detect environments by their pyvenv.cfg marker and
site-packages layout, and skip .dist-info/.egg-info metadata directories.
Genuinely broken relative links are still reported. Removes the waiver for this
failure.
Signed-off-by: trtllm-agent <296075020+trtllm-agent@users.noreply.github.com>1 parent 82f9804 commit e27fddc
2 files changed
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
41 | 51 | | |
42 | 52 | | |
43 | 53 | | |
| |||
149 | 159 | | |
150 | 160 | | |
151 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
152 | 169 | | |
153 | 170 | | |
154 | 171 | | |
| |||
223 | 240 | | |
224 | 241 | | |
225 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
226 | 249 | | |
227 | 250 | | |
228 | 251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | 233 | | |
235 | 234 | | |
236 | 235 | | |
| |||
0 commit comments