Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

JeremyKuhne
Copy link
Member

Path tests weren't running due to a test infra or runtime bug (too many test methods in one class apparently). Cleaned up path tests, fixing issues and adding coverage.

cc: @danmosemsft, @Anipik, @maryamariyan, @pjanotti

See dotnet/coreclr#16554, #27426

Path tests weren't running due to a test infra bug (too many test methods in one class apparently). Cleaned up path tests, fixing issues and adding coverage.
@JeremyKuhne JeremyKuhne added this to the 2.1.0 milestone Feb 25, 2018
@JeremyKuhne JeremyKuhne self-assigned this Feb 25, 2018
Assert.Equal(expected, Path.GetFileName(path));
}

[ActiveIssue(27269, TargetFrameworkMonikers.Netcoreapp)]
Copy link
Member

Choose a reason for hiding this comment

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

did we get this fix yet?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, unfortunately. I'm not sure why we don't have a new CoreLib, I've run out of mental bandwidth to figure it out. Once we do, we can just remove these few and everything should pass. Well, with dotnet/coreclr#16554 anyway. :)

@danmoseley
Copy link
Member

CoreCLR build is broken so no insertion. https://github.com/dotnet/core-eng/issues/2753

@jkotas
Copy link
Member

jkotas commented Feb 25, 2018

I do not think we should be working around the bug by refactoring the tests. The bug is likely affecting random other places. We need to get that bug traced down and fixed fast.

@jkotas
Copy link
Member

jkotas commented Feb 25, 2018

E.g. I see that System.Tests.EnvironmentTests are effected by this as well - some of them are getting skipped randomly.

@JeremyKuhne
Copy link
Member Author

I do not think we should be working around the bug by refactoring the tests.

I needed to fix the tests anyway- they were broken and scenarios were missing/incorrect. It was an 8+ hour effort to get them corrected for both the currently ingested bits and the pending CoreCLR changes from the past few days. They are also better factored for me to make additional passes to beef up the coverage.

It is good we now know that we've got a runtime problem and it is reproing in multiple ways. Should we track with #27426 or open another issue in CoreCLR?

@@ -1,4 +1,3 @@
// Licensed to the .NET Foundation under one or more agreements.
Copy link
Member

Choose a reason for hiding this comment

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

Unintentional edit


namespace System.IO.Tests
{
public partial class PathTests_Windows : PathTestsBase
Copy link
Member

@jkotas jkotas Feb 25, 2018

Choose a reason for hiding this comment

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

If this refactoring is permanent, the name of the file should be PathTests_Windows to follow the naming conventions.

Copy link
Member

@jkotas jkotas Feb 25, 2018

Choose a reason for hiding this comment

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

(Similar for other files.)

{
public static class TestHelpers
{

Copy link
Member

Choose a reason for hiding this comment

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

Extra line

namespace System.IO.Tests
{
public static partial class PathTests
public class PathTests_Combine
Copy link
Member

Choose a reason for hiding this comment

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

Nit: file name vs. class name mismatch

{
[PlatformSpecific(TestPlatforms.Windows)]
[SkipOnTargetFramework(~TargetFrameworkMonikers.NetFramework)]
public class PathTests_NetFX : PathTestsBase
Copy link
Member

Choose a reason for hiding this comment

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

Nit: File name vs class name mismatch

Copy link
Member Author

Choose a reason for hiding this comment

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

This one is a bit awkward. I really want to keep it in the build as it makes it much easier to work with, but I don't want to litter the file with [SkipOnTargetFramework] and yet still clearly show the relationship when browsing the solution explorer. :/

@JeremyKuhne
Copy link
Member Author

@dotnet/dncenghot It appears that the Ubuntu.1804.Amd64.Open runs are hung up? All of the Linux x64 Release Builds are spinning since last night.

@danmoseley
Copy link
Member

1804 is jammed on other PR's also.

@JeremyKuhne
Copy link
Member Author

@danmosemsft Should we skip on 1804 if all other leg results are good?

@danmoseley
Copy link
Member

@JeremyKuhne let's see whether it can be quickly fixed tomorrow morning.

@JeremyKuhne
Copy link
Member Author

let's see whether it can be quickly fixed tomorrow morning.

We don't have much time left in the month. :/ Note that this one will be necessary to pass the next CoreCLR ingestion attempt.

@danmoseley
Copy link
Member

Ugh..OK, skipping it here seems reasonable given that fact and that is new and we have other Ubuntu coverage.

@JeremyKuhne
Copy link
Member Author

skipping it here seems reasonable

Thanks :)

@JeremyKuhne JeremyKuhne merged commit eb39a50 into dotnet:master Feb 26, 2018
@JeremyKuhne JeremyKuhne deleted the fixpathtests branch February 26, 2018 00:37
@MattGal
Copy link
Member

MattGal commented Feb 26, 2018

@JeremyKuhne looking at the Ubuntu 18.04 queue now. I think the problem is simply that the images expire faster than we'd like as it's not RTM yet.

@MattGal
Copy link
Member

MattGal commented Feb 26, 2018

@JeremyKuhne & @danmosemsft : This is fixed now.

Summary: Since Ubuntu 18 is not RTMed yet and we run a daily build, they update their image VERY often and we "fell off". We lock in our image version to prevent random change taking machines down which did not help in this circumstance. I've moved our VMs to set to "latest" version (which has caused problems in the past when latest = broken build) until a release version 18.04 is finalized to prevent this going forward.

@danmoseley
Copy link
Member

Thanks @MattGal !

@dagood dagood mentioned this pull request Mar 7, 2018
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
* Path tests overhaul

Path tests weren't running due to a test infra bug (too many test methods in one class apparently). Cleaned up path tests, fixing issues and adding coverage.

* Address feedback

* More name tweaks


Commit migrated from dotnet/corefx@eb39a50
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.

5 participants