about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClaude Sonnet 4.62026-09-02 17:19:07 +0000
committerFrederick Muriuki Muriithi2026-09-02 12:23:38 -0500
commit1fe674a649911500c45385aa352dfe6be2210018 (patch)
treea72083a71ae55fdb75fa063c88855410b1363924
parentff2836afdf5461b1af46383f559b61464e277949 (diff)
downloadgn-machines-main.tar.gz
ci: add gn2-auth-flow-tests Laminar job HEAD main
Adds an after hook to gn2-smoke-tests that queues gn2-auth-flow-tests
on success, matching the pattern used for gn3-auth-flow-tests.

The new gn2-auth-flow-tests job:
  - runs pytest -m "gn2 and auth_flow"
  - uses the standard setup/teardown lifecycle (provisioned test users
    and OAuth2 client, same as gn-auth and gn3 auth-flow jobs)

Co-Authored-By: Frederick Muriuki Muriithi <fmuriit1@uthsc.edu>
-rw-r--r--genenetwork-development.scm14
1 files changed, 14 insertions, 0 deletions
diff --git a/genenetwork-development.scm b/genenetwork-development.scm
index 2904252..ec6eda0 100644
--- a/genenetwork-development.scm
+++ b/genenetwork-development.scm
@@ -379,6 +379,20 @@ genenetwork3 source from the latest commit of @var{project}."
                            (run (gn-integration-tests-gexp
                                  config
                                  (list "pytest" "-m" "gn2 and smoke" "-v")))
+                           (trigger? #f)
+                           (after (with-imported-modules '((guix build utils))
+                                    #~(begin
+                                        (use-modules (guix build utils))
+                                        (when (string=? (getenv "RESULT") "success")
+                                          (invoke #$(file-append laminar "/bin/laminarc")
+                                                  "queue" "gn2-auth-flow-tests"))))))
+                          (forge-laminar-job
+                           (name "gn2-auth-flow-tests")
+                           (run (gn-integration-tests-gexp
+                                 config
+                                 (list "pytest" "-m" "gn2 and auth_flow" "-v")
+                                 #:setup (list (setup-gn-auth-credentials-gexp))
+                                 #:teardown (list (teardown-gn-auth-credentials-gexp))))
                            (trigger? #f))))
            (ci-jobs-trigger 'webhook))
           (forge-project