GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Updated Microsoft distribution to always be aware of up-to-date list of available jdk versions by jmjaffe37 · Pull Request #1071 · actions/setup-java Conversation
|
| File | Description |
|---|---|
| src/distributions/microsoft/microsoft-openjdk-versions.json | Removes the in-repo Microsoft OpenJDK version manifest. |
| src/distributions/microsoft/installer.ts | Switches manifest fetching to the Microsoft-owned repo/path. |
| dist/setup/index.js | Updates the built distribution bundle to match the source change. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| const owner = 'microsoft'; | ||
| const repository = 'openjdk-adoptium-marketplace-data'; | ||
| const branch = 'main'; | ||
| const filePath = | ||
| 'src/distributions/microsoft/microsoft-openjdk-versions.json'; | ||
|
|
||
| const filePath = 'general_info/microsoft-openjdk-versions.json'; | ||
| let releases: tc.IToolRelease[] | null = null; |
| let releases: tc.IToolRelease[] | null = null; | ||
| const fileUrl = `https://api.github.com/repos/${owner}/${repository}/contents/${filePath}?ref=${branch}`; | ||
|
|
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Yeah this one is likely a blocker, you'll get rate limited almost immediately. My initial thought is that we should upload this JSON file to the Visual Studio CDN as part of our release process and then update the link to it using aka.ms? WDYT @jmjaffe37?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Might also be worth talking to @dagood about this one @jmjaffe37 as we'd been talking about doing something similar for the Microsoft build of Go.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Yeah, we currently upload a branch-specific metadata file along with the artifacts to the VS CDN ("asset manifest (json)" row) and update a bunch of aka.ms URLs to point to it so you can get the latest build of a given branch, but we don't yet put our "which branches are actively supported" json on a CDN, and therefore we don't use it from places like this yet. (https://github.com/microsoft/go-lab/issues/201)
We do, though, for the pwsh install script in particular, use the GitHub raw endpoint if the user directs the script to do so. It downloads it through an aka.ms link that we can point to a better file later: https://github.com/microsoft/go-infra/blob/ab7545d931d0cc24e4bc8fc707fe31000826517d/goinstallscript/powershell/go-install.ps1#L293
If you need a live-updated JSON that encompasses all Java branches right away, raw might be a way around it, but I'm not familiar with how production-ready it's considered nowadays.
(All of our CDN publishes happen from branch-specific pipeline runs for now, so we don't have a trivial way to toss a combined JSON file up on a CDN yet. No clue which parts of our path towards a good CDN-based approach are easy/hard/already-done for the Java infra. 😄)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Tbh for this use-case I'm probably okay with this. @dagood maybe we should just take the same approach for go?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
.NET eventually moved away from this approach (a handful of years ago), so for me, at first glance, no, we shouldn't. 😄 It needs more investigation to be used in production IMO at the very least.
I asked Opus for some more info and it seems worse than I thought, in fact:
raw.githubusercontent.com for production or CI/CD?Short answer: No. raw.githubusercontent.com is a convenience endpoint for viewing/fetching files interactively, not a supported content-delivery or distribution endpoint. GitHub itself now steers unauthenticated automated traffic away from it, and many large projects (including .NET) have migrated release metadata and install scripts to their own CDNs.
More details: https://gist.github.com/dagood/0532accee626f3c5219664da283f4c8c
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
https://github.blog/changelog/2025-05-08-updated-rate-limits-for-unauthenticated-requests/ in particular alludes to raw being subject to rate limits, although not clear about it. E.g. maybe not the same limit as APIs.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@dagood @jmjaffe37 @gdams if I understand correctly, we host binaries on the Visual Studio CDN as well, at least for OpenJDK. The JSON could be hosted there as part of JDK binary releases.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
blocking until #1071 (comment) is resolved.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
I discovered a small bug: there is a mislabeled test. A test labeled Link to proof in run logs: https://github.com/actions/setup-java/actions/runs/28541053114/job/84615774435?pr=1071#step:1:16 Edit: created gh issue -- #1072 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Converting this to draft until all open questions and decisions are made. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@jmjaffe37 lots of changes in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.