Feat- Use cloud buckets for caching#215
Conversation
|
Integration tests failure for d62373d5bd811940da6476d791d56fa073e2a975 |
d62373d to
e82c083
Compare
|
Integration tests failure for e82c083da1490d3fae38cf66d9f7200820464062 |
e82c083 to
78a9f94
Compare
|
Integration tests failure for 78a9f9427f41cae4308004a620172b1c0b8c3efb |
78a9f94 to
0153fc0
Compare
|
Integration tests failure for 0153fc09a2e215e94728ee3aa647e6863881acfe |
0153fc0 to
f562c7a
Compare
|
Integration tests failure for f562c7afde831f2efac00a6c2b418158d4c07709 |
f562c7a to
040003a
Compare
|
Integration tests failure for 040003a6ddfc968a7fae3c0e3a650452222b9828 |
040003a to
98d81c7
Compare
|
Integration tests failure for 98d81c780243a8de3a5595924c6d3037512fdf74 |
98d81c7 to
13f89ae
Compare
|
Integration tests success for 13f89aea035f845264bdb9d45d6b6e466992ebb7 |
13f89ae to
530a001
Compare
|
Integration tests success for 530a0017ef68768d78af43816b21cf62c9c41302 |
530a001 to
723524c
Compare
|
Integration tests failure for 723524c89fe4ae37363eb56f13fde7e447d2ed2c |
|
Integration tests success for 723524c89fe4ae37363eb56f13fde7e447d2ed2c |
| go get github.com/onsi/ginkgo/ginkgo@v1.14.2 | ||
| go mod download | ||
| make ci-e2e | ||
| sleep 1m # this required to avoid 403 from GitHub API's |
There was a problem hiding this comment.
This will be addressed when we fix this issue #206
| mkdir -p cache | ||
| USE_DISK_CACHE=1 DISK_CACHE_PATH="./cache" ./scorecard --repo=https://github.com/ossf/scorecard --show-details --metadata=openssf --format json > ./bin/results.json | ||
| ginkgo -p -v -cover ./... | ||
| @sleep 30 |
There was a problem hiding this comment.
This will be addressed when we fix this issue #206
| USE_DISK_CACHE=1 DISK_CACHE_PATH="./cache" ./scorecard --repo=https://github.com/ossf/scorecard --show-details --metadata=openssf --format json > ./bin/results.json | ||
| ginkgo -p -v -cover ./... | ||
| @sleep 30 | ||
| ginkgo -p -v -cover --skip="E2E TEST:blob" ./... |
There was a problem hiding this comment.
Ignoring blob test when running disk cache tests
Use cloud buckets for httpcache. The implementation uses https://github.com/google/go-cloud for it to be cloud vendor agnostic.
723524c to
9db47ee
Compare
|
Integration tests success for 9db47ee40cb69230cb076d3ff29056876bd3ebdf |
| github.com/kr/text v0.2.0 // indirect | ||
| github.com/naveensrinivasan/httpcache v1.2.1 | ||
| github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect | ||
| github.com/naveensrinivasan/httpcache v1.2.2 |
There was a problem hiding this comment.
The fix for handling tarball gregjones/httpcache#86.
As the next steps, I will fork this repo into OSSF org.
There was a problem hiding this comment.
It's fine to keep it in your personal one actually. Any reason to put it in the org?
There was a problem hiding this comment.
Risk of me blowing off the repository 😉
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Feature
What is the current behavior? (You can also link to an open issue here)
The present implementation provides only disk-based caching.
What is the new behavior (if this is a feature change)?
Cache
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
None
Other information: