mozilla / sccache

Sccache is a ccache-like tool. It is used as a compiler wrapper and avoids compilation when possible. Sccache has the capability to utilize caching in remote storage environments, including various cloud storage options, or alternatively, in local storage.
Apache License 2.0
5.85k stars 552 forks source link

Support S3 Express One Zone #2220

Open Fraccaman opened 4 months ago

Fraccaman commented 4 months ago

Is S3 Express One Zone supported? I'm not sure if I am during something wrong but

Compile requests                    963
Compile requests executed           654
Cache hits                            0
Cache misses                        654
Cache misses (Rust)                 654
Cache timeouts                        0
Cache read errors                     0
Forced recaches                       0
Cache write errors                  654
Compilation failures                  0
Cache errors                          0
Non-cacheable compilations            0
Non-cacheable calls                 [30](https://github.com/Fraccaman/namada/actions/runs/9898192480/job/27344414279#step:11:31)9
Non-compilation calls                 0
Unsupported compiler calls            0
Average cache write               0.000 s
Average compiler                  0.465 s
Average cache read hit            0.000 s
Failed distributed compilations       0

using the followings sccache configuration

env:
  RUSTC_WRAPPER: sccache
  SCCACHE_S3_USE_SSL: false
  CARGO_INCREMENTAL: 0
  RUST_BACKTRACE: full
  SCCACHE_BUCKET: $NAME--usw2-az1--x-s3
  AWS_REGION: $REGION
AJIOB commented 4 months ago

I have the similar output with the JFrog Artifactory (by WebDAV driver) on version 0.8.1.

@Xuanwo, is it possible to be the bug of OpenDAL & sccache integration? As I know, OpenDAL checks lots of backends, and the Artifactory is a part of them.

AJIOB commented 4 months ago

Looks like it may be relative to the apache/opendal#4816, that's the part of the opendal 0.47.2. Now sccache uses 0.47.0 & this bug may still exist.

Fraccaman commented 4 months ago

I dont think upgrading opendal would resolve the problem, see this issue https://github.com/apache/opendal/issues/3681

Xuanwo commented 4 months ago

express One Zone should already supported, we need to add support for enable_virtual_host_style. Would you like to implement it?

Fraccaman commented 3 weeks ago

hi @Xuanwo! Sorry it took so long but I totally forgot about this. Opened #2274