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

added dotnet80 stack support #93

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

msivasubramaniaan
Copy link

What does this PR do?

Added stack dotnet80 support

Which issue(s) does this PR fix

devfile/api#1540
devfile/registry#451

PR acceptance criteria

Testing and documentation do not need to be complete in order for this PR to be approved. We just need to ensure tracking issues are opened.

  • Unit/Functional tests

  • Documentation

How to test changes / Special notes to the reviewer

Signed-off-by: msivasubramaniaan <[email protected]>
@openshift-ci openshift-ci bot requested review from elsony and thepetk July 19, 2024 13:11
Copy link
Contributor

@thepetk thepetk left a comment

Choose a reason for hiding this comment

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

Nice addition. Looking at our current format I think the dotnet 8 was already supported, meaning that the framework could be detected.

It's nice that the current PR adds some tests around it. One thing I think would be usefull is to reduce the size of the dotnet8.0 test project. AFAIR we only need a few files in order to be able to detect the framework. As a result dirs like migration might be better if they are excluded from this project.

pkg/apis/recognizer/devfile_recognizer_test.go Outdated Show resolved Hide resolved
Copy link

openshift-ci bot commented Jul 23, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: msivasubramaniaan
Once this PR has been reviewed and has the lgtm label, please ask for approval from thepetk. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Signed-off-by: msivasubramaniaan <[email protected]>
Copy link
Contributor

@thepetk thepetk 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 left two minor comments. As mentioned above I think is necessary to remove non necessary files/dirs from the resources/projects/dotnet8.0 test project.

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it makes sense to keep this as is (e.g net6.0) as there is already a new test case for net8.0 added above.

@@ -35,7 +35,7 @@ func TestAnalyzeOnDjango(t *testing.T) {
}

func TestAnalyzeOnCSharp(t *testing.T) {
isLanguageInProject(t, "s2i-dotnetcore-ex", "c#", []string{}, []string{"net6.0"})
isLanguageInProject(t, "s2i-dotnetcore-ex", "c#", []string{}, []string{"net8.0"})
Copy link
Contributor

Choose a reason for hiding this comment

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

Same goes for this one. Might be better to add an additional test case instead of replacing the net6.0

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

Successfully merging this pull request may close these issues.

2 participants