Skip to content

fcvm-fleet: the coordinator may read the host groups' scaling activities - #670

Merged
ejc3 merged 1 commit into
mainfrom
fcvm-fleet-wake-latency
Oct 25, 2026
Merged

ejc3 merged 1 commit into
mainfrom
fcvm-fleet-wake-latency

Conversation

@ejc3

@ejc3 ejc3 commented Oct 25, 2026

Copy link
Copy Markdown
Owner

ejc3/fcvm#1263 moves a wake to the on-demand host group as soon as Auto Scaling records a failed spot launch (UnfulfillableCapacity, MaxSpotInstanceCountExceeded; on staging that activity appears about 10 s after the coordinator raises the group), instead of after --spot-wait (120 s). It reads that from DescribeScalingActivities, which the coordinator's task role lacks. Without the permission the coordinator logs the refusal once and keeps the spot wait, so this can be applied before or after the coordinator image that uses it.

Change: DescribeTheHostGroups in fcvm-fleet.tf gains autoscaling:DescribeScalingActivities. It takes no resource-level permission, so it shares Resource = "*" with DescribeAutoScalingGroups; it is read-only.

Tested: python3 scripts/test-fcvm-fleet.py (33 tests OK; the action list is pinned and the old assertion fails against the new statement), python3 scripts/test-fcvm-fleet-account.py OK, terraform fmt -check.

Part of ejc3/fcvm#1257.

ejc3/fcvm#1263 moves a wake to the on-demand host group as soon as Auto Scaling records a
failed spot launch (UnfulfillableCapacity or MaxSpotInstanceCountExceeded, about 10 s
after the raise), instead of after --spot-wait (120 s). It reads that from
DescribeScalingActivities, which the coordinator's task role lacks; without it the
coordinator logs the refusal once and keeps the spot wait.

DescribeScalingActivities takes no resource-level permission, so it joins
DescribeAutoScalingGroups on Resource "*". scripts/test-fcvm-fleet.py pins the action list.

Tested: python3 scripts/test-fcvm-fleet.py (33 tests OK), terraform fmt -check.
@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 56 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d72056fc-9b7a-4a70-8b1b-d8044eafc896
Commits

Reviewing files that changed from the base of the PR and between bae6c2e and 745699a.

Files selected for processing: 2
  • fcvm-fleet.tf
  • scripts/test-fcvm-fleet.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T13:18:57.690550Z 745699a Manual request
🔒 Security Review 🔄 Running since 2026-10-25T13:18:13.665374Z 745699a Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

ejc3 commented Oct 25, 2026

Copy link
Copy Markdown
Owner Author

@codex review
@coderabbitai review
@greptileai review

ejc3 commented Oct 25, 2026

Copy link
Copy Markdown
Owner Author

@codex security review

@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.

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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 745699a020

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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.

1 participant