Code Monkey home page Code Monkey logo

Comments (6)

mwestphal avatar mwestphal commented on August 28, 2024
2023-01-30T12:22:07.3039868Z Requested labels: ubuntu-20.04
2023-01-30T12:22:07.3039917Z Job defined at: f3d-app/f3d/.github/workflows/clean-caches.yml@refs/heads/master
2023-01-30T12:22:07.3039982Z Waiting for a runner to pick up this job...
2023-01-30T12:22:08.0284974Z Job is waiting for a hosted runner to come online.
2023-01-30T12:22:10.7619530Z Job is about to start running on the hosted runner: Hosted Agent (hosted)
2023-01-30T12:22:13.3122471Z Current runner version: '2.301.1'
2023-01-30T12:22:13.3155102Z ##[group]Operating System
2023-01-30T12:22:13.3155722Z Ubuntu
2023-01-30T12:22:13.3156198Z 20.04.5
2023-01-30T12:22:13.3156536Z LTS
2023-01-30T12:22:13.3156837Z ##[endgroup]
2023-01-30T12:22:13.3157234Z ##[group]Runner Image
2023-01-30T12:22:13.3157706Z Image: ubuntu-20.04
2023-01-30T12:22:13.3158047Z Version: 20230122.1
2023-01-30T12:22:13.3158653Z Included Software: https://github.com/actions/runner-images/blob/ubuntu20/20230122.1/images/linux/Ubuntu2004-Readme.md
2023-01-30T12:22:13.3159420Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu20%2F20230122.1
2023-01-30T12:22:13.3159898Z ##[endgroup]
2023-01-30T12:22:13.3160387Z ##[group]Runner Image Provisioner
2023-01-30T12:22:13.3160793Z 2.0.98.1
2023-01-30T12:22:13.3161088Z ##[endgroup]
2023-01-30T12:22:13.3162270Z ##[group]GITHUB_TOKEN Permissions
2023-01-30T12:22:13.3163034Z Actions: write
2023-01-30T12:22:13.3163415Z Checks: write
2023-01-30T12:22:13.3163974Z Contents: write
2023-01-30T12:22:13.3164398Z Deployments: write
2023-01-30T12:22:13.3164835Z Discussions: write
2023-01-30T12:22:13.3165166Z Issues: write
2023-01-30T12:22:13.3165534Z Metadata: read
2023-01-30T12:22:13.3165934Z Packages: write
2023-01-30T12:22:13.3166264Z Pages: write
2023-01-30T12:22:13.3166690Z PullRequests: write
2023-01-30T12:22:13.3167474Z RepositoryProjects: write
2023-01-30T12:22:13.3167867Z SecurityEvents: write
2023-01-30T12:22:13.3168279Z Statuses: write
2023-01-30T12:22:13.3168732Z ##[endgroup]
2023-01-30T12:22:13.3173648Z Secret source: Actions
2023-01-30T12:22:13.3174343Z Prepare workflow directory
2023-01-30T12:22:13.4259430Z Prepare all required actions
2023-01-30T12:22:13.4495341Z Getting action download info
2023-01-30T12:22:13.7064077Z Download action repository 'easimon/wipe-cache@main' (SHA:adb186dba1d8d3a6a03114ea8381c27f1a7073a1)
2023-01-30T12:22:14.4969635Z Complete job name: Delete all caches
2023-01-30T12:22:14.6367903Z ##[group]Run easimon/wipe-cache@main
2023-01-30T12:22:14.6368332Z with:
2023-01-30T12:22:14.6368910Z   github-token: ***
2023-01-30T12:22:14.6369165Z   dry-run: false
2023-01-30T12:22:14.6369417Z ##[endgroup]
2023-01-30T12:22:14.6733451Z ##[group]Run ids="$(
2023-01-30T12:22:14.6733836Z �[36;1mids="$(�[0m
2023-01-30T12:22:14.6734094Z �[36;1m  gh api \�[0m
2023-01-30T12:22:14.6734686Z �[36;1m    -H 'Accept: application/vnd.github+json' \�[0m
2023-01-30T12:22:14.6735085Z �[36;1m    "/repos/${GITHUB_REPOSITORY}/actions/caches" | \�[0m
2023-01-30T12:22:14.6735414Z �[36;1m  jq '.actions_caches[].id' |�[0m
2023-01-30T12:22:14.6735693Z �[36;1m  tr '\n' ' ' \�[0m
2023-01-30T12:22:14.6735957Z �[36;1m)"�[0m
2023-01-30T12:22:14.6736228Z �[36;1mecho "cache_ids=$ids" >> "$GITHUB_OUTPUT"�[0m
2023-01-30T12:22:14.6806470Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2023-01-30T12:22:14.6806840Z env:
2023-01-30T12:22:14.6807707Z   GH_TOKEN: ***
2023-01-30T12:22:14.6808039Z ##[endgroup]
2023-01-30T12:22:15.3222024Z ##[group]Run for id in 6563 6562 6561 6560 6556 6536 6424 6450 6401 6402 6403 6412 6404 6405 6436 6437 6406 6438 6439 6428 6529 6440 6433 6407 6447 6525 6491 6408 6546 6397 ; do
2023-01-30T12:22:15.3222533Z �[36;1mfor id in 6563 6562 6561 6560 6556 6536 6424 6450 6401 6402 6403 6412 6404 6405 6436 6437 6406 6438 6439 6428 6529 6440 6433 6407 6447 6525 6491 6408 6546 6397 ; do�[0m
2023-01-30T12:22:15.3222877Z �[36;1m  if [[ "false" == 'true' ]]; then�[0m
2023-01-30T12:22:15.3223235Z �[36;1m    echo "would delete cache $id using following command:"�[0m
2023-01-30T12:22:15.3223568Z �[36;1m    echo gh api \�[0m
2023-01-30T12:22:15.3223848Z �[36;1m      --method DELETE \�[0m
2023-01-30T12:22:15.3224194Z �[36;1m      -H 'Accept: application/vnd.github+json' \�[0m
2023-01-30T12:22:15.3224573Z �[36;1m      "/repos/${GITHUB_REPOSITORY}/actions/caches/$id"�[0m
2023-01-30T12:22:15.3224859Z �[36;1m  else�[0m
2023-01-30T12:22:15.3225140Z �[36;1m    echo "deleting cache $id"�[0m
2023-01-30T12:22:15.3225477Z �[36;1m    gh api \�[0m
2023-01-30T12:22:15.3225743Z �[36;1m      --method DELETE \�[0m
2023-01-30T12:22:15.3226242Z �[36;1m      -H 'Accept: application/vnd.github+json' \�[0m
2023-01-30T12:22:15.3226614Z �[36;1m      "/repos/${GITHUB_REPOSITORY}/actions/caches/$id"�[0m
2023-01-30T12:22:15.3226909Z �[36;1m  fi�[0m
2023-01-30T12:22:15.3227119Z �[36;1mdone�[0m
2023-01-30T12:22:15.3289635Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2023-01-30T12:22:15.3289975Z env:
2023-01-30T12:22:15.3290633Z   GH_TOKEN: ***
2023-01-30T12:22:15.3290860Z ##[endgroup]
2023-01-30T12:22:15.3443764Z deleting cache 6563
2023-01-30T12:22:15.7867020Z deleting cache 6562
2023-01-30T12:22:16.3590957Z deleting cache 6561
2023-01-30T12:22:16.7931127Z deleting cache 6560
2023-01-30T12:22:17.1957818Z deleting cache 6556
2023-01-30T12:22:17.6127734Z deleting cache 6536
2023-01-30T12:22:18.0565045Z deleting cache 6424
2023-01-30T12:22:18.4866178Z deleting cache 6450
2023-01-30T12:22:19.1729831Z deleting cache 6401
2023-01-30T12:22:19.7322573Z deleting cache 6402
2023-01-30T12:22:20.1954019Z deleting cache 6403
2023-01-30T12:22:20.6587722Z deleting cache 6412
2023-01-30T12:22:21.0677845Z deleting cache 6404
2023-01-30T12:22:21.5405092Z deleting cache 6405
2023-01-30T12:22:21.9317144Z deleting cache 6436
2023-01-30T12:22:22.3300653Z deleting cache 6437
2023-01-30T12:22:22.8036289Z deleting cache 6406
2023-01-30T12:22:23.2769340Z deleting cache 6438
2023-01-30T12:22:23.6514967Z deleting cache 6439
2023-01-30T12:22:24.1001152Z deleting cache 6428
2023-01-30T12:22:24.5111913Z deleting cache 6529
2023-01-30T12:22:24.9215143Z deleting cache 6440
2023-01-30T12:22:25.5476498Z deleting cache 6433
2023-01-30T12:22:25.9887600Z deleting cache 6407
2023-01-30T12:22:26.4439219Z deleting cache 6447
2023-01-30T12:22:26.8163542Z deleting cache 6525
2023-01-30T12:22:27.2976074Z deleting cache 6491
2023-01-30T12:22:27.7223017Z deleting cache 6408
2023-01-30T12:22:28.1465673Z deleting cache 6546
2023-01-30T12:22:28.6538314Z deleting cache 6397
2023-01-30T12:22:29.1115984Z Cleaning up orphan processes

from wipe-cache.

easimon avatar easimon commented on August 28, 2024

You're right -- the API returns only 30 caches in one call. This is extendable to 100 -- but not unlimited. I guess I need to put some kind of loop around the get/delete. Will take a look.

from wipe-cache.

mwestphal avatar mwestphal commented on August 28, 2024

The workaround is simple, just run the action as many times as needed.

from wipe-cache.

easimon avatar easimon commented on August 28, 2024

@mwestphal: Should work for arbitrary cache amounts now, please take a look.

from wipe-cache.

mwestphal avatar mwestphal commented on August 28, 2024

I'd rather not delete my caches right now, but I will let you know if it fails to work for some reason

from wipe-cache.

mwestphal avatar mwestphal commented on August 28, 2024

Confirmed to work as expected now

from wipe-cache.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.