[OS-BUILD PATCH] Add testing infrastructure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Don Zickus <dzickus@xxxxxxxxxx>

Add testing infrastructure

There is no easy way to test or debug scheduled job .gitlab-ci.yml
changes.  Add infrastructure to allow pushes to a test-os-build area and
a scheduled job to play that branch.

Signed-off-by: Don Zickus <dzickus@xxxxxxxxxx>

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index blahblah..blahblah 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -38,6 +38,9 @@ workflow:
   only-os-build-schedule: &only-os-build-schedule
     if: $CI_COMMIT_BRANCH != "os-build" || $CI_PIPELINE_SOURCE != "schedule"
     when: never
+  only-test-os-build-schedule: &only-test-os-build-schedule
+    if: $CI_COMMIT_BRANCH != "test-os-build" || $CI_PIPELINE_SOURCE != "schedule"
+    when: never
   only-ark-latest-head: &only-ark-latest-head
     if: $CI_COMMIT_BRANCH != "ark-latest" || $CI_PIPELINE_SOURCE !~ /push|web/
     when: never
@@ -271,6 +274,19 @@ rawhide_release:
     - *only-os-build-schedule
     - if: $RAWHIDE_RELEASE == "true"
 
+test_scheduled_job:
+  extends: .scheduled_setup
+  script:
+    - git checkout --track origin/ark-latest && git describe
+    - git checkout --track origin/ark-infra && git describe
+    # make sure we are on correct code base before running script
+    - git checkout test-os-build  && git describe
+    - sh -x redhat/scripts/ci/ark-create-release.sh
+  retry: 2
+  rules:
+    - *only-test-os-build-schedule
+    - if: $RAWHIDE_RELEASE == "testing"
+
 test_makefile:
   image: quay.io/fedora/fedora:rawhide
   variables:

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2709
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux