Skip to content

chore(ci): use nounset for CI scripts - #3340

Merged
openshift-merge-bot[bot] merged 4 commits into
redhat-developer:mainfrom
zdrapela:set-u-nounset
Sep 2, 2025
Merged

chore(ci): use nounset for CI scripts#3340
openshift-merge-bot[bot] merged 4 commits into
redhat-developer:mainfrom
zdrapela:set-u-nounset

Conversation

@zdrapela

@zdrapela zdrapela commented Aug 27, 2025

Copy link
Copy Markdown
Member

Description

Use nounset to make sure all env vars in CI are populated. This prevents issues where tests started to fail because an env var was not set. This was the case with tests different than the usual Helm on OCP.

For local development, store the SHARED_DIR and ARTIFACT_DIR in a git-ignored directory.

Refactor openshift-ci-tests.sh with conditional sourcing for jobs and proper ShellCheck sourcing.

Refactor GKE cleanup.

Introduce gitignored env_override.local.sh to enable easier local testing and limit the chances of accidentally committing an override.

Which issue(s) does this PR fix

PR acceptance criteria

Please make sure that the following steps are complete:

  • GitHub Actions are completed and successful
  • Unit Tests are updated and passing
  • E2E Tests are updated and passing
  • Documentation is updated if necessary (requirement for new features)
  • Add a screenshot if the change is UX/UI related

How to test changes / Special notes to the reviewer

@openshift-ci

openshift-ci Bot commented Aug 27, 2025

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@zdrapela

Copy link
Copy Markdown
Member Author

/test e2e-tests

@zdrapela

Copy link
Copy Markdown
Member Author

/test e2e-tests-eks-helm-nightly

@zdrapela

Copy link
Copy Markdown
Member Author

/test e2e-tests

1 similar comment
@zdrapela

Copy link
Copy Markdown
Member Author

/test e2e-tests

@zdrapela

Copy link
Copy Markdown
Member Author

/test e2e-tests

@zdrapela

Copy link
Copy Markdown
Member Author

/test e2e-tests

@zdrapela

Copy link
Copy Markdown
Member Author

/test e2e-tests

@zdrapela

Copy link
Copy Markdown
Member Author

/test e2e-tests

@zdrapela

Copy link
Copy Markdown
Member Author

/test e2e-tests-aks-helm-nightly

@zdrapela

Copy link
Copy Markdown
Member Author

/test e2e-tests-eks-operator-nightly

@zdrapela

Copy link
Copy Markdown
Member Author

/test ?

@openshift-ci

openshift-ci Bot commented Aug 28, 2025

Copy link
Copy Markdown

@zdrapela: The following commands are available to trigger required jobs:

/test e2e-tests

The following commands are available to trigger optional jobs:

/test cleanup-mapt-destroy-orphaned-aks-clusters
/test cleanup-mapt-destroy-orphaned-eks-clusters
/test e2e-tests-aks-helm-nightly
/test e2e-tests-aks-operator-nightly
/test e2e-tests-auth-providers-nightly
/test e2e-tests-eks-helm-nightly
/test e2e-tests-eks-operator-nightly
/test e2e-tests-gke-helm-nightly
/test e2e-tests-gke-operator-nightly
/test e2e-tests-nightly
/test e2e-tests-operator-nightly
/test e2e-tests-osd-gcp-helm-nightly
/test e2e-tests-osd-gcp-operator-nightly
/test e2e-tests-sealight-helm-nightly
/test e2e-tests-upgrade-nightly

Use /test all to run the following jobs that were automatically triggered:

pull-ci-redhat-developer-rhdh-main-e2e-tests
Details

In response to this:

/test ?

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@zdrapela

Copy link
Copy Markdown
Member Author

/test e2e-tests-nightly
/test e2e-tests-operator-nightly

@zdrapela

Copy link
Copy Markdown
Member Author

/test e2e-tests

@zdrapela

Copy link
Copy Markdown
Member Author

/test e2e-tests-nightly
/test e2e-tests-operator-nightly

@zdrapela

Copy link
Copy Markdown
Member Author

/test e2e-tests
/test e2e-tests-operator-nightly

Comment thread .ibm/pipelines/openshift-ci-tests.sh Outdated
# This prevents nounset errors when running locally
# https://docs.ci.openshift.org/docs/architecture/step-registry/#available-environment-variables
# https://docs.prow.k8s.io/docs/jobs/#job-environment-variables
export JOB_NAME="${JOB_NAME:-unknown-job}"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these envs could be moved to env_variables.sh

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, I refactored the openshift-ci-tests.sh file more thoroughly. Please see the description for the changes and review again. Thanks!

@zdrapela

zdrapela commented Sep 1, 2025

Copy link
Copy Markdown
Member Author

/test e2e-tests
/test e2e-tests-nightly
/test e2e-tests-gke-helm-nightly

@openshift-ci

openshift-ci Bot commented Sep 1, 2025

Copy link
Copy Markdown

@zdrapela: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-tests-eks-helm-nightly 4844d9a link false /test e2e-tests-eks-helm-nightly
ci/prow/e2e-tests-upgrade-nightly 90eaa7f link false /test e2e-tests-upgrade-nightly
ci/prow/e2e-tests-aks-helm-nightly 90eaa7f link false /test e2e-tests-aks-helm-nightly
ci/prow/e2e-tests-eks-operator-nightly 90eaa7f link false /test e2e-tests-eks-operator-nightly
ci/prow/e2e-tests-gke-helm-nightly 4122e75 link false /test e2e-tests-gke-helm-nightly
ci/prow/e2e-tests-nightly 4122e75 link false /test e2e-tests-nightly

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@zdrapela

zdrapela commented Sep 1, 2025

Copy link
Copy Markdown
Member Author

/test e2e-tests

@subhashkhileri

Copy link
Copy Markdown
Member

/lgtm

@openshift-ci

openshift-ci Bot commented Sep 2, 2025

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: subhashkhileri

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the approved label Sep 2, 2025
@openshift-merge-bot
openshift-merge-bot Bot merged commit c77a47c into redhat-developer:main Sep 2, 2025
19 of 21 checks passed
zdrapela added a commit to zdrapela/rhdh that referenced this pull request Sep 8, 2025
* chore(ci): use nounset for CI scripts

* Fix sanity checks

* Refactor openshift-ci-tests

* Refactor cleanup
zdrapela added a commit to zdrapela/rhdh that referenced this pull request Sep 8, 2025
* chore(ci): use nounset for CI scripts

* Fix sanity checks

* Refactor openshift-ci-tests

* Refactor cleanup
openshift-merge-bot Bot pushed a commit that referenced this pull request Sep 9, 2025
* chore(e2e): fix e2e-tests linter and establish linter check (#3332)

* chore(fix): e2e-tests linter

Assisted-by: Cursor

* fixed by Prettier

* Manual fix

Assisted-by: Cursor

* Fix adoption insights

* Create e2e-tests-lint.yaml

* chore(ci): use nounset for CI scripts (#3340)

* chore(ci): use nounset for CI scripts

* Fix sanity checks

* Refactor openshift-ci-tests

* Refactor cleanup

* chore(e2e): attributes for junit (#3333)

* Detect platform and save

* add reportportal/agent-js-playwright

* playwright install chromium

* authentication

* Apply attributes

Assisted-by: Cursor

* Cherry-pick linter

* ok

* Move attributes to beforeall

* Fix junit output definition

* Keep properties

* Fix artifacts url

* JUnit for rehearsals

* Note about GNU grep and GNU sed

Update README.md

* Remove irelevant helper function

* fix artifacts URL for PRs

* tag next

* JOB_TYPE="periodic"

* remove periodic

* Adapt junit file and backup

* Fix

* Fix to use annotations

* Revert "add reportportal/agent-js-playwright"

This reverts commit fa2a088.

* Cursor rule for component assignment

* chore(ci): fix k8s sourcing (#3350)

* chore(e2e): retries for bulk import test (#3367)

* chore(e2e): retries for repo filtering

* Skip if already added

* Logging

* Revert

* Dynamically create the repository

* Update bulk-import.spec.ts

* Update e2e-tests-lint.yaml

* Fix analytics

* tsc

* Update e2e-tests-lint.yaml

* Fix

* Fix chart

* Update utils.sh

* Revert "Update utils.sh"

This reverts commit 2e334dc.

* Fix sanity
guyoron1 pushed a commit to guyoron1/rhdh that referenced this pull request Sep 29, 2025
* chore(ci): use nounset for CI scripts

* Fix sanity checks

* Refactor openshift-ci-tests

* Refactor cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants