You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Youssef1313 We have thought about it, but haven't decided on a plan yet. We're think through two approaches:
Mark some samples where "a successful CI build" has the expected errors.
Move non-compiling samples into inline code, where it isn't built by the CI system.
The advantage of the second is that it's easy. The advantage of the first is that if any new language updates change the expected error or add syntax, the CI system would find those for us.
Well, If I found samples that has an intended compile-time error, should I open a PR that adds it directly in the md file and deletes it from samples repo ?
Or wait for this until the CI is done ?
The full build should issue a warning on code that's been found in folders without a *.*proj file.
The full build should run the scripts to find unreferenced snippet folders. This will help us remove unused code when snippets are updated and moved to the correct folder.
PR builds should issue an error on code (in the PR) that is in a folder without a *.*proj file. That forces each PR to ensure that code is in a project that builds.
Next steps:
Update the dotnet/samples CI build to use GitHub actions. Assigned to @Thraka
Add the updated GitHub action in dotnet/dotnet-api-docs and dotnet/docs to build snippets. Assigned to @Thraka
After that, we can consider how to make PRs fail if they introduce a new code failure, but above notes.
Activity
2 remaining items
Youssef1313 commentedon Jan 5, 2020
@BillWagner, just a small note:
https://github.com/dotnet/samples/blob/master/snippets/csharp/tutorials/attributes/Program.cs#L134
Things like that, which are intended compile errors, will cause the CI build to fail.
A solution will be needed for that.
BillWagner commentedon Jan 6, 2020
@Youssef1313 We have thought about it, but haven't decided on a plan yet. We're think through two approaches:
The advantage of the second is that it's easy. The advantage of the first is that if any new language updates change the expected error or add syntax, the CI system would find those for us.
/cc @Thraka
Thraka commentedon Jan 9, 2020
I think 2 is the better way to go here.
Youssef1313 commentedon Jan 9, 2020
Well, If I found samples that has an intended compile-time error, should I open a PR that adds it directly in the md file and deletes it from samples repo ?
Or wait for this until the CI is done ?
BillWagner commentedon Jan 9, 2020
@Youssef1313 We should be deciding which option within a few days. I'll update this comment once we've done that.
BillWagner commentedon May 4, 2020
Update from meeting with @Thraka on 5/4:
Next steps:
After that, we can consider how to make PRs fail if they introduce a new code failure, but above notes.