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

Remove .NET 6.0 and add .NET 9.0 #423

Merged
merged 7 commits into from
Jan 13, 2025
Merged

Remove .NET 6.0 and add .NET 9.0 #423

merged 7 commits into from
Jan 13, 2025

Conversation

guibranco
Copy link
Owner

@guibranco guibranco commented Jan 13, 2025

πŸ“‘ Description

Remove .NET 6.0 and add .NET 9.0

βœ… Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

☒️ Does this introduce a breaking change?

  • Yes
  • No

Summary by Sourcery

Build:

  • Update project files to target .NET 9.0 instead of .NET 6.0.

Description by Korbit AI

What change is being made?

Remove support for .NET 6.0 and add support for .NET 9.0 across the project configuration files, as well as update build metadata in appveyor.yml.

Why are these changes being made?

These changes update the codebase to support the latest .NET 9.0 version, ensuring compatibility with the newest features and improvements. This reflects a shift towards using a more current .NET release, which will enhance performance and security, while also addressing the needs for maintenance of deprecated versions. The modifications in appveyor.yml also correct a format issue with build version artifact naming.

Is this description stale? Ask me to generate a new description by commenting /korbit-generate-pr-description

Summary by CodeRabbit

Release Notes

  • Infrastructure Updates

    • Updated .NET version to 9.0.x across multiple workflow configurations
    • Removed Snorkell auto-documentation workflow
    • Updated project versioning to 3.0
  • Build Configuration

    • Modified artifact naming to improve compatibility
    • Updated supported .NET versions in project configuration
  • Maintenance

    • Streamlined GitHub Actions and CI/CD pipeline configurations

Copy link
Contributor

sourcery-ai bot commented Jan 13, 2025

Reviewer's Guide by Sourcery

This pull request removes .NET 6.0 and adds .NET 9.0. The changes were made in the Directory.Build.props file.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Updated the target framework from .NET 6.0 to .NET 9.0
  • Removed .NET 6.0 target framework.
  • Added .NET 9.0 target framework.
Directory.Build.props

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@guibranco guibranco enabled auto-merge (squash) January 13, 2025 02:19
@gstraccini gstraccini bot added the β˜‘οΈ auto-merge Automatic merging of pull requests (gstraccini-bot) label Jan 13, 2025
Copy link

coderabbitai bot commented Jan 13, 2025

Walkthrough

This pull request focuses on updating the project's .NET version support and build configurations. The changes involve upgrading to .NET 9.0.x across multiple workflow files, removing an auto-documentation workflow, and updating the version numbering in the AppVeyor configuration. The modifications aim to modernize the project's infrastructure, remove unnecessary workflows, and align the build and deployment processes with the latest .NET version.

Changes

File Change Summary
.github/workflows/deep-source.yml Updated .NET version from 8.0.x to 9.0.x
.github/workflows/snorkell-auto-documentation.yml Workflow file completely removed
.github/workflows/sonarcloud.yml Added a new step to set up .NET 9.0.x
Directory.Build.props Updated <DotNetVersions> to include net9.0 and remove net6.0
appveyor.yml - Bumped version from 2.4.{build} to 3.0.{build}
- Modified artifact naming to remove colon from zip filename

Poem

🐰 Hop, hop, version upgrade time!
.NET 9 is looking so fine
Workflows dancing, configs align
Old versions fade, new code will shine
A rabbit's tech leap, simply divine! πŸš€


πŸͺ§ Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 13, 2025
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @guibranco - I've reviewed your changes - here's some feedback:

Overall Comments:

  • The PR appears to be empty with no actual code changes shown in the diff. Please include the changes you intend to make.
  • Migration to .NET 9.0 is premature as it hasn't been released yet. Please target a released version of .NET or wait until .NET 9.0 is officially available.
Here's what I looked at during the review
  • 🟒 General issues: all looks good
  • 🟒 Security: all looks good
  • 🟒 Testing: all looks good
  • 🟒 Complexity: all looks good
  • 🟒 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click πŸ‘ or πŸ‘Ž on each comment and I'll use the feedback to improve your reviews.

Copy link

@korbit-ai korbit-ai bot left a comment

Choose a reason for hiding this comment

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

I've completed my review and didn't find any issues.

Need a new review? Comment /korbit-review on this PR and I'll review your latest changes.

Korbit Guide: Usage and Customization

Interacting with Korbit

  • You can manually ask Korbit to review your PR using the /korbit-review command in a comment at the root of your PR.
  • You can ask Korbit to generate a new PR description using the /korbit-generate-pr-description command in any comment on your PR.
  • Too many Korbit comments? I can resolve all my comment threads if you use the /korbit-resolve command in any comment on your PR.
  • Chat with Korbit on issues we post by tagging @korbit-ai in your reply.
  • Help train Korbit to improve your reviews by giving a πŸ‘ or πŸ‘Ž on the comments Korbit posts.

Customizing Korbit

  • Check out our docs on how you can make Korbit work best for you and your team.
  • Customize Korbit for your organization through the Korbit Console.

Current Korbit Configuration

General Settings ​
Setting Value
Review Schedule Automatic excluding drafts
Max Issue Count 10
Automatic PR Descriptions βœ…
Issue Categories ​
Category Enabled
Naming βœ…
Database Operations βœ…
Documentation βœ…
Logging βœ…
Error Handling βœ…
Systems and Environment βœ…
Objects and Data Structures βœ…
Readability and Maintainability βœ…
Asynchronous Processing βœ…
Design Patterns βœ…
Third-Party Libraries βœ…
Performance βœ…
Security βœ…
Functionality βœ…

Feedback and Support

Note

Korbit Pro is free for open source projects πŸŽ‰

Looking to add Korbit to your team? Get started with a free 2 week trial here

@guibranco
Copy link
Owner Author

@gstraccini appveyor build reset

@github-actions github-actions bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 13, 2025
Copy link
Contributor

gstraccini bot commented Jan 13, 2025

I'm sorry @guibranco, I can't do that. Invalid parameter. πŸ₯Ί

@guibranco
Copy link
Owner Author

@gstraccini help

Copy link
Contributor

gstraccini bot commented Jan 13, 2025

That's what I can do :neckbeard::

  • @gstraccini help - Shows the help message with available commands.
  • @gstraccini hello - Says hello to the invoker.
  • @gstraccini thank you - Replies with you are welcome message to the invoker.
  • @gstraccini add project <projectPath> - Adds a project to the solution file (only for .NET projects).
    • projectPath - [required] The project path to be added to the solution file.
  • @gstraccini appveyor build <type> - Runs the AppVeyor build for the target commit and/or pull request.
    • type - [required] Specifies if it should trigger a build in a commit or pull request.
  • @gstraccini appveyor bump version <component> - Bumps the CI version in AppVeyor.
    • component - [required] The semver component to bump (major, minor or build).
  • @gstraccini appveyor register - Registers the repository in AppVeyor.
  • @gstraccini appveyor reset - Resets the AppVeyor build number for the target repository.
  • @gstraccini bump version <version> <project> - Bumps the .NET version in .csproj files. ⚠️ (In development, it may not work as expected!)
    • version - [required] The .NET version.
    • project - [optional] The .csproj file to update. Suppressing this parameter will run the command in all .csproj in the repository/branch.
  • @gstraccini cargo clippy - Formats the Rust code using Cargo Clippy (only for Rust projects).
  • @gstraccini change runner <runner> <workflow> <jobs> - Changes the GitHub action runner in a workflow file (.yml). ⚠️ (In development, it may not work as expected!)
    • runner - [required] The runner's name.
    • workflow - [required] The workflow filename (with or without the .yml/.yaml extension).
    • jobs - [optional] The jobs to apply this command. Suppressing this parameter will run the command in all jobs within the workflow.
  • @gstraccini codacy bypass - Bypasses the Codacy analysis for the target commit and/or pull request.
  • @gstraccini codacy reanalyze commit - Reanalyzes the Codacy last commit in a pull request.
  • @gstraccini copy labels <repository> - Copy the labels from another repository.
    • repository - [required] The owner/repository to copy the labels from.
  • @gstraccini copy issue <repository> - Copy an issue from one repository to another ⚠️ (In development, it may not work as expected!)
    • repository - [required] The target repository where the issue will be copied/created.
  • @gstraccini create labels <style> <categories> - Create the default labels in the repository.
    • style - [optional] The labels style (icons or text).
    • categories - [optional] The labels categories (comma separated).
  • @gstraccini csharpier - Formats the C# code using CSharpier (only for .NET projects).
  • @gstraccini fix csproj - Updates the .csproj file with the packages.config version of NuGet packages (only for .NET Framework projects). ⚠️ (In development, it may not work as expected!)
  • @gstraccini npm dist - Generate or regenerate the dist files. It will run the following NPM command: npm run package.
  • @gstraccini prettier - Formats the code using Prettier.
  • @gstraccini rerun checks <conclusion> - This option reruns the checks in the target pull request upon current status.
    • conclusion - [optional] The conclusion of the checks to rerun (success, failure, neutral, cancelled, timed_out, or action_required).
  • @gstraccini rerun workflows <conclusion> - This option reruns the workflows (action) in the target pull request. It is only available for GitHub Actions!
    • conclusion - [optional] The conclusion of the checks to rerun (success, failure, neutral, cancelled, timed_out, or action_required).
  • @gstraccini review - Enable review for the target pull request. This is useful when the PR submitter wasn't on the watch list, the webhook was not captured, or some failed scenario occurred.
  • @gstraccini update snapshot - Update test snapshots (npm test -- -u) (only for Node.js projects).

Multiple commands can be issued simultaneously. Just respect each command pattern (with bot name prefix + command).

Note

If you aren't allowed to use this bot, a reaction with a thumbs down will be added to your comment.

Tip

You can tick (βœ…) one item from the above list, and it will be triggered! (In beta) (Only parameterless commands).

@guibranco
Copy link
Owner Author

@gstraccini appveyor reset

Copy link
Contributor

gstraccini bot commented Jan 13, 2025

AppVeyor next build number updated to 0! πŸš€

@github-actions github-actions bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 13, 2025
Copy link
Contributor

Infisical secrets check: βœ… No secrets leaked!

πŸ’» Scan logs
2:30AM INF scanning for exposed secrets...
2:30AM INF 364 commits scanned.
2:30AM INF scan completed in 307ms
2:30AM INF no leaks found

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

πŸ“œ Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between c2215ab and 9deb86c.

πŸ“’ Files selected for processing (5)
  • .github/workflows/deep-source.yml (1 hunks)
  • .github/workflows/snorkell-auto-documentation.yml (0 hunks)
  • .github/workflows/sonarcloud.yml (1 hunks)
  • Directory.Build.props (1 hunks)
  • appveyor.yml (2 hunks)
πŸ’€ Files with no reviewable changes (1)
  • .github/workflows/snorkell-auto-documentation.yml
🧰 Additional context used
πŸͺ› yamllint (1.35.1)
.github/workflows/sonarcloud.yml

[error] 57-57: trailing spaces

(trailing-spaces)

⏰ Context from checks skipped due to timeout of 90000ms (3)
  • GitHub Check: pixeebot[bot]
  • GitHub Check: pixeebot[bot]
  • GitHub Check: Codacy Security Scan
πŸ”‡ Additional comments (4)
Directory.Build.props (1)

3-4: Consider adding .NET 9.0 test coverage.

While the package targets .NET 9.0, tests are only running on .NET 8.0. Consider adding .NET 9.0 to DotNetVersionTests to ensure compatibility.

.github/workflows/deep-source.yml (1)

25-25: ⚠️ Potential issue

Update coverage report path to match test framework version.

The coverage report path in the last command still references net8.0:

This should be updated if tests will run on a different framework version.

appveyor.yml (2)

1-1: Version bump to 3.0 aligns with breaking change.

The major version increment appropriately reflects the removal of .NET 6.0 support.


117-118: ⚠️ Potential issue

Update VERSIONS array to match target frameworks.

The VERSIONS array still includes net6.0 but not net9.0. Update it to match the frameworks in Directory.Build.props:

- $VERSIONS = ("netstandard2.0", "netstandard2.1", "net6.0", "net8.0")
+ $VERSIONS = ("netstandard2.0", "netstandard2.1", "net8.0", "net9.0")

Likely invalid or redundant comment.

@@ -1,6 +1,6 @@
<Project>
<PropertyGroup Label="SDK Versions">
<DotNetVersions>netstandard2.0;netstandard2.1;net6.0;net8.0</DotNetVersions>
<DotNetVersions>netstandard2.0;netstandard2.1;net8.0;net9.0</DotNetVersions>
Copy link

Choose a reason for hiding this comment

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

πŸ’‘ Codebase verification

⚠️ Potential issue

Breaking change confirmed: .NET 6.0 support removal

Found evidence of previous .NET 6.0 support in appveyor.yml. However, the impact appears minimal:

  • No framework-specific code found in the codebase
  • Dependencies are already targeting newer versions
  • .NET 6.0 is approaching end of support

Recommendation: Document this change in release notes as a breaking change, but it doesn't require special handling beyond that.

πŸ”— Analysis chain

Verify breaking changes from removing .NET 6.0 support.

The removal of net6.0 target framework might break compatibility for consumers still using .NET 6.0. Consider:

  1. Adding a breaking change notice in the release notes
  2. Communicating this change to package consumers
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check for .NET 6.0 usage in the codebase
rg -l "net6\.0" --type-add "props:*.props" --type-add "csproj:*.csproj" --type props --type csproj

Length of output: 100


Script:

#!/bin/bash
# Check git history for net6.0 removal
git diff HEAD~1 Directory.Build.props

# Look for version-specific code and conditionals
rg "#if\s+NET6" -A 2
ast-grep --pattern 'if (RuntimeInformation.FrameworkDescription.StartsWith("$_"))'

Length of output: 147


Script:

#!/bin/bash
# Check for framework-specific directories and files
fd "net6.0"

# Look for framework version checks in different formats
rg -i "net6" -g "!*.props"

# Check package references with framework constraints
fd -e csproj -x cat {} \; | rg -i "packagereference|targetframework"

Length of output: 1936

Comment on lines +53 to +57
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'

Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Update coverage paths in SonarCloud configuration.

The SonarCloud configuration still references net8.0 in coverage paths:

/d:sonar.cs.opencover.reportsPaths="Tests/**/coverage.net8.0.opencover.xml"

This should be updated if tests will run on a different framework version.

Also, remove the trailing whitespace on line 57.

🧰 Tools
πŸͺ› yamllint (1.35.1)

[error] 57-57: trailing spaces

(trailing-spaces)

Copy link

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
Report missing for c2215ab1 βœ… βˆ…
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (c2215ab) Report Missing Report Missing Report Missing
Head commit (9deb86c) 1777 4 0.23%

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#423) 0 0 βˆ… (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settingsΒ Β Β Β Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

Footnotes

  1. Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct. ↩

@AppVeyorBot
Copy link

βœ… Build VTEX-SDK-dotnet 3.0.8 completed (commit 3a8ba3def2 by @gstraccini[bot])

@guibranco guibranco merged commit 4034516 into main Jan 13, 2025
38 checks passed
@guibranco guibranco deleted the guibranco-patch-2 branch January 13, 2025 03:05
Copy link

codecov bot commented Jan 13, 2025

Codecov Report

All modified and coverable lines are covered by tests βœ…

Project coverage is 0.22%. Comparing base (50f3f5f) to head (9deb86c).
Report is 2 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #423   +/-   ##
=====================================
  Coverage   0.22%   0.22%           
=====================================
  Files        117     117           
  Lines       1777    1777           
  Branches      75      75           
=====================================
  Hits           4       4           
+ Misses      1773    1771    -2     
- Partials       0       2    +2     

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
β˜‘οΈ auto-merge Automatic merging of pull requests (gstraccini-bot) size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants