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

Ignore test_failures if the overall status is 'succeeded' #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jaysirju
Copy link

Addresses #73

Only parse test_failures if the overall status is not 'succeeded'. This ensures that tests that pass via test repetition do not show up as a false negative.

].flatten.compact.map do |summary|
result = Result.new(summary.message, parse_location(summary.document_location_in_creating_workspace))
Result.new(format_test_failure(result, summary.producing_target, summary.test_case_name),
if action.action_result.status != 'succeeded' then
Copy link

Choose a reason for hiding this comment

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

I'm not sure if this fully fixes the issue though. For example, If I have 2 tests, one which passed on 2nd iteration and another which failed all iterations, then this would post 2 test failures to the PR instead of just 1. Could lead to confusing results?

Copy link
Author

Choose a reason for hiding this comment

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

@jwelton you are 100% right, this really only fixes the case where the overall action succeeds with after a retry. Looking further into this, I'm wondering if this needs to be handled in the xcresult gem itself...

Choose a reason for hiding this comment

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

@nekrich
Copy link

nekrich commented Jan 12, 2024

@diogot, any chances of merging this?

@diogot
Copy link
Owner

diogot commented Feb 14, 2024

Hi, if anyone add tests for this this feature I can merge this PR.

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.

6 participants