Skip to content

Added runtime dependency to fix the intermittent test failures - #54587

Merged
lewing merged 5 commits into
dotnet:mainfrom
Daniel-Genkin:fixing-mono-config
Jun 23, 2021
Merged

Added runtime dependency to fix the intermittent test failures#54587
lewing merged 5 commits into
dotnet:mainfrom
Daniel-Genkin:fixing-mono-config

Conversation

@Daniel-Genkin

Copy link
Copy Markdown
Contributor

Fixed the intermittent test failures caused by mono-config.json being loaded out of order

@ghost

Copy link
Copy Markdown

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

Issue Details

Fixed the intermittent test failures caused by mono-config.json being loaded out of order

Author:Daniel-Genkin
Assignees:-
Labels:

area-VM-meta-mono

Milestone:-

@Daniel-Genkin

Daniel-Genkin commented Jun 23, 2021

Copy link
Copy Markdown
ContributorAuthor

@kg Is this what you meant? Also, can you please add the necessary reviewers. I still don't have access to do it.

preInit: async function() {
Module.addRunDependency('mono-config.json');
Module.config = await MONO.mono_wasm_load_config("./mono-config.json");
Module.removeDependency('mono-config.json');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Indentation got mucked up here

@kg

kg commented Jun 23, 2021

Copy link
Copy Markdown
Contributor

It might make sense to hoist all this complexity into mono_wasm_load_config, and introduce a 'mono_wasm_load_config_async' which adds the dependency, kicks off the async load, then removes the dependency. That way you don't have to touch all these files any time something changes, and it's easy for people to properly imitate the pattern.

@Daniel-Genkin

Daniel-Genkin commented Jun 23, 2021

Copy link
Copy Markdown
ContributorAuthor

Sorry, I was rushing. Haha this is straight from my nightmares. Also, I can't test it locally since my local machine's build is currently messed up

@lewinglewing left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

pass configFilePath as the

Comment threadsrc/mono/wasm/runtime/library_mono.js Outdated
Comment threadsrc/mono/wasm/runtime/library_mono.js
@Daniel-GenkinDaniel-Genkin changed the title Added runtime dependency to hopefully fix the intermittent test failuresAdded runtime dependency to fix the intermittent test failuresJun 23, 2021
@lewinglewing added the arch-wasm WebAssembly architecture label Jun 23, 2021
@ghost

Copy link
Copy Markdown

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

Issue Details

Fixed the intermittent test failures caused by mono-config.json being loaded out of order

Author:Daniel-Genkin
Assignees:-
Labels:

arch-wasm, area-VM-meta-mono

Milestone:-

@lewing
lewing merged commit d87b783 into dotnet:mainJun 23, 2021
@lewing

lewing commented Jun 23, 2021

Copy link
Copy Markdown
Member

This is a JavaScript only change that cannot impact the other failing lanes.

thaystg added a commit to thaystg/runtime that referenced this pull request Jun 23, 2021
…nitial_config
* origin/main: (362 commits)
[wasm][debugger] Reuse debugger-agent on wasm debugger (dotnet#52300)
Put Crossgen2 in sync with dotnet#54235 (dotnet#54438)
Move System.Object serialization to ObjectConverter (dotnet#54436)
Move setting fHasVirtualStaticMethods out of sanity check section (dotnet#54574)
[wasm] Compile .bc->.o in parallel, before passing to the linker (dotnet#54053)
Change PathInternal.IsCaseSensitive to a constant (dotnet#54340)
Make mono_polling_required a public symbol (dotnet#54592)
Respect EventSource::IsSupported setting in more codepaths (dotnet#51977)
Root ComActivator for hosting (dotnet#54524)
Add ILLink annotations to S.D.Common related to DbConnectionStringBuilder (dotnet#54280)
Fix finalizer issue with regions (dotnet#54550)
Add support for multi-arch install locations (dotnet#53763)
Update library testing docs page to reduce confusion (dotnet#54324)
[FileStream] handle UNC and device paths (dotnet#54483)
Update NetAnalyzers version (dotnet#54511)
Added runtime dependency to fix the intermittent test failures (dotnet#54587)
Disable failing System.Reflection.Tests.ModuleTests.GetMethods (dotnet#54564)
[wasm] Move AOT builds from `runtime-staging` to `runtime` (dotnet#54577)
Keep obj node for ArrayIndex. (dotnet#54584)
Disable another failing MemoryCache test (dotnet#54578)
...
@ghostghost locked as resolved and limited conversation to collaborators Jul 23, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasmWebAssembly architecturearea-VM-meta-mono

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@Daniel-Genkin@kg@lewing