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

Display all reasons for invaliding the cache, not just the first reason #1677

Closed
edmorley opened this issue Oct 30, 2024 · 0 comments · Fixed by #1679
Closed

Display all reasons for invaliding the cache, not just the first reason #1677

edmorley opened this issue Oct 30, 2024 · 0 comments · Fixed by #1679
Assignees

Comments

@edmorley
Copy link
Member

The build cache is invalidated if things like the stack, Python version or (for pip users) therequirements.txt file contents changes. (Plus soon will also be invalidated if the package manager / package manager version changes: #1673 / #1674.)

Currently if the cache is invalidated only the first reason for invalidation is shown in the build logs, rather than all of the reasons.

This masks the fact that multiple changes might have occurred in the buildpack/app source/app config, which makes it harder to debug if a build fails as a result of one of the changes not mentioned, unless users directly compare to the build log of the last successful build.

For example if the stack and Python version changed at the same time, then currently only the stack is mentioned:

remote: -----> Stack has changed from heroku-24 to heroku-22, clearing cache

...which can lead to users blaming the stack upgrade for any failures, when it could also be due to the change in Python version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant