Skip to content

fix(confirm): update existing SFTP project dir instead of creating a case variant - #39

Merged
jdicorpo merged 5 commits into
mainfrom
fix/confirm-existing-sftp-dir
Nov 17, 2026
Merged

jdicorpo merged 5 commits into
mainfrom
fix/confirm-existing-sftp-dir

Conversation

@jeffdi

@jeffdi jeffdi commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Problem

cf push can land files under the local folder name (e.g. af-r2), while project.json carries the platform name (AF-R2). cf confirm wrote project.json to incoming/projects/<project.json name>, creating a second directory that held only project.json. The shuttle importer then selected the json-only copy and failed with Wrapper file not found for unknown project type.

Change

  • cf confirm now resolves the existing SFTP directory before uploading:
    1. Directory whose project.json has the same platform_project_id, preferring the one containing the wrapper GDS.
    2. Otherwise, a case-insensitive name match (skipping directories bound to a different platform id).
    3. Otherwise, create incoming/projects/<project name>.
  • After uploading the Final project.json, json-only duplicate directories for the same project are removed.
  • Version bump 2.7.2 → 2.7.3.

Testing

  • tests/test_confirm_command.py: 9 passing (directory resolution, duplicate detection, SFTP candidate listing against a fake SFTP tree).
  • Not yet run against the live shuttle. Release is not part of this PR.

Made with Cursor

jdicorpo and others added 5 commits November 17, 2026 13:39
- Sync dw_openframe_user_project template in cf setup and cf repo update
- Harden double_wide macros and wrapper with LibreLane 3 via project flake
- cf status shows only the linked platform project's SFTP rows
- Bump cf-cli to 2.7.3

Co-authored-by: Cursor <cursoragent@cursor.com>
…case variant

cf push can land files under the local folder name (e.g. af-r2) while
project.json carries the platform name (AF-R2). cf confirm previously
wrote project.json to incoming/projects/<project.json name>, creating a
second directory that held only project.json. The shuttle importer then
picked the json-only copy and failed with 'Wrapper file not found'.

Confirm now resolves the existing directory by platform_project_id
(preferring the one with the wrapper GDS), then by case-insensitive name,
and only creates a new directory when neither exists. Json-only duplicate
directories for the same project are removed after the Final project.json
is uploaded.

Bump version to 2.7.3.

Co-authored-by: Cursor <cursoragent@cursor.com>
ubuntu-latest now resolves to Ubuntu 26.04, which has no Python 3.8 in the
setup-python toolcache, so the 3.8 job fails before running tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@jdicorpo
jdicorpo merged commit ffb3eef into main Nov 17, 2026
12 checks passed
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