From 6abd380905db9138a9793e22f0b5b8ece87f4afe Mon Sep 17 00:00:00 2001 From: Jing Qi Date: Thu, 16 Jan 2025 14:01:10 +0800 Subject: [PATCH] chore: add support for release periodic job Signed-off-by: Jing Qi --- magefiles/magefile.go | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/magefiles/magefile.go b/magefiles/magefile.go index 38ff2da4b..4f9a06a83 100644 --- a/magefiles/magefile.go +++ b/magefiles/magefile.go @@ -97,6 +97,11 @@ func (ci CI) init() error { return nil } + if strings.Contains(jobName, "release-service-catalog") && strings.Contains(jobName, "periodic") { + rctx.JobName = jobName + return nil + } + if err = ci.parseJobSpec(); err != nil { return err } @@ -299,9 +304,9 @@ func (ci CI) TestE2E() error { } // Eventually, when mage rules will be in place for all the repos, this functionality will be moved to individual repos where it is needed - if err := SetupCustomBundle(); err != nil { - return err - } +// if err := SetupCustomBundle(); err != nil { +// return err +// } // Eventually we'll introduce mage rules for all repositories, so this condition won't be needed anymore if pr.RepoName == "e2e-tests" || pr.RepoName == "integration-service" || @@ -359,6 +364,10 @@ func RunE2ETests() error { case "infra-deployments": return engine.MageEngine.RunRules(rctx, "tests", "infra-deployments") default: + if strings.Contains(rctx.JobName, "release-service-catalog") { + labelFilter := utils.GetEnv("E2E_TEST_SUITE_LABEL", "release-pipelines") + return runTests(labelFilter, "e2e-report.xml") + } labelFilter := utils.GetEnv("E2E_TEST_SUITE_LABEL", "!upgrade-create && !upgrade-verify && !upgrade-cleanup && !release-pipelines") return runTests(labelFilter, "e2e-report.xml") }