Failure to cleanup caches

Open Beginner friendly
#236 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
github-actions, julia, typescript
Domain
ci-cd

Research direction

Start at src/post.js around line 109 and inspect how GITHUB_ACTION_PATH is used when this action is called through a reusable workflow and another action. Reproduce the post-run cleanup, then verify that handle_caches.jl is found and old caches are removed without the missing-file warning.

Written by the indexing model from the issue text.

Description

bug

I setup a reusable workflow calling an action, which in turn calls this cache action. The post run step produces the following warning and fails to clean up caches:

Cache saved successfully
Running Pkg.gc() and cleaning up old caches...
.../julia/1.12.6/x64/bin/julia .../my_actions/v0.21.0/my_action/handle_caches.jl rm org/PackageName.jl julia_workspace;os=Linux; refs/pull/42/merge true
ERROR: SystemError: opening file ".../my_actions/v0.21.0/my_action/handle_caches.jl": No such file or directory
Stacktrace:
 [1] include(mod::Module, _path::String)
   @ Base ./Base.jl:306
 [2] exec_options(opts::Base.JLOptions)
   @ Base ./client.jl:317
 [3] _start()
   @ Base ./client.jl:550
Warning: Failed to delete old caches: The process '.../julia/1.12.6/x64/bin/julia' failed with exit code 1

This is the buggy source code, which falsely assumes that GITHUB_ACTION_PATH points to this repository: https://github.com/julia-actions/cache/blob/3d16c7ad4a80a5895845e02494b69b00bd9da138/src/post.js#L109.

Dominant language
TypeScript
Stars
46
Forks
17
Avg merge
9d 18h
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from julia-actions/cache

All issues in julia-actions/cache

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.