Skip to content

fix(glue,autoscaling): GetTables Expression filter + SetDesiredCapacity bounds#2004

Merged
vieiralucas merged 6 commits into
mainfrom
wt-secondary
Jun 27, 2026
Merged

fix(glue,autoscaling): GetTables Expression filter + SetDesiredCapacity bounds#2004
vieiralucas merged 6 commits into
mainfrom
wt-secondary

Conversation

@vieiralucas

@vieiralucas vieiralucas commented Jun 27, 2026

Copy link
Copy Markdown
Member

2026-06-27 bug-hunt Tier 1 finding 1.19 (Glue + ASG).

  • Glue GetTables now applies Expression as a regex filter on the table name (GetPartitions already honored its Expression).
  • AutoScaling SetDesiredCapacity rejects a desired capacity outside [MinSize, MaxSize] with a ValidationError, as AWS does.

Note: the DescribeAlarms AlarmTypes change originally in this PR was reverted — the cloudwatch_composite_alarm conformance test asserts composites are returned by default, and I won't change behavior an AWS-derived test relies on without real-AWS verification (the model doc says metric-only, but conformance is truth here).

Tests: e2e for Glue Expression; unit + real-instances e2e for the ASG bound (scale-to-0 lowers MinSize first; out-of-range rejected).

2026-06-27 bug-hunt 1.19:
- Glue GetTables now applies Expression as a regex filter on the table name
  (GetPartitions already honored its Expression, so GetTables ignoring it was
  inconsistent).
- CloudWatch DescribeAlarms honors AlarmTypes: when omitted it returns only
  metric alarms (composite alarms must be requested explicitly), instead of
  always emitting composites.
- AutoScaling SetDesiredCapacity rejects a desired capacity outside
  [MinSize, MaxSize] with a ValidationError, as AWS does.

Tests: e2e for Glue Expression + CW AlarmTypes; unit test for the ASG bound
(scale-to-0 requires lowering MinSize first; out-of-range is rejected).
…x + AWS model)

The existing composite_alarm_in_describe_alarms test asserted DescribeAlarms
returns composites by default; the cloudwatch.json model says "if you omit
AlarmTypes, only metric alarms are returned, even if composite alarms exist."
Request AlarmTypes=CompositeAlarm to see the composite, and assert it is absent
without it.
# Conflicts:
#	crates/fakecloud-e2e/tests/glue.rs
…ances e2e

The new SetDesiredCapacity [MinSize,MaxSize] bound (AWS-correct) rejects
desired=0 on a group with MinSize=1; update MinSize to 0 first, as a real
client must.
…e contradicts)

The cloudwatch_composite_alarm conformance test asserts DescribeAlarms returns
a composite alarm by default; rather than change behavior an AWS-derived test
relies on without real-AWS verification, drop the AlarmTypes filtering and keep
only the Glue Expression + ASG bound fixes in this PR.
@vieiralucas vieiralucas changed the title fix(glue,cloudwatch,autoscaling): secondary correctness gaps (1.19) fix(glue,autoscaling): GetTables Expression filter + SetDesiredCapacity bounds Jun 27, 2026
@vieiralucas vieiralucas merged commit 77dcc5b into main Jun 27, 2026
127 of 128 checks passed
@vieiralucas vieiralucas deleted the wt-secondary branch June 27, 2026 16:50
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