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

Stop filtering out pip's "Requirement already satisfied" log lines #1765

Merged
merged 1 commit into from
Feb 24, 2025

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Feb 24, 2025

Since while removing them makes the install logs for cached builds slightly shorter, it hides what is happening and makes it harder to see what package version a historic build may have been using from the logs alone. For example, when comparing a last successful build to a newly failing build after a cache-invalidation event.

This now matches the behaviour for our other supported package managers, where we don't filter out install lines relating to already installed/cached packages.

As a compromise, we still edit the lines slightly, to remove the redundant site-packages path information, which would otherwise cause each package message to wrap across multiple lines.

GUS-W-17897541.

@edmorley edmorley self-assigned this Feb 24, 2025
Since while removing them makes the install logs slightly shorter,
it hides what is happening and makes it harder to see what package
version a historic build may have been using from the logs alone.
For example, when comparing a last successful build to a newly
failing build.

This now matches the behaviour for our other supported package
managers, where we don't filter out install lines relating to already
installed/cached packages.

As a compromise, we still edit the lines slightly, to remove the redundant
site-packages path information, which would otherwise cause each
package message to span multiple lines.

GUS-W-17897541.
@edmorley edmorley force-pushed the pip-already-satisfied-output branch from f8a2709 to aded8ad Compare February 24, 2025 17:15
@edmorley edmorley marked this pull request as ready for review February 24, 2025 17:17
@edmorley edmorley requested a review from a team as a code owner February 24, 2025 17:17
@edmorley edmorley enabled auto-merge (squash) February 24, 2025 17:18
@edmorley edmorley merged commit caa1a19 into main Feb 24, 2025
7 checks passed
@edmorley edmorley deleted the pip-already-satisfied-output branch February 24, 2025 17:40
@heroku-linguist heroku-linguist bot mentioned this pull request Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants