Skip to content

Conversation

@tuan-tran-thanh
Copy link

@tuan-tran-thanh tuan-tran-thanh commented Jan 23, 2026

The tox dependency group is defined in the workspace root's pyproject.toml, but uv run tox from package directories couldn't access it. This fix:

  • Syncs the workspace root with the tox dependency group to ensure tox is installed in the root's .venv
  • Runs tox directly from the root's .venv/bin/tox instead of using uv run, which allows it to find the correct tox.ini in the package directory while using the workspace-level tox installation

This resolves the 'Failed to spawn: tox' error when running make test from individual package directories like packages/gooddata-sdk.

JIRA: TRIVIAL
risk: nonprod

…directories

The tox dependency group is defined in the workspace root's pyproject.toml,
but uv run tox from package directories couldn't access it. This fix:
- Syncs the workspace root with the tox dependency group to ensure tox
  is installed in the root's .venv
- Runs tox directly from the root's .venv/bin/tox instead of using
  uv run, which allows it to find the correct tox.ini in the package
  directory while using the workspace-level tox installation

This resolves the 'Failed to spawn: tox' error when running make test
from individual package directories like packages/gooddata-sdk.

JIRA: TRIVIAL
risk: nonprod
@tuan-tran-thanh tuan-tran-thanh changed the title fix: resolve tox not found error when running make test from package … fix: resolve tox not found error make test from package directories Jan 23, 2026
.PHONY: mypy
mypy:
uv run tox $(TOX_FLAGS) -e mypy
(cd $(ROOT_DIR); uv sync --group tox > /dev/null 2>&1) && $(ROOT_DIR)/.venv/bin/tox $(TOX_FLAGS) -e mypy
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider using the .venv created and populated during make dev. Installing dependencies at runtime is non-optimal and is also a side effect.

@tuan-tran-thanh tuan-tran-thanh added the do not merge Do not merge this yet label Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge Do not merge this yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants