Skip to content

Commit

Permalink
chore: add support for release periodic job
Browse files Browse the repository at this point in the history
Signed-off-by: Jing Qi <jinqi@redhat.com>
  • Loading branch information
jinqi7 committed Jan 22, 2025
1 parent 8221e59 commit b6e80d8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion magefiles/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -135,7 +140,7 @@ func (ci CI) init() error {
}

func (ci CI) PrepareE2EBranch() error {
if jobType == "periodic" || strings.Contains(jobName, "rehearse") {
if (jobType == "periodic" && !strings.Contains(jobName, "release-service-catalog")) || strings.Contains(jobName, "rehearse") {
return nil
}

Expand Down Expand Up @@ -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")
}
Expand Down

0 comments on commit b6e80d8

Please sign in to comment.