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

Fix Akka.API.Tests spec always throws NRE when failed in CI/CD pipeline #4848

Merged
merged 1 commit into from Mar 12, 2021

Conversation

Arkatufus
Copy link
Contributor

The built-in FrameworkAssertReporter that is being called inside the DiffReporter class is buggy in a CI/CD environment because it is trying to be clever, could not distinguish between XUnit and XUnit2, and will throw Null Reference Exception every time it ran.

This is probably fixed in latest version of ApiApprover but we couldn't switch to the latest version because the latest ApiGenerator returns a different API report format.

FIX: This hack removes FrameworkAssertReporter from the possible reporter list and retains all of the other reporters in DiffReporter

Copy link
Contributor

@IgorFedchenko IgorFedchenko left a comment

Choose a reason for hiding this comment

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

I think you can just get this line back:
https://github.com/akkadotnet/akka.net/pull/4844/files#diff-bac245bb155e2a86b4f2d26e6059df95a7e7161cc1ba4fc740fd3cc1afa9153bL37

There was an issue for that with fix that we accidently removed in previous PR: #4765

Copy link
Contributor

@IgorFedchenko IgorFedchenko left a comment

Choose a reason for hiding this comment

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

Anyway, let's give it a try as is

@IgorFedchenko IgorFedchenko merged commit 444432a into akkadotnet:dev Mar 12, 2021
@Arkatufus Arkatufus deleted the Fix_APIApprover_NRE_bug branch April 22, 2022 13:55
@Arkatufus Arkatufus restored the Fix_APIApprover_NRE_bug branch April 22, 2022 15:15
@Arkatufus Arkatufus deleted the Fix_APIApprover_NRE_bug branch February 27, 2023 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants