Commit 714995cd86

714995cd86993b609f77616290a4b861e306dd80

parent: e56e8ca1bb

Verified · cmc

cmc <hello@cleberg.net> · 2026-09-29 05:23 UTC

hookd: tests call control.QueueTagBuilds directly

Ref #288

Layout: unified · split

internal/hookd/hookd.go −5
@@ -278,11 +278,6 @@ func (s *Server) postReceive(req Request) {
278 control.RefsUpdated(s.st, s.cfg, req.RepoID, req.UserID, req.Scope, req.Updates) 278 control.RefsUpdated(s.st, s.cfg, req.RepoID, req.UserID, req.Scope, req.Updates)
279} 279}
280 280
281// queueTagBuilds runs the jobs whose tag pattern matches a pushed tag.
282func (s *Server) queueTagBuilds(repo store.Repo, userID int64, tag, pushed string) {
283 control.QueueTagBuilds(s.st, s.cfg, repo, userID, tag, pushed)
284}
285
286// Ask sends one request from the hook process to the daemon. stream is 281// Ask sends one request from the hook process to the daemon. stream is
287// called if the daemon asks for the incoming commit objects; it hands each 282// called if the daemon asks for the incoming commit objects; it hands each
288// commit to the callback, which writes it on the wire. 283// commit to the callback, which writes it on the wire.
internal/hookd/pushshapes_test.go +1 −1
@@ -354,7 +354,7 @@ var pushShapes = []pushShape{
354 f.git(f.src, "tag", "v1") 354 f.git(f.src, "tag", "v1")
355 f.sync() 355 f.sync()
356 f.mark(f.base) 356 f.mark(f.base)
357 f.srv.queueTagBuilds(f.repo, f.uid, "v1", f.base) 357 control.QueueTagBuilds(f.st, f.srv.cfg, f.repo, f.uid, "v1", f.base)
358 }, []string{"—", "—", "—", "—", "queued", "—"}}, 358 }, []string{"—", "—", "—", "—", "queued", "—"}},
359 359
360 {"schedule tick on the default branch", func(f *shapeFixture) { 360 {"schedule tick on the default branch", func(f *shapeFixture) {