Skip to content

Conversation

@tony
Copy link
Member

@tony tony commented Nov 3, 2025

Earlier:

Changes

Fix: vcspull add keeps tilde workspace labels (#483)

why: Path-first adds run from inside a workspace were logging './' instead of the
expected '~/…/'.
what:

  • allow workspace_root_label callers to bypass the cwd short-circuit
  • map path-first CLI flows to tilde-labelled workspaces unless --workspace ./
  • confirm behaviour via updated CLI test suite

Regression coverage: workspace label from root

why: Prevent future regressions in path-first adds when invoked from the workspace
root.
what:

  • convert the previous xfail into a passing assertion on tilde labels

Verification

  • UV_CACHE_DIR=/tmp/uv-cache uv run ruff check . --fix --show-fixes
  • UV_CACHE_DIR=/tmp/uv-cache uv run ruff format .
  • UV_CACHE_DIR=/tmp/uv-cache uv run mypy
  • UV_CACHE_DIR=/tmp/uv-cache uv run py.test -k workspace_label -vv

tony added 3 commits November 2, 2025 19:46
why: vcspull add run from the workspace root mislabels the workspace as './'.
what:
- add xfail capturing that Workspace root should contract to the tilde path
why: Running vcspull add from the workspace root should still display the tilde path instead of './'.
what:
- allow workspace_root_label callers to opt out of the cwd short-circuit
- pass preserve_cwd_label only when users explicitly request './' or for legacy name/url flows
why: The regression test now verifies  shows '~/study/python/' even when run from that workspace.
what:
- remove xfail and assert both log and config store the tilde-labelled workspace
@codecov
Copy link

codecov bot commented Nov 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.09%. Comparing base (8c79f19) to head (9cf8d0e).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #483      +/-   ##
==========================================
+ Coverage   79.04%   79.09%   +0.04%     
==========================================
  Files          13       13              
  Lines        1785     1789       +4     
  Branches      381      382       +1     
==========================================
+ Hits         1411     1415       +4     
  Misses        235      235              
  Partials      139      139              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

tony added a commit that referenced this pull request Nov 3, 2025
why: Document that path-first adds now keep tilde workspace labels even when run from the workspace root.
what:
- add bug-fix entry under v1.46.x referencing PR #483
why: Document that path-first adds now keep tilde workspace labels even when run from the workspace root.
what:
- add bug-fix entry under v1.46.x referencing PR #483
@tony tony force-pushed the vcspull-add-bug-pt-3 branch from b86f4b1 to 9cf8d0e Compare November 3, 2025 02:04
@tony tony merged commit bb9d599 into master Nov 3, 2025
9 checks passed
@tony tony deleted the vcspull-add-bug-pt-3 branch November 3, 2025 02:08
tony added a commit that referenced this pull request Nov 4, 2025
why: path-first workflow should not create stray ./ workspaces.
what:
- always prefer tilde labels unless CLI requests ./ explicitly
- write duplicate sections using ordered loader items without config_items
- expand CLI coverage for dot workspace scenarios

refs: #483, #482, #481, #480
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.

2 participants