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

Use latest alizer library version, including .net detection #5804

Merged
merged 2 commits into from
Jun 9, 2022

Conversation

feloy
Copy link
Contributor

@feloy feloy commented Jun 7, 2022

What type of PR is this:

/kind feature

What does this PR do / why we need it:

Which issue(s) this PR fixes:

Fixes #5803

PR acceptance criteria:

  • Unit test

  • Integration test

  • Documentation

How to test changes / Special notes to the reviewer:

@netlify
Copy link

netlify bot commented Jun 7, 2022

Deploy Preview for odo-docusaurus-preview ready!

Name Link
🔨 Latest commit 53d8e8f
🔍 Latest deploy log https://app.netlify.com/sites/odo-docusaurus-preview/deploys/62a19ca5725ac40008cdfcfd
😎 Deploy Preview https://deploy-preview-5804--odo-docusaurus-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@openshift-ci openshift-ci bot added the kind/feature Categorizes issue as a feature request. For PRs, that means that the PR is the implementation label Jun 7, 2022
@odo-robot
Copy link

odo-robot bot commented Jun 7, 2022

Unit Tests on commit 415adea finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Jun 7, 2022

Kubernetes Tests on commit 415adea finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Jun 7, 2022

OpenShift Tests on commit 415adea finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Jun 7, 2022

Validate Tests on commit 415adea finished successfully.
View logs: TXT HTML

@feloy feloy requested review from rm3l and removed request for mohammedzee1000 June 8, 2022 05:53
@feloy feloy closed this Jun 8, 2022
@feloy feloy reopened this Jun 8, 2022
@odo-robot
Copy link

odo-robot bot commented Jun 8, 2022

Windows Tests (OCP) on commit 415adea finished successfully.
View logs: TXT HTML

Copy link
Member

@rm3l rm3l left a comment

Choose a reason for hiding this comment

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

LGTM.

As discussed in https://github.com/redhat-developer/odo/pull/5774/files#r885866357, maybe we could now also update the Quickstart Guide for .NET to include a more realistic sample output? Could be done here or in a subsequent PR.
cc @cdrage

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Jun 8, 2022
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Jun 9, 2022
@sonarcloud
Copy link

sonarcloud bot commented Jun 9, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@feloy
Copy link
Contributor Author

feloy commented Jun 9, 2022

As discussed in https://github.com/redhat-developer/odo/pull/5774/files#r885866357, maybe we could now also update the Quickstart Guide for .NET to include a more realistic sample output? Could be done here or in a subsequent PR.

I updated the doc, but Alizer does not detect the version of dotnet in this case.

@valaparthvi
Copy link
Contributor

valaparthvi commented Jun 9, 2022

I am inclined to approve this because the updated library detects the language correctly if not the version, unlike the current library version that we have in main.

I have a dotnet 3.1 project here.

➜  ls             
app.csproj  appsettings.Development.json  appsettings.json  Controllers  Models  Program.cs  Properties  Startup.cs  Views  wwwroot

➜  cat app.csproj 
<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>netcoreapp3.1</TargetFramework>
  </PropertyGroup>



</Project>

Result from main:

➜  odo init
  __
 /  \__     Initializing new component
 \__/  \    Files: Source code detected, a Devfile will be determined based upon source code autodetection
 /  \__/    odo version: v3.0.0-alpha3
 \__/

Interactive mode enabled, please answer the following questions:
Based on the files in the current directory odo detected
Language: javascript
Project type: nodejs
The devfile "nodejs" from the registry "MyRegistry" will be downloaded.
? Is this correct? No
^C

Result from updated library:

➜  odo init
  __
 /  \__     Initializing new component
 \__/  \    Files: Source code detected, a Devfile will be determined based upon source code autodetection
 /  \__/    odo version: v3.0.0-alpha2
 \__/

Interactive mode enabled, please answer the following questions:
Based on the files in the current directory odo detected
Language: dotnet
Project type: dotnet
The devfile "dotnet50" from the registry "MyRegistry" will be downloaded.
? Is this correct? (Y/n) 
 ✗  interrupt
the command failed, the devfile has been removed from current directory

The updated version does not detect the version properly, it always goes with dotnet50, I tested with dotnet 6 as well. But it detects the language better than the previous version.

/approve

@openshift-ci
Copy link

openshift-ci bot commented Jun 9, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: valaparthvi

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

The pull request process is described 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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. label Jun 9, 2022
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Jun 9, 2022
@feloy
Copy link
Contributor Author

feloy commented Jun 9, 2022

/override ci/prow/v4.10-integration-e2e
IBM Tests pass

@openshift-ci
Copy link

openshift-ci bot commented Jun 9, 2022

@feloy: Overrode contexts on behalf of feloy: ci/prow/v4.10-integration-e2e

In response to this:

/override ci/prow/v4.10-integration-e2e
IBM Tests pass

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@rm3l
Copy link
Member

rm3l commented Jun 9, 2022

As discussed in https://github.com/redhat-developer/odo/pull/5774/files#r885866357, maybe we could now also update the Quickstart Guide for .NET to include a more realistic sample output? Could be done here or in a subsequent PR.

I updated the doc, but Alizer does not detect the version of dotnet in this case.

Great - thanks for the changes. Maybe we can open an issue in the Alizer repo then?

@openshift-merge-robot openshift-merge-robot merged commit d5935a1 into redhat-developer:main Jun 9, 2022
cdrage pushed a commit to cdrage/odo that referenced this pull request Aug 31, 2022
…eveloper#5804)

* Use latest alizer library version

* Update quickstart guide
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. kind/feature Categorizes issue as a feature request. For PRs, that means that the PR is the implementation lgtm Indicates that a PR is ready to be merged. Required by Prow.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use latest version odo alizer library
4 participants