Skip to content

Copy only xml files as there is a 1MB limit for SHARED_DIR#81192

Open
FilipB wants to merge 2 commits into
openshift:mainfrom
FilipB:fix-shared-dir-limit
Open

Copy only xml files as there is a 1MB limit for SHARED_DIR#81192
FilipB wants to merge 2 commits into
openshift:mainfrom
FilipB:fix-shared-dir-limit

Conversation

@FilipB

@FilipB FilipB commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

This PR adjusts the OpenShift Service Mesh Sail Operator E2E OCP prow step to only copy XML test artifacts (e.g., *.xml) from the test pod’s ARTIFACT_DIR into SHARED_DIR. Practically, this reduces the amount of data shared to the next upload/report-portal step so the job stays within the 1MB upload size limit, while preserving the XML reports needed by downstream processing.

In ci-operator/step-registry/servicemesh/sail-operator/e2e-ocp/servicemesh-sail-operator-e2e-ocp-commands.sh, the “share artifacts” portion now performs the filtered XML copy and adds ls -alh listings for ARTIFACT_DIR and SHARED_DIR around that handoff.

@coderabbitai

coderabbitai Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

The sail-operator e2e script now copies only *.xml artifacts from ARTIFACT_DIR to SHARED_DIR and logs both directories before the copy.

Changes

Sail-operator e2e artifact handoff

Layer / File(s) Summary
Filter shared artifacts to XML
ci-operator/step-registry/servicemesh/sail-operator/e2e-ocp/servicemesh-sail-operator-e2e-ocp-commands.sh
The artifact handoff in execute_and_collect_artifacts now copies only *.xml files to SHARED_DIR, updates the inline comment to mention the XML-only 1MB limit, and adds ls -alh output for both directories before copying.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 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 summarizes the main change: limiting SHARED_DIR copies to XML files due to the size limit.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
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 Only a shell script changed; no Ginkgo It/Describe/Context/When titles were added or modified, so the stable-name rule is unaffected.
Test Structure And Quality ✅ Passed No Ginkgo test code was changed; the PR only edits a shell artifact-copy step, so this test-structure check is not applicable.
Microshift Test Compatibility ✅ Passed Only an artifact-copy shell script changed; no new Ginkgo e2e tests or MicroShift-sensitive APIs/features were added.
Single Node Openshift (Sno) Test Compatibility ✅ Passed PR only updates a shell artifact-copy step; no new Ginkgo tests or node-topology assumptions were added, so the SNO check is not applicable.
Topology-Aware Scheduling Compatibility ✅ Passed Only an e2e artifact-copy shell script changed; no manifests, controllers, replicas, node selectors, affinity, or topology logic were introduced.
Ote Binary Stdout Contract ✅ Passed Only a ci-operator shell step changed; no Go main/TestMain/RunSpecs/suite setup code or OTE binary stdout-contract code was touched.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed PR only changes a shell artifact-copy step; no new Ginkgo tests or IPv4/external-connectivity assumptions were added.
No-Weak-Crypto ✅ Passed The only changes are artifact listing/copying; no MD5/SHA1/DES/RC4/3DES/Blowfish/ECB, custom crypto, or secret comparisons appear in the modified script.
Container-Privileges ✅ Passed PASS: The PR only changes artifact-copy logic in a shell script; no K8s/container privilege fields were added.
No-Sensitive-Data-In-Logs ✅ Passed New logs only list artifact directories before copying XMLs; no passwords, tokens, PII, or host/customer data are printed.
✨ 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 commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: FilipB

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 Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 29, 2026
@openshift-ci openshift-ci Bot requested review from rcernich and yxun June 29, 2026 08:03
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@FilipB: 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-service-mesh-sail-operator-main-ocp-4.22-e2e-ocp openshift-service-mesh/sail-operator presubmit Registry content changed
pull-ci-openshift-service-mesh-sail-operator-main-ocp-4.22-e2e-ocp-arm openshift-service-mesh/sail-operator presubmit Registry content changed
pull-ci-openshift-service-mesh-sail-operator-main-ocp-4.23-e2e-ocp openshift-service-mesh/sail-operator presubmit Registry content changed
pull-ci-openshift-service-mesh-sail-operator-release-3.0-ocp-4.22-e2e-ocp openshift-service-mesh/sail-operator presubmit Registry content changed
pull-ci-openshift-service-mesh-sail-operator-release-3.0-ocp-4.22-e2e-ocp-arm openshift-service-mesh/sail-operator presubmit Registry content changed
pull-ci-openshift-service-mesh-sail-operator-release-3.1-ocp-4.22-e2e-ocp openshift-service-mesh/sail-operator presubmit Registry content changed
pull-ci-openshift-service-mesh-sail-operator-release-3.1-ocp-4.22-e2e-ocp-arm openshift-service-mesh/sail-operator presubmit Registry content changed
pull-ci-openshift-service-mesh-sail-operator-release-3.4-ocp-4.22-e2e-ocp openshift-service-mesh/sail-operator presubmit Registry content changed
pull-ci-openshift-service-mesh-sail-operator-release-3.4-ocp-4.22-e2e-ocp-arm openshift-service-mesh/sail-operator presubmit Registry content changed
pull-ci-openshift-service-mesh-sail-operator-release-3.2-ocp-4.22-e2e-ocp openshift-service-mesh/sail-operator presubmit Registry content changed
pull-ci-openshift-service-mesh-sail-operator-release-3.2-ocp-4.22-e2e-ocp-arm openshift-service-mesh/sail-operator presubmit Registry content changed
pull-ci-openshift-service-mesh-sail-operator-release-3.3-ocp-4.22-e2e-ocp openshift-service-mesh/sail-operator presubmit Registry content changed
pull-ci-openshift-service-mesh-sail-operator-release-3.3-ocp-4.22-e2e-ocp-arm openshift-service-mesh/sail-operator presubmit Registry content changed
periodic-ci-openshift-service-mesh-sail-operator-release-3.2-ocp-4.23-e2e-ocp N/A periodic Registry content changed
periodic-ci-openshift-service-mesh-sail-operator-release-3.0-ocp-4.23-e2e-ocp N/A periodic Registry content changed
periodic-ci-openshift-service-mesh-sail-operator-release-3.1-ocp-4.23-e2e-ocp N/A periodic Registry content changed
periodic-ci-openshift-service-mesh-sail-operator-release-3.3-ocp-4.23-e2e-ocp N/A periodic Registry content changed
periodic-ci-openshift-service-mesh-sail-operator-release-3.4-ocp-4.23-e2e-ocp N/A periodic Registry content changed

Prior to this PR being merged, you will need to either run and acknowledge or opt to skip these rehearsals.

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/servicemesh/sail-operator/e2e-ocp/servicemesh-sail-operator-e2e-ocp-commands.sh`:
- Around line 169-171: The artifact copy step only copies top-level XML files,
but has_junit_reports() detects junit*.xml and report.xml recursively under
ARTIFACT_DIR. Update the artifact sharing logic in
servicemesh_sail_operator_e2e_ocp_commands.sh so the copy for SHARED_DIR also
walks subdirectories and preserves all matching XML reports, not just files in
the root. Keep the existing XML-only constraint and align the copy behavior with
has_junit_reports() so nested reports are included.
🪄 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: a1846250-d116-4bcc-af24-1d14952debce

📥 Commits

Reviewing files that changed from the base of the PR and between 93185e3 and 51b53ae.

📒 Files selected for processing (1)
  • ci-operator/step-registry/servicemesh/sail-operator/e2e-ocp/servicemesh-sail-operator-e2e-ocp-commands.sh

@FilipB

FilipB commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

/pj-rehearse pull-ci-openshift-service-mesh-sail-operator-release-3.4-ocp-4.22-e2e-ocp pull-ci-openshift-service-mesh-sail-operator-main-ocp-4.22-e2e-ocp pull-ci-openshift-service-mesh-sail-operator-main-ocp-4.23-e2e-ocp

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@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.

🧹 Nitpick comments (1)
ci-operator/step-registry/servicemesh/sail-operator/e2e-ocp/servicemesh-sail-operator-e2e-ocp-commands.sh (1)

171-172: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Quote the directory variables in the ls calls.

These two expansions are unquoted, so shell word-splitting/globbing can mangle the diagnostic output if either path ever contains spaces or wildcard characters.

Suggested fix
-  ls -alh ${ARTIFACT_DIR}
-  ls -alh ${SHARED_DIR}
+  ls -alh "${ARTIFACT_DIR}"
+  ls -alh "${SHARED_DIR}"
🤖 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/servicemesh/sail-operator/e2e-ocp/servicemesh-sail-operator-e2e-ocp-commands.sh`
around lines 171 - 172, The diagnostic ls calls in the e2e-ocp command script
use unquoted ARTIFACT_DIR and SHARED_DIR expansions, which can break on spaces
or glob characters. Update the ls invocations in the relevant script section to
quote those directory variables, keeping the existing commands and behavior
otherwise unchanged. Reference the ls usage in the
servicemesh-sail-operator-e2e-ocp command script so the fix is applied to both
directory listings.

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.

