pytest-selective 1.4.0__tar.gz → 1.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pytest_selective-1.5.0/.release-please-manifest.json +3 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/CHANGELOG.md +7 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/CONTRIBUTING.md +6 -2
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/PKG-INFO +1 -1
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/configuration.md +6 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/selection-health.md +5 -2
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/tutorials/adoption-checklist.md +3 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/tutorials/sidecar-dependencies.md +42 -2
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/pyproject.toml +1 -1
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/skills/pytest-selective/SKILL.md +10 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/impact_declarations.py +16 -5
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/impact_graph.py +1 -1
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/impact_models.py +2 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/testing/test_impact_audit_declarations.py +16 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/testing/test_impact_graph.py +137 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/uv.lock +1 -1
- pytest_selective-1.4.0/.release-please-manifest.json +0 -3
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/.dry-lint/baseline.json +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/.dry-lint/progress.json +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/.dry-lint.toml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/.gitattributes +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/.github/dependabot.yml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/.github/plan-lanes.json +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/.github/test-lanes.json +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/.github/validation-inputs.json +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/.github/workflows/ci.yml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/.github/workflows/docs.yml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/.github/workflows/dry-lint-audit.yml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/.github/workflows/dry-lint-judge.yml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/.github/workflows/dry-lint.yml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/.github/workflows/observe-ci.yml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/.github/workflows/pr-title.yml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/.github/workflows/public-actions.yml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/.github/workflows/release-please.yml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/.github/workflows/release.yml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/.github/workflows/weekly-checkpoint.yml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/.github/workflows/windows-performance.yml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/.gitignore +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/.pre-commit-config.yaml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/.readthedocs.yaml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/AGENTS.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/CLAUDE.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/LICENSE +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/PROVENANCE.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/README.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/RELEASING.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/action.yml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/actions/README.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/actions/plan-lanes/action.yml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/actions/pytest-expansion/action.yml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/actions/test-impact/action.yml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/actions/validation-gate/action.yml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/agentsync.toml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/contracts/selection/README.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/contracts/selection/conftest.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/contracts/selection/conftest.py.gv-dependency.yaml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/contracts/selection/quint-connect.json +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/contracts/selection/quint.ini +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/contracts/selection/runtime_deps.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/contracts/selection/selection.qnt +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/contracts/selection/selection_driver.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/contracts/selection/test_selection_contract.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/contracts/selection/test_selection_contract.py.gv-dependency.yaml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/README.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/actions.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/agents.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/assets/banner.png +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/assets/banner.svg +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/assets/brand.json +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/assets/icon.png +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/assets/logo.svg +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/assets/raster-sources.json +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/assets/social-preview.png +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/assets/social-preview.svg +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-22-due-ci.json +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-22-due-docs-ci.json +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-22-due-docs-widget.json +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-22-due-widget.json +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-22-input-replays.json +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-22-obligation-docs.json +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-22-obligation.json +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-22-routing.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-22-selective-docs.json +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-22.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-23-windows-saleor/obligation-baseline.json +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-23-windows-saleor/selective-after-3.11.xml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-23-windows-saleor/selective-after-3.14.xml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-23-windows-saleor/selective-after.json +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-23-windows-saleor/selective-control-3.11.xml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-23-windows-saleor/selective-control-3.14.xml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-23-windows-saleor/selective-control.json +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-23-windows-saleor/selective-earlier.json +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-23-windows-saleor.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/windows-runtime.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/ci-toolkit.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/ci.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/comparison-pytest-impacted.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/evidence.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/local-development.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/pytest-hygiene.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/shared-plan-execution.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/tutorial.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/tutorials/skip-unrelated-ci.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/work-in-progress/tickets/actions-directory-test-plan.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/work-in-progress/tickets/codex-selector-correctness-performance-test-plan.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/work-in-progress/tickets/codex-windows-git-performance-test-plan.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/work-in-progress/tickets/graph-based-inputs-plan.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/work-in-progress/tickets/impacted-improvements-test-plan.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/work-in-progress/tickets/move-action-implementations-test-plan.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/work-in-progress/tickets/public-action-onboarding-test-plan.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/work-in-progress/tickets/ratchet-duplicates-zero-test-plan.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/work-in-progress/tickets/rerun-selection-test-plan.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/documentation/assets/routing-comparison.svg +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/documentation/case-study.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/documentation/check_site.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/documentation/ecosystem.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/documentation/hooks.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/documentation/index.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/documentation/llms.txt +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/documentation/overrides/main.html +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/documentation/publishing.md +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/documentation/requirements.in +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/documentation/requirements.txt +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/mkdocs.yml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/release-please-config.json +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/scripts/benchmark_graph.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/scripts/benchmark_parsing.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/scripts/benchmark_rust.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/scripts/check_docs.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/scripts/check_lane_routing.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/scripts/check_metadata.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/scripts/ci_file_config.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/scripts/compare_impacted.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/scripts/measure_ci_runs.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/scripts/public_actions.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/scripts/render_brand.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/scripts/run_ci_tests.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/scripts/smoke_distribution.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/scripts/tutorial.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/skills/pytest-selective/agents/openai.yaml +0 -0
- {pytest_selective-1.4.0/tests/testing → pytest_selective-1.5.0/src/pytest_selective}/__init__.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/__main__.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/ast_imports.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/checkpoint.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/ci.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/execution.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/gate.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/git_operations.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/hygiene.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/impact_audit.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/impact_audit_declarations.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/impact_audit_plugin.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/impact_cli.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/impact_explanation.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/impact_first_party.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/impact_name_scope.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/impact_selection.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/input_policy.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/local.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/parse_batch.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/plugin.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/py.typed +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/pytest_expansion.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/pytest_plugins.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/pytest_sharding.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/test_inventory.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/typecheck_scope.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/working_tree.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/__init__.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/test_checkpoint_policy.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/test_ci_admission.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/test_ci_admission.py.gv-dependency.yaml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/test_ci_measurements.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/test_ci_test_execution.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/test_distribution_metadata.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/test_hygiene.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/test_public_actions.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/test_pytest_expansion.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/test_release_workflow.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/test_release_workflow.py.gv-dependency.yaml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/test_repository_ci.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/test_repository_ci.py.gv-dependency.yaml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/test_repository_hygiene.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/test_repository_hygiene.py.gv-dependency.yaml +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/test_tutorial.py +0 -0
- {pytest_selective-1.4.0/src/pytest_selective → pytest_selective-1.5.0/tests/testing}/__init__.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/testing/git_repo.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/testing/test_ast_imports.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/testing/test_ci.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/testing/test_gate.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/testing/test_git_repo.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/testing/test_global_inputs.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/testing/test_impact_audit.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/testing/test_impact_explanation.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/testing/test_impact_first_party.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/testing/test_impact_name_scope.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/testing/test_parse_batch.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/testing/test_portability.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/testing/test_pull_request_merge_base.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/testing/test_pytest_plugin.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/testing/test_pytest_plugins.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/testing/test_pytest_sharding.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/testing/test_typecheck_scope.py +0 -0
- {pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/testing/test_working_tree.py +0 -0
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.5.0](https://github.com/gigaverse-app/pytest-selective/compare/v1.4.0...v1.5.0) (2026-11-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **declarations:** share reader-relative dependency rules ([#139](https://github.com/gigaverse-app/pytest-selective/issues/139)) ([7eea4ba](https://github.com/gigaverse-app/pytest-selective/commit/7eea4ba3ec3fd4607acf1e52b171e6eabd0c96fc))
|
|
9
|
+
|
|
3
10
|
## [1.4.0](https://github.com/gigaverse-app/pytest-selective/compare/v1.3.0...v1.4.0) (2026-11-09)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -65,6 +65,7 @@ uv run --group quint pytest-quint-connect report '**/.artifacts/quint-connect/re
|
|
|
65
65
|
| Private working-tree snapshots, staged inputs and index timestamp preservation | `working_tree.py` |
|
|
66
66
|
| Python module names, Unicode matching and dotted import relationships | `ast_imports.py` |
|
|
67
67
|
| Test-file discovery and cache exclusions | `test_inventory.py` |
|
|
68
|
+
| Reader-owned declaration grammar, path expansion and dependency kinds | `impact_declarations.py`, with the canonical models in `impact_models.py` |
|
|
68
69
|
| Repository-relative path containment, including the dot root | `impact_graph.within` |
|
|
69
70
|
|
|
70
71
|
The expansion guard imports the first three owners directly when run as a script;
|
|
@@ -116,8 +117,11 @@ execute-plan`, which CI-esta does not read as a pytest command), a
|
|
|
116
117
|
and a rule that plans the tests lane when the installed-distribution smoke script
|
|
117
118
|
changes, because `distributions` smokes only when that lane is planned. When a test
|
|
118
119
|
or a script starts reading a file by path, declare it next to the reader (a
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
`# gv:test-dependency: PATH` comment for simple inputs, or a directory
|
|
121
|
+
`.gv-dependencies.yaml` with `relative_to: reader` for repeated local layouts).
|
|
122
|
+
Keep per-reader sidecars for exceptions needing separate declarations. Review
|
|
123
|
+
`pytest-selective audit --write-declarations` output for shared conventions before
|
|
124
|
+
retaining its individual sidecars; preserve `content` versus `import` semantics.
|
|
121
125
|
`quality` runs [scripts/check_lane_routing.py](scripts/check_lane_routing.py),
|
|
122
126
|
which plans one-file changes with CI-esta against real Git commits, including a
|
|
123
127
|
full checkpoint, and `ci-esta check-workflow`, which keeps the job conditions, the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: pytest-selective
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.5.0
|
|
4
4
|
Summary: Explainable Python test impact analysis: select affected pytest files from Git changes
|
|
5
5
|
Project-URL: Homepage, https://github.com/gigaverse-app/pytest-selective
|
|
6
6
|
Project-URL: Documentation, https://pytest-selective.readthedocs.io/en/latest/
|
|
@@ -89,6 +89,12 @@ root. `content` follows the file's bytes; `import` also follows its dependencies
|
|
|
89
89
|
The default is `import`. Inputs must match tracked files. Invalid patterns,
|
|
90
90
|
missing matches, duplicate YAML keys, and aliases are errors to repair.
|
|
91
91
|
|
|
92
|
+
For repeated conventions, a directory `.gv-dependencies.yaml` can match `readers`
|
|
93
|
+
and set `relative_to: reader`: each unanchored input then resolves beside each
|
|
94
|
+
matched reader. The default remains `relative_to: manifest`, and `//` always
|
|
95
|
+
anchors at the repository root. This keeps sibling readers' inputs separate;
|
|
96
|
+
see [shared conventions](tutorials/sidecar-dependencies.md#share-a-convention-without-sharing-every-input).
|
|
97
|
+
|
|
92
98
|
Declare lock files, environment manifests, and other suite-wide inputs explicitly:
|
|
93
99
|
|
|
94
100
|
```json
|
|
@@ -29,8 +29,11 @@ uv run pytest-selective audit --config .github/test-impact.json --records impact
|
|
|
29
29
|
|
|
30
30
|
The recorder observes real file reads in the tests you execute. The audit can
|
|
31
31
|
expose a JSON fixture, template or schema that the graph did not declare. Add an
|
|
32
|
-
edge at the reader using a dependency comment
|
|
33
|
-
route.
|
|
32
|
+
edge at the reader using a dependency comment, shared directory manifest or YAML
|
|
33
|
+
sidecar, then recheck the route. Prefer a shared `relative_to: reader` convention
|
|
34
|
+
for repeated layouts, preserving each reader's own input scope and dependency kind.
|
|
35
|
+
`audit --write-declarations` writes individual sidecars as a starting point;
|
|
36
|
+
review repeated patterns before keeping them. Existing shared rules satisfy the audit. See
|
|
34
37
|
[write the missing declarations](configuration.md#write-the-missing-declarations). [Work through the sidecar tutorial](tutorials/sidecar-dependencies.md), or consult
|
|
35
38
|
[declaration syntax](configuration.md#declare-inputs-that-imports-cannot-describe).
|
|
36
39
|
The audit covers observed paths; keep representative full runs for paths it has
|
|
@@ -100,6 +100,9 @@ dependencies:
|
|
|
100
100
|
- [ ] Use `content` for bytes read as data, and `import` when the reader executes
|
|
101
101
|
Python and needs that module's transitive dependencies.
|
|
102
102
|
- [ ] Keep declarations beside readers; use central rules for actual shared policy.
|
|
103
|
+
- [ ] Replace repeated per-reader layouts with directory manifest rules using
|
|
104
|
+
`relative_to: reader`; compare affected readers and lanes before and after,
|
|
105
|
+
including sibling inputs, new matching files and deletions.
|
|
103
106
|
- [ ] Review locks, environment configuration, external checkout pins and plugin startup.
|
|
104
107
|
- [ ] Retain default global inputs until a narrower environment contract is verified.
|
|
105
108
|
- [ ] Review nested/custom pytest configuration before refreshing fingerprints.
|
|
@@ -20,7 +20,7 @@ cd selective-sidecar-demo
|
|
|
20
20
|
git init
|
|
21
21
|
python -m venv .venv
|
|
22
22
|
source .venv/bin/activate
|
|
23
|
-
python -m pip install "pytest-selective>=
|
|
23
|
+
python -m pip install "pytest-selective>=1,<2"
|
|
24
24
|
mkdir -p tests/data
|
|
25
25
|
```
|
|
26
26
|
|
|
@@ -142,7 +142,7 @@ change should select its reader. There is no universal documentation exemption.
|
|
|
142
142
|
| --- | --- | --- |
|
|
143
143
|
| Dependency comment | In the reading Python file | One or two inputs fit naturally beside the code |
|
|
144
144
|
| File sidecar | `reader.py.gv-dependency.yaml` | You need an explicit dependency kind or want declarations outside Python |
|
|
145
|
-
| Directory manifest | `.gv-dependencies.yaml` | Several related readers share inputs |
|
|
145
|
+
| Directory manifest | `.gv-dependencies.yaml` | Several related readers share inputs or a per-reader layout convention |
|
|
146
146
|
|
|
147
147
|
Instead of the sidecar above, a comment in `tests/test_prices.py` can declare:
|
|
148
148
|
|
|
@@ -172,6 +172,46 @@ are relative to its directory. `//` anchors either pattern at the repository
|
|
|
172
172
|
root, for example `//schemas/receipt.json`. Do not use `../` to reach another
|
|
173
173
|
directory.
|
|
174
174
|
|
|
175
|
+
### Share a convention without sharing every input
|
|
176
|
+
|
|
177
|
+
When each reader consumes files beside itself, use `relative_to: reader` in a
|
|
178
|
+
directory manifest. For example, `contracts/.gv-dependencies.yaml` can replace
|
|
179
|
+
one sidecar per contract:
|
|
180
|
+
|
|
181
|
+
```yaml
|
|
182
|
+
dependencies:
|
|
183
|
+
- readers: ["**/test_*_contract.py"]
|
|
184
|
+
relative_to: reader
|
|
185
|
+
inputs: ["model.qnt", "quint-connect.json", "history/**", "//contracts/quint.ini"]
|
|
186
|
+
kind: content
|
|
187
|
+
reason: Each contract reads its own model, manifest and history under the shared pytest configuration.
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
The `readers` pattern is still relative to the manifest. Each unanchored input
|
|
191
|
+
is resolved separately beside each matched reader; `//` still means the repository
|
|
192
|
+
root. Changing one contract's model selects its readers, without connecting sibling
|
|
193
|
+
contracts to that model. New matching readers inherit the same convention. Every
|
|
194
|
+
input pattern must match for **each** reader; a missing history directory in one
|
|
195
|
+
contract is an error even if a sibling has one. Omit inputs your convention does
|
|
196
|
+
not require, or put distinct conventions in separate rules.
|
|
197
|
+
|
|
198
|
+
The default, `relative_to: manifest`, preserves existing behavior. Both modes
|
|
199
|
+
support `content` and `import`; a file sidecar has the same directory as its reader,
|
|
200
|
+
so either mode means the same thing there. Expansion is reused for readers in the
|
|
201
|
+
same directory within a rule and rebuilt against each Git tree, including added
|
|
202
|
+
files and deleted inputs. Editing the shared manifest selects all its readers;
|
|
203
|
+
keep unrelated conventions in separate manifests.
|
|
204
|
+
|
|
205
|
+
For a source scanner, the same mechanism can declare `readers: ["*/test_inventory.py"]`
|
|
206
|
+
with `inputs: ["**/*.py"]`, `relative_to: reader` and `kind: content`. Each inventory
|
|
207
|
+
then follows only the Python source under its own directory. Prefer this to a broad
|
|
208
|
+
rule joining every scanner to every project's source.
|
|
209
|
+
|
|
210
|
+
Keep the convention where its readers live. A project-specific layout belongs in
|
|
211
|
+
its manifest; it does not need a framework-specific plugin in the selector. Review
|
|
212
|
+
`audit --write-declarations` output for repeated layouts before retaining individual
|
|
213
|
+
sidecars. An existing shared rule already satisfies the audit for covered reads.
|
|
214
|
+
|
|
175
215
|
### Reading content versus executing Python
|
|
176
216
|
|
|
177
217
|
| Input use | Kind | What changes can select the reader |
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pytest-selective"
|
|
7
|
-
version = "1.
|
|
7
|
+
version = "1.5.0"
|
|
8
8
|
description = "Explainable Python test impact analysis: select affected pytest files from Git changes"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
@@ -178,6 +178,16 @@ Adapt every path; this is a shape, not an inventory. The rules:
|
|
|
178
178
|
|
|
179
179
|
Add `.test-impact/` to `.gitignore`: the planner keeps its graph cache there.
|
|
180
180
|
|
|
181
|
+
**Reader-owned inputs.** For runtime file reads, use inline `# gv:test-dependency:` comments
|
|
182
|
+
for simple inputs and executed helpers. For repeated layouts, use a directory
|
|
183
|
+
`.gv-dependencies.yaml` with `readers`, `inputs` and `relative_to: reader`: each reader
|
|
184
|
+
then follows its own files, without connecting sibling projects. Keep `kind: content`
|
|
185
|
+
for Python source scanned as text; comments use import semantics. Reserve per-reader
|
|
186
|
+
sidecars for exceptions. Review generated audit declarations for these conventions and
|
|
187
|
+
compare affected readers/lanes before and after, including additions and deletions.
|
|
188
|
+
The [shared-convention guide](https://pytest-selective.readthedocs.io/en/latest/docs/tutorials/sidecar-dependencies/#share-a-convention-without-sharing-every-input)
|
|
189
|
+
has the syntax and validation rules; use a selector revision supporting `relative_to`.
|
|
190
|
+
|
|
181
191
|
**Collection policy.** If pytest configuration exists (`pyproject.toml`, `pytest.ini`, `pytest.toml`, a `tox.ini`
|
|
182
192
|
with `[pytest]`, a `setup.cfg` with `[tool:pytest]`), the planner runs every lane until you record its fingerprints
|
|
183
193
|
(`full-suite fallback: pytest configuration changed (pyproject.toml); review collection policy and refresh its
|
{pytest_selective-1.4.0 → pytest_selective-1.5.0}/src/pytest_selective/impact_declarations.py
RENAMED
|
@@ -47,8 +47,11 @@ def match_inputs(pattern: str, files: set[str], location: str, directory: str =
|
|
|
47
47
|
):
|
|
48
48
|
raise DependencyDeclarationError(f"{location}: invalid repository-relative dependency pattern {pattern!r}")
|
|
49
49
|
rooted = pattern if directory == "." else f"{directory}/{pattern}"
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
if "*" not in rooted and "?" not in rooted:
|
|
51
|
+
targets = {rooted} if rooted in files else set()
|
|
52
|
+
else:
|
|
53
|
+
matcher = _path_pattern(rooted)
|
|
54
|
+
targets = {path for path in files if matcher.fullmatch(path)}
|
|
52
55
|
if not targets:
|
|
53
56
|
raise DependencyDeclarationError(f"{location}: test dependency {pattern!r} matches no tracked files")
|
|
54
57
|
return targets
|
|
@@ -101,9 +104,17 @@ def manifest_edges(path: str, source: bytes, tree: str, files: set[str]) -> dict
|
|
|
101
104
|
if is_directory:
|
|
102
105
|
assert rule.readers is not None
|
|
103
106
|
readers = _expand(rule.readers, reader_files, directory, rule_location)
|
|
104
|
-
|
|
105
|
-
for reader in readers:
|
|
106
|
-
|
|
107
|
+
by_directory: dict[str, set[str]] = {}
|
|
108
|
+
for reader in sorted(readers):
|
|
109
|
+
# Resolve each reader's inputs separately: a sibling's matching files
|
|
110
|
+
# must neither widen this reader nor conceal its missing inputs.
|
|
111
|
+
input_directory = str(PurePosixPath(reader).parent) if rule.relative_to == "reader" else directory
|
|
112
|
+
if input_directory not in by_directory:
|
|
113
|
+
inputs = _expand(rule.inputs, files, input_directory, f"{rule_location}:reader {reader}")
|
|
114
|
+
by_directory[input_directory] = (
|
|
115
|
+
inputs if rule.kind == "import" else {contents_node(target) for target in inputs}
|
|
116
|
+
)
|
|
117
|
+
dependencies = by_directory[input_directory]
|
|
107
118
|
edges.setdefault(reader, set()).update(dependencies | {path})
|
|
108
119
|
edges[reader].discard(reader)
|
|
109
120
|
return edges
|
|
@@ -59,7 +59,7 @@ from pytest_selective.impact_models import (
|
|
|
59
59
|
from pytest_selective.parse_batch import parse_records
|
|
60
60
|
from pytest_selective.pytest_plugins import declared_plugins
|
|
61
61
|
|
|
62
|
-
VERSION = "
|
|
62
|
+
VERSION = "29"
|
|
63
63
|
OPAQUE_CALLS = {
|
|
64
64
|
"__import__",
|
|
65
65
|
"import_module",
|
|
@@ -52,6 +52,8 @@ class DependencyRule(DependencyInputs):
|
|
|
52
52
|
class ManifestDependencyRule(DependencyInputs):
|
|
53
53
|
inputs: list[str] = Field(min_length=1)
|
|
54
54
|
readers: list[str] | None = Field(default=None, min_length=1)
|
|
55
|
+
#: Reader patterns stay manifest-relative; only unanchored inputs change their base.
|
|
56
|
+
relative_to: Literal["manifest", "reader"] = "manifest"
|
|
55
57
|
|
|
56
58
|
|
|
57
59
|
class DependencyManifest(ImpactModel):
|
{pytest_selective-1.4.0 → pytest_selective-1.5.0}/tests/testing/test_impact_audit_declarations.py
RENAMED
|
@@ -74,6 +74,22 @@ def test_a_directory_becomes_a_glob_only_when_every_tracked_file_in_it_was_read(
|
|
|
74
74
|
]
|
|
75
75
|
|
|
76
76
|
|
|
77
|
+
def test_shared_convention_satisfies_audit_without_regenerating_sidecars(repo: Path, tmp_path: Path) -> None:
|
|
78
|
+
write(repo, "tests/data/input.json", "1")
|
|
79
|
+
write(
|
|
80
|
+
repo,
|
|
81
|
+
"tests/.gv-dependencies.yaml",
|
|
82
|
+
'dependencies: [{readers: ["test_*.py"], relative_to: reader, inputs: ["data/*.json"], kind: content}]',
|
|
83
|
+
)
|
|
84
|
+
commit(repo)
|
|
85
|
+
assert plan(repo, tmp_path, "tests/data/input.json").sidecars == []
|
|
86
|
+
# A read outside the convention still needs a declaration.
|
|
87
|
+
[missing] = plan(repo, tmp_path, "tests/data/input.json", "data/other.json").sidecars
|
|
88
|
+
assert missing.rules == [
|
|
89
|
+
ManifestDependencyRule(inputs=["//data/other.json"], kind="content", reason=CONTENT_REASON)
|
|
90
|
+
]
|
|
91
|
+
|
|
92
|
+
|
|
77
93
|
def test_python_inputs_are_import_rules_even_when_globbed(repo: Path, tmp_path: Path) -> None:
|
|
78
94
|
# A script run in a subprocess also depends on what it imports, which `import` follows.
|
|
79
95
|
[sidecar] = plan(repo, tmp_path, "scripts/tool.py", "scripts/helper.py", "data/other.json").sidecars
|
|
@@ -1760,6 +1760,142 @@ def test_directory_declaration_changes_keep_old_and_new_readers(
|
|
|
1760
1760
|
assert affected(repo, base, head, config, cache).selected == ["tests/left/test_one.py", "tests/right/test_two.py"]
|
|
1761
1761
|
|
|
1762
1762
|
|
|
1763
|
+
@pytest.mark.parametrize("kind", ["content", "import"])
|
|
1764
|
+
@pytest.mark.parametrize("change", ["edit", "add", "delete", "transitive", "rooted", "unrelated"])
|
|
1765
|
+
def test_reader_relative_rules_keep_each_readers_inputs_local(
|
|
1766
|
+
repo: Path, config: ImpactConfig, cache: GraphCache, tmp_path: Path, kind: str, change: str
|
|
1767
|
+
) -> None:
|
|
1768
|
+
for directory in ("left", "right"):
|
|
1769
|
+
write(repo, f"tests/{directory}/data/input.py", "from pkg.leaf import VALUE")
|
|
1770
|
+
write(repo, f"tests/{directory}/data/keep.py", "VALUE = 0")
|
|
1771
|
+
write(repo, "shared.json", "1")
|
|
1772
|
+
write(
|
|
1773
|
+
repo,
|
|
1774
|
+
"tests/.gv-dependencies.yaml",
|
|
1775
|
+
f"""dependencies:
|
|
1776
|
+
- readers: ["**/test_*.py"]
|
|
1777
|
+
relative_to: reader
|
|
1778
|
+
inputs: ["data/**/*.py", "//shared.json"]
|
|
1779
|
+
kind: {kind}
|
|
1780
|
+
""",
|
|
1781
|
+
)
|
|
1782
|
+
base = commit(repo)
|
|
1783
|
+
cache.snapshot(repo, base, config)
|
|
1784
|
+
expected = ["tests/left/test_one.py"]
|
|
1785
|
+
if change == "delete":
|
|
1786
|
+
(repo / "tests/left/data/input.py").unlink()
|
|
1787
|
+
elif change == "transitive":
|
|
1788
|
+
write(repo, "src/pkg/leaf.py", "VALUE = 2")
|
|
1789
|
+
if kind == "import":
|
|
1790
|
+
expected.append("tests/right/test_two.py")
|
|
1791
|
+
elif change == "rooted":
|
|
1792
|
+
write(repo, "shared.json", "2")
|
|
1793
|
+
expected.append("tests/right/test_two.py")
|
|
1794
|
+
elif change == "unrelated":
|
|
1795
|
+
write(repo, "tests/left/README.md", "Unconsumed documentation")
|
|
1796
|
+
expected = []
|
|
1797
|
+
else:
|
|
1798
|
+
path = "input.py" if change == "edit" else "nested/new.py"
|
|
1799
|
+
write(repo, f"tests/left/data/{path}", "VALUE = 2")
|
|
1800
|
+
head = commit(repo)
|
|
1801
|
+
assert affected(repo, base, head, config, cache).selected == expected
|
|
1802
|
+
cold = GraphCache(tmp_path / "reader-relative-cold.db")
|
|
1803
|
+
try:
|
|
1804
|
+
assert affected(repo, base, head, config, cold).selected == expected
|
|
1805
|
+
finally:
|
|
1806
|
+
cold.close()
|
|
1807
|
+
|
|
1808
|
+
|
|
1809
|
+
def test_reader_relative_rule_expands_new_readers_and_preserves_removed_readers(
|
|
1810
|
+
repo: Path, config: ImpactConfig, cache: GraphCache
|
|
1811
|
+
) -> None:
|
|
1812
|
+
manifest = "tests/.gv-dependencies.yaml"
|
|
1813
|
+
write(repo, "tests/left/input.json", "1")
|
|
1814
|
+
write(
|
|
1815
|
+
repo,
|
|
1816
|
+
manifest,
|
|
1817
|
+
'dependencies: [{readers: ["left/test_*.py"], relative_to: reader, inputs: ["input.json"]}]',
|
|
1818
|
+
)
|
|
1819
|
+
base = commit(repo)
|
|
1820
|
+
cache.snapshot(repo, base, config)
|
|
1821
|
+
write(repo, "tests/right/input.json", "1")
|
|
1822
|
+
write(repo, "tests/right/deep/test_new.py", "def test_new(): pass")
|
|
1823
|
+
write(repo, "tests/right/deep/input.json", "1")
|
|
1824
|
+
write(repo, manifest, (repo / manifest).read_text().replace("left/test_*.py", "**/test_*.py"))
|
|
1825
|
+
expanded = commit(repo)
|
|
1826
|
+
assert affected(repo, expanded, expanded, config, cache, ["tests/right/deep/input.json"]).selected == [
|
|
1827
|
+
"tests/right/deep/test_new.py"
|
|
1828
|
+
]
|
|
1829
|
+
(repo / manifest).unlink()
|
|
1830
|
+
removed = commit(repo)
|
|
1831
|
+
assert affected(repo, expanded, removed, config, cache).selected == [
|
|
1832
|
+
"tests/left/test_one.py",
|
|
1833
|
+
"tests/right/deep/test_new.py",
|
|
1834
|
+
"tests/right/test_two.py",
|
|
1835
|
+
]
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
@pytest.mark.parametrize("kind", ["content", "import"])
|
|
1839
|
+
def test_shared_convention_is_equivalent_to_individual_sidecars(
|
|
1840
|
+
repo: Path, config: ImpactConfig, cache: GraphCache, kind: str
|
|
1841
|
+
) -> None:
|
|
1842
|
+
readers = ["tests/left/test_one.py", "tests/left/test_extra.py", "tests/right/test_two.py"]
|
|
1843
|
+
write(repo, readers[1], "def test_extra(): pass")
|
|
1844
|
+
write(repo, "shared.json", "1")
|
|
1845
|
+
for directory in ("left", "right"):
|
|
1846
|
+
write(repo, f"tests/{directory}/data/input.py", "from pkg.leaf import VALUE")
|
|
1847
|
+
rule = f'inputs: ["data/**/*.py", "//shared.json"], kind: {kind}'
|
|
1848
|
+
for reader in readers:
|
|
1849
|
+
write(repo, reader + ".gv-dependency.yaml", f"dependencies: [{{{rule}}}]")
|
|
1850
|
+
before = commit(repo)
|
|
1851
|
+
inputs = set(cache.snapshot(repo, before, config).files) - {r + ".gv-dependency.yaml" for r in readers}
|
|
1852
|
+
for reader in readers:
|
|
1853
|
+
(repo / (reader + ".gv-dependency.yaml")).unlink()
|
|
1854
|
+
write(
|
|
1855
|
+
repo,
|
|
1856
|
+
"tests/.gv-dependencies.yaml",
|
|
1857
|
+
f'dependencies: [{{readers: ["**/test_*.py"], relative_to: reader, {rule}}}]',
|
|
1858
|
+
)
|
|
1859
|
+
after = commit(repo)
|
|
1860
|
+
for path in sorted(inputs):
|
|
1861
|
+
expected = affected(repo, before, before, config, cache, [path]).selected
|
|
1862
|
+
assert affected(repo, after, after, config, cache, [path]).selected == expected, path
|
|
1863
|
+
|
|
1864
|
+
|
|
1865
|
+
def test_reader_relative_non_python_helpers_reach_only_their_importers(
|
|
1866
|
+
repo: Path, config: ImpactConfig, cache: GraphCache
|
|
1867
|
+
) -> None:
|
|
1868
|
+
for directory in ("left", "right"):
|
|
1869
|
+
write(repo, f"scripts/{directory}/run.sh", "cat input.json")
|
|
1870
|
+
write(repo, f"scripts/{directory}/input.json", "1")
|
|
1871
|
+
write(repo, f"tests/{directory}/test_script.py", f"# gv:test-dependency: scripts/{directory}/run.sh")
|
|
1872
|
+
write(
|
|
1873
|
+
repo,
|
|
1874
|
+
"scripts/.gv-dependencies.yaml",
|
|
1875
|
+
'dependencies: [{readers: ["**/run.sh"], relative_to: reader, inputs: ["input.json"], kind: content}]',
|
|
1876
|
+
)
|
|
1877
|
+
base = commit(repo)
|
|
1878
|
+
write(repo, "scripts/left/input.json", "2")
|
|
1879
|
+
head = commit(repo)
|
|
1880
|
+
assert affected(repo, base, head, config, cache).selected == ["tests/left/test_script.py"]
|
|
1881
|
+
|
|
1882
|
+
|
|
1883
|
+
@pytest.mark.parametrize("inputs", ["missing.json", "../escape.json", "//missing.json"])
|
|
1884
|
+
def test_reader_relative_rule_validates_inputs_for_every_matched_reader(
|
|
1885
|
+
repo: Path, config: ImpactConfig, cache: GraphCache, inputs: str
|
|
1886
|
+
) -> None:
|
|
1887
|
+
# A match beside one reader must not conceal a broken sibling's declaration.
|
|
1888
|
+
write(repo, "tests/left/missing.json", "1")
|
|
1889
|
+
write(
|
|
1890
|
+
repo,
|
|
1891
|
+
"tests/.gv-dependencies.yaml",
|
|
1892
|
+
f'dependencies: [{{readers: ["**/test_*.py"], relative_to: reader, inputs: ["{inputs}"]}}]',
|
|
1893
|
+
)
|
|
1894
|
+
head = commit(repo)
|
|
1895
|
+
with pytest.raises(DependencyDeclarationError, match="rule 1.*reader tests/"):
|
|
1896
|
+
cache.snapshot(repo, head, config)
|
|
1897
|
+
|
|
1898
|
+
|
|
1763
1899
|
def test_nested_manifests_are_additive_and_exclude_metadata_readers(
|
|
1764
1900
|
repo: Path, config: ImpactConfig, cache: GraphCache
|
|
1765
1901
|
) -> None:
|
|
@@ -1795,6 +1931,7 @@ def test_nested_manifests_are_additive_and_exclude_metadata_readers(
|
|
|
1795
1931
|
'dependencies: [{readers: ["../*.py"], inputs: ["//src/pkg/leaf.py"]}]',
|
|
1796
1932
|
'dependencies: [{readers: ["**/*.py"], inputs: ["/src/pkg/leaf.py"]}]',
|
|
1797
1933
|
'dependencies: [{readers: ["**/*.py"], inputs: ["//src/pkg/leaf.py"], expensive: true}]',
|
|
1934
|
+
'dependencies: [{readers: ["**/*.py"], inputs: ["//src/pkg/leaf.py"], relative_to: unknown}]',
|
|
1798
1935
|
"dependencies: []\ndependencies: []",
|
|
1799
1936
|
'dependencies: [{readers: &paths ["**/*.py"], inputs: *paths}]',
|
|
1800
1937
|
],
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytest_selective-1.4.0 → pytest_selective-1.5.0}/contracts/selection/conftest.py.gv-dependency.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytest_selective-1.4.0 → pytest_selective-1.5.0}/contracts/selection/test_selection_contract.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-22-due-docs-ci.json
RENAMED
|
File without changes
|
{pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-22-due-docs-widget.json
RENAMED
|
File without changes
|
{pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-22-due-widget.json
RENAMED
|
File without changes
|
{pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-22-input-replays.json
RENAMED
|
File without changes
|
{pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-22-obligation-docs.json
RENAMED
|
File without changes
|
{pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-22-obligation.json
RENAMED
|
File without changes
|
|
File without changes
|
{pytest_selective-1.4.0 → pytest_selective-1.5.0}/docs/benchmarks/2026-10-22-selective-docs.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|