Skip to content

chore: configure npm auth and @openchoreo registry for GitHub Packages#572

Merged
stefinie123 merged 1 commit into
openchoreo:mainfrom
kaviththiranga:release-fixes
May 19, 2026
Merged

chore: configure npm auth and @openchoreo registry for GitHub Packages#572
stefinie123 merged 1 commit into
openchoreo:mainfrom
kaviththiranga:release-fixes

Conversation

@kaviththiranga
Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Kavith Lokuhewage <kaviththiranga@gmail.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 19, 2026

Warning

Rate limit exceeded

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

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ 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: defaults

Review profile: CHILL

Plan: Pro

Run ID: cef5e444-4baf-49b4-ac0a-3a3d9b9285b6

📥 Commits

Reviewing files that changed from the base of the PR and between 95a49ee and 7b853f4.

📒 Files selected for processing (1)
  • .npmrc
✨ 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.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@stefinie123 stefinie123 merged commit e676ab7 into openchoreo:main May 19, 2026
8 checks passed
kaviththiranga added a commit that referenced this pull request May 20, 2026
* ci(release): fix yarn tsc & bump package versions (#569)

* ci(release): run yarn tsc before build:all (#565)

Signed-off-by: Kavith Lokuhewage <kaviththiranga@gmail.com>

* chore: bump @openchoreo/* packages to 1.1.0 (#567)

Signed-off-by: Kavith Lokuhewage <kaviththiranga@gmail.com>

---------

Signed-off-by: Kavith Lokuhewage <kaviththiranga@gmail.com>

* chore: configure npm auth and @openchoreo registry for GitHub Packages (#572)

Signed-off-by: Kavith Lokuhewage <kaviththiranga@gmail.com>

* fix(release): publish with yarn npm publish to rewrite workspace deps

The release workflow used `changeset publish`, which shells out to
`npm publish` for non-pnpm repos. `npm publish` does not understand
Yarn Berry's `workspace:^` protocol and serialised the literal string
into 13 of 17 @openchoreo/* tarballs at v1.1.0. External installs
fail with `Workspace not found` on first dependency resolution.

Replace the publish step with Yarn Berry's native
`yarn workspaces foreach --no-private --topological npm publish`,
which rewrites `workspace:^` to concrete versions at pack time —
independent of `.npmrc:ignore-scripts=true`, which would otherwise
also have blocked the prepack hook from running under npm publish.

`--tolerate-republish` preserves the idempotent-on-retry behaviour
of the previous setup. `changeset version` (in
prepare-next-version.yml) is unaffected — only the publish step
moves.

Verified by running `yarn workspaces foreach --no-private
--topological pack` across all 22 public workspaces and grepping
the resulting tarballs: every `@openchoreo/*` dep was rewritten to
`^1.1.0`, zero `workspace:` leaks.

Signed-off-by: Kavith Lokuhewage <kaviththiranga@gmail.com>

* fix(openchoreo): make observability dependency optional in Deploy tab

The Deploy and RuntimeHealthCard hooks resolve the observability API
via `useApi(observabilityApiRef)`, which throws NotImplementedError
when no factory is registered for the ref. When a host installs only
the Core plugin set (without @openchoreo/backstage-plugin-openchoreo-
observability), opening any component's Deploy tab crashes with:

  NotImplementedError: No implementation available for apiRef{
    plugin.openchoreo-observability.service
  }

Both hooks already document the intent that observability should be
optional: useLogsSummary's existing comment notes "without requiring
a package dependency" and useIncidentsSummary already absorbs per-
call failures as zero incidents. The bug is just the choice of
Backstage API — useApi() throws when the ref is unregistered, while
useApiHolder().get() returns undefined.

Switch both hooks to useApiHolder().get() and short-circuit the
fetch when the api is missing:

- useIncidentsSummary now returns an empty Map (PipelineCanvas
  already optional-chains incidentsSummaries.get(name)?.activeCount).
- useLogsSummary now sets observabilityDisabled: true, which routes
  to the existing empty-state branch in RuntimeHealthCard (the same
  branch the backend uses when the cluster has observability off).

No UI changes — only the throw is gone.

Signed-off-by: Kavith Lokuhewage <kaviththiranga@gmail.com>

---------

Signed-off-by: Kavith Lokuhewage <kaviththiranga@gmail.com>
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