Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wasm] WBT test failure - SimpleSourceChangeRebuildTest.SimpleStringChangeInSource #73419

Closed
radical opened this issue Aug 5, 2022 · 2 comments · Fixed by #73427
Closed

[wasm] WBT test failure - SimpleSourceChangeRebuildTest.SimpleStringChangeInSource #73419

radical opened this issue Aug 5, 2022 · 2 comments · Fixed by #73427
Assignees
Labels
Milestone

Comments

@radical
Copy link
Member

radical commented Aug 5, 2022

Failures 4/20-8/5 (incl. PRs):

Regression on 8/4 introduced in PR #72394

Day Failures
8/5 6x PR (24x failures)
8/4 2x Official run + 6x PR (32x failures total)
7/19-8/2 1x PR #72394 (22x failures)

Fails on Windows and Linux.

Example: Rolling build, and log.

    Wasm.Build.NativeRebuild.Tests.SimpleSourceChangeRebuildTest.SimpleStringChangeInSource(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs =  }, nativeRelink: False, invariant: False, host: Chrome, id: "kfqswgdd.hbi") [FAIL]
      CompareStat failed:
      [Expected unchanged file: System.Private.CoreLib.dll.bc]
         old: FileStat { Exists = True, LastWriteTimeUtc = 8/4/2022 9:01:26 PM, Length = 16570448, FullPath = /datadisks/disk1/work/AEEC0971/w/AF8A095A/e/kfqswgdd.hbi/obj/Release/net7.0/browser-wasm/wasm/for-publish/System.Private.CoreLib.dll.bc }
         new: FileStat { Exists = True, LastWriteTimeUtc = 8/4/2022 9:02:39 PM, Length = 16570448, FullPath = /datadisks/disk1/work/AEEC0971/w/AF8A095A/e/kfqswgdd.hbi/obj/Release/net7.0/browser-wasm/wasm/for-publish/System.Private.CoreLib.dll.bc }

Some of the source assemblies are getting aot'ed again, when rebuilding with no changes. This seems to have been introduced in #72394 which disabled caching:

//Enabled = true;

It didn't get caught because the WBT tests were failing to build because of #73312 .

let failedTests = (testNameSubstring : string, methodName : string, includePR : bool, messageSubstr: string, includePassedOnRerun : bool) {
cluster('engsrvprod.kusto.windows.net').database('engineeringdata').AzureDevOpsTests
    | where TestName contains testNameSubstring
    | where includePassedOnRerun or (Outcome == 'Failed')
    | extend startOfTestName = indexof_regex(TestName, @"[^.]+$")
    | extend Method = substring(TestName, startOfTestName)
    | extend Type = substring(TestName, 0, startOfTestName - 1)
    | project-away startOfTestName
    | where (methodName == '') or (Method == methodName)
    | where Message contains messageSubstr
    | distinct JobId, WorkItemId, Message, StackTrace, Method, Type, Arguments, Outcome
    | join kind=inner (cluster('engsrvprod.kusto.windows.net').database('engineeringdata').Jobs
        | where ((Branch == 'refs/heads/main') or (Branch == 'refs/heads/master') or (includePR and (Source startswith "pr/")))
        | where Type startswith "test/functional/cli/"
            and not(Properties contains "runtime-staging")
        | summarize arg_max(Finished, Properties, Type, Branch, Source, Started, QueueName) by JobId
        | project-rename JobType = Type) on JobId
    | extend PropertiesJson = parse_json(Properties)
    | extend OS = replace_regex(tostring(PropertiesJson.operatingSystem), @'\((.*)\).*|([^\(].*)', @'\1\2')
    | extend Runtime = iif(PropertiesJson.runtimeFlavor == "mono", "Mono", iif(PropertiesJson.DefinitionName contains "coreclr", "CoreCLR", ""))
    | extend TargetBranch = extractjson("$.['System.PullRequest.TargetBranch']", Properties)
    | extend Architecture = PropertiesJson.architecture
    | extend Scenario = iif(isempty(PropertiesJson.scenario), "--", PropertiesJson.scenario)
    //| extend DefinitionName = PropertiesJson.DefinitionName
    | project-away PropertiesJson
};
failedTests('', 'SimpleStringChangeInSource', true, 'CompareStat failed', true);

cc @steveisok @mdh1418

@radical radical added arch-wasm WebAssembly architecture blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' area-Build-mono test-failure labels Aug 5, 2022
@radical radical self-assigned this Aug 5, 2022
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Aug 5, 2022
@radical radical added this to the 7.0.0 milestone Aug 5, 2022
@ghost
Copy link

ghost commented Aug 5, 2022

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Rolling build, and log.

    Wasm.Build.NativeRebuild.Tests.SimpleSourceChangeRebuildTest.SimpleStringChangeInSource(buildArgs: BuildArgs { ProjectName = placeholder, Config = Release, AOT = True, ProjectFileContents = placeholder, ExtraBuildArgs =  }, nativeRelink: False, invariant: False, host: Chrome, id: "kfqswgdd.hbi") [FAIL]
      CompareStat failed:
      [Expected unchanged file: System.Private.CoreLib.dll.bc]
         old: FileStat { Exists = True, LastWriteTimeUtc = 8/4/2022 9:01:26 PM, Length = 16570448, FullPath = /datadisks/disk1/work/AEEC0971/w/AF8A095A/e/kfqswgdd.hbi/obj/Release/net7.0/browser-wasm/wasm/for-publish/System.Private.CoreLib.dll.bc }
         new: FileStat { Exists = True, LastWriteTimeUtc = 8/4/2022 9:02:39 PM, Length = 16570448, FullPath = /datadisks/disk1/work/AEEC0971/w/AF8A095A/e/kfqswgdd.hbi/obj/Release/net7.0/browser-wasm/wasm/for-publish/System.Private.CoreLib.dll.bc }

Some of the source assemblies are getting aot'ed again, when rebuilding with no changes. This seems to have been introduced in #72394 which disabled caching:

//Enabled = true;

It didn't get caught because the WBT tests were failing to build because of #73312 .

cc @steveisok @mdh1418

Author: radical
Assignees: radical
Labels:

arch-wasm, blocking-clean-ci, area-Build-mono, test-failure

Milestone: -

@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Aug 5, 2022
radical added a commit to radical/runtime that referenced this issue Aug 5, 2022
.. builds.

dotnet#72394 disabled the cache always,
even when it was intended to be used. This reverses that change.

Fixes dotnet#73419
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Aug 5, 2022
radical added a commit that referenced this issue Aug 5, 2022
…al (#73427)

.. builds.

#72394 disabled the cache always,
even when it was intended to be used. This reverses that change.

Fixes #73419
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Aug 5, 2022
@karelz karelz removed the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label Aug 5, 2022
@karelz
Copy link
Member

karelz commented Aug 5, 2022

Thanks @radical for quick fix! I removed blocking-clean-ci label, assuming the problem is now gone.

@ghost ghost locked as resolved and limited conversation to collaborators Sep 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants