René's URL Explorer Experiment


Title: setup-java post action caching for v4 is slower than v3 · Issue #601 · actions/setup-java · GitHub

Open Graph Title: setup-java post action caching for v4 is slower than v3 · Issue #601 · actions/setup-java

X Title: setup-java post action caching for v4 is slower than v3 · Issue #601 · actions/setup-java

Description: Description: When switching from setup-java v3 to v4 the post run part is significantly slower. Task version: v4 Platform: Ubuntu macOS Windows Runner type: Hosted Self-hosted Repro steps: Slow: jobs: verify: runs-on: ubuntu-22.04 steps:...

Open Graph Description: Description: When switching from setup-java v3 to v4 the post run part is significantly slower. Task version: v4 Platform: Ubuntu macOS Windows Runner type: Hosted Self-hosted Repro steps: Slow: jo...

X Description: Description: When switching from setup-java v3 to v4 the post run part is significantly slower. Task version: v4 Platform: Ubuntu macOS Windows Runner type: Hosted Self-hosted Repro steps: Slow: jo...

Opengraph URL: https://github.com/actions/setup-java/issues/601

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"setup-java post action caching for v4 is slower than v3","articleBody":"**Description:**\r\nWhen switching from setup-java v3 to v4 the post run part is significantly slower.\r\n\r\n**Task version:**\r\nv4\r\n\r\n**Platform:**\r\n- [x] Ubuntu\r\n- [ ] macOS\r\n- [ ] Windows\r\n\r\n**Runner type:**\r\n- [x] Hosted\r\n- [ ] Self-hosted\r\n\r\n**Repro steps:**  \r\n\r\nSlow:\r\n```\r\njobs:\r\n  verify:\r\n    runs-on: ubuntu-22.04\r\n    steps:\r\n      - uses: actions/checkout@v4\r\n        with:\r\n          fetch-depth: 0\r\n      - uses: actions/setup-java@v4\r\n        with:\r\n          java-version: '11'\r\n          distribution: 'temurin'\r\n          cache: 'maven'\r\n      - name: run maven\r\n        run: |\r\n          mvn -B --settings .mvn/settings.xml verify\r\n        shell: bash\r\n\r\n```\r\n![image](https://github.com/actions/setup-java/assets/135227466/ff42f60a-3597-441a-890e-e8367c7d2330)\r\n\r\n---\r\nFast:\r\n```\r\njobs:\r\n  verify:\r\n    runs-on: ubuntu-22.04\r\n    steps:\r\n      - uses: actions/checkout@v4\r\n        with:\r\n          fetch-depth: 0\r\n      - uses: actions/setup-java@v3\r\n        with:\r\n          java-version: '11'\r\n          distribution: 'temurin'\r\n          cache: 'maven'\r\n      - name: run maven\r\n        run: |\r\n          mvn -B --settings .mvn/settings.xml verify\r\n        shell: bash\r\n``` \r\n![image](https://github.com/actions/setup-java/assets/135227466/9320c7ea-e63b-4e83-bc3b-e2a58c2f1aa1)\r\n\r\n\r\n**Expected behavior:**\r\nv4 should have the same speed as v3. \r\nBoth executions had no cache hits and the amount of data was approx 30MB.\r\n\r\n**Actual behavior:**\r\nv4 is in this case orders of magnitude slower than v3.\r\n\r\n**Additional information:**\r\n\r\nI have seen that actions setup-node https://github.com/actions/setup-node/issues/878\r\nand setup-ruby https://github.com/ruby/setup-ruby/issues/543 have had the same problem.\r\nIt seems that it had to do with the upgrade of the actions/cache version.\r\n\r\nI think their solution was to exit the process manually after caching is complete as otherwise the job simply hangs until some timeout.\r\n\r\nAfter looking at this repo for a very short time **my guess** is that perhaps somewhere \r\nhere -\u003e https://github.com/actions/setup-java/blob/9704b39bf258b59bc04b50fa2dd55e9ed76b47a8/src/cache.ts#L150\r\na ` process.exit(0)` could solve the problem (as I said, I'm only guessing based on the node and ruby solutions).\r\n","author":{"url":"https://github.com/htpaf","@type":"Person","name":"htpaf"},"datePublished":"2024-02-29T10:50:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/601/setup-java/issues/601"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:56264dcc-c4d9-4661-be79-abc1a4e59346
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8D4A:17CBFE:44BCE3:5CA6FB:6A629984
html-safe-nonceb52f959dc4ac7b0ec638cd011bd6bb5e05786b7bc4ad943caeb4b254af3323f0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDRBOjE3Q0JGRTo0NEJDRTM6NUNBNkZCOjZBNjI5OTg0IiwidmlzaXRvcl9pZCI6IjM5NzA4MDAyMjU4OTI4NjY0MzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac484c41d2c7d6d38c53ddfab16b34cad2f746347a2705b764821d010aadd9b695
hovercard-subject-tagissue:2160965065
github-keyboard-shortcutsrepository,issues,actions,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/setup-java/601/issue_layout
twitter:imagehttps://opengraph.githubassets.com/bab40f78fe3ed1af4ba6cdd82552be2243985ab8933e70051bb910ad41355707/actions/setup-java/issues/601
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bab40f78fe3ed1af4ba6cdd82552be2243985ab8933e70051bb910ad41355707/actions/setup-java/issues/601
og:image:altDescription: When switching from setup-java v3 to v4 the post run part is significantly slower. Task version: v4 Platform: Ubuntu macOS Windows Runner type: Hosted Self-hosted Repro steps: Slow: jo...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehtpaf
hostnamegithub.com
expected-hostnamegithub.com
None10ffaff7e212112a3b4eeb224665f909dff951514db9af4f00de33b681024427
turbo-cache-controlno-preview
go-importgithub.com/actions/setup-java git https://github.com/actions/setup-java.git
octolytics-dimension-user_id44036562
octolytics-dimension-user_loginactions
octolytics-dimension-repository_id196057608
octolytics-dimension-repository_nwoactions/setup-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id196057608
octolytics-dimension-repository_network_root_nwoactions/setup-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee470e2fc66e1ac7f528caec0fd8825047788d563
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/actions/setup-java/issues/601#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-java%2Fissues%2F601
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-java%2Fissues%2F601
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=actions%2Fsetup-java
Reloadhttps://github.com/actions/setup-java/issues/601
Reloadhttps://github.com/actions/setup-java/issues/601
Reloadhttps://github.com/actions/setup-java/issues/601
Please reload this pagehttps://github.com/actions/setup-java/issues/601
actions https://github.com/actions
setup-javahttps://github.com/actions/setup-java
Notifications https://github.com/login?return_to=%2Factions%2Fsetup-java
Fork 863 https://github.com/login?return_to=%2Factions%2Fsetup-java
Star 2k https://github.com/login?return_to=%2Factions%2Fsetup-java
Code https://github.com/actions/setup-java
Issues 10 https://github.com/actions/setup-java/issues
Pull requests 6 https://github.com/actions/setup-java/pulls
Actions https://github.com/actions/setup-java/actions
Projects https://github.com/actions/setup-java/projects
Security and quality 0 https://github.com/actions/setup-java/security
Insights https://github.com/actions/setup-java/pulse
Code https://github.com/actions/setup-java
Issues https://github.com/actions/setup-java/issues
Pull requests https://github.com/actions/setup-java/pulls
Actions https://github.com/actions/setup-java/actions
Projects https://github.com/actions/setup-java/projects
Security and quality https://github.com/actions/setup-java/security
Insights https://github.com/actions/setup-java/pulse
setup-java post action caching for v4 is slower than v3https://github.com/actions/setup-java/issues/601#top
https://github.com/aparnajyothi-y
bugSomething isn't workinghttps://github.com/actions/setup-java/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/htpaf
htpafhttps://github.com/htpaf
on Feb 29, 2024https://github.com/actions/setup-java/issues/601#issue-2160965065
https://private-user-images.githubusercontent.com/135227466/308891587-ff42f60a-3597-441a-890e-e8367c7d2330.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODQ4NDcwMjUsIm5iZiI6MTc4NDg0NjcyNSwicGF0aCI6Ii8xMzUyMjc0NjYvMzA4ODkxNTg3LWZmNDJmNjBhLTM1OTctNDQxYS04OTBlLWU4MzY3YzdkMjMzMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzIzJTJGdXMtZWFzdC0xJTJGcz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mcifQ.Bl9j0R2jfQFdMfEyxxLHBxMgMmnjGpHvuzjvnO1YBvk
actions/setup-node#878https://github.com/actions/setup-node/issues/878
ruby/setup-ruby#543https://github.com/ruby/setup-ruby/issues/543
setup-java/src/cache.tshttps://github.com/actions/setup-java/blob/9704b39bf258b59bc04b50fa2dd55e9ed76b47a8/src/cache.ts#L150
9704b39https://github.com/actions/setup-java/commit/9704b39bf258b59bc04b50fa2dd55e9ed76b47a8
aparnajyothi-yhttps://github.com/aparnajyothi-y
bugSomething isn't workinghttps://github.com/actions/setup-java/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.