Skip to content

chore(providers/aws): periodic audit of findOfferingID across 7 services (closes #515)#815

Open
cristim wants to merge 1 commit into
mainfrom
fix/515-wave6
Open

chore(providers/aws): periodic audit of findOfferingID across 7 services (closes #515)#815
cristim wants to merge 1 commit into
mainfrom
fix/515-wave6

Conversation

@cristim

@cristim cristim commented May 28, 2026

Copy link
Copy Markdown
Member

Summary

  • Quarterly audit of all 7 AWS service clients' findOfferingID (EC2, RDS, ElastiCache, MemoryDB, OpenSearch, Redshift, SavingsPlans) against the contract established in PR fix(purchases): narrow Describe*Offerings + cap pagination (#688) #690: typed fields, ctx.Err() check, page cap, per-page log, variant soft-skip, nil+empty token terminator.
  • All 7 services PASS all contract items. Three pre-existing test bugs (missing execID arg in RDS, Redshift, SavingsPlans test calls) are fixed.
  • New providers/aws/services/AUDIT.md documents the 6-item contract, per-service status table, watchlist (MemoryDB Valkey engine split, OpenSearch/Redshift Graviton dimension), and quarterly audit procedure.
  • Added TestFindOfferingID_CtxCancelledBeforePage and TestFindOfferingID_EmptyStringTokenEndsPagination to every service's test file (14 new tests across 7 packages) to pin contract items C2 and C6 against future regressions.

Test plan

  • go test ./providers/aws/services/... -- 319 tests pass across all 7 packages
  • go build ./... -- clean
  • Review providers/aws/services/AUDIT.md for completeness and accuracy
  • Verify new tests fail when the contract is artificially broken (ctx check or token check removed)

@cristim cristim added triaged Item has been triaged priority/p3 Polish / idea / may never ship severity/low Minor harm urgency/this-quarter Within the quarter impact/internal Team-internal only effort/s Hours type/chore Maintenance / non-user-visible labels May 28, 2026
@cristim

cristim commented May 28, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@cristim, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 1 minute and 45 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: accbdd15-c7e3-415a-9ebe-43bb18532b24

📥 Commits

Reviewing files that changed from the base of the PR and between 451a70f and 937dde7.

📒 Files selected for processing (8)
  • providers/aws/services/AUDIT.md
  • providers/aws/services/ec2/client_test.go
  • providers/aws/services/elasticache/client_test.go
  • providers/aws/services/memorydb/client_test.go
  • providers/aws/services/opensearch/client_test.go
  • providers/aws/services/rds/client_test.go
  • providers/aws/services/redshift/client_test.go
  • providers/aws/services/savingsplans/client_test.go
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/515-wave6

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai

coderabbitai Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor
✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@cristim

cristim commented May 30, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented May 30, 2026

Copy link
Copy Markdown
Contributor
✅ Actions performed

Full review triggered.

@cristim

cristim commented Jun 4, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Rate Limit Exceeded

@cristim have exceeded the limit for the number of chat messages per hour. Please wait 38 minutes and 59 seconds before sending another message.

@cristim

cristim commented Jun 5, 2026

Copy link
Copy Markdown
Member Author

Rebased on feat/multicloud-web-frontend. Resolved additive conflicts in providers/aws/services/ec2/client_test.go and providers/aws/services/redshift/client_test.go (HEAD added Name-tag tests from #687, PR adds context-cancellation and empty-token pagination tests for #515; both kept).

@cristim

cristim commented Jun 5, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@cristim

cristim commented Jun 8, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

@cristim cristim changed the base branch from feat/multicloud-web-frontend to main June 9, 2026 15:45
All 7 service clients (EC2, RDS, ElastiCache, MemoryDB, OpenSearch,
Redshift, SavingsPlans) pass the 6-item contract from PR #690: typed
fields, ctx.Err() at loop top, page cap, per-page log, variant skip,
nil+empty token terminator.

Fix three pre-existing test build failures: missing execID argument
in RDS/Redshift/SavingsPlans findOfferingID test call sites.

Add TestFindOfferingID_CtxCancelledBeforePage and
TestFindOfferingID_EmptyStringTokenEndsPagination to every service's
client_test.go (14 new tests) to pin contract items C2 and C6.

Add providers/aws/services/AUDIT.md with the 6-item contract, per-service
status table, watchlist items (MemoryDB Valkey engine split, OpenSearch
and Redshift Graviton dimension), and quarterly audit procedure.
@cristim

cristim commented Jun 19, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

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

Labels

effort/s Hours impact/internal Team-internal only priority/p3 Polish / idea / may never ship severity/low Minor harm triaged Item has been triaged type/chore Maintenance / non-user-visible urgency/this-quarter Within the quarter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant