The repository-docs checks format paths with the platform separator, so their own tests fail on Windows
Maintainers usually reply within 2 days
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 20/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- python
- Domain
- documentation, testing
Research direction
The two messages are built in check_document_reviews (the document.relative_to(root) path, around line 38) and check_document_links (the Broken link: f-string, around line 234) in the repository-docs checker that tests/test_repository_docs.py exercises. Run that test file on Windows to see the backslash paths in the failing regex matches. Done means .as_posix() is applied to both relative paths and the suite passes on Windows. PR #430 is already open against this issue, so review or test it rather than starting a second fix.
Written by the indexing model from the issue text.
Description
Problem
tests/test_repository_docs.py is red on Windows (8 of 29), because the checkers build their messages from a Path while their own assertions match repository-style paths:
E AssertionError: Regex pattern did not match.
E Expected regex: 'examples/demo/guide\.md'
E Actual message: 'examples\demo\guide.md: missing leading knowledge metadata with last_checked'
Two places do it:
check_document_reviews->path = document.relative_to(root)(line ~38) and uses it in every messagecheck_document_links->f"Broken link: {document.relative_to(root)}:{number}: {destination}"(line ~234)
On POSIX the two render identically, which is why CI does not see it.
Expected
The message reads as a repository path on every platform, so pytest tests/test_repository_docs.py is green on Windows as it is on Linux - a contributor running the suite there should not have to wonder whether the failure is theirs.
Fix
.as_posix() on the two relative paths. PR to follow.
- Dominant language
- Python
- Stars
- 90
- Forks
- 47
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 19
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from langgenius/graphon
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
langgenius/graphon#443 ·
Maintainers usually reply within 2 days
-
Complete LLM results disappear from streamed answersPossibly taken @WH-2099 claimed this 13 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
langgenius/graphon#389 · 1 comment · 1 assignee ·
Maintainers usually reply within 2 days
-
bug(utils): parse_json_markdown drops a valid payload when the text contains a backtickPossibly taken @WH-2099 claimed this 9 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
langgenius/graphon#380 · 1 assignee ·
Maintainers usually reply within 2 days
-
project#graphon
Difficulty 4/5 3-5 days Newbie friendliness 40/100
langgenius/graphon#442 ·
Maintainers usually reply within 2 days
-
project#graphon
Difficulty 3/5 1-2 days Newbie friendliness 50/100
langgenius/graphon#438 · 1 comment ·
Maintainers usually reply within 2 days
All issues in langgenius/graphon
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
micronaut-projects/micronaut-core#14585 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
[BUG]: Management endpoints /v1/memory/stats and /v1/memory/counts bypass API key authenticationOpen
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
docling-project/docling-serve#788 ·
Maintainers usually reply within 1 day
-
Mend: dependency security vulnerability untriaged
Difficulty 1/5 Under an hour Newbie friendliness 78/100
opensearch-project/cross-cluster-replication#1805 ·
Maintainers usually reply within 1 day
-
load_advbench() re-raises HTTPError as the bare class, so a failed download ends in a TypeErrorOpenneeds-triage
Difficulty 1/5 Under an hour Newbie friendliness 82/100
Maintainers usually reply within 2 days