Skip to content

[SDCICD-1693] script for parameterized jenkins job to run osde2e KRKN…#3152

Open
varunraokadaparthi wants to merge 1 commit intoopenshift:mainfrom
varunraokadaparthi:SDCICD-1693
Open

[SDCICD-1693] script for parameterized jenkins job to run osde2e KRKN…#3152
varunraokadaparthi wants to merge 1 commit intoopenshift:mainfrom
varunraokadaparthi:SDCICD-1693

Conversation

@varunraokadaparthi
Copy link
Contributor

… AI command

  • Add scripts/parameterized-job-krknai.sh: Jenkins parameterized job script that runs the osde2e krkn-ai command inside a Docker container, forwarding all required credentials (OCM, AWS, GCP) and krkn-ai configuration (namespace, pod label, scenarios, fitness query, health checks, generations, population) as environment variables, then copies junit results for publishing.
  • Fix stderr capture in pkg/krknai/krknai.go: move container stderr logging into a defer block so diagnostic output is always logged, even when container execution fails and cmd.Run() returns early with an error.

@openshift-ci-robot
Copy link

There are test jobs defined for this repository which are not configured to run automatically. Comment /test ? to see a list of all defined jobs. Review these jobs and use /test <job> to manually trigger jobs most likely to be impacted by the proposed changes.Comment /pipeline required to trigger all required & necessary jobs.

@coderabbitai
Copy link

coderabbitai bot commented Mar 13, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 13a2e58e-438d-41f3-ab11-221397a2c17a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

Tip

You can get early access to new features in CodeRabbit.

Enable the early_access setting to enable early access features such as new models, tools, and more.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 13, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: varunraokadaparthi

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 Mar 13, 2026
@varunraokadaparthi varunraokadaparthi force-pushed the SDCICD-1693 branch 2 times, most recently from 5aa99d6 to a7073f1 Compare March 13, 2026 19:44
… AI command

- Add `scripts/parameterized-job-krknai.sh`: Jenkins parameterized job script that runs the osde2e krkn-ai command inside a Docker container, forwarding all required credentials (OCM, AWS, GCP) and krkn-ai configuration (namespace, pod label, scenarios, fitness query, health checks, generations, population) as environment variables, then copies junit results for publishing.
- Fix stderr capture in `pkg/krknai/krknai.go`: move container stderr logging into a defer block so diagnostic output is always logged, even when container execution fails and cmd.Run() returns early with an error.
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 13, 2026

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

-e KRKN_TOP_SCENARIOS_COUNT \
-e GEMINI_API_KEY \
-e REPORT_DIR="/tmp/${REPORT_DIR}" \
quay.io/redhat-services-prod/osde2e-cicada-tenant/osde2e:latest krkn-ai --configs "${CONFIGS}" --skip-destroy-cluster "$( [ "${SKIP_MUST_GATHER}" = "true" ] && echo "--skip-must-gather" )" --log-analysis-enable
Copy link
Contributor

@minlei98 minlei98 Mar 13, 2026

Choose a reason for hiding this comment

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

When SKIP_MUST_GATHER is false, it create an empty "" argument. The script passes nothing, so the default true takes effect — must-gather is still skipped.

Copy link
Contributor

@minlei98 minlei98 left a comment

Choose a reason for hiding this comment

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

It will be helpful to review with Jenkins job template PR

docker start -a osde2e-krknai-run

# copy the junit results xml for publishing
docker cp osde2e-krknai-run:/tmp/osde2e-report .
Copy link
Contributor

@minlei98 minlei98 Mar 13, 2026

Choose a reason for hiding this comment

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

  1. if the osde2e-krknai-run container exits with a failure code, that exit code is lost. The script's final exit code comes from docker cp. Jenkins will report success even when tests fail. suggest:

docker start -a osde2e-krknai-run
rc=$?

docker cp osde2e-krknai-run:/tmp/osde2e-report .
exit $rc


docker start -a osde2e-krknai-run

# copy the junit results xml for publishing
Copy link
Contributor

@minlei98 minlei98 Mar 13, 2026

Choose a reason for hiding this comment

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

copy krkn-ai results instead of Junit results xml

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.

3 participants