Nitpick comments:
In
`@ci-operator/step-registry/servicemesh/sail-operator/e2e-ocp/servicemesh-sail-operator-e2e-ocp-commands.sh`:
- Around line 171-172: The diagnostic ls calls in the e2e-ocp command script use
unquoted ARTIFACT_DIR and SHARED_DIR expansions, which can break on spaces or
glob characters. Update the ls invocations in the relevant script section to
quote those directory variables, keeping the existing commands and behavior
otherwise unchanged. Reference the ls usage in the
servicemesh-sail-operator-e2e-ocp command script so the fix is applied to both
directory listings.

ℹ️ Review info
⚙️ Run configuration

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

Review profile: CHILL

Plan: Enterprise

Run ID: e9e07dec-dd69-4d62-8840-cd1cfd44c99b

📥 Commits

Reviewing files that changed from the base of the PR and between 51b53ae and 30b1782.

📒 Files selected for processing (1)
  • ci-operator/step-registry/servicemesh/sail-operator/e2e-ocp/servicemesh-sail-operator-e2e-ocp-commands.sh

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@FilipB: pj-rehearse could not automatically process this event because the request waited in queue for longer than 5 minutes. Use /pj-rehearse to trigger rehearsals manually.

@FilipB

FilipB commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

/pj-rehearse pull-ci-openshift-service-mesh-sail-operator-release-3.4-ocp-4.22-e2e-ocp pull-ci-openshift-service-mesh-sail-operator-main-ocp-4.22-e2e-ocp pull-ci-openshift-service-mesh-sail-operator-main-ocp-4.23-e2e-ocp

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@FilipB: your /pj-rehearse request was not processed because the request waited in queue for longer than 5 minutes. Please retry in a few minutes.

@FilipB

FilipB commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

/pj-rehearse pull-ci-openshift-service-mesh-sail-operator-release-3.4-ocp-4.22-e2e-ocp pull-ci-openshift-service-mesh-sail-operator-main-ocp-4.22-e2e-ocp pull-ci-openshift-service-mesh-sail-operator-main-ocp-4.23-e2e-ocp

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@FilipB

FilipB commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

/pj-rehearse pull-ci-openshift-service-mesh-sail-operator-release-3.4-ocp-4.22-e2e-ocp pull-ci-openshift-service-mesh-sail-operator-main-ocp-4.22-e2e-ocp pull-ci-openshift-service-mesh-sail-operator-main-ocp-4.23-e2e-ocp

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@openshift-ci

openshift-ci Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

@FilipB: The following test 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/rehearse/openshift-service-mesh/sail-operator/main/ocp-4.23-e2e-ocp 30b1782 link unknown /pj-rehearse pull-ci-openshift-service-mesh-sail-operator-main-ocp-4.23-e2e-ocp

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant