diff --git a/ci-operator/step-registry/openshift/edge-tooling/microshift-ci/doctor/openshift-edge-tooling-microshift-ci-doctor-commands.sh b/ci-operator/step-registry/openshift/edge-tooling/microshift-ci/doctor/openshift-edge-tooling-microshift-ci-doctor-commands.sh index f31f09af255f1..fbb833a875827 100644 --- a/ci-operator/step-registry/openshift/edge-tooling/microshift-ci/doctor/openshift-edge-tooling-microshift-ci-doctor-commands.sh +++ b/ci-operator/step-registry/openshift/edge-tooling/microshift-ci/doctor/openshift-edge-tooling-microshift-ci-doctor-commands.sh @@ -163,7 +163,7 @@ wait_for_mcp_status() { local -r attempts=$((timeout / interval)) for ((i=0; i&1 | tee "${CLAUDE_DOCTOR_LOG}" || CLAUDE_RC=$? -check_claude_rc "${CLAUDE_RC}" "doctor" 45 +check_claude_rc "${CLAUDE_RC}" "doctor" 60 # Run bug creation for failed jobs (15m and 50 turns). -echo "Running Claude to create bugs for failed jobs..." -CLAUDE_RC=0 -timeout 900 claude \ - --model "${CLAUDE_MODEL}" \ - --max-turns 50 \ - --output-format stream-json \ - --plugin-dir "${PLUGIN_DIR}" \ - -p "/microshift-ci:create-bugs ${RELEASE_VERSIONS} --create" \ - --verbose 2>&1 | tee "${CLAUDE_CREATE_BUGS_LOG}" || CLAUDE_RC=$? -check_claude_rc "${CLAUDE_RC}" "create-bugs" 15 +#echo "Running Claude to create bugs for failed jobs..." +#CLAUDE_RC=0 +#timeout 900 claude-latest \ +# --model "${CLAUDE_MODEL}" \ +# --max-turns 50 \ +# --output-format stream-json \ +# --plugin-dir "${PLUGIN_DIR}" \ +# -p "/microshift-ci:create-bugs ${RELEASE_VERSIONS} --create" \ +# --verbose 2>&1 | tee "${CLAUDE_CREATE_BUGS_LOG}" || CLAUDE_RC=$? +#check_claude_rc "${CLAUDE_RC}" "create-bugs" 15 # Close stale bugs that are no longer linked to current failures (10m and 20 turns). -echo "Running Claude to close stale bugs..." -CLAUDE_RC=0 -timeout 600 claude \ - --model "${CLAUDE_MODEL}" \ - --max-turns 20 \ - --output-format stream-json \ - --plugin-dir "${PLUGIN_DIR}" \ - -p "/microshift-ci:close-stale-bugs --close" \ - --verbose 2>&1 | tee "${CLAUDE_CLOSE_STALE_BUGS_LOG}" || CLAUDE_RC=$? -check_claude_rc "${CLAUDE_RC}" "close-stale-bugs" 10 +#echo "Running Claude to close stale bugs..." +#CLAUDE_RC=0 +#timeout 600 claude-latest \ +# --model "${CLAUDE_MODEL}" \ +# --max-turns 20 \ +# --output-format stream-json \ +# --plugin-dir "${PLUGIN_DIR}" \ +# -p "/microshift-ci:close-stale-bugs --close" \ +# --verbose 2>&1 | tee "${CLAUDE_CLOSE_STALE_BUGS_LOG}" || CLAUDE_RC=$? +#check_claude_rc "${CLAUDE_RC}" "close-stale-bugs" 10 # Run bug fix for test bugs (15m and 50 turns). # Dry-run mode only. echo "Running Claude to fix test bugs (dry-run mode)..." CLAUDE_RC=0 -timeout 900 claude \ +timeout 900 claude-latest \ --model "${CLAUDE_MODEL}" \ --max-turns 50 \ --output-format stream-json \ @@ -312,7 +347,7 @@ check_claude_rc "${CLAUDE_RC}" "fix-test-bugs" 15 # Run HTML report refresh to include the new bugs (10m and 20 turns). echo "Running Claude to refresh the HTML report..." CLAUDE_RC=0 -timeout 600 claude \ +timeout 600 claude-latest \ --model "${CLAUDE_MODEL}" \ --max-turns 20 \ --output-format stream-json \ @@ -323,9 +358,9 @@ check_claude_rc "${CLAUDE_RC}" "doctor-refresh" 10 # Now attempt to restart failed rebase PRs tests. If the restarted tests # complete successfully, the PR will be automatically merged. -echo "Running automatic restart of failed rebase PRs tests..." -"${PLUGIN_DIR}/scripts/prow-jobs-for-pull-requests.sh" \ - --mode restart \ - --execute \ - --author 'microshift-rebase-script[bot]' -echo "Automatic restart of failed rebase PRs tests completed" +#echo "Running automatic restart of failed rebase PRs tests..." +#"${PLUGIN_DIR}/scripts/prow-jobs-for-pull-requests.sh" \ +# --mode restart \ +# --execute \ +# --author 'microshift-rebase-script[bot]' +#echo "Automatic restart of failed rebase PRs tests completed" diff --git a/ci-operator/step-registry/openshift/edge-tooling/microshift-ci/doctor/openshift-edge-tooling-microshift-ci-doctor-ref.yaml b/ci-operator/step-registry/openshift/edge-tooling/microshift-ci/doctor/openshift-edge-tooling-microshift-ci-doctor-ref.yaml index 2764a288b6301..dff0606827b15 100644 --- a/ci-operator/step-registry/openshift/edge-tooling/microshift-ci/doctor/openshift-edge-tooling-microshift-ci-doctor-ref.yaml +++ b/ci-operator/step-registry/openshift/edge-tooling/microshift-ci/doctor/openshift-edge-tooling-microshift-ci-doctor-ref.yaml @@ -42,7 +42,7 @@ ref: requests: cpu: 2000m memory: 4Gi - timeout: 1h30m0s + timeout: 2h15m0s grace_period: 10m0s documentation: |- Analyzes MicroShift periodic jobs and pull requests using Claude AI.