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 to .NET 8 #403

Merged
merged 27 commits into from
Nov 14, 2023
Merged

Update to .NET 8 #403

merged 27 commits into from
Nov 14, 2023

Conversation

martincostello
Copy link
Owner

@martincostello martincostello commented May 4, 2023

  • Update to .NET 8 and add net8.0 target framework support.
  • Add new LambdaTestServerOptions.DisableMemoryLimitCheck option for net8.0.
  • Fix new code analysis warnings.
  • Use UseArtifactsOutput=true instead of explicitly setting the output path, as well as dropping explicit use of --configuration now that the default is Release.
  • Remove Microsoft.SourceLink.GitHub as it is now included in the .NET SDK.

@martincostello martincostello added enhancement New feature or request dependencies Pull requests that update a dependency file .NET Pull requests that update .net code labels May 4, 2023
@martincostello martincostello mentioned this pull request May 4, 2023
@codecov
Copy link

codecov bot commented May 4, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (dba81eb) 98.58% compared to head (2a19e1d) 98.25%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #403      +/-   ##
==========================================
- Coverage   98.58%   98.25%   -0.33%     
==========================================
  Files           8        8              
  Lines         283      287       +4     
  Branches       29       30       +1     
==========================================
+ Hits          279      282       +3     
  Misses          1        1              
- Partials        3        4       +1     
Flag Coverage Δ
linux 97.56% <100.00%> (-1.03%) ⬇️
macos 97.56% <50.00%> (-0.68%) ⬇️
windows 98.25% <100.00%> (+0.73%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@martincostello martincostello force-pushed the dotnet-vnext branch 2 times, most recently from 3d9e7be to 3c890b3 Compare May 17, 2023 08:54
martincostello added a commit that referenced this pull request May 17, 2023
Cherry-pick various changes from #403.
martincostello added a commit that referenced this pull request May 17, 2023
Cherry-pick various changes from #403.
@martincostello martincostello force-pushed the dotnet-vnext branch 2 times, most recently from 9e8eefa to 80c81cc Compare May 22, 2023 13:18
martincostello added a commit that referenced this pull request Jun 16, 2023
Cherry-pick change from #403 to suppress CA1861 in tests.
@martincostello martincostello mentioned this pull request Jun 16, 2023
martincostello added a commit that referenced this pull request Jun 16, 2023
Cherry-pick change from #403 to suppress CA1861 in tests.
@martincostello martincostello force-pushed the dotnet-vnext branch 3 times, most recently from 7c1bfb4 to 27f9693 Compare June 23, 2023 10:48
@martincostello martincostello force-pushed the dotnet-vnext branch 5 times, most recently from 7c018eb to ad834b1 Compare July 13, 2023 14:59
@martincostello martincostello force-pushed the dotnet-vnext branch 4 times, most recently from c6e2221 to 0267798 Compare August 9, 2023 06:33
martincostello and others added 23 commits November 9, 2023 07:06
Update NuGet packages for RC.1.
Update .NET SDK to version 8.0.100-rc.1.23463.5.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: costellobot <[email protected]>
- Use primary constructors where relevant.
- Use collection literals where relevant.
- Remove some redundant suppressions.
- Apply some IDE suggestions.
Simplify test by using `Parallel.ForAsnc()`.
Update .NET SDK to version 8.0.100-rc.2.23502.2.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: costellobot <[email protected]>
Update NuGet packages for RC2.
Update comment with changes in behaviour for .NET 8 in Amazon.Lambda.RuntimeSupport.
Add new `DisableMemoryLimitCheck` property for .NET 8 that sets the `AWS_LAMBDA_DOTNET_DISABLE_MEMORY_LIMIT_CHECK` environment variable to `true`.
See aws/aws-lambda-dotnet#1595.
Bump version to 0.8.0.
Fix copy-pasta setting the wrong environment variable.
Add a test that checks whether memory limits are enforced.
Add a unit test to validate that memory limits are not enforced if `DisableMemoryLimitCheck = true`.
This needs to be set in isolation as the underlying setting is process-wide and can only be set once.
It appears that changing the garbage collector's limits doesn't work on macOS.
Use `bool.TrueString` as it's only ever set to `true` anyway.
Fix-up the tests for the memory limits enforced by Lambda so that they properly test the scenario and also aren't flaky when run in combination with other tests.
Fix skip not applying to `[InlineData]`.
Apply fixe after rebasing to pick up changes from #526.
- Remove redundant additional code.
- Fix timeout being too long, left over from debugging.
Enable the test for disabling memory limits after #528.
See if the test behaves correctly on macOS.
Still doesn't seem to apply the memory limit.
Use the new MSBuild terminal logger.
Add workaround for xunit/xunit#2812.
costellobot and others added 2 commits November 14, 2023 15:40
Update .NET SDK to version 8.0.100.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: costellobot <[email protected]>
Use stable versions of NuGet packages for .NET 8.
@martincostello martincostello marked this pull request as ready for review November 14, 2023 17:22
@martincostello martincostello enabled auto-merge (squash) November 14, 2023 17:23
@martincostello martincostello merged commit 677a6c1 into main Nov 14, 2023
11 of 12 checks passed
@martincostello martincostello deleted the dotnet-vnext branch November 14, 2023 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request .NET Pull requests that update .net code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants