Skip to content

Contributing: Fix typos #4633

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

Merged
merged 4 commits into from
Jan 8, 2020
Merged

Contributing: Fix typos #4633

merged 4 commits into from
Jan 8, 2020

Conversation

MaherJendoubi
Copy link
Contributor

Fixing some typos

@MaherJendoubi MaherJendoubi requested a review from a team as a code owner January 7, 2020 19:14
@antoniovs1029
Copy link
Member

antoniovs1029 commented Jan 7, 2020

Changing the name of the variable only in the places you did seems to not be enough, since all of the builds are failing with this error:

Experiment/SuggestedPipelineRunDetails/SuggestedPipelineRunDetail.cs(26,163): error CS1061: 'PipelineScore' does not contain a definition for 'RunSucceded' and no accessible extension method 'RunSucceded' accepting a first argument of type 'PipelineScore' could be found (are you missing a using directive or an assembly reference?)

@MaherJendoubi did you try to build this in your machine before opening the PR? I would think that this would have to fail on your machine too. Please, try to fix this renaming and check if it builds in your machine before updating this PR. Thanks!

@MaherJendoubi
Copy link
Contributor Author

@antoniovs1029 My mistake. I am working on fixing it.

Copy link
Contributor

@justinormont justinormont left a comment

Choose a reason for hiding this comment

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

Thanks for the fix. Once the unit tests are passing it looks good to merge.

@justinormont
Copy link
Contributor

justinormont commented Jan 7, 2020

I think you're missing the one here:

// If after third run, all runs have failed so far, throw exception
if (_history.Count() == 3 && _history.All(r => !r.RunSucceded))
{
throw new InvalidOperationException($"Training failed with the exception: {_history.Last().Exception}");
}

And as @antoniovs1029 suggests, building locally will catch any missing renames. Since functionality isn't modified, I'm not expecting the unit tests to show anything interesting; though they're always nice to run, and further end-to-end testing of an AutoML pipeline can catch additional problems.

@MaherJendoubi
Copy link
Contributor Author

@justinormont actually, I have issues to compile the whole solution. But, I fixed the missing changes.

@antoniovs1029
Copy link
Member

antoniovs1029 commented Jan 8, 2020

@justinormont actually, I have issues to compile the whole solution. But, I fixed the missing changes.

@MaherJendoubi . Unfortunately the builds are still failing, as you can see here:
https://github.com/dotnet/machinelearning/pull/4633/checks

The error is

Experiment/SuggestedPipelineRunDetails/SuggestedPipelineRunDetail.cs(26,163): error CS1061: 'PipelineScore' does not contain a definition for 'RunSucceded' and no accessible extension method 'RunSucceded' accepting a first argument of type 'PipelineScore' could be found (are you missing a using directive or an assembly reference?)

So there are still places where variables need to be renamed.

Can you tell us what problem are you encountering when building ML.NET? I might be able to assist you so you can run things locally and make it easier for you to fix this problem. Thanks for your contributions!

@justinormont
Copy link
Contributor

justinormont commented Jan 8, 2020

You can also check on the errors in the CI tests. You can see a build error here:
https://dev.azure.com/dnceng/public/_build/results?buildId=475367&view=logs&j=ac97a0ee-ee90-5a55-af17-a5a589fa545f&t=fdd5b9c0-ee9c-5c91-333c-dcdd6c90934e&l=251

Which ends with:

/1/s/dir.traversal.targets(25,5): error : Build failed. See earlier errors. [/__w/1/s/build.proj]

Build FAILED.

EXEC : CMake warning :  [/__w/1/s/src/Native/build.proj]
Experiment/SuggestedPipelineRunDetails/SuggestedPipelineRunDetail.cs(26,163): error CS1061: 'PipelineScore' does not contain a definition for 'RunSucceded' and no accessible extension method 'RunSucceded' accepting a first argument of type 'PipelineScore' could be found (are you missing a using directive or an assembly reference?) [/__w/1/s/src/Microsoft.ML.AutoML/Microsoft.ML.AutoML.csproj]
/__w/1/s/dir.traversal.targets(25,5): error : Build failed. See earlier errors. [/__w/1/s/build.proj]
    1 Warning(s)
    2 Error(s)

Time Elapsed 00:06:

This error is pointing to this line:
https://github.com/MaherJendoubi/machinelearning/blob/1374699c73d374bacd6500f9db07b35d20ac62f7/src/Microsoft.ML.AutoML/Experiment/SuggestedPipelineRunDetails/SuggestedPipelineRunDetail.cs#L26

Renaming within Visual Studio is easier as it generally finds all occurrences when renaming.

Build instructions:
https://github.com/dotnet/machinelearning/blob/master/docs/project-docs/developer-guide.md


You can navigate to the build output by clicking on the warning/errors on Checks page (or by clicking the Details for the CI on this page):

image

@MaherJendoubi
Copy link
Contributor Author

@antoniovs1029 @justinormont I still have one error :
image

@codecov
Copy link

codecov bot commented Jan 8, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@354798d). Click here to learn what that means.
The diff coverage is 81.81%.

@@            Coverage Diff            @@
##             master    #4633   +/-   ##
=========================================
  Coverage          ?   75.66%           
=========================================
  Files             ?      938           
  Lines             ?   168766           
  Branches          ?    18228           
=========================================
  Hits              ?   127689           
  Misses            ?    36047           
  Partials          ?     5030
Flag Coverage Δ
#Debug 75.66% <81.81%> (?)
#production 71.25% <81.81%> (?)
#test 90.5% <ø> (?)
Impacted Files Coverage Δ
src/Microsoft.ML.AutoML/API/Pipeline.cs 94.44% <100%> (ø)
...edPipelineRunDetails/SuggestedPipelineRunDetail.cs 100% <100%> (ø)
....ML.AutoML/PipelineSuggesters/PipelineSuggester.cs 83.19% <75%> (ø)
src/Microsoft.ML.AutoML/Experiment/Experiment.cs 83.33% <75%> (ø)

@justinormont
Copy link
Contributor

@MaherJendoubi: I can build your branch, and the unit tests pass (on macOS). I'm just going to retry the CI checks; they seem rather unstable currently.

@MaherJendoubi
Copy link
Contributor Author

@antoniovs1029 Thank you for your feedback. Build and Run are successful for me using commandline but still having issues when building using VS2019 Preview Version 16.5.0 Preview 1.

@antoniovs1029 antoniovs1029 merged commit 0435f6b into dotnet:master Jan 8, 2020
@MaherJendoubi MaherJendoubi deleted the patch-1 branch January 9, 2020 00:52
@ghost ghost locked as resolved and limited conversation to collaborators Mar 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants