Skip to content

STOR-2998: use test manifests from top-level directory for GCP PD - #82761

Open
mpatlasov wants to merge 1 commit into
openshift:mainfrom
mpatlasov:STOR-2998-Use-test-manifets-from-top-level-dir
Open

STOR-2998: use test manifests from top-level directory for GCP PD#82761
mpatlasov wants to merge 1 commit into
openshift:mainfrom
mpatlasov:STOR-2998-Use-test-manifets-from-top-level-dir

Conversation

@mpatlasov

@mpatlasov mpatlasov commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

https://redhat.atlassian.net/browse/STOR-2998

/legacy subdir is going way, let's use top-level test/e2e/gcp-pd.

Summary by CodeRabbit

The GCP PD CSI test configuration now selects manifests from the top-level test/e2e/gcp-pd directory for the current csi-operator layout. It preserves legacy and standalone repository support. CSI, volume-attributes, and OpenShift manifest copies now use the selected test/e2e/${GCPPD} path.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jul 31, 2026
@openshift-ci-robot

openshift-ci-robot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

@mpatlasov: This pull request references STOR-2998 which is a valid jira issue.

Details

In response to this:

https://redhat.atlassian.net/browse/STOR-2998

/legacy subdir is going way, let's use top-level test/e2e/gcp-pd.

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 openshift-eng/jira-lifecycle-plugin repository.

@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

The script detects current, legacy, and standalone repository layouts. It assigns GCPPD to the matching manifest directory. Manifest copy operations use the selected path.

Changes

GCP PD manifest path resolution

Layer / File(s) Summary
Repository layout detection
ci-operator/step-registry/storage/conf/csi-gcp-pd/storage-conf-csi-gcp-pd-commands.sh
The script assigns GCPPD to gcp-pd for the current layout and to . for legacy and standalone layouts.
Manifest copy operations
ci-operator/step-registry/storage/conf/csi-gcp-pd/storage-conf-csi-gcp-pd-commands.sh
Image-snapshot, hyperdisk, default, volume-attributes, and OCP manifest operations use test/e2e/${GCPPD}.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: dobsonj, romanbednar

🚥 Pre-merge checks | ✅ 15
✅ Passed checks (15 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the change to use top-level GCP PD test manifests and matches the pull request objective.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed The PR changes one shell configuration script only; added lines select manifest paths and copy YAML files, with no Ginkgo test declarations or dynamic test titles.
Test Structure And Quality ✅ Passed The pull request changes only one shell script; it adds no Ginkgo It blocks or test setup, cleanup, waits, or assertions to review.
Microshift Test Compatibility ✅ Passed The commit changes one shell manifest-copy script and adds no Ginkgo tests or OpenShift API references, so MicroShift test compatibility is not applicable.
Single Node Openshift (Sno) Test Compatibility ✅ Passed The commit changes only one shell script; it adds no Ginkgo e2e tests or multi-node/HA test assumptions.
Topology-Aware Scheduling Compatibility ✅ Passed The only changed file is a shell path selector; it adds no scheduling fields, replicas, affinity, tolerations, topology constraints, or node selectors.
Ote Binary Stdout Contract ✅ Passed The PR changes only a shell manifest-copy script; repository inspection found no OTE binary, Ginkgo suite setup, or changed process-level Go stdout code.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed The commit modifies only one manifest-copy shell script; it adds no Ginkgo tests, IPv4 assumptions, or external connectivity.
No-Weak-Crypto ✅ Passed The PR changes only repository path selection and manifest copy paths; the added lines contain no MD5, SHA1, DES, RC4, Blowfish, ECB, crypto, or secret comparisons.
Container-Privileges ✅ Passed The PR changes only manifest-copy paths in a shell script; no privileged, host namespace, SYS_ADMIN, allowPrivilegeEscalation, or root settings were added.
No-Sensitive-Data-In-Logs ✅ Passed New logs contain only repository labels and manifest paths; the selected public manifests contain driver names, storage settings, and test limits, with no credentials, PII, or internal hostnames.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@openshift-ci
openshift-ci Bot requested review from RomanBednar and dobsonj July 31, 2026 21:00
@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 31, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
ci-operator/step-registry/storage/conf/csi-gcp-pd/storage-conf-csi-gcp-pd-commands.sh (1)

20-20: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Quote all expanded manifest paths.

The new cp commands pass unquoted paths. If ${SHARED_DIR} or a manifest variable contains whitespace or glob characters, cp can receive incorrect arguments. Quote both operands. This addresses the reported ShellCheck SC2086 warnings.

Proposed fix
-    cp test/e2e/${GCPPD}/image-snapshot-manifest.yaml "${SHARED_DIR}/${TEST_CSI_DRIVER_MANIFEST}"
+    cp "test/e2e/${GCPPD}/image-snapshot-manifest.yaml" "${SHARED_DIR}/${TEST_CSI_DRIVER_MANIFEST}"
...
-    cp test/e2e/${GCPPD}/hyperdisk-manifest.yaml ${SHARED_DIR}/${TEST_CSI_DRIVER_MANIFEST}
+    cp "test/e2e/${GCPPD}/hyperdisk-manifest.yaml" "${SHARED_DIR}/${TEST_CSI_DRIVER_MANIFEST}"
...
-    cp test/e2e/${GCPPD}/manifest.yaml ${SHARED_DIR}/${TEST_CSI_DRIVER_MANIFEST}
+    cp "test/e2e/${GCPPD}/manifest.yaml" "${SHARED_DIR}/${TEST_CSI_DRIVER_MANIFEST}"
...
-    cp test/e2e/${GCPPD}/${TEST_VOLUME_ATTRIBUTES_CLASS_MANIFEST} ${SHARED_DIR}/${TEST_VOLUME_ATTRIBUTES_CLASS_MANIFEST}
+    cp "test/e2e/${GCPPD}/${TEST_VOLUME_ATTRIBUTES_CLASS_MANIFEST}" "${SHARED_DIR}/${TEST_VOLUME_ATTRIBUTES_CLASS_MANIFEST}"
...
-    cp test/e2e/${GCPPD}/ocp-manifest.yaml ${SHARED_DIR}/${TEST_OCP_CSI_DRIVER_MANIFEST}
+    cp "test/e2e/${GCPPD}/ocp-manifest.yaml" "${SHARED_DIR}/${TEST_OCP_CSI_DRIVER_MANIFEST}"

Also applies to: 24-26, 31-31, 36-36

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@ci-operator/step-registry/storage/conf/csi-gcp-pd/storage-conf-csi-gcp-pd-commands.sh`
at line 20, Update each new cp command in the storage configuration script to
quote both expanded source and destination manifest paths, including the GCPPD,
SHARED_DIR, and TEST_CSI_DRIVER_MANIFEST expansions, so whitespace and glob
characters are preserved and ShellCheck SC2086 warnings are resolved.

Source: Linters/SAST tools

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@ci-operator/step-registry/storage/conf/csi-gcp-pd/storage-conf-csi-gcp-pd-commands.sh`:
- Around line 6-11: Initialize GCPPD in each fallback layout branch of the
storage configuration selection, setting it to "." before any later ${GCPPD}
expansion; retain GCPPD="gcp-pd" for the current-layout branch.

---

Nitpick comments:
In
`@ci-operator/step-registry/storage/conf/csi-gcp-pd/storage-conf-csi-gcp-pd-commands.sh`:
- Line 20: Update each new cp command in the storage configuration script to
quote both expanded source and destination manifest paths, including the GCPPD,
SHARED_DIR, and TEST_CSI_DRIVER_MANIFEST expansions, so whitespace and glob
characters are preserved and ShellCheck SC2086 warnings are resolved.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: eefa83af-e58b-4667-8ed3-caa92923ac9d

📥 Commits

Reviewing files that changed from the base of the PR and between 0cd26cc and e312a7a.

📒 Files selected for processing (1)
  • ci-operator/step-registry/storage/conf/csi-gcp-pd/storage-conf-csi-gcp-pd-commands.sh

@mpatlasov
mpatlasov force-pushed the STOR-2998-Use-test-manifets-from-top-level-dir branch from e312a7a to 392ceab Compare July 31, 2026 21:05
@mpatlasov
mpatlasov force-pushed the STOR-2998-Use-test-manifets-from-top-level-dir branch from 392ceab to ae47e34 Compare July 31, 2026 21:09
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@mpatlasov: the pj-rehearse plugin accommodates running rehearsal tests for the changes in this PR. Expand 'Interacting with pj-rehearse' for usage details. The following rehearsable tests have been affected by this change:

Test name Repo Type Reason
pull-ci-openshift-csi-livenessprobe-master-e2e-gcp-csi openshift/csi-livenessprobe presubmit Registry content changed
pull-ci-openshift-csi-livenessprobe-release-5.1-e2e-gcp-csi openshift/csi-livenessprobe presubmit Registry content changed
pull-ci-openshift-csi-livenessprobe-release-5.0-e2e-gcp-csi openshift/csi-livenessprobe presubmit Registry content changed
pull-ci-openshift-csi-livenessprobe-release-4.23-e2e-gcp-csi openshift/csi-livenessprobe presubmit Registry content changed
pull-ci-openshift-csi-livenessprobe-release-4.22-e2e-gcp-csi openshift/csi-livenessprobe presubmit Registry content changed
pull-ci-openshift-csi-livenessprobe-release-4.21-e2e-gcp-csi openshift/csi-livenessprobe presubmit Registry content changed
pull-ci-openshift-csi-livenessprobe-release-4.20-e2e-gcp-csi openshift/csi-livenessprobe presubmit Registry content changed
pull-ci-openshift-csi-livenessprobe-release-4.19-e2e-gcp-csi openshift/csi-livenessprobe presubmit Registry content changed
pull-ci-openshift-csi-livenessprobe-release-4.18-e2e-gcp-csi openshift/csi-livenessprobe presubmit Registry content changed
pull-ci-openshift-csi-livenessprobe-release-4.17-e2e-gcp-csi openshift/csi-livenessprobe presubmit Registry content changed
pull-ci-openshift-csi-livenessprobe-release-4.16-e2e-gcp-csi openshift/csi-livenessprobe presubmit Registry content changed
pull-ci-openshift-csi-livenessprobe-release-4.15-e2e-gcp-csi openshift/csi-livenessprobe presubmit Registry content changed
pull-ci-openshift-csi-livenessprobe-release-4.14-e2e-gcp-csi openshift/csi-livenessprobe presubmit Registry content changed
pull-ci-openshift-csi-livenessprobe-release-4.13-e2e-gcp-csi openshift/csi-livenessprobe presubmit Registry content changed
pull-ci-openshift-csi-livenessprobe-release-4.12-e2e-gcp-csi openshift/csi-livenessprobe presubmit Registry content changed
pull-ci-openshift-csi-livenessprobe-release-4.11-e2e-gcp-csi openshift/csi-livenessprobe presubmit Registry content changed
pull-ci-openshift-csi-livenessprobe-release-4.10-e2e-gcp-csi openshift/csi-livenessprobe presubmit Registry content changed
pull-ci-openshift-csi-livenessprobe-release-4.9-e2e-gcp-csi openshift/csi-livenessprobe presubmit Registry content changed
pull-ci-openshift-csi-livenessprobe-release-4.8-e2e-gcp-csi openshift/csi-livenessprobe presubmit Registry content changed
pull-ci-openshift-origin-main-e2e-gcp-csi openshift/origin presubmit Registry content changed
pull-ci-openshift-origin-release-5.1-e2e-gcp-csi openshift/origin presubmit Registry content changed
pull-ci-openshift-origin-release-5.0-e2e-gcp-csi openshift/origin presubmit Registry content changed
pull-ci-openshift-origin-release-4.23-e2e-gcp-csi openshift/origin presubmit Registry content changed
pull-ci-openshift-origin-release-4.22-e2e-gcp-csi openshift/origin presubmit Registry content changed
pull-ci-openshift-origin-release-4.21-e2e-gcp-csi openshift/origin presubmit Registry content changed

A total of 328 jobs have been affected by this change. The above listing is non-exhaustive and limited to 25 jobs.

A full list of affected jobs can be found here

Interacting with pj-rehearse

Comment: /pj-rehearse to run up to 5 rehearsals
Comment: /pj-rehearse skip to opt-out of rehearsals
Comment: /pj-rehearse {test-name}, with each test separated by a space, to run one or more specific rehearsals
Comment: /pj-rehearse more to run up to 10 rehearsals
Comment: /pj-rehearse max to run up to 25 rehearsals
Comment: /pj-rehearse auto-ack to run up to 5 rehearsals, and add the rehearsals-ack label on success
Comment: /pj-rehearse list to get an up-to-date list of affected jobs
Comment: /pj-rehearse abort to abort all active rehearsals
Comment: /pj-rehearse network-access-allowed to allow rehearsals of tests that have the restrict_network_access field set to false. This must be executed by an openshift org member who is not the PR author

Once you are satisfied with the results of the rehearsals, comment: /pj-rehearse ack to unblock merge. When the rehearsals-ack label is present on your PR, merge will no longer be blocked by rehearsals.
If you would like the rehearsals-ack label removed, comment: /pj-rehearse reject to re-block merging.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@ci-operator/step-registry/storage/conf/csi-gcp-pd/storage-conf-csi-gcp-pd-commands.sh`:
- Line 26: Quote both the source and destination path expansions in the affected
cp command, and quote every expanded path in the related cat commands, including
the final cat command. Update only the command path arguments while preserving
their existing behavior.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 009570f6-da4b-470e-a2a2-a4f066ff2d79

📥 Commits

Reviewing files that changed from the base of the PR and between 392ceab and ae47e34.

📒 Files selected for processing (1)
  • ci-operator/step-registry/storage/conf/csi-gcp-pd/storage-conf-csi-gcp-pd-commands.sh

elif [ "${COMPUTE_DISK_TYPE}" == "hyperdisk-balanced" ]; then
# Using hyperdisk-balanced worker
cp test/e2e/hyperdisk-manifest.yaml ${SHARED_DIR}/${TEST_CSI_DRIVER_MANIFEST}
cp test/e2e/${GCPPD}/hyperdisk-manifest.yaml ${SHARED_DIR}/${TEST_CSI_DRIVER_MANIFEST}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail
file=$(git ls-files | rg '(^|/)storage-conf-csi-gcp-pd-commands\.sh$' | head -n 1)
printf '%s\n' "$file"
cat -n "$file"
printf '\nShellCheck availability:\n'
command -v shellcheck || true

Repository: openshift/release

Length of output: 2647


🏁 Script executed:

#!/bin/bash
set -euo pipefail
file='ci-operator/step-registry/storage/conf/csi-gcp-pd/storage-conf-csi-gcp-pd-commands.sh'
shellcheck "$file" || true
printf '\nUnquoted path-command expansions:\n'
rg -n '(^|[[:space:]])(cp|cat)[[:space:]].*\$\{' "$file"

Repository: openshift/release

Length of output: 4775


Quote all expanded manifest paths.

Quote every source and destination path in the affected cp and cat commands. Also quote the final cat command at line 45.

🧰 Tools
🪛 Shellcheck (0.11.0)

[info] 26-26: Double quote to prevent globbing and word splitting.

(SC2086)


[info] 26-26: Double quote to prevent globbing and word splitting.

(SC2086)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@ci-operator/step-registry/storage/conf/csi-gcp-pd/storage-conf-csi-gcp-pd-commands.sh`
at line 26, Quote both the source and destination path expansions in the
affected cp command, and quote every expanded path in the related cat commands,
including the final cat command. Update only the command path arguments while
preserving their existing behavior.

Source: Linters/SAST tools

@dobsonj

dobsonj commented Jul 31, 2026

Copy link
Copy Markdown
Member

/lgtm
/pj-rehearse pull-ci-openshift-origin-main-e2e-gcp-csi pull-ci-openshift-origin-release-4.22-e2e-gcp-csi pull-ci-openshift-origin-release-4.21-e2e-gcp-csi

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@dobsonj: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jul 31, 2026
@openshift-ci

openshift-ci Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dobsonj, mpatlasov

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

@mpatlasov

Copy link
Copy Markdown
Contributor Author

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@mpatlasov: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@mpatlasov

Copy link
Copy Markdown
Contributor Author

/pj-rehearse pull-ci-openshift-gcp-pd-csi-driver-operator-release-4.21-e2e-gcp-csi

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@mpatlasov: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-ci

openshift-ci Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

@mpatlasov: all tests passed!

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.

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

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants