Earl Warren
ebc7758c1f
chore: s|github.com/nektos/act/pkg|code.forgejo.org/forgejo/runner/act|
2025-07-28 19:23:07 +02:00
Earl Warren
c377159121
chore: use the same .golangci.yml as the runner & gofumpt over gofmt ( #206 )
...
To prepare for a smooth merge in the runner codebase.
- run with --fix for gofumpt and golangci
- manual edits for
- disabling useless package naming warning
- rename variables that had underscore in their name
- remove trailing else at the end of a few functions
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/206
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-07-28 12:26:41 +00:00
Earl Warren
1b0c31121a
chore(tests): add coverage for ./pkg/artifactcache ( #198 )
...
https://code.forgejo.org/forgejo/act/actions/runs/1157/jobs/0#jobstep-10-251
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/198
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-07-27 15:25:14 +00:00
Earl Warren
21f71e5cdc
Revert "fix: docker buildx cache restore not working" ( #173 )
...
This reverts commit f147e45da3
.
f147e45da3
is not the same as
https://github.com/nektos/act/pull/2236/files
Refs: https://code.forgejo.org/forgejo/act/pulls/122
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/173
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-07-07 11:06:04 +00:00
Christoph Heiss
92b7df3da7
fix: artifacts: format IP:port pair using net.JoinHostPort()
...
This ensures that brackets are added for IPv6 addresses.
Without this, This could result in addresses like "2001:db8::1:3456",
which - obviously - would break further down and prevent the server from
starting.
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2025-06-01 12:10:47 +02:00
ChristopherHX
f147e45da3
fix: docker buildx cache restore not working
2025-04-24 09:00:51 +00:00
Kwonunn
835a9d2068
fix: move reading cache to separate function
2025-03-24 10:48:28 +01:00
Kwonunn
639b83c26c
fix: do not immediately close the db after opening it
2025-03-24 10:17:04 +01:00
Earl Warren
187e1df52c
fix: reduce the time during which the database stays open
...
* During get/upload, close the database while reading/writing so
it does not stay open for longer than necessary. This may be helpful
when uploads run in parallel.
* Be more informative when returning error 500
* Make useCache handle errors
* Return 500 immediately when writing the cache fails instead of falling
through to 200
Refs: https://code.forgejo.org/forgejo/runner/issues/509
2025-03-23 23:25:09 +01:00
Kwonunn
ef94958cd5
review: Gusted review
2025-03-21 13:45:51 +00:00
Kwonunn
9150081892
return 404 when not found
2025-03-21 13:45:51 +00:00
Kwonunn
62310a5a09
set external url header
2025-03-21 13:45:51 +00:00
Kwonunn
e54faaf56d
fix tests for cache proxy
2025-03-21 13:45:51 +00:00
Kwonunn
43f1298653
fix: external url and mac function matching
2025-03-21 13:45:51 +00:00
Kwonunn
57a2a56e32
add unit tests for mac calculation
2025-03-21 13:45:51 +00:00
Kwonunn
ef43d7c615
review: fix various issues brought up by Gusted
2025-03-21 13:45:51 +00:00
Kwonunn
7a21d64333
review: discard params in clean
2025-03-21 13:45:51 +00:00
Kwonunn
11062e4d6a
return 403 instead of 500 when not authorized correctly
2025-03-21 13:45:51 +00:00
Kwonunn
e3adb49c50
functional save and restore through proxy
2025-03-21 13:45:51 +00:00
Kwonunn
95e754c06b
integrate the new cache proxy with the server viceice set up
2025-03-21 13:45:51 +00:00
Kwonunn
d92f9305dc
wip: begin implementation of new design in proxy
2025-03-21 13:45:51 +00:00
Michael Kriese
7458ddfaf4
fix: join org and repo
2025-03-21 13:45:51 +00:00
Michael Kriese
21ca8102fa
fix: validate timestamp
2025-03-21 13:45:51 +00:00
Michael Kriese
1082b31367
fix: partial secure cache
2025-03-21 13:45:51 +00:00
Michael Kriese
d8376ed890
fix(cache-server): use consistent uint64
2024-11-22 01:01:12 +01:00
ChristopherHX
017db5edae
fix: cache adjust restore order of exact key matches ( #2267 )
...
* wip: adjust restore order
* fixup
* add tests
* cleanup
* fix typo
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit 88ac88c5413a430b41d767a942c8e70e778e1d61)
2024-11-07 16:25:40 +01:00
Jason Song
b0c54edc78
Support overwriting caches ( #2265 )
...
* feat: support overwrite caches
* test: fix case
* test: fix get_with_multiple_keys
* chore: use atomic.Bool
* test: improve get_with_multiple_keys
* chore: use ping to improve path
* fix: wrong CompareAndSwap
* test: TestHandler_gcCache
* chore: lint code
* chore: lint code
(cherry picked from commit 087b28afc56351b93dd68d7e59a2c8740f6c0e44)
2024-11-07 16:25:26 +01:00
ChristopherHX
4b2554db86
fix: docker buildx cache restore not working ( #2236 )
...
* To take effect artifacts v4 pr is needed with adjusted claims
(cherry picked from commit c606759e8c0c2d5036c5bb15d7ec87beca1150cf)
2024-11-07 16:25:15 +01:00
Kristoffer
a25c37e83c
fix: match cache restore-keys
in creation reverse order ( #2153 )
...
* Match cache restore-keys in creation reverse order
* Match full prefix when selecting cache
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2024-01-20 12:11:50 +00:00
Jason Song
ab0f270c64
fix: handle zero size ( #1888 )
2023-07-10 20:35:27 -07:00
ChristopherHX
4d3a674f12
refactor: open boltdb only while using it ( #1879 )
...
* refactor: open boltdb only while using it
* patch
* Update handler_test.go
* Update handler_test.go
* Update handler_test.go
* Update handler.go
* timeout * 10
* pr feedback
* fixup
2023-07-10 16:57:06 +00:00
Jason Song
b51f608660
Support cache ( #1770 )
...
* feat: port
* fix: use httprouter
* fix: WriteHeader
* fix: bolthold
* fix: bugs
* chore: one less file
* test: test handler
* fix: bug in id
* test: fix cases
* chore: tidy
* fix: use atomic.Int32
* fix: use atomic.Store
* feat: support close
* chore: lint
* fix: cache keys are case insensitive
* fix: options
* fix: use options
* fix: close
* fix: ignore close error
* Revert "fix: close"
This reverts commit d53ea7568ba03908eb153031c435008fd47e7ccb.
* fix: cacheUrlKey
* fix: nil close
* chore: lint code
* fix: test key
* test: case insensitive
* chore: lint
2023-04-28 15:57:40 +00:00