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

Exception format cleanup subset#25185

Merged
danmoseley merged 6 commits intodotnet:masterfrom
danmoseley:exformat30
Jun 19, 2019
Merged

Exception format cleanup subset#25185
danmoseley merged 6 commits intodotnet:masterfrom
danmoseley:exformat30

Conversation

@danmoseley
Copy link
Member

Subset of #25045 that seems reasonable to put into 3.0 as it's less likely to break output-parsing.

  1. Remove newline within AE message.
  2. Put newlines before each inner exception (this puts ---> somemessage on their own lines)
  3. Stop duplicating one of the inner exceptoins in the AgE.ToString().

Deferred:

  1. Indenting
  2. Removing <--- and the various horizontal markers.

Test program original output and new output (file/line numbers aren't resolving for some reason to do with Debug runtime build)

@jkotas
Copy link
Member

jkotas commented Jun 17, 2019

Looks good to me otherwise. Thank you!

@jkotas jkotas closed this Jun 17, 2019
@jkotas jkotas reopened this Jun 17, 2019
@danmoseley danmoseley added the * NO MERGE * The PR is not ready for merge yet (see discussion for detailed reasons) label Jun 18, 2019
@danmoseley
Copy link
Member Author

I want to test this one more time before merging

@danmoseley danmoseley removed the * NO MERGE * The PR is not ready for merge yet (see discussion for detailed reasons) label Jun 19, 2019
@danmoseley
Copy link
Member Author

Linux ARM tests failed twice with errors like

  Starting:    baseservices.threading.XUnitWrapper
    baseservices/threading/coverage/OSThreadId/osthreadid/osthreadid.sh [FAIL]
      Test Infrastructure Failure: Access to the path '/root/helix/work/workitem/baseservices/threading/Reports/baseservices.threading/coverage/OSThreadId/osthreadid/' is denied.
      Expected: True
      Actual:   False
      Stack Trace:
        /__w/1/s/bin/tests/Linux.arm.Checked/TestWrappers/baseservices.threading/baseservices.threading.XUnitWrapper.cs(89,0): at baseservices_threading._coverage_OSThreadId_osthreadid_osthreadid_._coverage_OSThreadId_osthreadid_osthreadid_sh()
    baseservices/threading/paramthreadstart/ThreadStartBool/ThreadStartBool.sh [FAIL]

@RussKeldorph is this known?

I think it is unlikely that the ARM coverage is specifically important here (vs x64, ARM64 etc). I am going to merge.

@danmoseley danmoseley merged commit 15ece8e into dotnet:master Jun 19, 2019
@danmoseley danmoseley deleted the exformat30 branch June 19, 2019 08:28
@RussKeldorph
Copy link

@MattGal @ilyas1974 It looks like the Helix workitem directory is not writable on some, but not all linux-arm agents. Are the new agents being added to the pool with correct configuration?

@MattGal
Copy link
Member

MattGal commented Jun 19, 2019

@RussKeldorph can I see some of the failing / passing logs here? A single run demonstrating it would be great.

@RussKeldorph
Copy link

@MattGal
Copy link
Member

MattGal commented Jun 19, 2019

@RussKeldorph yes exactly that. I'll see what I can find and get back.

@MattGal
Copy link
Member

MattGal commented Jun 19, 2019

Filed https://github.com/dotnet/core-eng/issues/6763 to track and I'll take the first stab at investigting myself; current hypothesis is an assumption about the user id of the (outside-the-machine) owner of the file may be incorrect on some machines, leading to a different UID and permissions issues.

janvorli added a commit to janvorli/coreclr that referenced this pull request Jun 20, 2019
This test was checking for "Parameter name:" substring in the
ArgumentNullException message. But a recent change dotnet#25185 modified
that string to just "Parameter".
janvorli added a commit to janvorli/coreclr that referenced this pull request Jun 20, 2019
This test was checking for "Parameter name:" substring in the
ArgumentNullException message. But a recent change dotnet#25185 modified
that string to just "Parameter".
@janvorli janvorli mentioned this pull request Jun 20, 2019
[System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public partial class Exception : ISerializable
{
internal protected const string InnerExceptionPrefix = " ---> ";
Copy link
Member

Choose a reason for hiding this comment

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

@danmosemsft, did you mean for this to be private protected rather than internal protected? As it stands it's exposing this all derived types. It's thus also breaking the corefx build.

janvorli added a commit to janvorli/coreclr that referenced this pull request Jun 20, 2019
This test was checking for "Parameter name:" substring in the
ArgumentNullException message. But a recent change dotnet#25185 modified
that string to just "Parameter".

We also have a coverage for this in corefx tests, so I am removing
this test.
jkotas pushed a commit that referenced this pull request Jun 20, 2019
This test was checking for "Parameter name:" substring in the
ArgumentNullException message. But a recent change #25185 modified
that string to just "Parameter".

We also have a coverage for this in corefx tests, so I am removing
this test.
pull bot pushed a commit to HarrievG/coreclr that referenced this pull request Jun 20, 2019
This test was checking for "Parameter name:" substring in the
ArgumentNullException message. But a recent change dotnet#25185 modified
that string to just "Parameter".

We also have a coverage for this in corefx tests, so I am removing
this test.
Dotnet-GitSync-Bot pushed a commit to Dotnet-GitSync-Bot/corert that referenced this pull request Jun 20, 2019
* Change ArgumentException message to one line

* Disable 2 tests

* Remove duplication in AggregateException.ToString()

* Inner exceptions on new lines

* Caps letter

* Typo

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Dotnet-GitSync-Bot pushed a commit to Dotnet-GitSync-Bot/mono that referenced this pull request Jun 20, 2019
* Change ArgumentException message to one line

* Disable 2 tests

* Remove duplication in AggregateException.ToString()

* Inner exceptions on new lines

* Caps letter

* Typo

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
jkotas pushed a commit to dotnet/corert that referenced this pull request Jun 20, 2019
* Change ArgumentException message to one line

* Disable 2 tests

* Remove duplication in AggregateException.ToString()

* Inner exceptions on new lines

* Caps letter

* Typo

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
marek-safar pushed a commit to mono/mono that referenced this pull request Jun 21, 2019
* Change ArgumentException message to one line

* Disable 2 tests

* Remove duplication in AggregateException.ToString()

* Inner exceptions on new lines

* Caps letter

* Typo

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
@jkotas jkotas added the breaking-change Issue or PR that represents a breaking API or functional change over a prerelease. label Jun 23, 2019
Dotnet-GitSync-Bot pushed a commit to Dotnet-GitSync-Bot/corefx that referenced this pull request Jul 1, 2019
* Change ArgumentException message to one line

* Disable 2 tests

* Remove duplication in AggregateException.ToString()

* Inner exceptions on new lines

* Caps letter

* Typo

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
stephentoub pushed a commit to dotnet/corefx that referenced this pull request Jul 2, 2019
* Change ArgumentException message to one line

* Disable 2 tests

* Remove duplication in AggregateException.ToString()

* Inner exceptions on new lines

* Caps letter

* Typo

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
* Change ArgumentException message to one line

* Disable 2 tests

* Remove duplication in AggregateException.ToString()

* Inner exceptions on new lines

* Caps letter

* Typo


Commit migrated from dotnet/coreclr@15ece8e
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
This test was checking for "Parameter name:" substring in the
ArgumentNullException message. But a recent change dotnet/coreclr#25185 modified
that string to just "Parameter".

We also have a coverage for this in corefx tests, so I am removing
this test.

Commit migrated from dotnet/coreclr@b1ea5ed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

breaking-change Issue or PR that represents a breaking API or functional change over a prerelease.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants