Skip to content

feat: update component mappings - Model as a Service and more#100

Merged
jwm4 merged 5 commits intoambient-code:mainfrom
angaduom:update-component-mappings
Apr 1, 2026
Merged

feat: update component mappings - Model as a Service and more#100
jwm4 merged 5 commits intoambient-code:mainfrom
angaduom:update-component-mappings

Conversation

@vmrh21
Copy link
Copy Markdown
Contributor

@vmrh21 vmrh21 commented Apr 1, 2026

Summary

  • Model as a Service — updated with real branch data:
    • opendatahub-io/models-as-a-service: active branches stable, rhoai, v0.1.x; branch strategy main → stable → rhoai
    • red-hat-data-services/models-as-a-service: updated active branches to rhoai-3.3, rhoai-3.4, rhoai-3.4-ea.1, rhoai-3.4-ea.2 (removes stale rhoai-3.0, rhoai-3.2)
    • Added opendatahub-io/opendatahub-operator (upstream, subcomponent: operator) with odh-3.4.0-ea.1/ea.2
    • Added red-hat-data-services/opendatahub-operator (downstream, no release branches yet)

Test plan

  • Run /cve.find "Model as a Service" — verify it returns MaaS CVE tickets
  • Run /cve.find "Model as a Service" maas-api — verify it scopes to maas-api container tickets only
  • Verify mapping JSON is valid

🤖 Generated with Claude Code

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 1, 2026

Warning

Rate limit exceeded

@vmrh21 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 10 minutes and 51 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 10 minutes and 51 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 29d207b6-40e2-47d6-8e5f-40e85b3dff6d

📥 Commits

Reviewing files that changed from the base of the PR and between 9a32ab5 and 85c164e.

📒 Files selected for processing (1)
  • workflows/cve-fixer/component-repository-mappings.json

Walkthrough

Updated workflows/cve-fixer/component-repository-mappings.json to replace placeholder branch/strategy fields for two Model as a Service entries with explicit active_release_branches, concrete branch_strategy, repo_type, subcomponent, and normalized cve_fix_workflow backport targets; removed build_location and notes; changed downstream default branch to main.

Changes

Cohort / File(s) Summary
CVE Fixer mappings
workflows/cve-fixer/component-repository-mappings.json
Replaced placeholder/empty branch strategy fields for opendatahub-io/models-as-a-service and red-hat-data-services/models-as-a-service with explicit active_release_branches, concrete branch_strategy, and normalized cve_fix_workflow backport targets. Added repo_type and subcomponent for both entries, removed build_location and notes, and changed downstream default_branch from rhoai-3.0 to main with expanded RHOAI release branches. Overall +21/-24 lines.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: updating component mappings for Model as a Service and related components.
Description check ✅ Passed The description is clearly related to the changeset, providing detailed information about the Model as a Service updates and new component additions.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

…ahub-operator

- models-as-a-service upstream: add active branches (stable, rhoai, v0.1.x)
  and real branch strategy (main → stable → rhoai auto-propagation)
- models-as-a-service downstream: update active branches to rhoai-3.3 through
  rhoai-3.4-ea.2 (dropping stale rhoai-3.0, rhoai-3.2)
- Add opendatahub-io/opendatahub-operator (upstream, subcomponent: operator)
  with odh-3.4.0-ea.1/ea.2 active branches
- Add red-hat-data-services/opendatahub-operator (downstream, no release
  branches yet)

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@vmrh21 vmrh21 force-pushed the update-component-mappings branch from 87724c4 to 279ac9b Compare April 1, 2026 18:54
…erator, not MaaS-specific

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

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

Actionable comments posted: 3

Caution

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

⚠️ Outside diff range comments (1)
workflows/cve-fixer/component-repository-mappings.json (1)

48-109: 🧹 Nitpick | 🔵 Trivial

Schema inconsistency: Model as a Service entries differ from other repository entries.

The Model as a Service repository entries are missing protected_branches, automation, and manual_intervention fields that are present in other repository entries (e.g., Model Serving at lines 129-219). While CLAUDE.md has hardcoded defaults for protected branches, this inconsistency may cause issues if code expects a uniform schema when iterating over repositories.

Consider either:

  1. Adding these fields (even if empty/default values) to maintain schema consistency, or
  2. Removing them from all entries and relying on defaults throughout
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@workflows/cve-fixer/component-repository-mappings.json` around lines 48 -
109, The Model as a Service repository entries
("opendatahub-io/models-as-a-service" and
"red-hat-data-services/models-as-a-service") lack the schema fields present
elsewhere ("protected_branches", "automation", "manual_intervention"); add those
fields to these two repo objects with the same default shapes/values used in
other entries (e.g., empty arrays/objects or the project's default values
referenced by CLAUDE.md) so the repository schema is uniform and code that
iterates over repository entries (the repository mapping consumer) won't
encounter missing keys.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@workflows/cve-fixer/component-repository-mappings.json`:
- Around line 65-81: The downstream mapping for
"red-hat-data-services/models-as-a-service" is missing the build_location
property which the upstream opendatahub-io/models-as-a-service expects; add a
"build_location" field to this repository object (alongside "github_url",
"default_branch", "repo_type", etc.) and set it to the same value used by the
upstream mapping so the cve_fix_workflow (primary_target/backport_targets)
behaves consistently; update the JSON entry for
"red-hat-data-services/models-as-a-service" to include "build_location":
"<upstream-build-location-value>".
- Around line 82-97: The repository entry for
"opendatahub-io/opendatahub-operator" is missing container mappings so /cve.find
cannot map images to this repo; update the container_to_repo_mapping section to
add entries for the opendatahub-io/opendatahub-operator repo (reference the repo
key "opendatahub-io/opendatahub-operator" and its cve_fix_workflow
primary_target/backport_targets) by adding the final container image names (and
any relevant tag patterns) that correspond to this operator, and remove or
replace the "Container name TBD" note in the notes field once the mapping is
added so the CVE workflow can resolve images to the repository.
- Around line 52-63: This entry is missing the build_location field so the CVE
workflow will run govulncheck from the repo root instead of the maas-api
subdirectory; update the component JSON entry that contains "subcomponent":
"maas-api" (and its "cve_fix_workflow" / "primary_target" settings) to include
"build_location": "maas-api/" so the /cve.fix job cd's into the correct
submodule before scanning.

---

Outside diff comments:
In `@workflows/cve-fixer/component-repository-mappings.json`:
- Around line 48-109: The Model as a Service repository entries
("opendatahub-io/models-as-a-service" and
"red-hat-data-services/models-as-a-service") lack the schema fields present
elsewhere ("protected_branches", "automation", "manual_intervention"); add those
fields to these two repo objects with the same default shapes/values used in
other entries (e.g., empty arrays/objects or the project's default values
referenced by CLAUDE.md) so the repository schema is uniform and code that
iterates over repository entries (the repository mapping consumer) won't
encounter missing keys.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 6b06029c-dcd1-45f1-a6c8-5b93fc234953

📥 Commits

Reviewing files that changed from the base of the PR and between f6888ba and 87724c4.

📒 Files selected for processing (1)
  • workflows/cve-fixer/component-repository-mappings.json

Comment on lines +82 to +97
"opendatahub-io/opendatahub-operator": {
"github_url": "https://github.com/opendatahub-io/opendatahub-operator",
"default_branch": "main",
"active_release_branches": [
"odh-3.4.0-ea.1",
"odh-3.4.0-ea.2"
],
"branch_strategy": "Fix in main. ODH release branches follow pattern odh-X.Y.Z. Also syncs to stable and rhoai branches.",
"repo_type": "upstream",
"subcomponent": "operator",
"notes": "No Dockerfile.konflux RHOAI container label found \u2014 uses rhoai.Dockerfile variant. Container name TBD.",
"cve_fix_workflow": {
"primary_target": "main",
"backport_targets": "odh-3.4.0-ea.1, odh-3.4.0-ea.2"
}
},
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🧹 Nitpick | 🔵 Trivial

Missing container_to_repo_mapping entries for opendatahub-operator repositories.

The notes field (line 92) acknowledges this is TBD, but be aware that /cve.find commands won't be able to map container images to these repositories until the container_to_repo_mapping section is updated with the appropriate container names.

Do you want me to open an issue to track adding the container mappings once the container names are finalized?

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

In `@workflows/cve-fixer/component-repository-mappings.json` around lines 82 - 97,
The repository entry for "opendatahub-io/opendatahub-operator" is missing
container mappings so /cve.find cannot map images to this repo; update the
container_to_repo_mapping section to add entries for the
opendatahub-io/opendatahub-operator repo (reference the repo key
"opendatahub-io/opendatahub-operator" and its cve_fix_workflow
primary_target/backport_targets) by adding the final container image names (and
any relevant tag patterns) that correspond to this operator, and remove or
replace the "Container name TBD" note in the notes field once the mapping is
added so the CVE workflow can resolve images to the repository.

vmrh21 and others added 3 commits April 1, 2026 14:57
stable and rhoai are 26 commits behind main — they are release snapshots
not auto-propagated. v0.1.x has diverged from main. Updated to reflect
manual cherry-pick backport approach.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Use ensure_ascii=False so → and — render as readable text instead of
\u2192 and \u2014.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
go.mod is in maas-api/ subdirectory — without this govulncheck
and other scanners would fail at the repo root.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

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

Actionable comments posted: 1

♻️ Duplicate comments (1)
workflows/cve-fixer/component-repository-mappings.json (1)

58-63: ⚠️ Potential issue | 🔴 Critical

Restore build_location for the maas-api mappings.

subcomponent only scopes the component; it does not tell /cve.fix where to run the scan. These models-as-a-service entries still need "build_location": "maas-api/", otherwise the workflow scans the repo root and can miss/fail for this component in both forks.

🛠️ Proposed fix
         "repo_type": "upstream",
         "subcomponent": "maas-api",
+        "build_location": "maas-api/",
         "cve_fix_workflow": {
           "primary_target": "main",
           "backport_targets": "stable, rhoai, v0.1.x (manual cherry-pick)"
         }
@@
         "repo_type": "downstream",
         "subcomponent": "maas-api",
+        "build_location": "maas-api/",
         "cve_fix_workflow": {
           "primary_target": "main",
           "backport_targets": "rhoai-3.3, rhoai-3.4, rhoai-3.4-ea.1, rhoai-3.4-ea.2"
         }

Also applies to: 75-80

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

In `@workflows/cve-fixer/component-repository-mappings.json` around lines 58 - 63,
Add the missing "build_location" property to the maas-api mapping so the CVE
scanner runs in the correct subdirectory; specifically update the mapping object
containing "subcomponent": "maas-api" and "cve_fix_workflow" to include
"build_location": "maas-api/" (also apply the same change to the duplicate
mapping around the 75-80 region), ensuring the scanner targets the maas-api/
directory rather than the repo root.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@workflows/cve-fixer/component-repository-mappings.json`:
- Around line 52-59: This mapping block adds release branches via
"active_release_branches" but omits the CVE fixer-safe "protected_branches"
field; update the JSON object that contains "active_release_branches",
"branch_strategy", "repo_type", and "subcomponent" to include a
"protected_branches" array listing the explicit release branches (e.g.,
"stable", "v0.1.x", "rhoai-3.x") so automation treats those lines as protected;
apply the same change to the other similar mapping block mentioned (the one
around the 67-76 range).

---

Duplicate comments:
In `@workflows/cve-fixer/component-repository-mappings.json`:
- Around line 58-63: Add the missing "build_location" property to the maas-api
mapping so the CVE scanner runs in the correct subdirectory; specifically update
the mapping object containing "subcomponent": "maas-api" and "cve_fix_workflow"
to include "build_location": "maas-api/" (also apply the same change to the
duplicate mapping around the 75-80 region), ensuring the scanner targets the
maas-api/ directory rather than the repo root.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 3fa7ddd5-3351-411f-85f2-c9bd34397932

📥 Commits

Reviewing files that changed from the base of the PR and between 87724c4 and 9a32ab5.

📒 Files selected for processing (1)
  • workflows/cve-fixer/component-repository-mappings.json

Comment on lines +52 to +59
"active_release_branches": [
"stable",
"rhoai",
"v0.1.x"
],
"branch_strategy": "Fix in main. stable and rhoai are release snapshots \u2014 backport manually as needed. v0.1.x is a separate release branch with independent commits.",
"repo_type": "upstream",
"subcomponent": "maas-api",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Add protected_branches for these explicit release branches.

The CVE fixer safety rules only know custom protected branches from protected_branches. These entries now add stable, v0.1.x, and rhoai-3.x release branches but omit that field, so automation can treat release lines as writable branches.

🛡️ Proposed fix
         "github_url": "https://github.com/opendatahub-io/models-as-a-service",
         "default_branch": "main",
+        "protected_branches": [
+          "main",
+          "stable",
+          "rhoai",
+          "v0.1.x"
+        ],
         "active_release_branches": [
           "stable",
           "rhoai",
           "v0.1.x"
         ],
@@
         "github_url": "https://github.com/red-hat-data-services/models-as-a-service",
         "default_branch": "main",
+        "protected_branches": [
+          "main",
+          "rhoai-3.3",
+          "rhoai-3.4",
+          "rhoai-3.4-ea.1",
+          "rhoai-3.4-ea.2"
+        ],
         "active_release_branches": [
           "rhoai-3.3",
           "rhoai-3.4",
           "rhoai-3.4-ea.1",

Also applies to: 67-76

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

In `@workflows/cve-fixer/component-repository-mappings.json` around lines 52 - 59,
This mapping block adds release branches via "active_release_branches" but omits
the CVE fixer-safe "protected_branches" field; update the JSON object that
contains "active_release_branches", "branch_strategy", "repo_type", and
"subcomponent" to include a "protected_branches" array listing the explicit
release branches (e.g., "stable", "v0.1.x", "rhoai-3.x") so automation treats
those lines as protected; apply the same change to the other similar mapping
block mentioned (the one around the 67-76 range).

Copy link
Copy Markdown
Contributor

@jwm4 jwm4 left a comment

Choose a reason for hiding this comment

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

Looks good!

@jwm4 jwm4 merged commit 66bceaf into ambient-code:main Apr 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants