-
Notifications
You must be signed in to change notification settings - Fork 552
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
Ignore RPM environment variables #1613
Conversation
Thank you for the contribution. But it seems a package related to issues that should be addressed by the providers? |
Codecov ReportBase: 30.80% // Head: 30.86% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1613 +/- ##
==========================================
+ Coverage 30.80% 30.86% +0.05%
==========================================
Files 49 49
Lines 16618 16630 +12
Branches 8049 8043 -6
==========================================
+ Hits 5120 5133 +13
- Misses 6216 6228 +12
+ Partials 5282 5269 -13
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
We've been having to apply this patch for the last year or so to maintain sccache in the opensuse build service. However, it would likely be beneficial to others which is why I submitted it. |
Great, please format you code to pass the CI first. And I will invite someone who is more familiar with this part to take a look. |
RPM sets a number of environment variables by default that interfere with the sccache's ability to cache artefacts. Some of these variables are also used by other applications. This extends the default ignore list to allow sccache to be used under different environments for caching.
97116ed
to
8465029
Compare
Done :) |
@Firstyear could you elaborate on each of the added entries how it messes up a compilation? Wouldn't one want to include the |
@drahnr Every single one of these values changes every single time RPM is invoked, especially in an automated build environment like OBS. Since sccache will only match on cache items if the environment flags are identical, then since these values are always change, sccache will always cache miss making it ineffective. |
Thank you! |
Thanks for this! It's really appreciated! |
RPM sets a number of environment variables by default that interfere with the sccache's ability to cache artefacts. Some of these variables are also used by other applications.
This extends the default ignore list to allow sccache to be used under different environments for caching.
An alternate idea is a way to configure and define a list of environment variables to ignore.