Skip to content

ci,config(fix): Harden smoke test and VCS matrix - #588

Merged
tony merged 6 commits into
masterfrom
fix/ci-smoke-and-config-fixes
Nov 28, 2026
Merged

tony merged 6 commits into
masterfrom
fix/ci-smoke-and-config-fixes

Conversation

@tony

@tony tony commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Run the runtime dependency smoke test against locked uv.lock packages.
  • Install and verify Git, Mercurial, and Subversion in the CI test job.
  • Bind UV_PYTHON to the matrix interpreter with --frozen dependency sync.
  • Separate workspace and repository names in legacy-option load warnings.
  • Isolate test_config_variations checkouts per parametrized test directory.

Targets released libvcs 0.46.0 on PyPI without a git source override so CI and packaging hardening can merge independently.

Before / After

Before (workspace key without trailing slash):

~/.vcspull.yaml: top-level rev/shallow/depth are deprecated; move them under 'options:' (run 'vcspull migrate'). Affected: ~/codeflask

After:

~/.vcspull.yaml: top-level rev/shallow/depth are deprecated; move them under 'options:' (run 'vcspull migrate'). Affected: '~/code' -> 'flask'

Stack

  1. ci,config(fix): Harden smoke test and VCS matrix #588 fix/ci-smoke-and-config-fixes (this PR)
  2. config(feat): Add targets, VCS blocks, and schema #589 feat/config-v2-targets-and-git
  3. sync,status(feat): Apply target and dirty policy #590 feat/status-and-sync-policy
  4. worktree(feat): Apply checkout policy under lock #578 options-streamline-and-git-filtering

Test plan

  • Verify isolated test_config_variations checkouts and structured caplog.records legacy-key warning formatting:
$ uv run py.test tests/test_sync.py
  • Verify the built wheel imports every vcspull module and runs --help across all subcommands using only locked runtime dependencies:
$ uv run py.test -m scripts__runtime_dep_smoketest scripts/test_runtime_dep_smoketest.py
  • Pass ruff check ., ruff format . --check, and mypy . in CI with Git, Mercurial, and Subversion installed

Refs #460, #587.

tony added 4 commits November 28, 2026 11:52
why: Source overrides and lockfile revisions must reach the installed
wheel smoke test without adding development dependencies.

what: Run the smoke script through an isolated, noneditable uv runtime
environment. Keep CI, the explicit pytest wrapper, and contributor
instructions on the same locked dependency set.
why: Missing Subversion silently skipped native sync and recovery
inspection cases.

what:
- Install and verify native VCS prerequisites.
- Select and assert the matrix interpreter with a frozen lock.
- Report reasons for skipped tests.
why: The deprecation warning for top-level `rev`/`shallow`/`depth`
listed each entry as the workspace key glued to the repo name. A key
written without a trailing slash, such as `~/code`, printed
`~/codeflask`, which is neither a path nor an entry name.

what:
- Quote the workspace root and repo name and join them with ` -> `,
  matching how config load errors name an entry
- Test a workspace key without a trailing slash
why: Fetching configured remotes exposed shared checkout paths across
parametrized cases and external SSH network access in sync fixtures.

what:
- Use isolated per-test checkout roots in write_config_remote
- Use local unprefixed remote URLs in CONFIG_VARIATION_FIXTURES
tony added 2 commits November 28, 2026 14:31
why: String-matching caplog.text skips the structured vcspull_legacy_count attribute emitted by load_configs().

what:
- Filter caplog.records by vcspull_legacy_count and assert the formatted separator on getMessage()
@tony
tony force-pushed the fix/ci-smoke-and-config-fixes branch from 9f4f5cd to 06983c0 Compare November 28, 2026 20:54
@tony
tony removed this pull request from stack #591 November 28, 2026 21:42
@tony
tony merged commit ef6e057 into master Nov 28, 2026
7 checks passed
@tony
tony deleted the fix/ci-smoke-and-config-fixes branch November 28, 2026 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant