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

Update .NET runtimes #11960

Merged
merged 2 commits into from May 30, 2023
Merged

Update .NET runtimes #11960

merged 2 commits into from May 30, 2023

Conversation

slang25
Copy link
Contributor

@slang25 slang25 commented May 11, 2023

Partly reverts #11941
This PR removes .NET Lambda runtimes that don't exist, and removes .NET Core 3.1 as it will now be rejected by AWS when trying to deploy.

@codecov
Copy link

codecov bot commented May 11, 2023

Codecov Report

Patch coverage: 97.61% and project coverage change: +0.04 🎉

Comparison is base (8341d7a) 86.68% compared to head (93e0d10) 86.73%.

❗ Current head 93e0d10 differs from pull request most recent head 85a8b85. Consider uploading reports for the commit 85a8b85 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11960      +/-   ##
==========================================
+ Coverage   86.68%   86.73%   +0.04%     
==========================================
  Files         316      316              
  Lines       13440    13504      +64     
==========================================
+ Hits        11651    11713      +62     
- Misses       1789     1791       +2     
Impacted Files Coverage Δ
lib/cli/interactive-setup/console-dev-mode-feed.js 88.96% <ø> (ø)
...s/aws/package/compile/events/event-bridge/index.js 97.72% <ø> (ø)
lib/plugins/aws/provider.js 94.78% <ø> (ø)
lib/plugins/aws/package/compile/events/stream.js 97.60% <83.33%> (-0.72%) ⬇️
lib/plugins/aws/package/compile/events/schedule.js 97.82% <97.87%> (-0.48%) ⬇️
lib/cli/commands-schema/aws-service.js 100.00% <100.00%> (ø)
...b/cli/interactive-setup/console-enable-dev-mode.js 98.70% <100.00%> (+0.03%) ⬆️
lib/plugins/aws/custom-resources/index.js 98.63% <100.00%> (+0.03%) ⬆️
lib/plugins/aws/deploy-function.js 96.53% <100.00%> (ø)
lib/plugins/aws/invoke-local/index.js 69.87% <100.00%> (ø)
... and 4 more

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

lib/plugins/aws/provider.js Outdated Show resolved Hide resolved
hexiaokang
hexiaokang previously approved these changes May 14, 2023
Copy link
Contributor

@medikoo medikoo left a comment

Choose a reason for hiding this comment

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

@slang25 great thanks for this PR.

Still can you fully (in the context of this PR) provide a reason for this change?

Also, can you weight on the comment submitted by @GrahamCampbell (suggestion is to remove also dotnetcore3.1 from a list)

@GrahamCampbell
Copy link
Contributor

Actually, I think this should be closed. Their docs on GitHub are not maintained. Their public docs website is correct as far as I'm aware.

@slang25
Copy link
Contributor Author

slang25 commented May 29, 2023

I created a PR to the docs to fix them, but soon after AWS announced that they will no longer use GH for docs, so I've submitted it as feedback, and separately I'll be speaking with someone from AWS soon and will put this on their radar. The docs are wrong, but I appreciate that until the authoritative source is fixed then it's just some guys opinion 😆

@slang25
Copy link
Contributor Author

slang25 commented May 29, 2023

While I try to get the docs fixed, @normj would you be able to confirm as an AWS employee working in this space

@normj
Copy link

normj commented May 29, 2023

As @slang25 mentioned I work at AWS specifically on the .NET team that partners with Lambda to provide the .NET support. I'm not sure I understand the full context of this PR but right now the only supported manage runtime for .NET in Lambda is .NET 6 (dotnet6). .NET Core 3.1 went out of support fairly recently. Users deploying Lambda functions with non LTS versions of .NET like .NET 7 would be publishing to provided.al2 as a self contained publish which includes the .NET runtime with it.

@GrahamCampbell
Copy link
Contributor

GrahamCampbell commented May 30, 2023

NET Core 3.1 went out of support fairly recently.

@normj The docs show this is not yet phase 2 deprecated? Are the docs incorrect?

@normj
Copy link

normj commented May 30, 2023

@GrahamCampbell Yes .NET Core 3.1 is in phase 2 and the service is enforcing create and update function calls for .NET Core 3.1 be rejected. You get the following error message if you attempt to create a .NET Core 3.1 function.

Error creating Lambda function: The runtime parameter of dotnetcore3.1 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (dotnet6) while creating or updating functions.

The docs haven't been updated yet but I know the team is working on getting that done.

@GrahamCampbell
Copy link
Contributor

Perfect, in which case dotnetcore3.1 should also be removed, as per my inline comment.

@slang25 slang25 changed the title Revert "Added missing .NET runtimes" Update .NET runtimes May 30, 2023
@slang25
Copy link
Contributor Author

slang25 commented May 30, 2023

Thanks all, PR updated to reflect this discussion.

Copy link
Contributor

@medikoo medikoo left a comment

Choose a reason for hiding this comment

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

@slang25 @GrahamCampbell great thanks for figuring this out 👍

@medikoo medikoo merged commit dd081bb into serverless:main May 30, 2023
5 checks passed
@slang25 slang25 deleted the revert-11941-patch-1 branch May 30, 2023 10:40
@mungojam
Copy link

Pretty bad that the docs are so wrong on this then, I'd nearly set people to changing from the custom runtime to use .net 7

https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html

Screenshot_20230531-193301

@normj
Copy link

normj commented May 31, 2023

@mungojam Not sure why that paged ever listed .NET 5 and 7. I opened an internal ticket with the docs team to get that fixed up.

@slang25
Copy link
Contributor Author

slang25 commented May 31, 2023

Thanks @normj, trying to fix the docs as an outsider has just resulted in radio silence as expected (that's not aimed at you, but AWS more generally!)

@normj
Copy link

normj commented May 31, 2023

@slang25 Thanks for pinging me in!

@normj
Copy link

normj commented Jun 8, 2023

The Lambda runtime doc page is updated listing only .NET 6 and .NET 7 container only. https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html

khacminh pushed a commit to khacminh/serverless that referenced this pull request Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants