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 timeouts in the malicious site test suite #3646

Merged

Conversation

samsymons
Copy link
Collaborator

This allows us to still detect failures when the suite doesn't time out.

Task/Issue URL: https://app.asana.com/0/1199230911884351/1208926848453614/f
Tech Design URL:
CC:

Description:

This PR updates the malicious site tests to ignore time outs. These tests rely on an outside dependency which is not reliably loading; rather than disable them entirely, let's run them as expected in cases where the timeout doesn't occur.

Optional E2E tests:

  • Run PIR E2E tests
    Check this to run the Personal Information Removal end to end tests. If updating CCF, or any PIR related code, tick this.

Steps to test this PR:

  1. Check that the CI runs do not show any failures related to this test suite

Definition of Done:


Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

This allows us to still detect failures when the suite doesn't time out.
@samsymons samsymons requested a review from ayoy December 7, 2024 02:06

switch result {
case .completed: break
case .timedOut: throw XCTSkip("Test timed out")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the key change of the PR, when we receive a time out we should skip it. This allows us to still check the conditions as usual when the timeouts aren't happening, but avoids failing the whole run otherwise. It'd be better to improve the test resilience properly, but for now I just want to get rid of the failures.

Copy link
Collaborator

@ayoy ayoy left a comment

Choose a reason for hiding this comment

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

LGTM, I like skipping on external service timeout 👏 thanks @samsymons!

@samsymons samsymons merged commit b927078 into main Dec 9, 2024
21 checks passed
@samsymons samsymons deleted the sam/update-malicious-sites-test-to-have-timeout-resilience branch December 9, 2024 14:56
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