Skip to content

[Collections] Disable target trie in some of the tests #3629

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

Merged
merged 1 commit into from
Jul 21, 2021

Conversation

yim-lee
Copy link
Contributor

@yim-lee yim-lee commented Jul 21, 2021

Motivation:
Some of the package collection tests don't require search and finish quickly, so when background thread tries to populateTargetTrie it results in signal 4.

For example:

10:23:08 Test Suite 'PackageCollectionsTests' started at 2021-07-20 10:21:53.935
10:23:08 Test Case '-[PackageCollectionsTests.PackageCollectionsTests testCollectionPendingTrustConfirmIsKeptOnAdd]' started.
10:23:08 Test Case '-[PackageCollectionsTests.PackageCollectionsTests testCollectionPendingTrustConfirmIsKeptOnAdd]' passed (0.105 seconds).
10:23:08 Exited with signal code 4

Modifications:
Set initializeTargetTrie to false for these tests such that populateTargetTrie is not called.

Motivation:
Some of the package collection tests don't require search and finish quickly, so when background thread tries to `populateTargetTrie` it results in signal 4.

For [example](swiftlang#3623 (comment)):

```
10:23:08 Test Suite 'PackageCollectionsTests' started at 2021-07-20 10:21:53.935
10:23:08 Test Case '-[PackageCollectionsTests.PackageCollectionsTests testCollectionPendingTrustConfirmIsKeptOnAdd]' started.
10:23:08 Test Case '-[PackageCollectionsTests.PackageCollectionsTests testCollectionPendingTrustConfirmIsKeptOnAdd]' passed (0.105 seconds).
10:23:08 Exited with signal code 4
```

Modifications:
Set `initializeTargetTrie` to `false` for these tests such that `populateTargetTrie` is not called.
@yim-lee
Copy link
Contributor Author

yim-lee commented Jul 21, 2021

@swift-ci please smoke test

@yim-lee yim-lee merged commit 723679a into swiftlang:main Jul 21, 2021
@yim-lee yim-lee deleted the disable-trie-in-tests branch July 21, 2021 17:03
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