Skip to content

Conversation

SATYAsasini
Copy link
Contributor

@SATYAsasini SATYAsasini commented Jul 28, 2025

Description

Fixes #6764

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR requires documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have tested it for all user roles.
  • I have added all the required unit/api test cases.

Does this PR introduce a user-facing change?


Summary by Bito

This PR standardizes unit formatting and conversion logic for CPU and memory resources, implementing distinct handling for CPU (cores/milli) and memory (Gi/Mi/Ki). It enhances rounding precision, improves documentation, and resolves formatting inconsistencies for more accurate resource reporting.

prkhrkat and others added 20 commits July 17, 2025 16:01
* Added action to check for linting errors in openapi.yaml

* Create build-docs.yaml

* added read-only permission in api-linter

* updated action to add permission
* added version yml

* changes in openapi.yaml
switch the approach from rebasing to creating a temp folder and copying the file
* resolved application.yaml

* resolved application.yaml

* resolved applisting.yaml

* resolved charts.yaml helm-apps list

* resolved jobs.yaml jobs list

* removed unrequired server

* renamed the x-displayName

* resolved app-labels.yaml

* resolved merge-conflict

* resolved merge-conflict - 02

* added Get Deployment History (ENT) spec
* adding codeowner for swagger api spec

* adding codeowner for swagger api spec
* Updated openapi-spec with notificats api

* updated openapi-spec to add historical-get-api-change
* removed timeout notification

* removed timeout notification
@bito-code-review
Copy link

bito-code-review bot commented Jul 28, 2025

Code Review Agent Run #42930a

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: 88e3a5c..88d9993
    • pkg/k8s/capacity/k8sCapacityService.go
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Default Agent You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@bito-code-review
Copy link

Changelist by Bito

This pull request implements the following key changes.

Key Change Files Impacted
Bug Fix - CPU and Memory Unit Conversion Bug Fix

k8sCapacityService.go - Refined conversion logic and rounding for CPU and memory, adding specialized handling and detailed comments to better distinguish resource formatting.

@bito-code-review
Copy link

Bito Banner

Bito's AI Code Review trial is almost over

Your free trial of Bito's AI Code Reviews was setup by [email protected] and is nearly over. Let them know if you'd like to continue getting complete reviews.

Sign in to upgrade

About Bito
Merge PRs 89% faster, with 34% fewer regressions, and 87% of relevant PR feedback provided by Bito's AI Code Reviews. Trusted by 100,000+ developers and 1,000+ engineering teams.

@bito-code-review
Copy link

bito-code-review bot commented Jul 28, 2025

Bito Review Skipped - No Changes Detected

Bito didn't review this pull request because we did not detect any changes in the pull request to review.

@bito-code-review
Copy link

Bito Banner

Bito's AI Code Review trial is almost over

Your free trial of Bito's AI Code Reviews was setup by [email protected] and is nearly over. Let them know if you'd like to continue getting complete reviews.

Sign in to upgrade

About Bito
Merge PRs 89% faster, with 34% fewer regressions, and 87% of relevant PR feedback provided by Bito's AI Code Reviews. Trusted by 100,000+ developers and 1,000+ engineering teams.

@SATYAsasini SATYAsasini force-pushed the fix-clusterDetailResourceCapacity branch 2 times, most recently from 3217e46 to 8e43026 Compare July 28, 2025 09:27
@bito-code-review
Copy link

bito-code-review bot commented Jul 28, 2025

Bito Automatic Review Skipped - Large PR

Bito didn't auto-review this change because the pull request exceeded the line limit. No action is needed if you didn't intend for the agent to review it. Otherwise, to manually trigger a review, type /review in a comment and save.

@bito-code-review
Copy link

Bito Banner

Bito's AI Code Review trial is almost over

Your free trial of Bito's AI Code Reviews was setup by [email protected] and is nearly over. Let them know if you'd like to continue getting complete reviews.

Sign in to upgrade

About Bito
Merge PRs 89% faster, with 34% fewer regressions, and 87% of relevant PR feedback provided by Bito's AI Code Reviews. Trusted by 100,000+ developers and 1,000+ engineering teams.

@SATYAsasini SATYAsasini force-pushed the fix-clusterDetailResourceCapacity branch from d636862 to 8e43026 Compare July 28, 2025 09:34
@SATYAsasini SATYAsasini deleted the fix-clusterDetailResourceCapacity branch July 28, 2025 09:35
@sonarqubecloud
Copy link

@bito-code-review
Copy link

bito-code-review bot commented Jul 28, 2025

Bito Review Skipped - Source Branch Not Found

Bito didn’t review this change because the pull request is no longer valid. It may have been merged, or the source/target branch may no longer exist.

@bito-code-review
Copy link

Bito Banner

Bito's AI Code Review trial is almost over

Your free trial of Bito's AI Code Reviews was setup by [email protected] and is nearly over. Let them know if you'd like to continue getting complete reviews.

Sign in to upgrade

About Bito
Merge PRs 89% faster, with 34% fewer regressions, and 87% of relevant PR feedback provided by Bito's AI Code Reviews. Trusted by 100,000+ developers and 1,000+ engineering teams.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants