You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test: add Poetry (poetry.lock) edge-case fixture for vg build #252
We already seed fixtures for pnpm, Yarn Berry, Cargo workspaces, and Go workspaces. Poetry (pyproject.toml + poetry.lock) is a common Python path that still needs a small deterministic corpus so vg build / dependency graph extraction stays stable.
What to do
Add a minimal fixture under test/ (or the repo’s existing fixture layout) with a Poetry lock that includes at least one path/git or extras edge case if supported — keep it tiny.
Assert deterministic graph.json (stable IDs/sorts) for vg build on that fixture.
Follow CONTRIBUTING grammar/fixture patterns; no network during the test.
Some scope notes from the current code, so the fixture asserts the right surfaces:
vg build reads pyproject.toml only (ingestPyproject in src/engine/manifests.ts): PEP 621 [project].dependencies and [tool.poetry.dependencies], minus python. It does not read poetry.lock, Poetry dependency groups ([tool.poetry.group.<name>.dependencies]), or [tool.poetry.dev-dependencies]. Names are used as written, not PEP 503-normalised, so Flask in one manifest and flask in another become two external nodes.
poetry.lock is read elsewhere:lockfileVersion(root, 'pypi', name) (tomlPackageLock, PEP 503 name match) gives the pinned version, and fullDependencyGraph → poetryLikeLockTree gives the component list for vg sbom export (components only, no edges).
Suggested fixture, test/fixtures/poetry/: a pyproject.toml and matching poetry.lock with:
one plain dependency
an extras table, requests = { version = "^2.31", extras = ["socks"] }
Activity
vibgrate-team commentedon Oct 5, 2026
Some scope notes from the current code, so the fixture asserts the right surfaces:
vg buildreadspyproject.tomlonly (ingestPyprojectinsrc/engine/manifests.ts): PEP 621[project].dependenciesand[tool.poetry.dependencies], minuspython. It does not readpoetry.lock, Poetry dependency groups ([tool.poetry.group.<name>.dependencies]), or[tool.poetry.dev-dependencies]. Names are used as written, not PEP 503-normalised, soFlaskin one manifest andflaskin another become two external nodes.poetry.lockis read elsewhere:lockfileVersion(root, 'pypi', name)(tomlPackageLock, PEP 503 name match) gives the pinned version, andfullDependencyGraph→poetryLikeLockTreegives the component list forvg sbom export(components only, no edges).Suggested fixture,
test/fixtures/poetry/: apyproject.tomland matchingpoetry.lockwith:requests = { version = "^2.31", extras = ["socks"] }mylib = { path = "../mylib", develop = true }[tool.poetry.group.dev.dependencies]entryAssertions:
graph.jsonedges are sorted and identical across two builds, with the group dependency pinned as currently absentlockfileVersionresolves each dependency, including mixed case → PEP 503 matchfullDependencyGraph(...).componentsis exactWhether dependency groups should show in the graph is a behaviour question. Keep this PR to fixture + tests and raise that separately.
vibgrate-team commentedon Oct 29, 2026
Folding this into #511, which covers this lockfile with the exact functions, fixtures and acceptance tests. Please pick it up there!