Skip to content

Implement an actions cache server v2 like the artifacts server on gitea side #33393

Open
@ChristopherHX

Description

@ChristopherHX

Feature Description

I think it would be great for Gitea to have an actions/cache v2 service on the server side, because at some point of time GitHub might delete the fallback to v1 see this comment.
This can take more than a year to even happen due to GHES compatibility that is forced to opt out to this new server like done in artifacts, not urgent.

Reasons:

  • For the newer artifacts service that uses the same blob upload + protobuf protocol we already set ACTIONS_RESULT_URL to the gitea address, we are unable to only handle the v2 cache service directly on the act_runner locally without breaking artifacts or writing a proxy/forwarding logic.
  • I'm using caching for sharing data across runners on github.com, currently every runner needs manual setup for a dedicated cache server

I have already written a prototype for a cache server in my actions server prototype in c# like done for artifacts before.

I'm open to work on this for the Gitea Server Side this shares work done for the new artifacts backend, this would require new database records and cleanup jobs.

Let me know what you think about this topic, there might be reasons I'm not aware so the cache service were never added to the Gitea side

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/gitea-actionsrelated to the actions of Giteatype/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions