Skip to content
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

[20240514] Disable the cache for GitHub self-hosted runner because it was too slow #204

Open
linzhengen opened this issue May 14, 2024 · 0 comments

Comments

@linzhengen
Copy link
Owner

Restoring cache is too slow

/Users/gh-runner/Library/Caches/go-build
Received 0 of 431509432 (0.0%), 0.0 MBs/sec
Received 0 of 431509432 (0.0%), 0.0 MBs/sec
Received 0 of 431509432 (0.0%), 0.0 MBs/sec
...
Received 8388608 of 431509432 (1.9%), 0.8 MBs/sec
Received 12582912 of 431509432 (2.9%), 1.1 MBs/sec
Received 12582912 of 431509432 (2.9%), 1.0 MBs/sec
...
Received 373293056 of 431509432 (86.5%), 2.4 MBs/sec
Received 377487360 of 431509432 (87.5%), 2.4 MBs/sec
Received 381681664 of 431509432 (88.5%), 2.4 MBs/sec
Received 385875968 of 431509432 (89.4%), 2.4 MBs/sec
...
Received 398458880 of 431509432 (92.3%), 2.4 MBs/sec
Received 398458880 of 431509432 (92.3%), 2.4 MBs/sec
Received 402653184 of 431509432 (93.3%), 2.4 MBs/sec
Received 406847488 of 431509432 (94.3%), 2.4 MBs/sec
Received 411041792 of 431509432 (95.3%), 2.4 MBs/sec
Received 411041792 of 431509432 (95.3%), 2.4 MBs/sec
...
Received 423120824 of 431509432 (98.1%), 2.4 MBs/sec
Received 423120824 of 431509432 (98.1%), 2.4 MBs/sec
Received 423120824 of 431509432 (98.1%), 2.4 MBs/sec
Received 423120824 of 431509432 (98.1%), 2.4 MBs/sec
...
Cache Size: ~412 MB (431509432 B)

Example

jobs:
  check-go-mod:
    runs-on: self-hosted
    steps:
...
      - uses: actions/setup-go@v5
        with:
          go-version-file: /go.mod
          check-latest: true
          cache: false
      - name: check go mod
        run: |
          go mod tidy
          git diff --exit-code go.mod
          git diff --exit-code go.sum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant