Skip to content

chore: reduce the interval to 30s - #93

Merged
InftyAI-Agent merged 1 commit into
InftyAI:mainfrom
kerthcet:feat/support-logging
Sep 5, 2026
Merged

chore: reduce the interval to 30s#93
InftyAI-Agent merged 1 commit into
InftyAI:mainfrom
kerthcet:feat/support-logging

Conversation

@kerthcet

@kerthcet kerthcet commented Sep 5, 2026

Copy link
Copy Markdown
Member

What this PR does / why we need it

Which issue(s) this PR fixes

Fixes #

Special notes for your reviewer

Does this PR introduce a user-facing change?


Copilot AI lite review requested due to automatic review settings September 5, 2026 11:52
@InftyAI-Agent InftyAI-Agent added needs-triage Indicates an issue or PR lacks a label and requires one. needs-priority Indicates a PR lacks a label and requires one. do-not-merge/needs-kind Indicates a PR lacks a label and requires one. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Sep 5, 2026
@kerthcet
kerthcet force-pushed the feat/support-logging branch from f82fa0a to e8644d1 Compare September 5, 2026 11:53
Signed-off-by: kerthcet <kerthcet@gmail.com>
@kerthcet
kerthcet force-pushed the feat/support-logging branch from e8644d1 to 76b1629 Compare September 5, 2026 11:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

It mixes an unrelated large log-shipping design doc into an interval-change PR, and the updated test hard-codes tick count instead of deriving it from accrualInterval.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Reduces the cost accrual checkpoint cadence from 60s to 30s to tighten the baseline→first-charge visibility window for Prometheus increase() queries, and updates documentation/tests accordingly.

Changes:

  • Set accrualInterval to 30s and make accrualTimeout track the interval.
  • Update cost-accrual tests and metrics documentation for the new 30s cadence and revised rounding-error bounds.
  • Add a new design doc (docs/log-shipping.md) describing a planned log shipping architecture.
File summaries
File Description
internal/controller/cost_accrual.go Changes accrual write cadence to 30s and updates interval-related rationale/comments.
internal/controller/cost_accrual_test.go Adjusts tests for the new 30s cadence and updates expected rounding-error tolerance.
docs/metrics.md Updates operator-facing documentation to reflect 30s accrual windows and related scrape guidance.
docs/log-shipping.md Introduces an (unimplemented) design document for future CloudWatch log shipping.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread internal/controller/cost_accrual_test.go
Copilot AI review requested due to automatic review settings September 5, 2026 11:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

It changes a production write cadence and associated timeout behavior, which can have non-trivial operational impact under real apiserver latency and fleet sizes.

Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread internal/controller/cost_accrual.go
@kerthcet

kerthcet commented Sep 5, 2026

Copy link
Copy Markdown
Member Author

/lgtm
/kind cleanup

@InftyAI-Agent InftyAI-Agent added lgtm Looks good to me, indicates that a PR is ready to be merged. cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. and removed do-not-merge/needs-kind Indicates a PR lacks a label and requires one. labels Sep 5, 2026

@InftyAI-Agent InftyAI-Agent left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approved: PR has both lgtm and approved labels

@InftyAI-Agent
InftyAI-Agent merged commit fe86bdc into InftyAI:main Sep 5, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Looks good to me, indicates that a PR is ready to be merged. needs-priority Indicates a PR lacks a label and requires one. needs-triage Indicates an issue or PR lacks a label and requires one.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants