Skip to content

System.Net.Http.Functional.Tests.TelemetryTest failing with differing string #109024

Closed

Description

@tannergooding

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=847502
Build error leg or test failing: EventSource_ExistsWithCorrectId

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": ["Expected: \"System.Net.Http\"", "Actual:   \"HttpTelemetry\""],
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=847502
Error message validated: [Expected: "System.Net.Http" Actual: "HttpTelemetry"]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 10/18/2024 7:25:09 PM UTC

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

Activity

  1. added
    Known Build Error
    on Oct 18, 2024
  2. added
    untriaged
    on Oct 18, 2024
  3. dotnet-policy-service commented on Oct 18, 2024

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
    See info in area-owners.md if you want to be subscribed.

  4. dotnet-policy-service commented on Oct 21, 2024

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/ncl
    See info in area-owners.md if you want to be subscribed.

  5. added
    os-browser
    on Oct 21, 2024
  6. MihaZupan commented on Oct 21, 2024

    @MihaZupan
    Member

    This failure on Browser is already tracked by #71877. The test in question should already be disabled there:

    [Fact]
    [ActiveIssue("https://github.com/dotnet/runtime/issues/71877", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsMonoAOT))]
    public void EventSource_ExistsWithCorrectId()
    {
    Type esType = typeof(HttpClient).Assembly.GetType("System.Net.Http.HttpTelemetry", throwOnError: true, ignoreCase: false);
    Assert.NotNull(esType);
    Assert.Equal("System.Net.Http", EventSource.GetName(esType));

    Does WasmTestOnChrome not fall under PlatformDetection.IsBrowser?

  7. pavelsavara commented on Oct 22, 2024

    @pavelsavara
    Member

    Maybe on browser the env variable MONO_AOT_MODE is never set ?

  8. added
    blocking-clean-ci
    on Oct 22, 2024
  9. lewing commented on Oct 23, 2024

    @lewing
    Member

    @ilonatommy this and #105363 are getting hit a lot. please take a look

  10. ilonatommy commented on Oct 24, 2024

    @ilonatommy
    Member

    Maybe on browser the env variable MONO_AOT_MODE is never set ?

    The test is run with /p:EnableAggressiveTrimming=true /p:BuildAOTTestsOnHelix=true /p:RunAOTCompilation=false.

    It's true that MONO_AOT_MODE is never set, because ENABLE_AOT is not defined. I guess it should be set here:


    The tests, however fail when AOT = false, so the active issue does not prevent it. We have a detection for EAT on wasm browser, it's this property:
    public static bool IsBuiltWithAggressiveTrimming => IsNativeAot || IsAppleMobile;

    set by this stub:
    <method signature="System.Boolean get_IsBuiltWithAggressiveTrimming()" body="stub" value="true" />

    from here:
    <EmbeddedResource Include="$(MSBuildThisFileDirectory)ILLink.Substitutions.AggressiveTrimming.xml"

    I will add appropriate blocking condition in a PR soon.

  11. ilonatommy commented on Oct 24, 2024

    @ilonatommy
    Member

    About this part:

    Maybe on browser the env variable MONO_AOT_MODE is never set ?

    It's true that MONO_AOT_MODE is never set, because ENABLE_AOT is not defined.

    I found where we're setting it:

    <_EmccCFlags Include="-DENABLE_AOT=1" Condition="'$(_WasmShouldAOT)' == 'true'" />

    that triggers:

    #ifdef ENABLE_AOT
    monoeg_g_setenv ("MONO_AOT_MODE", "aot", 1);
    // Defined in driver-gen.c
    register_aot_modules ();

    so the existing blocker is also fine.

  12. ilonatommy commented on Oct 24, 2024

    @ilonatommy
    Member

    Browser does not support diagnostics, so in the current state it's expected to trim

    [EventSource(Name = "System.Net.Http")]

    This can be enabled once we have EP working on WASM browser.

  13. added
    disabled-test
    and removed
    untriaged
    on Oct 24, 2024
  14. added this to the Future milestone on Oct 24, 2024
  15. removed
    blocking-clean-ci
    on Oct 24, 2024
  16. locked and limited conversation to collaborators on Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Known Build Errorarea-System.Net.Httpdisabled-testos-browser

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions