Skip to content

Temporarily disable distributed_actor_init_local.swift test because it's flaky #39894

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

Conversation

kubamracek
Copy link
Contributor

No description provided.

@kubamracek kubamracek requested a review from ktoso October 24, 2021 03:37
@kubamracek
Copy link
Contributor Author

@swift-ci please smoke test

Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

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

LGTM.

FYI @kavon
It seems those two:


  // TODO: it's not obvious why the resigns happen later for the async ones.
  // might need to find a way to force the deallocation at a specific point,
  // or just use check-dag or something.

  // CHECK: resign id:AnyActorIdentity(ActorAddress(address: "[[ID]]"))
  // CHECK: resign id:AnyActorIdentity(ActorAddress(address: "[[ID]]"))

don't actually happen always? So there's definitely something off with the deinits.

The error happens pretty rarely:

/Users/ktoso/code/swift-project/swift/test/Distributed/Runtime/distributed_actor_init_local.swift:147:12: error: CHECK: expected string not found in input
 // CHECK: resign id:AnyActorIdentity(ActorAddress(address: "[[ID]]"))
           ^
<stdin>:18:57: note: scanning from here
resign id:AnyActorIdentity(ActorAddress(address: "xxx"))
                                                        ^
<stdin>:18:57: note: with "ID" equal to "xxx"
resign id:AnyActorIdentity(ActorAddress(address: "xxx"))
                                                        ^

Input file: <stdin>
Check file: /Users/ktoso/code/swift-project/swift/test/Distributed/Runtime/distributed_actor_init_local.swift

-dump-input=help explains the following input dump.

Input was:
<<<<<<
             .
             .
             .
            13: assign type:PickATransport2, id:ActorAddress(address: "xxx")
            14: ready actor:main.PickATransport2, id:AnyActorIdentity(ActorAddress(address: "xxx"))
            15: assign type:Bug_CallsReadyTwice, id:ActorAddress(address: "xxx")
            16: ready actor:main.Bug_CallsReadyTwice, id:AnyActorIdentity(ActorAddress(address: "xxx"))
            17: ready actor:main.Bug_CallsReadyTwice, id:AnyActorIdentity(ActorAddress(address: "xxx"))
            18: resign id:AnyActorIdentity(ActorAddress(address: "xxx"))
check:147'0                                                             X error: no match found
check:147'1                                                               with "ID" equal to "xxx"

@kubamracek kubamracek force-pushed the disable-distributed_actor_init_local.swift branch from 9fdc2c8 to 3799f4c Compare October 24, 2021 04:50
@kubamracek
Copy link
Contributor Author

@swift-ci please smoke test

@ktoso
Copy link
Contributor

ktoso commented Oct 24, 2021

Windows failure was:

Swift(windows-x86_64) :: IRGen/async/run-partialapply-capture-structgeneric_polymorphic_constrained-to-void.sil

@ktoso ktoso merged commit 38e9f39 into swiftlang:main Oct 24, 2021
@kubamracek kubamracek deleted the disable-distributed_actor_init_local.swift branch October 24, 2021 14:20
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