-
Notifications
You must be signed in to change notification settings - Fork 2.2k
MG-272: Added Hypershift weekly job for support-log-gather operator #79339
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -144,6 +144,10 @@ case "${PLATFORM}" in | |||||||||||||||
| ARGS+=( --feature-set "${GUEST_FEATURE_SET}") | ||||||||||||||||
| fi | ||||||||||||||||
|
|
||||||||||||||||
| if [[ -n "${EXTRA_ARGS}" ]]; then | ||||||||||||||||
| ARGS+=( ${EXTRA_ARGS} ) | ||||||||||||||||
| fi | ||||||||||||||||
|
Comment on lines
+147
to
+149
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Check if file exists and examine the relevant section
if [[ -f "ci-operator/step-registry/hypershift/hostedcluster/create/hostedcluster/hypershift-hostedcluster-create-hostedcluster-commands.sh" ]]; then
echo "=== File head (first 10 lines) ==="
head -10 "ci-operator/step-registry/hypershift/hostedcluster/create/hostedcluster/hypershift-hostedcluster-create-hostedcluster-commands.sh"
echo ""
echo "=== Lines 140-160 (around the target) ==="
sed -n '140,160p' "ci-operator/step-registry/hypershift/hostedcluster/create/hostedcluster/hypershift-hostedcluster-create-hostedcluster-commands.sh" | cat -n
echo ""
echo "=== Search for EXTRA_ARGS usage ==="
grep -n "EXTRA_ARGS" "ci-operator/step-registry/hypershift/hostedcluster/create/hostedcluster/hypershift-hostedcluster-create-hostedcluster-commands.sh"
else
echo "File not found"
fiRepository: openshift/release Length of output: 1507 Guard Line 147 can abort the script under Suggested fix- if [[ -n "${EXTRA_ARGS}" ]]; then
- ARGS+=( ${EXTRA_ARGS} )
+ if [[ -n "${EXTRA_ARGS:-}" ]]; then
+ read -r -a extra_args <<< "${EXTRA_ARGS}"
+ ARGS+=("${extra_args[@]}")
fi📝 Committable suggestion
Suggested change
🧰 Tools🪛 Shellcheck (0.11.0)[warning] 148-148: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. (SC2206) 🤖 Prompt for AI Agents |
||||||||||||||||
|
|
||||||||||||||||
| echo "Creating cluster with the following arguments:" | ||||||||||||||||
| echo "${ARGS[@]}" | ||||||||||||||||
| /usr/bin/hypershift create cluster aws "${ARGS[@]}" | ||||||||||||||||
|
|
||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
What is the default timeout behavior ofoc rollout statuswhen--timeoutis not specified?💡 Result:
If you run
oc rollout statuswithout--timeout, it will keep watching until the rollout finishes (i.e., it does not end watch early due to a client-side timeout). This is because the command’s--timeoutoption (“length of time to wait before ending watch”) defaults to 0, and0means “never” [1]. Note: this timeout controls ending the watch, not per-request connection/watch timeouts; those are governed by a separate--request-timeoutflag [1].Citations:
🏁 Script executed:
Repository: openshift/release
Length of output: 50373
Add an explicit rollout timeout to prevent stuck weekly runs.
oc rollout statuswithout--timeoutwaits indefinitely and can tie up periodic capacity.Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents