Skip to content

Feat- Use cloud buckets for caching#215

Merged
naveensrinivasan merged 1 commit into
mainfrom
feat/caching-bucket
Feb 24, 2021
Merged

Feat- Use cloud buckets for caching#215
naveensrinivasan merged 1 commit into
mainfrom
feat/caching-bucket

Conversation

@naveensrinivasan
Copy link
Copy Markdown
Member

@naveensrinivasan naveensrinivasan commented Feb 23, 2021

  • Please check if the PR fulfills these requirements
  • Tests for the changes have been added (for bug fixes/features)
  • 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

image

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    None

  • Other information:

@naveensrinivasan naveensrinivasan self-assigned this Feb 23, 2021
@github-actions
Copy link
Copy Markdown

Integration tests failure for d62373d5bd811940da6476d791d56fa073e2a975

@github-actions
Copy link
Copy Markdown

Integration tests failure for e82c083da1490d3fae38cf66d9f7200820464062

@github-actions
Copy link
Copy Markdown

Integration tests failure for 78a9f9427f41cae4308004a620172b1c0b8c3efb

@github-actions
Copy link
Copy Markdown

Integration tests failure for 0153fc09a2e215e94728ee3aa647e6863881acfe

@github-actions
Copy link
Copy Markdown

Integration tests failure for f562c7afde831f2efac00a6c2b418158d4c07709

@github-actions
Copy link
Copy Markdown

Integration tests failure for 040003a6ddfc968a7fae3c0e3a650452222b9828

@github-actions
Copy link
Copy Markdown

Integration tests failure for 98d81c780243a8de3a5595924c6d3037512fdf74

@github-actions
Copy link
Copy Markdown

Integration tests success for 13f89aea035f845264bdb9d45d6b6e466992ebb7

@github-actions
Copy link
Copy Markdown

Integration tests success for 530a0017ef68768d78af43816b21cf62c9c41302

@github-actions
Copy link
Copy Markdown

Integration tests failure for 723524c89fe4ae37363eb56f13fde7e447d2ed2c

@github-actions
Copy link
Copy Markdown

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
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be addressed when we fix this issue #206

Comment thread Makefile
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
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be addressed when we fix this issue #206

Comment thread Makefile
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" ./...
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@github-actions
Copy link
Copy Markdown

Integration tests success for 9db47ee40cb69230cb076d3ff29056876bd3ebdf

Comment thread go.mod
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
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix for handling tarball gregjones/httpcache#86.

As the next steps, I will fork this repo into OSSF org.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's fine to keep it in your personal one actually. Any reason to put it in the org?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk of me blowing off the repository 😉

Copy link
Copy Markdown
Contributor

@dlorenc dlorenc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done!

@naveensrinivasan naveensrinivasan merged commit cab29a2 into main Feb 24, 2021
@naveensrinivasan naveensrinivasan deleted the feat/caching-bucket branch February 24, 2021 16:17
@naveensrinivasan naveensrinivasan linked an issue Feb 25, 2021 that may be closed by this pull request
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.

Move to more reliable and scalable caching solution

2 participants