Skip to content

fix(lambda): ListFunctions(ALL) lists versions, ListAliases/ListVersionsByFunction MaxItems 1..10000#2018

Merged
vieiralucas merged 1 commit into
mainfrom
wt-bh-lam
Jun 28, 2026
Merged

fix(lambda): ListFunctions(ALL) lists versions, ListAliases/ListVersionsByFunction MaxItems 1..10000#2018
vieiralucas merged 1 commit into
mainfrom
wt-bh-lam

Conversation

@vieiralucas

@vieiralucas vieiralucas commented Jun 28, 2026

Copy link
Copy Markdown
Member

Bug-hunt batch 7 (cycle 6). Lambda control-plane list correctness.

  • ListFunctions(FunctionVersion=ALL) returned only each function's $LATEST, omitting published numbered versions. It now also emits the per-version snapshots (ordered by name, $LATEST then ascending versions), keyed by ARN for pagination so duplicate names don't collide in the marker.
  • ListAliases MaxItems was grouped with the 50-cap ops, so 51..10000 returned a spurious 400. Its Smithy range is 1..10000; removed from the 50-cap group.
  • ListVersionsByFunction MaxItems clamped to 50; its range is 1..10000 (default 50). Clamp widened.

E2E covers ALL-versions listing + MaxItems=100 on both lists. lambda lib (207) green. Builds clean; clippy -D warnings clean.


Summary by cubic

Fixes Lambda list behavior: ListFunctions(FunctionVersion=ALL) now returns $LATEST plus all published versions, and MaxItems for ListAliases and ListVersionsByFunction accepts 1..10000. Pagination for ALL versions now uses function ARN to avoid marker collisions.

  • Bug Fixes
    • ListFunctions(ALL) emits per-version snapshots and sorts by name, with $LATEST first then ascending version numbers.
    • Uses FunctionArn for pagination keys when listing ALL versions to prevent duplicate-name marker collisions.
    • Sets MaxItems range to 1..10000 for ListAliases and ListVersionsByFunction (default 50); adds e2e coverage for ALL-versions listing and MaxItems=100.

Written for commit fb688a4. Summary will update on new commits.

Review in cubic

…onsByFunction MaxItems 1..10000

- ListFunctions with FunctionVersion=ALL returned only each function's $LATEST,
  omitting published numbered versions. It now also emits the per-version
  snapshots (ordered by function name, $LATEST then ascending versions), keyed
  by ARN for pagination so duplicate function names don't collide in the marker.
- ListAliases was grouped with the 50-cap MaxItems ops, so a MaxItems of 51..
  10000 returned a spurious 400. Its Smithy range is 1..10000; removed it from
  the 50-cap group.
- ListVersionsByFunction clamped MaxItems to 50; its range is 1..10000 (default
  50). Clamp widened.

Adds an e2e test covering ALL-versions listing and MaxItems=100 on both lists.
@vieiralucas vieiralucas merged commit 199fda2 into main Jun 28, 2026
128 of 129 checks passed
@vieiralucas vieiralucas deleted the wt-bh-lam branch June 28, 2026 01:56
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