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

aspnetcore test failing on mono runtime #48710

Closed
1 task done
Sapana-Khemkar opened this issue Jun 11, 2023 · 3 comments
Closed
1 task done

aspnetcore test failing on mono runtime #48710

Sapana-Khemkar opened this issue Jun 11, 2023 · 3 comments
Assignees
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework bug This issue describes a behavior which is not expected - a bug.
Milestone

Comments

@Sapana-Khemkar
Copy link
Contributor

Sapana-Khemkar commented Jun 11, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When running aspnetcore tests on ppc64le arch (with mono runtime) around 200 test cases failed with below error

System.MethodAccessException: System.MethodAccessException : Method `Microsoft.CodeAnalysis.Testing.AnalyzerInfo+CustomAnalysisContext..ctor()' is inaccessible from method `CustomAnalysisContextImpl..ctor()'
    at CustomAnalysisContextImpl..ctor()
at System.Object.InvokeStub_CustomAnalysisContextImpl..ctor(Object , Object , IntPtr* )
at System.Reflection.ConstructorInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

This issue has been already reported on dotnet/runtime repo through issue 69823 and 60650.

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Jun 11, 2023
@Sapana-Khemkar
Copy link
Contributor Author

As of now these tests are skipped on runtime for mono using ActiveIssueAttribute
I am trying to do the same on aspnetcore using ConditionFactAttribute as below but it did not work.

[ConditionalFact]
   //https://github.com/dotnet/runtime/issues/69823
   [FrameworkSkipCondition(RuntimeFrameworks.Mono)]

Can someone help me how to skip specific test for mono on aspnetcore?

@mkArtakMSFT mkArtakMSFT added the bug This issue describes a behavior which is not expected - a bug. label Jun 13, 2023
@mkArtakMSFT mkArtakMSFT added this to the Backlog milestone Jun 13, 2023
@ghost
Copy link

ghost commented Jun 13, 2023

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

@wtgodbe
Copy link
Member

wtgodbe commented Jun 13, 2023

Closing as dupe of #48688 - we don't test on mono in our CI, but you should be able to modify the code mentioned in #48688 (comment) to allow those tests to be skipped on mono. We would welcome a PR for that.

@wtgodbe wtgodbe closed this as not planned Won't fix, can't repro, duplicate, stale Jun 13, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jul 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework bug This issue describes a behavior which is not expected - a bug.
Projects
None yet
Development

No branches or pull requests

3 participants