chore: configure npm auth and @openchoreo registry for GitHub Packages#572
Conversation
Signed-off-by: Kavith Lokuhewage <kaviththiranga@gmail.com>
f966b89 to
7b853f4
Compare
|
Warning Rate limit exceeded
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 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. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
* 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>
No description provided.