Open Systemcluster opened 2 months ago
Attention: Patch coverage is 30.00000%
with 7 lines
in your changes missing coverage. Please review.
Project coverage is 40.88%. Comparing base (
0cc0c62
) to head (7296b2b
). Report is 68 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
src/client.rs | 33.33% | 2 Missing and 4 partials :warning: |
src/dist/client_auth.rs | 0.00% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@Xuanwo could you review this? I don't think it's a controversial change, but I can revert to calling connect
without timeout
if the environment variable isn't set otherwise.
Depending on system configuration, waiting for a connection error when checking for a running server can take a long time. In my local WSL installation, this is causing sccache to take several minutes to start up.
This PR replaces the two calls to
connect
withconnect_timeout
and adds aSCCACHE_CONNECTION_TIMEOUT
environment variable for configuration. The code for reading the env var is copied fromserver.rs
: https://github.com/mozilla/sccache/blob/9958e7c8a023b39df2c56073748d37a77febac03/src/server.rs#L94-L101