[rhoai-2.25] RHAIENG-2345: subscribe Build Notebooks push (non-codeserver)#2552
Conversation
Plain UBI cannot install texlive RPMs after the install_pdf_deps RPM switch (#2310). Enable RHSM for the template self-test so it matches subscribed Build Notebooks / Konflux. Co-authored-by: Cursor <cursoragent@cursor.com>
gen_gha_matrix_jobs only sets subscription for *rhel* targets, so push builds ran ubi9 jupyter-minimal unsubscribed and failed dnf texlive install. Match build-notebooks-pr.yaml and force subscription except hermetic codeserver. Co-authored-by: Cursor <cursoragent@cursor.com>
📝 WalkthroughWalkthroughChangesNotebook build subscription handling
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related issues
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/workflows/test-build-notebooks-template.yaml (1)
38-38: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winUse a literal boolean for the static value.
Replace
${{ true }}withtrue; this preserves the boolean input while avoiding zizmor’s obfuscated-expression warning.Proposed fix
- subscription: ${{ true }} + subscription: true🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/workflows/test-build-notebooks-template.yaml at line 38, Update the static subscription value in the workflow to use the literal boolean true instead of the expression-wrapped value, preserving it as a boolean input and avoiding the obfuscated-expression warning.Source: Linters/SAST tools
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In @.github/workflows/test-build-notebooks-template.yaml:
- Line 38: Update the static subscription value in the workflow to use the
literal boolean true instead of the expression-wrapped value, preserving it as a
boolean input and avoiding the obfuscated-expression warning.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 93bfb347-d54b-4cff-84e1-c2c2235c14de
📒 Files selected for processing (2)
.github/workflows/build-notebooks-push.yaml.github/workflows/test-build-notebooks-template.yaml
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ide-developer 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 |
Description
After #2550 switched PDF deps to AppStream/EPEL RPMs, two CI paths still built unsubscribed and fail
dnf install texlive-*:1. Build Notebooks (push)
gen_gha_matrix_jobs.pysets"subscription": "rhel" in target, and push passed that through → jobs named…, false)(e.g. run 29916877152).Fix: match
build-notebooks-pr.yaml:subscription: ${{ !contains(matrix.target, 'codeserver') }}.2. Test Build Notebooks Template (PR check)
Hardcoded
subscription: false→ same AppStream miss. Breaks any PR that triggers the template self-test (paths under.github/workflows/, Makefile, etc.), e.g. #2540 / job 88918051263 (subscription: false,No match for argument: texlive-adjustbox).Fix:
subscription: ${{ true }}(#2310).Codeserver stays unsubscribed (hermetic public UBI locks). Same-repo secrets required; fork PRs that touch these paths will fail without them (see CONTRIBUTING.md).
How Has This Been Tested?
subscription: true, pastinstall_pdf_depsrhoai-2.25shows…, true)for non-codeserverSelf checklist:
make test(gmakeon macOS) before asking for reviewDockerfile.konfluxfiles should be done inodh/notebooksand automatically synced torhds/notebooks. For Konflux-specific changes, modifyDockerfile.konfluxfiles directly inrhds/notebooksas these require special attention in the downstream repository and flow to the upcoming RHOAI release.Merge criteria: