perf: optimize release workflow with caching, parallelization, and cleanup#1
Open
devin-ai-integration[bot] wants to merge 2 commits into
Open
perf: optimize release workflow with caching, parallelization, and cleanup#1devin-ai-integration[bot] wants to merge 2 commits into
devin-ai-integration[bot] wants to merge 2 commits into
Conversation
…eanup - Split monolithic job into 3 parallel jobs: build, changelog, release - build and changelog run concurrently; release waits for both - Replace deprecated gradle/gradle-build-action@v2 with gradle/actions/setup-gradle@v4 - Add Gradle dependency caching via setup-java cache: 'gradle' - Remove redundant 'clean' task (CI workspace is always fresh) - Add --build-cache and --parallel flags to Gradle - Use shallow checkout for build job (only changelog needs full history) - Remove unnecessary runner.os != Windows conditional (always ubuntu) - Remove macOS stat fallback (always Linux) - Streamline verify step by removing verbose echo headers - Merge chmod into build step to reduce step count Co-Authored-By: Tong317 <zhizhen_yumou@hotmail.com>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Co-Authored-By: Tong317 <zhizhen_yumou@hotmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Restructures the
release.ymlworkflow from a single monolithic job into three parallel/pipelined jobs to reduce wall-clock time:buildchangelogchangelogbuildreleaseAdditional speed improvements:
cache: 'gradle'tosetup-javaand upgraded togradle/actions/setup-gradle@v4(replaces deprecatedgradle-build-action@v2)clean(CI workspace is fresh), added--build-cacheand--parallelfetch-depth: 1); only changelog needs full historyrunner.os != 'Windows'guard, macOSstatfallback, verbose echo headers in verify step, and unusedchangelogjob outputReview & Testing Checklist for Human
releasejob:upload-artifact@v4with a multi-pathpath:block uploadsbuild/libs/netmusiclist-*.jarandLICENSE.txt. On download, the directory structure may or may not be preserved — ifdownload-artifactflattens paths,softprops/action-gh-releasewon't find the JAR atbuild/libs/netmusiclist-$VERSION.jar. Verify locally or with a test tag that the downloaded artifact layout matches thefiles:glob.softprops/action-gh-releasewithout checkout: Thereleasejob has noactions/checkoutstep. Confirm this action resolves the tag fromGITHUB_REFenv var (set by the runner) rather than requiring a local.gitdirectory.v0.0.0-test.1) to verify the full workflow. PR CI only exercisesbuild.yml, notrelease.yml, so CI passing here does not validate the release flow. Check that: build artifacts are produced, changelog is generated, and the GitHub Release is created with the expected files attached.Notes
Link to Devin session: https://app.devin.ai/sessions/402413976aa04d2883ea4d183ea3699c
Requested by: @1499501762