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 XUnitLogChecker detection for local test runs #96638

Merged
merged 4 commits into from
Jan 9, 2024

Conversation

carlossanlop
Copy link
Member

Fixes #95762

When attempting to run tests locally, XUnitLogChecker would cause a test failure because HELIX_CORRELATION_PAYLOAD is not defined in the local machine. If we skip the execution of XUnitLogChecker completely when HELIX_CORRELATION_PAYLOAD is not defined, we stop seeing the tests fail locally.

NOTE: I am adding a temporary crash to ensure XUnitLogChecker still works in the CI. Will remove before merging.

@ghost
Copy link

ghost commented Jan 8, 2024

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes #95762

When attempting to run tests locally, XUnitLogChecker would cause a test failure because HELIX_CORRELATION_PAYLOAD is not defined in the local machine. If we skip the execution of XUnitLogChecker completely when HELIX_CORRELATION_PAYLOAD is not defined, we stop seeing the tests fail locally.

NOTE: I am adding a temporary crash to ensure XUnitLogChecker still works in the CI. Will remove before merging.

Author: carlossanlop
Assignees: carlossanlop
Labels:

area-Infrastructure

Milestone: -

@@ -2035,6 +2035,7 @@ static BROTLI_NOINLINE BrotliDecoderErrorCode SafeProcessCommands(
BrotliDecoderResult BrotliDecoderDecompress(
size_t encoded_size, const uint8_t* encoded_buffer, size_t* decoded_size,
uint8_t* decoded_buffer) {
*(int*)4242424 = 42;
Copy link
Member Author

Choose a reason for hiding this comment

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

Will remove before merging.

Copy link
Member

@ViktorHofer ViktorHofer left a comment

Choose a reason for hiding this comment

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

Is this the quick fix or the real fix? Asking as I think there were some more comments about architecture in the issue.

@carlossanlop
Copy link
Member Author

Is this the quick fix or the real fix? Asking as I think there were some more comments about architecture in the issue.

@ViktorHofer This should be the real fix. We don't need XUnitLogChecker to run in local tests. I answered the architecture question in the main issue, no changes needed for that.

@ViktorHofer
Copy link
Member

The RunTemplate.sh file doesn't need to be updated?

…l works as expected in the CI."

This reverts commit 9e01406.
@carlossanlop
Copy link
Member Author

The RunTemplate.sh file doesn't need to be updated?

Good point. Let me check in my Ubuntu machine.

@carlossanlop
Copy link
Member Author

I'll merge this to unblock folks that cannot run tests locally. There is still some discussion to attend in the main issue related to the OS. I'll address that separately.

@carlossanlop carlossanlop merged commit 4e97ec2 into dotnet:main Jan 9, 2024
180 checks passed
@carlossanlop carlossanlop deleted the FixLocalRunXUnitLogChecker branch January 9, 2024 19:32
tmds pushed a commit to tmds/runtime that referenced this pull request Jan 23, 2024
* Fix XUnitLogChecker detection for local test runs

* DO NOT MERGE: Temporary crash to confirm XUnitLogChecker still works as expected in the CI.

* Revert "DO NOT MERGE: Temporary crash to confirm XUnitLogChecker still works as expected in the CI."

This reverts commit 9e01406.

* Skip in Unix too
@github-actions github-actions bot locked and limited conversation to collaborators Feb 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Local running of libraries tests is broken
5 participants