-
Notifications
You must be signed in to change notification settings - Fork 78
[WIP] New multi-node infrastructure for integration tests #1055
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
ktoso
merged 34 commits into
apple:main
from
ktoso:wip-multi-node-integration-test-infra
Aug 17, 2022
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
a325d27
+multinode Introduce better integration test infrastructure WIP
ktoso 91a2d1e
=build verify dependencies in `main` CI
ktoso f7b636e
initial integration test infra
ktoso f804b14
enable integration in docker
ktoso a01900b
killall may not be available; just ignore it then (e.g. in container, so
ktoso 9e12e49
[multi-node] working multinode tests though issue with serialization …
ktoso 30ac915
serialization fix - dont use the specialized one for string - TRY
ktoso 7e8421e
wip
ktoso c79dd52
[InspectKit] Actor leak detection, since we always leak actors now af…
ktoso ebb5074
disable automatic leak reporting until we're good here
ktoso 2b4f56d
fix encodings
ktoso 5403b95
formatting
ktoso dc9944c
okey progress in checkpoint fixes; local calls handled with timeout too
ktoso b7342ad
minor cleanup
ktoso 0036477
regex workaround
ktoso 7c25280
-leak stop leaking well known actors; release them during shutdown (i…
ktoso 34db819
=cluster simplify membership holder to avoid racing with the join() i…
ktoso 83f7701
fix leaks, some cleanups;
ktoso 0d96f53
=test silence logging in ActorTestProbeTests
ktoso c1e764b
-regex can't use regex on 5.7 on linux because of rdar://98705227
ktoso 717fdab
~rename base test class to SingleClusterSystemXCTestCase to make it m…
ktoso d1dad32
simplify test_shutdown_shouldCompleteReturnedHandleWhenDone
ktoso ed1d648
formatting
ktoso 737a5d1
=multinode implemnent test filtering
ktoso 55fab7c
=singleton harden multinode test for singleton
ktoso ab01b7e
=docker cant keep privileged in docker files
ktoso e47c16c
=receptionist use OrderedSet to avoid ordering issues ordering bugs/h…
ktoso 3ab44e7
=multinode terminate process if it hangs
ktoso c0e0ea7
=multinode better handling of stuck processes
ktoso 2d72e32
minor improvement to OrderedSet filter
ktoso d872d20
=regex workaround for crashes on String.starts(with:) caused by rdar:…
ktoso fef95e8
=test unlock dumping tests after a lockd up test detected
ktoso c920b58
remove println
ktoso 4645dfe
=soundness needs workaround for experimental regex now
ktoso File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| //===----------------------------------------------------------------------===// | ||
| // | ||
| // This source file is part of the Swift Distributed Actors open source project | ||
| // | ||
| // Copyright (c) 2018-2022 Apple Inc. and the Swift Distributed Actors project authors | ||
| // Licensed under Apache License v2.0 | ||
| // | ||
| // See LICENSE.txt for license information | ||
| // See CONTRIBUTORS.md for the list of Swift Distributed Actors project authors | ||
| // | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
| // | ||
| //===----------------------------------------------------------------------===// | ||
|
|
||
| import OrderedCollections | ||
|
|
||
| extension OrderedSet { | ||
| // FIXME(collections): implemented for real in https://github.com/apple/swift-collections/pull/159 | ||
| @inlinable | ||
| internal func _filter( | ||
| _ isIncluded: (Element) throws -> Bool | ||
| ) rethrows -> Self { | ||
| var result: OrderedSet = Self() | ||
| for element in self where try isIncluded(element) { | ||
| result.append(element) | ||
| } | ||
| return result | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing operation in OrderedSet; upstreaming better impl: apple/swift-collections#159
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the
uncheckedUniqueElementsinitializer would generally give better performance here:This prevents multiple rehashings of the result while it is being constructed. Copying the contents twice would still be slower than what the package can do, but reducing hash operations would still be a considerable boost!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks for the hint!