Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Add CodeGenerator tests and fix NREs/bugs #40838

Merged
merged 7 commits into from
Nov 8, 2019
Merged

Add CodeGenerator tests and fix NREs/bugs #40838

merged 7 commits into from
Nov 8, 2019

Conversation

hughbe
Copy link

@hughbe hughbe commented Sep 5, 2019

Depends on #39585

@danmoseley danmoseley requested a review from buyaa-n September 19, 2019 00:34
@danmoseley
Copy link
Member

@buyaa-n your area, could you please help get this in

@krwq
Copy link
Member

krwq commented Sep 19, 2019

product changes LGTM (with one comment)

@hughbe does this need rebase on top of that PR? Presumably some changes will disappear

@buyaa-n
Copy link

buyaa-n commented Sep 19, 2019

Thank you @hughbe there is some test failures System.CodeDom.Tests Total: 3174, Errors: 0, Failed: 61, Skipped: 0, Time: 4. could take a look, excpet test failures looks great 👍. https://helix.dot.net/api/2019-06-17/jobs/8bd796a7-24f0-43b2-9566-be1cf5947d97/workitems/System.CodeDom.Tests/console

@maryamariyan
Copy link
Member

Thanks for your PR @hughbe
Just checking if this is still under your radar and if you'll want to update it soon?
Assigned to you so it's easier for you to track.

Copy link
Member

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

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

Thanks, @hughbe.

I'm fine with the ArgumentNullException changes and the associated tests, but I think the changes that guard calls based on whether collections are empty should be reverted.

@buyaa-n
Copy link

buyaa-n commented Oct 25, 2019

I'm fine with the ArgumentNullException changes and the associated tests, but I think the changes that guard calls based on whether collections are empty should be reverted.

@hughbe if you have no time to apply the requested changes in near future please let me know, I can help wiith that. Thank you!

@maryamariyan maryamariyan requested a review from krwq November 1, 2019 16:46
@danmoseley
Copy link
Member

@buyaa-n I suggest just making the changes so we can get this one merged...

@buyaa-n
Copy link

buyaa-n commented Nov 6, 2019

@buyaa-n I suggest just making the changes so we can get this one merged...

Sure

@buyaa-n
Copy link

buyaa-n commented Nov 6, 2019

/azp run corefx-ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@buyaa-n
Copy link

buyaa-n commented Nov 6, 2019

I'm fine with the ArgumentNullException changes and the associated tests, but I think the changes that guard calls based on whether collections are empty should be reverted

@stephentoub reverted collection count checks, do you have any other comment?

@maryamariyan
Copy link
Member

Thank you for your contribution. As announced in dotnet/coreclr#27549 this repository will be moving to dotnet/runtime on November 13. If you would like to continue working on this PR after this date, the easiest way to move the change to dotnet/runtime is:

  1. In your corefx repository clone, create patch by running git format-patch origin
  2. In your runtime repository clone, apply the patch by running git apply --directory src/corefx <path to the patch created in step 1>

@hughbe
Copy link
Author

hughbe commented Nov 7, 2019

So sorry! I keep getting distracted by winforms stuff and university work. Thanks for taking this on.

@buyaa-n
Copy link

buyaa-n commented Nov 7, 2019

So sorry! I keep getting distracted by winforms stuff and university work. Thanks for taking this on.

Sure no problem, thank you for your contribution

Copy link
Member

@krwq krwq left a comment

Choose a reason for hiding this comment

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

Product changes and small tests file LGTM, haven't got time to look at the big tests change

if (member == null)
{
throw new ArgumentNullException(nameof(member));
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
}
}

{
GenerateLinePragmaStart(imp.LinePragma);
}

GenerateNamespaceImport(imp);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
GenerateNamespaceImport(imp);
GenerateNamespaceImport(imp);

@stephentoub stephentoub merged commit 7c867c2 into dotnet:master Nov 8, 2019
@hughbe hughbe deleted the codedom-letsdothis branch November 8, 2019 17:28
@karelz karelz added this to the 5.0 milestone Dec 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants