guix_mirror_bot pushed a commit to branch go-team
in repository guix.

commit 183df723063339e3e658f0646b4f05938bab62bf
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Fri Jul 17 09:14:49 2026 +0100

    gnu: go-code-forgejo-org-forgejo-runner-v12: Enable tests.
    
    * gnu/packages/ci.scm (go-code-forgejo-org-forgejo-runner-v12):
    [arguments] <#:test-flags>: Run most of the tests, skip tests requiring
    network access and running Docker service.
    [native-inputs]: Add git-minimal/pinned.
---
 gnu/packages/ci.scm | 42 ++++++++++++++++++++++++++++++------------
 1 file changed, 30 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/ci.scm b/gnu/packages/ci.scm
index 276c67b0be..9f16f44b20 100644
--- a/gnu/packages/ci.scm
+++ b/gnu/packages/ci.scm
@@ -308,21 +308,39 @@ reinventing them.")
     (build-system go-build-system)
     (arguments
      (list
-      #:skip-build? #t  ;XXX: remove when go-team is merged
+      ;; forgejo-runner binary is in forgejo-runner package, this is a Go
+      ;; source library to use in inputs for other packages.
+      #:skip-build? #f
       #:import-path "code.forgejo.org/forgejo/runner/v12"
       #:embed-files #~(list ".*\\.json" ".*\\.js" ".*\\.sh")
-      #:test-subdirs    ;XXX: remove when go-team is merged
-      #~(list "act/model"
-              "act/common"
-              "act/schema"
-              "act/jobparser"
-              "act/exprparser"
-              "act/workflowpattern"
-              "internal/pkg/config"
-              "internal/pkg/labels"
-              "act/common/gitignore")))
+      #:test-flags
+      #~(list "-skip" (string-join
+                       ;; Newtork access and running Docker are required.
+                       (list "TestCancelLongRunningCommand"
+                             "TestClone/annotated-tag"
+                             "TestClone/branch"
+                             "TestClone/sha"
+                             "TestClone/short-sha"
+                             "TestClone/tag"
+                             "TestCloneIfRequired/clone"
+                             "TestCloneIfRequired/clone_different_remote"
+                             "TestHandler"
+                             "TestHandlerAPIFatalErrors/commit"
+                             "TestHandlerAPIFatalErrors/find"
+                             "TestHandlerAPIFatalErrors/get"
+                             "TestHandlerAPIFatalErrors/upload"
+                             "TestHandler_gcCache"
+                             "TestPollerPoll"
+                             "TestPollerPoll/fetchTasks_rate_limited"
+                             "TestRunJob_WithConnectionFromCommandOptions"
+                             "TestRunner_ReusableWorkflowGitHubInstance"
+                             "TestStepDockerMain")
+                       "|")
+              "-args" "-features" "-"
+              )))
     (native-inputs
-     (list go-github-com-google-go-cmp
+     (list git-minimal/pinned
+           go-github-com-google-go-cmp
            go-github-com-spf13-cobra
            go-github-com-spf13-pflag
            go-github-com-stretchr-testify))

Reply via email to