Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(runtime): move ruby3.3 out of test runtime #7849

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

roger-zhangg
Copy link
Member

ruby 3.3 is officially supported

Which issue(s) does this change fix?

#7839

Why is this change necessary?

The latest public.ecr.aws/lambda/ruby:3.3 is upgraded to 3.3.5 but sam local invoke still uses public.ecr.aws/lambda/ruby:3.3-preview and the version is 3.3.0 this version has some bug cause sam local invoke cannot work correctly.

How does it address the issue?

What side effects does this change have?

Mandatory Checklist

PRs will only be reviewed after checklist is complete

  • Add input/output type hints to new functions/methods
  • Write design document if needed (Do I need to write a design document?)
  • Write/update unit tests
  • Write/update integration tests
  • Write/update functional tests if needed
  • make pr passes
  • make update-reproducible-reqs if dependencies were changed
  • Write documentation

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

ruby 3.3 is officially supported
@roger-zhangg roger-zhangg requested a review from a team as a code owner January 25, 2025 01:27
@github-actions github-actions bot added area/local/start-api sam local start-api command area/local/invoke sam local invoke command area/local/start-invoke pr/external stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. labels Jan 25, 2025
@roger-zhangg roger-zhangg removed the stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. label Jan 25, 2025
@@ -31,7 +31,7 @@

RAPID_IMAGE_TAG_PREFIX = "rapid"

TEST_RUNTIMES = ["ruby3.3"]
TEST_RUNTIMES = ["N/A"]
Copy link
Contributor

Choose a reason for hiding this comment

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

I see that you tried to do TEST_RUNTIMES = [] first (which seems like the most logical option) but it failed to build.

However, the failure in the build is

samcli/local/docker/lambda_image.py:34: error: Need type annotation for "TEST_RUNTIMES" (hint: "TEST_RUNTIMES: list[<type>] = ...")  [var-annotated]

So I feel it would be better to actually leave it empty and with that type annotation, which I think it should be something like this:

TEST_RUNTIMES: list[str] = []

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants