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

Update test results without depending on data from parent test task #33

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

mnoah1
Copy link
Collaborator

@mnoah1 mnoah1 commented Jan 7, 2025

Recent changes within the bazel-bsp are resulting in blank parent ID/build target ID values for test case results. Issue has been documented here (https://youtrack.jetbrains.com/issue/BAZEL-1585) and is prioritized for this release cycle.

This extension currently depends on those fields to update pass/fail status for individual test cases.

In order to unblock updating this extension to the latest bazel-bsp version, this PR includes a workaround to look for the test case under each target in the run. Since this is less explicit than the prior approach, there is potential for collisions if the same test case appears in multiple targets in the same run. However, this is not a typical expected scenario that users are likely to face in our setup, so we can proceed with this temporarily for now and revert to the prior approach once the upstream issue has been addressed.

@mnoah1 mnoah1 marked this pull request as ready for review January 7, 2025 21:02
@mnoah1 mnoah1 changed the title Update test results regardless of target Update test results without depending on data from parent test task Jan 7, 2025
Copy link
Collaborator

@shuklahy shuklahy left a comment

Choose a reason for hiding this comment

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

lgtm

@mnoah1 mnoah1 merged commit 0d1e662 into uber:main Jan 8, 2025
4 checks passed
@mnoah1 mnoah1 deleted the results-workaround branch January 8, 2025 14:31
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.

2 participants