Skip to content
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

Cache gets slower over time #487

Closed
3 of 5 tasks
Dogacel opened this issue Apr 25, 2023 · 3 comments
Closed
3 of 5 tasks

Cache gets slower over time #487

Dogacel opened this issue Apr 25, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Dogacel
Copy link
Contributor

Dogacel commented Apr 25, 2023

Description:

The cached build gets slower over time.

Task version:
v3.11.0

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:

  1. Create a scala, sbt project with build workflow.
  2. Cache target/ directory between runs to run sbt compile incrementally in consequtive commits in a PR.
  3. Wait a couple days and re-try.

Expected behavior:

Because we don't have any snapshot dependencies, cache sped should be preserved.

Actual behavior:
Whenever our sbt cache gets older, probability of it running slower increases.

I have realized no console log is given during this time, meaning no actual compilation happens but something

This is the average runtime for our workflow runs over time.

image

Sometimes the average goes down because sbt cache is refreshed. The average goes down slower as the existing PRs that use the old cache is closed.

I suspect might be related to #408 as sbt relies on both JDK / JRE hashes and dependency hashes.

In our case, the incremental build goes from 2m to 8m slowly. And it never exceeds 8 minutes. I also measured sbt update time which is around 6 minutes. I suspect update is happening even though the cache is there.

@Dogacel Dogacel added bug Something isn't working needs triage labels Apr 25, 2023
@dmitry-shibanov
Copy link
Contributor

Hello @Dogacel. Thank you for your report. We'll take a look on this issue.

@dsame dsame self-assigned this Sep 25, 2023
@dsame
Copy link
Contributor

dsame commented Nov 23, 2023

Hello @Dogacel, the problem is not reproducible. Can you please confirm it still exits and provide the logs of the builds you have noticed the problem?

@dsame
Copy link
Contributor

dsame commented Nov 27, 2023

Hello @Dogacel , i am closing the issue because of it is not reproducible. Feel free to create a new one or reopen this in case the problem still exists.

@dsame dsame closed this as completed Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants