Skip to content

Keep exact Maven paths when uploading RCs with Vercel CLI 65 - #35

Merged
wudidapaopao merged 1 commit into
mainfrom
fix-rc-upload-flags
Nov 5, 2026
Merged

wudidapaopao merged 1 commit into
mainfrom
fix-rc-upload-flags

Conversation

@wudidapaopao

@wudidapaopao wudidapaopao commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

The 1.0.0-rc.2 upload stored every file under a random suffix, for example chdb-bom-1.0.0-rc.2-YLlw8aJ8tD72Eqbykt6gXZHzCt4c66.pom, so none of them was at its Maven path. publish-rc-repository.sh took the CLI from @latest, and Vercel CLI 65 treats --add-random-suffix and --allow-overwrite (now --force) as switches: the false passed after each switched it on. The CLI also prints its listing on stderr now, so blob_exists saw no output and the preflight would have passed for paths that already existed.

The 59 suffixed blobs have been deleted (the rc.1 blobs are untouched), and rc.2 was uploaded again with this version of the script.

  • The CLI is pinned to vercel@65.11.0 and called with its switch syntax: no --add-random-suffix, no --force, --multipart, --store.
  • blob_exists reads the listing from stderr as well.
  • Every upload is checked to have landed on its exact Maven path; one that did not fails the run, and rollback removes it with the rest.
  • Rollback deletes by the URL the upload reported and passes --yes.

Checked against the production store with a throwaway artifact (com/clickhouse/chdb/chdb-upload-check/0.0.0/…, since deleted): it was stored at its exact path, maven.chdb.io served it byte for byte, and a second run was refused by the preflight.

🤖 Generated with Claude Code

Note

Pin Vercel CLI 65 in RC upload script and verify exact blob paths

Updates publish-rc-repository.sh to run blob commands through npx with Vercel CLI 65.11.0 instead of picking a CLI from PATH or installing the latest. Passes the store ID via --store instead of --store-id.

  • Each upload response is checked for an HTTPS URL ending in the requested relative path; a missing URL or path mismatch fails the command. The URL is recorded for rollback.
  • Removes the random-suffix and overwrite arguments; multipart upload switches from an explicit value to a flag.
  • blob_exists now matches the target name against both stdout and stderr of the blob-list output.
  • Rollback deletes each recorded uploaded URL with --yes and names the failed value in error messages.

Macroscope summarized a37a3b2.

The 1.0.0-rc.2 upload stored every file under a random suffix, for
example chdb-bom-1.0.0-rc.2-YLlw8aJ8tD72Eqbykt6gXZHzCt4c66.pom. The
script took the CLI from @latest, and Vercel CLI 65 treats
--add-random-suffix and --allow-overwrite (now --force) as switches: the
"false" passed after each switched it on. The CLI also prints its
listing on stderr now, so blob_exists saw no output and the preflight
passed for paths that existed.

The CLI is now pinned to 65.11.0 and called with its switch syntax, the
listing is read from stderr as well, rollback deletes by the URL the
upload reported and passes --yes, and every upload is checked to have
landed on its exact Maven path; one that did not is rolled back with
the rest.

Checked against the production store with a throwaway artifact: it is
stored at its exact path, maven.chdb.io serves it unchanged, and a
second run is refused by the preflight.
@wudidapaopao
wudidapaopao merged commit b89ca57 into main Nov 5, 2026
30 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.

1 participant