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

Hot reload doesn't work on Browser AOT #54617

Open
lambdageek opened this issue Jun 23, 2021 · 8 comments
Open

Hot reload doesn't work on Browser AOT #54617

lambdageek opened this issue Jun 23, 2021 · 8 comments
Labels
arch-wasm WebAssembly architecture area-EnC-mono Hot Reload for WebAssembly, iOS/Android, etc disabled-test The test is disabled in source code against the issue
Milestone

Comments

@lambdageek
Copy link
Member

hot reload is not supported for AOTd assemblies.

Instead of disabling the test with [ActiveIssue] we need to update ApplyUpdateUtil.IsSupported to detect that we're in AOT and disable the test.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Jun 23, 2021
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@lambdageek lambdageek added area-EnC-mono Hot Reload for WebAssembly, iOS/Android, etc disabled-test The test is disabled in source code against the issue and removed untriaged New issue has not been triaged by the area owner labels Jun 23, 2021
@lambdageek lambdageek added this to the 6.0.0 milestone Jun 23, 2021
@radical radical added the arch-wasm WebAssembly architecture label Jun 24, 2021
@ghost
Copy link

ghost commented Jun 24, 2021

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

Issue Details

hot reload is not supported for AOTd assemblies.

Instead of disabling the test with [ActiveIssue] we need to update ApplyUpdateUtil.IsSupported to detect that we're in AOT and disable the test.

Author: lambdageek
Assignees: -
Labels:

arch-wasm, area-EnC-mono, disabled-test

Milestone: 6.0.0

@radical
Copy link
Member

radical commented Jun 24, 2021

@lambdageek Should #53565 be closed in favor of this?

@lambdageek
Copy link
Member Author

Oh darn, I missed that we already had an issue. I guess we should close the older one, since this one now has a reference in the code

@lewing lewing changed the title Disable test System.Reflection.Metadata.ApplyUpdateTest.StaticMethodBodyUpdate on browser AOT Hot reload doesn't work on Browser AOT Aug 4, 2021
@lewing lewing modified the milestones: 6.0.0, Future Aug 4, 2021
@lewing
Copy link
Member

lewing commented Aug 4, 2021

@lambdageek This is listed in a couple active issues now so I tried to make the description and milestone match, feel free update.

@safern
Copy link
Member

safern commented Jan 19, 2022

I just hit this test failure while adding the new runtime-extra-platforms pipeline even though the test is conditioned:

[ConditionalFact(typeof(ApplyUpdateUtil), nameof(ApplyUpdateUtil.IsSupported))]

can someone please take a look?

Here are some files to help the investigation:

@radical
Copy link
Member

radical commented Jan 19, 2022

This is being hit on rolling builds, log too.

[09:18:20] fail: [FAIL] System.Reflection.Metadata.ApplyUpdateTest.TestAddStaticLambda
[09:18:20] info: Assert.Equal() Failure
[09:18:20] info:               ↓ (pos 4)
[09:18:20] info: Expected: abcd1abcd
[09:18:20] info: Actual:   abcd
[09:18:20] info:               ↑ (pos 4)
[09:18:20] info:    at System.Reflection.RuntimeMethodInfo.InvokeWorker(Object , BindingFlags , Span`1 )
[09:18:20] fail: Running test using direct invoke
                 
[09:18:20] fail: Applying metadata update for System.Reflection.Metadata.ApplyUpdate.Test.CustomAttributeUpdate.dll, revision 1
                 
[09:18:20] fail: Running test using direct invoke
                 
[09:18:20] fail: Applying metadata update for System.Reflection.Metadata.ApplyUpdate.Test.AddLambdaCapturingThis.dll, revision 1
                 
[09:18:20] fail: [FAIL] System.Reflection.Metadata.ApplyUpdateTest.TestAddLambdaCapturingThis
[09:18:20] info: Assert.Equal() Failure
[09:18:20] info:           ↓ (pos 0)
[09:18:20] info: Expected: 42123abcd
[09:18:20] info: Actual:   123
[09:18:20] info:           ↑ (pos 0)
[09:18:20] info:    at System.Reflection.RuntimeMethodInfo.InvokeWorker(Object , BindingFlags , Span`1 )
[09:18:20] fail: Running test using direct invoke
                 
[09:18:20] fail: Applying metadata update for System.Reflection.Metadata.ApplyUpdate.Test.AddStaticField.dll, revision 1
                 
[09:18:20] fail: [FAIL] System.Reflection.Metadata.ApplyUpdateTest.TestAddStaticField
[09:18:20] info: Assert.Equal() Failure
[09:18:20] info:           ↓ (pos 0)
[09:18:20] info: Expected: 4567
[09:18:20] info: Actual:   abcd
[09:18:20] info:           ↑ (pos 0)
[09:18:20] info:    at System.Reflection.RuntimeMethodInfo.InvokeWorker(Object , BindingFlags , Span`1 )

@radical radical added the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label Jan 19, 2022
@lambdageek
Copy link
Member Author

@radical please disable the failing tests for AOT configurations. Hot reload is not supported for AOTd assemblies

@radical radical removed the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label Jan 21, 2022
@lambdageek lambdageek removed their assignment Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm WebAssembly architecture area-EnC-mono Hot Reload for WebAssembly, iOS/Android, etc disabled-test The test is disabled in source code against the issue
Projects
None yet
Development

No branches or pull requests

4 participants