Skip to content

Upgrade moto to 5.1.22 to fix DeprecationWarning#1202

Merged
ebattat merged 1 commit intomainfrom
upgrade-moto-fix-deprecation-warning
Apr 24, 2026
Merged

Upgrade moto to 5.1.22 to fix DeprecationWarning#1202
ebattat merged 1 commit intomainfrom
upgrade-moto-fix-deprecation-warning

Conversation

@ebattat
Copy link
Copy Markdown
Member

@ebattat ebattat commented Apr 23, 2026

Summary

  • Upgrade moto from 4.0.1 to 5.1.22 in tests_requirements.txt
  • Replace deprecated mock_s3 decorator with mock_aws in S3 tests
  • Remove the warnings suppression workaround that was no longer effective at runtime

Fixes the datetime.datetime.utcnow() DeprecationWarning in test output.

Test plan

  • All 9 S3 tests pass with zero warnings locally
  • CI tests pass

🤖 Generated with Claude Code

Replace deprecated mock_s3 decorator with mock_aws and remove the
warnings suppression workaround that was no longer effective at runtime.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@openshift-ci openshift-ci Bot requested a review from RobertKrawitz April 23, 2026 09:32
@ebattat ebattat requested a review from arpsharm April 23, 2026 09:32
@ebattat ebattat self-assigned this Apr 23, 2026
@github-project-automation github-project-automation Bot moved this to In progress in benchmark-runner Apr 23, 2026
Copy link
Copy Markdown
Member

@arpsharm arpsharm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Apr 23, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: arpsharm, ebattat

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ebattat ebattat merged commit 3d0353c into main Apr 24, 2026
9 of 13 checks passed
@ebattat ebattat deleted the upgrade-moto-fix-deprecation-warning branch April 24, 2026 13:29
@github-project-automation github-project-automation Bot moved this from In progress to Done in benchmark-runner Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants