Skip to content

chore: Update task.step resource#3073

Draft
ysok wants to merge 1 commit intoopendatahub-io:mainfrom
ysok-opendatahub-io:apply-codeserver-step-resources
Draft

chore: Update task.step resource#3073
ysok wants to merge 1 commit intoopendatahub-io:mainfrom
ysok-opendatahub-io:apply-codeserver-step-resources

Conversation

@ysok
Copy link
Copy Markdown
Contributor

@ysok ysok commented Mar 10, 2026

chore: Update task.step resource

Description

chore: Update task.step resource

How Has This Been Tested?

Self checklist (all need to be checked):

  • Ensure that you have run make test (gmake on macOS) before asking for review
  • Changes to everything except Dockerfile.konflux files should be done in odh/notebooks and automatically synced to rhds/notebooks. For Konflux-specific changes, modify Dockerfile.konflux files directly in rhds/notebooks as these require special attention in the downstream repository and flow to the upcoming RHOAI release.

Merge criteria:

  • The commits are squashed in a cohesive manner and have meaningful messages.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

Summary by CodeRabbit

Release Notes

  • Chores
    • Updated build configuration to optimize compute resource allocation for pipeline tasks, enhancing build performance and stability.

@openshift-ci openshift-ci Bot requested review from ayush17 and jiridanek March 10, 2026 02:53
@github-actions github-actions Bot added the review-requested GitHub Bot creates notification on #pr-review-ai-ide-team slack channel label Mar 10, 2026
@openshift-ci openshift-ci Bot added the size/m label Mar 10, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 10, 2026

📝 Walkthrough

Walkthrough

Two Tekton configuration files are updated to modify compute resource specifications. One file restructures resources from task-level to step-level configuration via taskRunSpecs, while the other adds explicit resource overrides for pipeline tasks.

Changes

Cohort / File(s) Summary
Pull request configuration
.tekton/odh-workbench-codeserver-datascience-cpu-py312-ubi9-odh-main-pull-request.yaml
Migrates computeResources from per-task blocks to step-level specifications under taskRunSpecs for named steps (prefetch-dependencies, build). Preserves original CPU and memory limits/requests.
Push configuration
.tekton/odh-workbench-codeserver-datascience-cpu-py312-ubi9-odh-main-push.yaml
Adds explicit computeResources overrides for pipeline tasks (prefetch-dependencies, build-images) with increased cpu: "8" and memory: "32Gi" for requests and limits.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Title check ⚠️ Warning Title lacks a ticket reference (RHAIENG-XXXX, NO-JIRA, or ISSUE #NNN) and is not in imperative mood; 'Update' is correct, but no issue identifier is included. Add a ticket reference (e.g., NO-JIRA if not associated with a ticket) to conform to requirements: 'NO-JIRA: chore: Update task step resources' or similar.
Description check ⚠️ Warning Description is largely incomplete; it only repeats the title without providing details on what was changed, why, or how it was tested. Expand the description with specific details about the changes made, the rationale, and actual testing performed; all merge criteria checkboxes remain unchecked.
✅ Passed checks (2 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Branch Prefix Policy ✅ Passed PR title 'chore: Update task.step resource' correctly adheres to branch prefix policy for main branch by not starting with a branch-specific prefix.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

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

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.

@openshift-ci openshift-ci Bot added size/m and removed size/m labels Mar 10, 2026
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.tekton/odh-workbench-codeserver-datascience-cpu-py312-ubi9-push.yaml (1)

191-198: ⚠️ Potential issue | 🟠 Major

Use stepSpecs for build-images instead of task-level computeResources.

Task-level computeResources allocate resources as a total budget divided equally across all the task's steps. Since the buildah-remote-oci-ta task has multiple steps, the actual build container will receive only a fraction of the 8 CPU / 32Gi allocation, which will not fix the OOM issue. Your pull-request YAML already uses the correct pattern with stepSpecs targeting the build step—apply the same fix to this push file.

🔧 Suggested change
   - pipelineTaskName: build-images
-    computeResources:
-      requests:
-        cpu: "8"
-        memory: "32Gi"
-      limits:
-        cpu: "8"
-        memory: "32Gi"
+    stepSpecs:
+      - name: build
+        computeResources:
+          requests:
+            cpu: "8"
+            memory: "32Gi"
+          limits:
+            cpu: "8"
+            memory: "32Gi"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.tekton/odh-workbench-codeserver-datascience-cpu-py312-ubi9-push.yaml around
lines 191 - 198, The pipelineTaskName "build-images" currently sets task-level
computeResources which are split across steps; replace that block with a
stepSpecs entry for the build step of the buildah-remote-oci-ta task so the
actual build container gets the full resources: remove the task-level
computeResources under pipelineTaskName "build-images" and add a stepSpecs
mapping that targets the step named "build" and supplies requests.cpu "8",
requests.memory "32Gi", limits.cpu "8", limits.memory "32Gi" so the build step
(not the whole task) receives the intended allocation.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In @.tekton/odh-workbench-codeserver-datascience-cpu-py312-ubi9-push.yaml:
- Around line 191-198: The pipelineTaskName "build-images" currently sets
task-level computeResources which are split across steps; replace that block
with a stepSpecs entry for the build step of the buildah-remote-oci-ta task so
the actual build container gets the full resources: remove the task-level
computeResources under pipelineTaskName "build-images" and add a stepSpecs
mapping that targets the step named "build" and supplies requests.cpu "8",
requests.memory "32Gi", limits.cpu "8", limits.memory "32Gi" so the build step
(not the whole task) receives the intended allocation.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 8b5c8460-0153-4154-a8f0-1d9934ab49ea

📥 Commits

Reviewing files that changed from the base of the PR and between 7611fab and 76698e2.

📒 Files selected for processing (2)
  • .tekton/odh-workbench-codeserver-datascience-cpu-py312-ubi9-pull-request.yaml
  • .tekton/odh-workbench-codeserver-datascience-cpu-py312-ubi9-push.yaml

@ysok
Copy link
Copy Markdown
Contributor Author

ysok commented Mar 12, 2026

/kfbuild codeserver/ubi9-python-3.12

@ysok ysok force-pushed the apply-codeserver-step-resources branch from 76698e2 to 48b35bb Compare March 12, 2026 14:20
@openshift-ci openshift-ci Bot removed the lgtm label Mar 12, 2026
@openshift-ci openshift-ci Bot added size/m and removed size/m labels Mar 12, 2026
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.tekton/odh-workbench-codeserver-datascience-cpu-py312-ubi9-odh-main-push.yaml (1)

180-198: ⚠️ Potential issue | 🟠 Major

Migrate push PipelineRun to step-level computeResources overrides to match the paired pull-request PipelineRun.

The paired pull-request PipelineRun was switched to stepSpecs because task-level computeResources may be ignored when that beta feature is disabled. This push PipelineRun still relies on task-level overrides only. Since Pipelines-as-Code triggers separate PipelineRun definitions per event type (pull_request vs push), and step-level overrides must be specified in each to guarantee they apply, this file needs the same migration.

Update taskRunSpecs to use stepSpecs[].computeResources for both prefetch-dependencies and build-images tasks to match the PR variant.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In
@.tekton/odh-workbench-codeserver-datascience-cpu-py312-ubi9-odh-main-push.yaml
around lines 180 - 198, Update the taskRunSpecs entries so the computeResources
overrides are applied at the step level: for both pipelineTaskName values
"prefetch-dependencies" and "build-images" replace the task-level
computeResources block with a stepSpecs array that contains a
stepSpecs[].computeResources entry (matching the same cpu/memory requests and
limits), ensuring the keys and values are preserved but moved under stepSpecs to
mirror the pull-request PipelineRun migration; keep the existing resource
numbers and pipelineTaskName identifiers unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In
@.tekton/odh-workbench-codeserver-datascience-cpu-py312-ubi9-odh-main-push.yaml:
- Around line 180-198: Update the taskRunSpecs entries so the computeResources
overrides are applied at the step level: for both pipelineTaskName values
"prefetch-dependencies" and "build-images" replace the task-level
computeResources block with a stepSpecs array that contains a
stepSpecs[].computeResources entry (matching the same cpu/memory requests and
limits), ensuring the keys and values are preserved but moved under stepSpecs to
mirror the pull-request PipelineRun migration; keep the existing resource
numbers and pipelineTaskName identifiers unchanged.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 0d75beb2-0cf6-4165-b42e-4eb0b1a3de68

📥 Commits

Reviewing files that changed from the base of the PR and between 76698e2 and 48b35bb.

📒 Files selected for processing (2)
  • .tekton/odh-workbench-codeserver-datascience-cpu-py312-ubi9-odh-main-pull-request.yaml
  • .tekton/odh-workbench-codeserver-datascience-cpu-py312-ubi9-odh-main-push.yaml

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Mar 12, 2026

@ysok: 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/prow/images 48b35bb link true /test images

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.

@ysok
Copy link
Copy Markdown
Contributor Author

ysok commented Mar 12, 2026

/kfbuild codeserver/ubi9-python-3.12

3 similar comments
@anithapriyanatarajan
Copy link
Copy Markdown

/kfbuild codeserver/ubi9-python-3.12

@ide-developer
Copy link
Copy Markdown
Collaborator

/kfbuild codeserver/ubi9-python-3.12

@ysok
Copy link
Copy Markdown
Contributor Author

ysok commented Mar 17, 2026

/kfbuild codeserver/ubi9-python-3.12

@openshift-ci openshift-ci Bot added the lgtm label Mar 17, 2026
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Mar 17, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: atheo89, jiridanek

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
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Mar 21, 2026

PR needs rebase.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved do-not-merge/work-in-progress lgtm needs-rebase review-requested GitHub Bot creates notification on #pr-review-ai-ide-team slack channel size/m

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants