Skip to content

Microsoft.Extensions.Logging.Console failures #73436

Closed

Description

@MichalStrehovsky

This looks like a trimming issue around one of the Microsoft.Configuration things.

Either the suppressions within the framework are wrong or we have a dataflow bug.

[FAIL] Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerExtensionsTests.AddJsonConsole_ChangeProperties_IsReadFromLoggingConfiguration
Assert.True() Failure
Expected: True
Actual:   False
   at Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerExtensionsTests.AddJsonConsole_ChangeProperties_IsReadFromLoggingConfiguration() + 0x277
   at Microsoft.Extensions.Logging.Console.Tests!<BaseAddress>+0x88e32c
   at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0xf1
[FAIL] Microsoft.Extensions.Logging.Console.Test.SimpleConsoleFormatterTests.Log_WritingScopes_LogsWithCorrectColorsWhenColorEnabled(colorBehavior: Default)
Assert.Equal() Failure
Expected: 1
Actual:   2
   at Microsoft.Extensions.Logging.Console.Test.SimpleConsoleFormatterTests.Log_WritingScopes_LogsWithCorrectColorsWhenColorEnabled(LoggerColorBehavior) + 0x3ad
   at Microsoft.Extensions.Logging.Console.Tests!<BaseAddress>+0x8935ec
   at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x172
[SKIP] Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
Finished Microsoft.Extensions.Logging.Console.Tests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60

Activity

  1. added
    linkable-framework
    on Aug 5, 2022
  2. added this to the 7.0.0 milestone on Aug 5, 2022
  3. vitek-karas commented on Aug 5, 2022

    @vitek-karas
    Member

    How did you build the test in question for NativeAOT?
    I tried the usual way but it fails for me.

  4. MichalStrehovsky commented on Aug 8, 2022

    @MichalStrehovsky
    MemberAuthor

    I hit this during the test bringup. What I do during the bringup is I modify the list of SmokeTestProject itemgroup in src/libraries/tests.proj to have only the tests I'm interested in. More here: #73048 (comment)

  5. modified the milestones: 7.0.0, 8.0.0 on Aug 12, 2022
  6. moved this to High Priority in AppModelon Aug 12, 2022
  7. ghost added
    untriaged
    on Aug 12, 2022
  8. removed
    untriaged
    on Aug 12, 2022
  9. eerhardt commented on Aug 22, 2022

    @eerhardt
    Member

    RE:

    [FAIL] Microsoft.Extensions.Logging.Console.Test.SimpleConsoleFormatterTests.Log_WritingScopes_LogsWithCorrectColorsWhenColorEnabled(colorBehavior: Default)
    Assert.Equal() Failure
    Expected: 1
    Actual: 2
    at Microsoft.Extensions.Logging.Console.Test.SimpleConsoleFormatterTests.Log_WritingScopes_LogsWithCorrectColorsWhenColorEnabled(LoggerColorBehavior) + 0x3ad
    at Microsoft.Extensions.Logging.Console.Tests!+0x8935ec
    at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x172

    I cannot repro this error with the latest code on both Windows and Linux x64. I'll submit a PR to remove this ActiveIssue to see in CI what leg is failing for this test.

  10. added a commit that references this issue on Sep 21, 2022
    91759fe
  11. ghost locked as resolved and limited conversation to collaborators on Oct 22, 2022
  12. added a commit that references this issue on Apr 22, 2024
    4613847
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-NativeAOT-coreclrlinkable-framework

    Type

    No type

    Projects

    • Status
      High Priority

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions