Skip to content

Fix the visual job's 409: files that differ only by extension (CLI --keep-extension) - #45

Merged
ndbroadbent merged 1 commit into
mainfrom
upload-name-clash
Dec 2, 2026
Merged

ndbroadbent merged 1 commit into
mainfrom
upload-name-clash

Conversation

@ndbroadbent

Copy link
Copy Markdown
Member

Urgent: VisualCI's own visual job fails on every PR, as on #42 (run 46858561842):
HTTP 409 Conflict: emails/added_to_org-you-joined-acme-on-visualci was already uploaded to this build with other content

Each email is written as both .html and .txt, and the CLI drops the extension from names, so both became emails/<name>. sc-8844's duplicate check now refuses the second. Main would fail on its next push too.

  • The CLI (0.2.13):
    • upload (and visualci test --upload, visualci check) refuses two files that would be the same snapshot (the same name and platform) before uploading anything. It lists each pair with both paths and suggests --keep-extension or different --prefix values. Customers will hit this with .html/.txt or .png/.jpg pairs.
    • --keep-extension keeps the extension in names (emails/welcome.html), and keep_extension: true does the same for one of visualci.yml's uploads. The schema is regenerated.
  • Our CI: the emails upload uses --keep-extension. The PR's build will show the emails as renamed: removed under emails/<name>, added as emails/<name>.html and .txt. Approve those.
  • Test: a directory with welcome.html and welcome.txt is refused with both paths named, and uploads as two snapshots with --keep-extension.

The docs (CLI and config references) follow in the pin commit once 0.2.13 is released, since they mustn't describe an unreleased CLI.

…es drop the extension) before sending anything, naming both; --keep-extension (and keep_extension on a visualci.yml upload) keeps extensions in names; our CI's emails upload uses it, fixing the visual job's 409 on every PR
ndbroadbent added a commit that referenced this pull request Dec 2, 2026
@visualci-com

visualci-com Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/visualci · build #169 · 2 changed, 34 added, 17 removed, 295 unchanged · approved by visualci coordinator agent (MCP) for Nathan Broadbent

PR #45: the 17 email snapshots renamed to name.html and name.txt (34 added, 17 removed); keep_extension added to visualci.schema.json; one error message text in the numbers-as-strings spec.

This PR vs base: 2 changed, 34 added, 17 removed since #162, across 1 build

Snapshot Before After
json/mcp/numbers_sent_as_strings_are_read_as_numbers/list_builds-2 (changed) text text, see the build
site/visualci.schema (changed) text text, see the build
emails/added_to_org-you-joined-acme-on-visualci.html (added) text text, see the build
emails/added_to_org-you-joined-acme-on-visualci.txt (added) text text, see the build
emails/auto_buy_paused-a-visualci-credit-pack-for-acme.html (added) text text, see the build
emails/auto_buy_paused-a-visualci-credit-pack-for-acme.txt (added) text text, see the build
emails/auto_buy_paused-acme-reached-its-limit-of-automatic.html (added) text text, see the build
emails/auto_buy_paused-acme-reached-its-limit-of-automatic.txt (added) text text, see the build
and 28 more in the build

Removed: emails/added_to_org-you-joined-acme-on-visualci, emails/auto_buy_paused-a-visualci-credit-pack-for-acme, emails/auto_buy_paused-acme-reached-its-limit-of-automatic, emails/credits_low-acme-has-used-80-of-this, emails/credits_low-acme-has-used-95-of-this, emails/device_sign_in-the-visualci-cli-signed-in-as, emails/invited-grace-hopper-invited-you-to-acme, emails/made_private-widgets-is-private-now, emails/open_source_lost-widgets-no-longer-uses-visualci-s, emails/out_of_credits-acme-is-out-of-visualci-credits, emails/pack_bought-visualci-bought-a-credit-pack-for, emails/plan_changed-acme-is-now-on-the-team, emails/removed_from_org-you-were-removed-from-acme-on, emails/repository_moved-acme-widgets-moved-to-another-organization, emails/token_created-a-new-visualci-token-claude-code, emails/token_created-a-new-visualci-token-github-actions, emails/welcome-welcome-to-visualci

Updated as builds change. Agents can review with VisualCI's MCP tools.

@ndbroadbent
ndbroadbent merged commit c2aa805 into main Dec 2, 2026
10 checks passed
@ndbroadbent
ndbroadbent deleted the upload-name-clash branch December 2, 2026 10:57
ndbroadbent added a commit that referenced this pull request Dec 2, 2026
ndbroadbent added a commit that referenced this pull request Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant