Skip to content

build: remove private RPM API dependency - #34

Merged
spencercjh merged 1 commit into
mainfrom
codex/remove-private-rpm-dependency
Nov 27, 2026
Merged

spencercjh merged 1 commit into
mainfrom
codex/remove-private-rpm-dependency

Conversation

@spencercjh

@spencercjh spencercjh commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Define the resource pool client objects in hami-cli and preserve their Kubernetes JSON fields, device names, and labels.
  • Remove the private Go module and its credential wiring from CI, release builds, and Docker. The version command now prints the resource pool API group and version.

Verification

  • Resolved dependencies with a fresh module cache and the public Go proxy. Ran make ci and actionlint.
  • Built and checked all five GoReleaser snapshot archives. Checked their binary module metadata for Dynamia dependencies.
  • Built and ran ARM64 and AMD64 containers without a private module token.

Summary by CodeRabbit

  • New Features
    • The CLI now includes its resource-pool API definitions and reports the API version in build information.
  • Documentation
    • Updated architecture and release documentation to reflect resource-pool API ownership and current build credential requirements.

Signed-off-by: spencercjh <jiahao.cai@dynamia.ai>
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The CLI now defines and uses resource-pool API types in its own package. Its version output reports the API group and version. Build and release workflows no longer configure access to the enterprise API module using a private token.

Changes: Local Resource-Pool API and Credential Removal

Layer / File(s) Summary
Local resource-pool API contract
internal/resourcepool/v1alpha1/*, docs/architecture.md
Adds resource-pool API types, scheme registration, deep-copy methods, device naming and label conventions, and tests. Architecture documentation identifies the local package as the source of CLI object definitions and updates the stated ownership of client types.
CLI API consumers and version output
main.go, main_test.go, regex_bindings.go, regex_bindings_test.go, version.go, version_test.go
Updates API imports to use the local package. Version output now reports resource.hami.io/v1alpha1 instead of a dependency revision, and tests check the new value.
Build and release credential removal
go.mod, Dockerfile, Makefile, .github/workflows/ci.yaml, .github/workflows/release.yaml, .github/workflows/rolling-release.yaml, docs/releasing.md
Removes the enterprise API module requirement and token-based private-module setup from builds and workflows. Release documentation updates the stated credential boundary.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Other

Possibly related PRs

  • dynamia-ai/hami-cli#11: Changes to the version command and its test coverage overlap with this PR’s version output changes.

Suggested reviewers: b-white84

Merge Risk: Minimal · up to 9bfc7 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "build: remove private RPM API dependency" matches the main change. The PR removes the private hami-enterprise resource-pool API module from go.mod, replaces its imports with the new inter…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "build: remove private RPM API dependency" matches the main change. The PR removes the private hami-enterprise resource-pool API module from go.mod, replaces its imports with the new internal internal/resourcepool/v1alpha1 package, and removes the private-module token wiring from CI, release workflows, Dockerfile, and Makefile. The title is concise and specific. It uses "RPM" for the resource-pool API, which is an unusual abbreviation and could confuse a reader who expects it to mean RPM packages. The title does not mention the new internal client types, but it does not need to cover every detail.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 048ee77c-2b9f-4057-a207-3dce0911d60a
Commits

Reviewing files that changed from the base of the PR and between c9bda35 and 9bfc75c.

Files ignored due to path filters: 1

  • go.sum is excluded by !**/*.sum
Files selected for processing: 18

  • .github/workflows/ci.yaml
  • .github/workflows/release.yaml
  • .github/workflows/rolling-release.yaml
  • Dockerfile
  • Makefile
  • docs/architecture.md
  • docs/releasing.md
  • go.mod
  • internal/resourcepool/v1alpha1/conventions.go
  • internal/resourcepool/v1alpha1/deepcopy.go
  • internal/resourcepool/v1alpha1/types.go
  • internal/resourcepool/v1alpha1/types_test.go
  • main.go
  • main_test.go
  • regex_bindings.go
  • regex_bindings_test.go
  • version.go
  • version_test.go
Files with no reviewable changes: 5

  • .github/workflows/ci.yaml
  • .github/workflows/release.yaml
  • .github/workflows/rolling-release.yaml
  • Makefile
  • go.mod

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T16:47:22.914419Z 9bfc75c PR opened
🔒 Security Review ✅ Completed 2026-11-26T16:49:22.434847Z 9bfc75c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@spencercjh
spencercjh merged commit 7e887dd into main Nov 27, 2026
7 checks passed
@spencercjh
spencercjh deleted the codex/remove-private-rpm-dependency branch November 27, 2026 02:51
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.

1 participant