Support overwriting caches #60
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind
Chore
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
3 participants
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo/act!60
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "wip-artifactcache"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Port of https://github.com/nektos/act/pull/2265
cascading-pr updated at forgejo/runner#314
i haven't actually tested it because i don't really have a good way to test caching
mostly everything looks good, i've requested some legibility changes
@ -36,3 +36,3 @@logger logrus.FieldLoggergcing int32 // TODO: use atomic.Bool when we can use Go 1.19gcing atomic.Boolgcingis kind of a bad name, i suggestgcIsRunningor something similar@ -382,0 +357,4 @@bolthold.Where("Key").Eq(prefix).And("Version").Eq(version).And("Complete").Eq(true).SortBy("CreatedAt").Reverse()); err == nil || !errors.Is(err, bolthold.ErrNotFound) {i think this if statement construction is really hard to understand
@ -406,2 +371,2 @@if !errors.Is(err, stop) {return nil, errif err := db.FindOne(cache,bolthold.Where("Key").RegExp(re).same here
There is a test https://code.forgejo.org/forgejo/end-to-end/src/branch/main/actions/example-cache that was run successfully at https://code.forgejo.org/forgejo/act/actions/runs/267/jobs/0 (you can get to it following the cascading-pr breadcrums).
I agree on all counts of naming and code readability. If you don't mind, I'd rather leave them as is because it helps with cherry-picking from Gitea & ACT. If you feel strongly about it, I'll make the change.
alright, looks good to me then ^-^