sno gather avoid draining stdin with ssh/scp commands#79577
Conversation
yet another attempt to fix this gather script somehow ending abruptly
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
WalkthroughUpdated remote SSH command execution in the baremetalds-sno-gather-commands script: the heredoc is now captured into a ChangesSSH Execution Wrapper
Possibly Related PRs
Suggested Labels
Suggested Reviewers
🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 12✅ Passed checks (12 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: omertuc The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
[REHEARSALNOTIFIER]
A total of 145 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-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
/pj-rehearse pull-ci-rh-ecosystem-edge-recert-main-baremetalds-sno-recert-cluster-rename |
|
@omertuc: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
@omertuc: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
yet another attempt to fix this gather script somehow ending abruptly
Summary by CodeRabbit
This PR fixes a CI infrastructure issue affecting the baremetalds Single Node OpenShift (SNO) gather step in the CI operator step registry.
Problem: The gather script was ending abruptly due to stdin being drained during remote SSH command execution.
Solution: Modified how the remote bash command is executed on line 27 of
ci-operator/step-registry/baremetalds/sno/gather/baremetalds-sno-gather-commands.sh:| bash -)scriptvariable (script=$(cat)) and then executed viabash -c "$script"This approach prevents stdin from being consumed directly by bash, allowing the script to complete properly. The output redaction via
sed(which masks sensitive pull secret data) remains applied to the combined stdout/stderr stream.This fix ensures that the baremetalds SNO test infrastructure can successfully gather logs and diagnostics without the gather step terminating unexpectedly.