Skip to content

Move the reference AWS CLI to 2.42.1 - #19

Merged
conao3 merged 5 commits into
masterfrom
reference/2.42.1
Nov 22, 2026
Merged

conao3 merged 5 commits into
masterfrom
reference/2.42.1

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Moves the reference AWS CLI from 2.41.2 to 2.42.1 (changelog) with scripts/update-reference.sh 2.42.1.

Check Result
make check success
awsr-difftest corpus (the changed services) success
scripts/compare-help.sh (the pages of the changed services and of the commands whose examples or topics changed) success
awsr-difftest scenario, awsr-difftest s3, difftest/scripts/credcompare.sh success

Files of the reference that scripts/update-reference.sh does not carry over (scripts/classify-reference-changes.sh), to port in this PR:

  • awscli/botocore/credentials.py
  • awscli/customizations/agentregistry/uninstall_skill.py
  • awscli/customizations/codecommit.py
  • awscli/customizations/lambdaweb/args.py
  • awscli/customizations/lambdaweb/bundle.py
  • awscli/customizations/lambdaweb/deploy.py
  • awscli/customizations/lambdaweb/requests.py
  • awscli/customizations/lambdaweb/runtimes/__init__.py
  • awscli/customizations/lambdaweb/runtimes/base.py
  • awscli/customizations/lambdaweb/runtimes/nodejs.py
  • awscli/customizations/lambdaweb/runtimes/python.py
  • awscli/customizations/lambdaweb/scaffold.py
  • awscli/customizations/lambdaweb/utils.py
  • awscli/customizations/lambdaweb/validation.py
  • awscli/customizations/removals.py
  • awscli/customizations/s3/subcommands.py
  • awscli/handlers_registry.py

Changes outside the models (CHANGELOG.rst):

  • bugfix:agent-registry: On Windows, uninstall-skill names the folder as it is on disk in its result line when --name differs from it only in case.
  • enhancement:codecommit: Recognize credential-helper hosts in every AWS partition, using the DNS suffixes from the partition data instead of a fixed list
  • feature:credentials: Add the credential_cache setting for assume role and assume role with web identity profiles. Set credential_cache = memory to keep a profile's temporary credentials out of ~/.aws/cli/cache.
  • enhancement:lambda-web: Add Python support for aws lambda-web deploy

Run: https://github.com/conao3/rust-awscli/actions/runs/44936454727

test result: ok. 284 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 5.60s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
48756 cases: 48660 passed, 0 failed, 96 skipped (reference vs candidate; 3533.8s)

skipped:
    72  operation is not a CLI command
    12  excluded: launches session-manager-plugin
    12  excluded: the customization reads Storage.S3 built from its --bucket and --prefix arguments

reports: /home/runner/work/rust-awscli/rust-awscli/target/difftest/report
match: 4258/4275, match with the line breaks taken out: 17
/home/runner/work/_temp/scenario.log:1023 passed, 0 failed; reports: /home/runner/work/rust-awscli/rust-awscli/target/difftest/scenario-report
/home/runner/work/_temp/s3.log:214 s3 scenarios: 214 passed, 0 failed
/home/runner/work/_temp/credcompare.log:passed: 121 failed: 0

Porting

Reference file In awsr
awscli/botocore/credentials.py Ported: credential_cache (file / memory) on assume role and web identity profiles, validated for each assume role hop before the source checks and for web identity after the role ARN check, both at client creation (preflight) and at load. memory neither reads nor writes ~/.aws/cli/cache.
awscli/customizations/codecommit.py Ported: credential-helper get takes the host check and the region pattern from the dnsSuffix of every partition in partitions.json, longest first.
awscli/customizations/agentregistry/uninstall_skill.py Ported the st_ino == 0 guard. The os.lstat(entry.path) change is Windows-only; awsr already uses symlink_metadata(entry.path()).
awscli/customizations/removals.py, awscli/handlers_registry.py Already carried over: src/cli/tables.rs (regenerated) removes sagemaker-gateway-runtime invoke-global-inference-gateway-with-response-stream.
awscli/customizations/s3/subcommands.py Already carried over: the s3 mb description is in the regenerated models/help/_custom.json.zst; compare-help.sh matches the s3 mb page.
awscli/customizations/lambdaweb/* Not ported: lambda-web deploy (the Python runtime support and its argument, bundle and scaffold changes) is not implemented in awsr and still ends in command not implemented yet. The lambda-web help pages match (compare-help.sh: 33 of 34 pages, deploy as WRAP).

Checks added: 20 credcompare.sh cases for credential_cache (memory with a seeded cache file, MFA, mixed chains, the invalid values and their order against the source checks, web identity from the profile and from the environment, an invalid value on a static profile); 16 of them fail with the 2.41.2 port and all pass now. credcompare.sh also leaves out the reference's session.db-shm / session.db-wal from the file snapshots. codecommit credential-helper get matches the reference under libfaketime for hosts in the aws-cn, aws-iso, aws-iso-b, aws-iso-e, aws-iso-f and aws-eusc partitions, a VPC endpoint, and unknown hosts.

github-actions[bot] and others added 5 commits November 21, 2026 20:38
…he DNS suffix of every partition, as the reference 2.42.1 does
…y profiles, keep memory credentials out of ~/.aws/cli/cache, reject other values as the reference 2.42.1 does, and compare them in credcompare.sh with the reference's session.db side files left out of the snapshots
…older has no inode number, as the reference 2.42.1 does
@conao3
conao3 marked this pull request as ready for review November 22, 2026 06:20
@conao3
conao3 merged commit 2cbd70a into master Nov 22, 2026
1 check passed
@conao3
conao3 deleted the reference/2.42.1 branch November 22, 2026 06:20
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