-
Notifications
You must be signed in to change notification settings - Fork 2k
attempt to separate security releases from experimental musl releases #2348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -88,13 +88,17 @@ export default async function(github) { | |
| const newVersions = await checkForMuslVersionsAndSecurityReleases(github, versions); | ||
| let updatedVersions = []; | ||
| for (const [version, newVersion] of Object.entries(newVersions)) { | ||
| if (newVersion.muslBuildExists) { | ||
| const { stdout } = await exec(`./update.sh ${newVersion.isSecurityRelease ? "-s " : ""}${version}`); | ||
| if (newVersion.isSecurityRelease) { | ||
| console.log(`Processing security release ${newVersion.fullVersion}`); | ||
| const { stdout } = await exec(`./update.sh -s ${version}`); | ||
| console.log(stdout); | ||
| updatedVersions.push(newVersion.fullVersion); | ||
| } else if (newVersion.muslBuildExists) { | ||
| const { stdout } = await exec(`./update.sh ${version}`); | ||
| console.log(stdout); | ||
| updatedVersions.push(newVersion.fullVersion); | ||
| } else { | ||
| console.log(`There's no musl build for version ${newVersion.fullVersion} yet.`); | ||
| process.exit(0); | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. AI suggested this should be removed during a self-review. This would prevent the loop from running to another entry, meaning we wait for another run. Maybe this is intentional? |
||
| console.log(`There's no musl build for version ${newVersion.fullVersion} yet. Skipping non-security release.`); | ||
|
||
| } | ||
| } | ||
| const { stdout } = (await exec(`git diff`)); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a security release doesn't have a musl build yet, it will still be processed with the
-sflag which skips Alpine updates. However, according to update.sh line 23, the-sflag 'skip[s] updating the yarn and alpine versions.' This means security releases without musl builds will proceed but Alpine variants won't be updated. The original logic required muslBuildExists to be true before processing any release. Consider whether security releases should also check for muslBuildExists, or if this behavior is intentional and should be documented.