Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(RHTAPREL-852): don't run fbc tests in catalog PRs #1053

Merged
merged 1 commit into from
Feb 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion magefiles/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ func setRequiredEnvVars() error {
os.Setenv("E2E_TEST_SUITE_LABEL", "e2e-demo,rhtap-demo,spi-suite,remote-secret,integration-service,ec,byoc,build-templates,multi-platform")
} else if strings.Contains(jobName, "release-service-catalog") { // release-service-catalog jobs (pull, rehearsal)
envVarPrefix := "RELEASE_SERVICE"
os.Setenv("E2E_TEST_SUITE_LABEL", "release-pipelines")
// "rehearse" jobs metadata are not relevant for testing
if !strings.Contains(jobName, "rehearse") {
os.Setenv(fmt.Sprintf("%s_CATALOG_URL", envVarPrefix), fmt.Sprintf("https://github.com/%s/%s", pr.RemoteName, pr.RepoName))
Expand All @@ -508,6 +509,7 @@ func setRequiredEnvVars() error {
}
os.Setenv(fmt.Sprintf("%s_PR_OWNER", envVarPrefix), pr.RemoteName)
os.Setenv(fmt.Sprintf("%s_PR_SHA", envVarPrefix), pairedSha)
os.Setenv("E2E_TEST_SUITE_LABEL", "release-pipelines && !fbc-tests")
}
}
if os.Getenv("REL_IMAGE_CONTROLLER_QUAY_ORG") != "" {
Expand All @@ -516,7 +518,6 @@ func setRequiredEnvVars() error {
if os.Getenv("REL_IMAGE_CONTROLLER_QUAY_TOKEN") != "" {
os.Setenv("IMAGE_CONTROLLER_QUAY_TOKEN", os.Getenv("REL_IMAGE_CONTROLLER_QUAY_TOKEN"))
}
os.Setenv("E2E_TEST_SUITE_LABEL", "release-pipelines")
} else { // openshift/release rehearse job for e2e-tests/infra-deployments repos
requiresMultiPlatformTests = true
requiresSprayProxyRegistering = true
Expand Down
Loading