Skip to content

Initializr: random per-download id for default-package projects - #6067

Merged
shai-almog merged 2 commits into
masterfrom
feature/initializr-default-package-id
Oct 21, 2026
Merged

shai-almog merged 2 commits into
masterfrom
feature/initializr-default-package-id

Conversation

@shai-almog

Copy link
Copy Markdown
Collaborator

Funnel subjects are SHA-256(package). Most Initializr downloads keep com.example.myapp, so they all merged into one subject (f110a249): 9 of 13 downloads in a recent window. Default-package downloads now get a random 64-hex id used everywhere the hash was (launchers, pom/gradle opt-in, download beacon, steps request); the page sends it as is (id:<hex>). Other packages unchanged, so their cloud-build join by package still works. No BuildCloud change: the server accepts any 64-hex subject.

Tests: Initializr cn1:test 8/8 (matrix test updated: stable per download, distinct across downloads, not the shared hash); beacon test adds the id form; bridge test passes.

🤖 Generated with Claude Code

…lt package

The funnel keys an Initializr download, its launcher runs and its IDE builds
by SHA-256 of the package name. Most downloads keep com.example.myapp, so
they all shared one subject (f110a249) and could not be told apart -- 9 of 13
downloads in one window were that hash. Such a download now gets a random id,
made once and used everywhere the hash was (launchers, pom/gradle telemetry
opt-in, the download beacon and the steps request); the page sends it as is
('id:<64 hex>' from GeneratorModel#beaconKey). Any other package is unchanged,
so its download still joins its first cloud build by package. BuildCloud
already accepts any 64-hex subject: no server change.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@shai-almog
shai-almog marked this pull request as ready for review October 21, 2026 04:55
@shai-almog

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T05:22:48.755428Z c1abc4c Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fbf596ecdf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…om source

java.util.Random on the JavaScript port is seeded from the clock alone, so two
browsers generating a project in the same millisecond got the same id.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@shai-almog

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: c1abc4cc8c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions

Copy link
Copy Markdown
Contributor

Cloudflare Preview

@shai-almog
shai-almog merged commit aa9d442 into master Oct 21, 2026
37 of 44 checks passed
@shai-almog
shai-almog deleted the feature/initializr-default-package-id branch October 21, 2026 06:09
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