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

Fix dotnet version testing #242

Merged
merged 2 commits into from
Feb 5, 2024

Conversation

gerzse
Copy link
Contributor

@gerzse gerzse commented Jan 31, 2024

Make sure at each run in CI only the strictly needed dotnet version gets installed. Also target the code towards net8.0 too.

closes #227

@gerzse gerzse requested a review from shacharPash January 31, 2024 11:07
@codecov-commenter
Copy link

codecov-commenter commented Jan 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b725b9e) 94.10% compared to head (e87eb2c) 94.16%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #242      +/-   ##
==========================================
+ Coverage   94.10%   94.16%   +0.05%     
==========================================
  Files          85       85              
  Lines        5178     5178              
  Branches      487      487              
==========================================
+ Hits         4873     4876       +3     
  Misses        178      178              
+ Partials      127      124       -3     

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

@gerzse gerzse force-pushed the fix-ci-wrt-dotnet-versions branch 2 times, most recently from 1b7d486 to 832333c Compare February 1, 2024 09:52
@gerzse gerzse force-pushed the fix-ci-wrt-dotnet-versions branch 10 times, most recently from 64d6199 to 06a3ceb Compare February 1, 2024 12:09
Add net8.0 as target framework.

Remove the `doctests` workflow, since all tests inside `tests/Doc` are
executed anyway during the `integration` workflow.

Separate the concurrency groups between workflows, to avoid them
cancelling each other during one CI run. This seems to be a known issue:
https://github.com/orgs/community/discussions/41518

Update the release workflow to use dotnet 8, given that we have it as a
target now.

Print the dotnet version and available SDKs and runtimes in some
workflows, for clarity.

Update the `reusable` workflow to build for a specific target framework,
and to use a specific version of the dotnet SDK when building and
running tests. This is done via a generated `global.json` file. The goal
is to ensure that the source code can compile on all supported SDKs.

Make the `linter` workflow do the checkout just like the others, without
explicitly specifying what to checkout.

Double the connection multiplexer timeout in tests, to avoid some tests
failing (Gears related tests) occasionally.
@gerzse gerzse force-pushed the fix-ci-wrt-dotnet-versions branch from 06a3ceb to e87eb2c Compare February 1, 2024 12:17
@chayim chayim changed the title Fix CI wrt dotnet versions Fix dotnet version testing Feb 1, 2024
Copy link
Contributor

@shacharPash shacharPash left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@shacharPash shacharPash merged commit 980a77c into redis:master Feb 5, 2024
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.

.NET 8 CI does not run unit tests
4 participants