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

Unstable test EmbeddedSubProcessTest.shouldNotTriggerBoundaryEventWhenFlowscopeIsInterrupted #11844

Closed
oleschoenburg opened this issue Feb 28, 2023 · 8 comments · Fixed by #12697, #13497 or #13498
Assignees
Labels
component/engine kind/flake Categorizes issue or PR as related to a flaky test version:8.1.13 Marks an issue as being completely or in parts released in 8.1.13 version:8.1.15 Marks an issue as being completely or in parts released in 8.1.15 version:8.2.5 Marks an issue as being completely or in parts released in 8.2.5 version:8.2.9 Marks an issue as being completely or in parts released in 8.2.9 version:8.3.0-alpha2 Marks an issue as being completely or in parts released in 8.3.0-alpha2 version:8.3.0-alpha4 Marks an issue as being completely or in parts released in 8.3.0-alpha4 version:8.3.0 Marks an issue as being completely or in parts released in 8.3.0

Comments

@oleschoenburg
Copy link
Member

oleschoenburg commented Feb 28, 2023

Summary

Try to answer the following as best as possible

  • How often does the test fail? At least three times
  • Does it block your work? It's beginning to block merges
  • Do we suspect that it is a real failure? Probably not

Failures

Outline known failure cases, e.g. a failed assertion and its stacktrace obtained from Jenkins

Example assertion failure
java.lang.AssertionError: 

Expecting actual:
[]
to contain exactly (and in same order):
["msgBoundary", "eventSubProcessStartEvent"]
but could not find the following elements:
["msgBoundary", "eventSubProcessStartEvent"]

at io.camunda.zeebe.engine.processing.bpmn.subprocess.EmbeddedSubProcessTest.shouldNotTriggerBoundaryEventWhenFlowscopeIsInterrupted(EmbeddedSubProcessTest.java:663)

Hypotheses

List any hypotheses if you have one; can be ommitted

Logs
https://github.com/camunda/zeebe/actions/runs/4289453228/jobs/7472507432
https://github.com/camunda/zeebe/actions/runs/4290687672/jobs/7475272618
https://github.com/camunda/zeebe/actions/runs/4293686871/jobs/7481685355

@oleschoenburg oleschoenburg added the kind/flake Categorizes issue or PR as related to a flaky test label Feb 28, 2023
@korthout
Copy link
Member

korthout commented Mar 1, 2023

We should tackle flaky tests as soon as we can. Marking as upcoming.

@abbasadel
Copy link
Contributor

ZPA Planning:

  • this is a good candidate for the Mob programming session.

zeebe-bors-camunda bot added a commit that referenced this issue May 9, 2023
12718: [Backport stable/8.1] Fix flaky `EmbeddedSubProcessTest` r=remcowesterhoud a=backport-action

# Description
Backport of #12697 to `stable/8.1`.

relates to #11844

Co-authored-by: Remco Westerhoud <remco@westerhoud.nl>
zeebe-bors-camunda bot added a commit that referenced this issue May 9, 2023
12719: [Backport stable/8.2] Fix flaky `EmbeddedSubProcessTest` r=remcowesterhoud a=backport-action

# Description
Backport of #12697 to `stable/8.2`.

relates to #11844

Co-authored-by: Remco Westerhoud <remco@westerhoud.nl>
zeebe-bors-camunda bot added a commit that referenced this issue May 10, 2023
12721: [Backport stable/8.0] Fix flaky `EmbeddedSubProcessTest` r=remcowesterhoud a=remcowesterhoud

# Description
Backport of #12697 to `stable/8.0`.

relates to #11844

Co-authored-by: Remco Westerhoud <remco@westerhoud.nl>
@oleschoenburg oleschoenburg added the version:8.2.5 Marks an issue as being completely or in parts released in 8.2.5 label May 16, 2023
@rodrigo-lourenco-lopes
Copy link
Contributor

It seems that this unit test is still flaky.

It failed a few times on this PR:

https://github.com/camunda/zeebe/actions/runs/5134009576/jobs/9237391641

Perhaps it is worth to reopen this issue, or should we see if it happens in more places? wdyt @oleschoenburg

@oleschoenburg
Copy link
Member Author

Let's reopen so ZPA is aware and can look into it if they want to. I'm not sure if this is just flakiness or a potential bug.

@oleschoenburg oleschoenburg reopened this Jun 1, 2023
@remcowesterhoud remcowesterhoud removed their assignment Jun 1, 2023
@korthout
Copy link
Member

korthout commented Jun 1, 2023

Moving flaky tests immediately into ready, because these are always urgent.

@oleschoenburg oleschoenburg added version:8.3.0-alpha2 Marks an issue as being completely or in parts released in 8.3.0-alpha2 version:8.1.13 Marks an issue as being completely or in parts released in 8.1.13 release/8.0.16 and removed release/8.0.17 labels Jun 7, 2023
@remcowesterhoud remcowesterhoud self-assigned this Jun 13, 2023
@remcowesterhoud
Copy link
Contributor

remcowesterhoud commented Jun 15, 2023

Over the last days I ran this about 12k times without failure. As I don't have access to the test reports of the CI anymore I don't really have any options to debug this any further.

Because of this I will close this now. Might it still be flaky? Sure. If someone in the future encounters a run where this is flaky please reopen it. It would also help if the test reports are attached, so it doesn't matter if they expire.

@Zelldon
Copy link
Member

Zelldon commented Jul 7, 2023

Failed again on 8.0 https://github.com/camunda/zeebe/actions/runs/5467428696/jobs/9953723997

#13360

Test results for unit tests (1).zip

@Zelldon Zelldon reopened this Jul 7, 2023
@korthout
Copy link
Member

korthout commented Jul 7, 2023

Here's the process model:

Screenshot 2023-07-07 at 10 52 16

Here's the assertion failure of run 2:

Run 2: EmbeddedSubProcessTest.shouldNotTriggerBoundaryEventWhenFlowscopeIsInterrupted:677 
Expecting empty but was: 
[
  {
    "valueType": "PROCESS_EVENT",
    "key": 2251799813685267,
    "position": 62,
    "timestamp": 1688580352932,
    "recordType": "EVENT",
    "intent": "TRIGGERED",
    "partitionId": 1,
    "rejectionType": "NULL_VAL",
    "rejectionReason": "",
    "brokerVersion": "8.0.19",
    "value": {
      "processDefinitionKey": 2251799813685249,
      "processInstanceKey": 2251799813685251,
      "variables": {},
      "targetElementId": "msgBoundary",
      "scopeKey": 2251799813685257
    },
    "sourceRecordPosition": 55
  }
]

Here's the extracted compact record logger output for that same run:

--------
	['C'ommand/'E'event/'R'ejection] [valueType] [intent] - #[position]->#[source record position] K[key] - [summary of value]
	P9K999 - key; #999 - record position; "ID" element/process id; @"elementid"/[P9K999] - element with ID and key
	Keys are decomposed into partition id and per partition key (e.g. 2251799813685253 -> P1K005). If single partition, the partition is omitted.
	Long IDs are shortened (e.g. 'startEvent_5d56488e-0570-416c-ba2d-36d2a3acea78' -> 'star..acea78'
--------
C DPLY         CREATE            - #01-> -1  -1 - 
E PROC         CREATED           - #02->#01 K01 - process.xml -> "process..process" (version:1)
E DPLY         CREATED           - #03->#01 K02 - process.xml
E DPLY         FULLY_DISTRIBUTED - #04->#01 K02 - 
C CREA         CREATE            - #05-> -1  -1 - new <process "process..process"> with variables: {correlationKey=correlationKey}
E VAR          CREATED           - #06->#05 K04 - correlationKey->"correlationKey" in <process [K03]>
C PI           ACTIVATE          - #07->#05 K03 - PROCESS "process..process" in <process "process..process"[K03]>
E CREA         CREATED           - #08->#05 K05 - new <process "process..process"> with variables: {correlationKey=correlationKey}
E PI           ACTIVATING        - #09->#07 K03 - PROCESS "process..process" in <process "process..process"[K03]>
E PI           ACTIVATED         - #10->#07 K03 - PROCESS "process..process" in <process "process..process"[K03]>
C PI           ACTIVATE          - #11->#07  -1 - START_EVENT "startEv..a7bc01a" in <process "process..process"[K03]>
E PI           ACTIVATING        - #12->#11 K06 - START_EVENT "startEv..a7bc01a" in <process "process..process"[K03]>
E PI           ACTIVATED         - #13->#11 K06 - START_EVENT "startEv..a7bc01a" in <process "process..process"[K03]>
C PI           COMPLETE          - #14->#11 K06 - START_EVENT "startEv..a7bc01a" in <process "process..process"[K03]>
E PI           COMPLETING        - #15->#14 K06 - START_EVENT "startEv..a7bc01a" in <process "process..process"[K03]>
E PROC_MSG_SUB CREATING          - #16->#14 K07 - "eventSubProcess" (inter.) correlationKey: correlationKey @[K03] in <process "process..process"[K03]> (no vars)
E PI           COMPLETED         - #17->#14 K06 - START_EVENT "startEv..a7bc01a" in <process "process..process"[K03]>
E PI           SEQ_FLOW_TAKEN    - #18->#14 K08 - SEQUENCE_FLOW "sequenc..81ce6f0" in <process "process..process"[K03]>
C PI           ACTIVATE          - #19->#14 K09 - SUB_PROCESS "subProcess" in <process "process..process"[K03]>
C MSG_SUB      CREATE            - #20-> -1  -1 - "eventSubProcess" (inter.) correlationKey: correlationKey @[K03] in <process "process..process"[K03]> (no vars)
E PI           ACTIVATING        - #21->#19 K09 - SUB_PROCESS "subProcess" in <process "process..process"[K03]>
E PI           ACTIVATED         - #22->#19 K09 - SUB_PROCESS "subProcess" in <process "process..process"[K03]>
C PI           ACTIVATE          - #23->#19  -1 - START_EVENT "startEv..0abbb77" in <process "process..process"[K03]>
E MSG_SUB      CREATED           - #24->#20 K10 - "eventSubProcess" (inter.) correlationKey: correlationKey @[K03] in <process "process..process"[K03]> (no vars)
C PROC_MSG_SUB CREATE            - #25-> -1  -1 - "eventSubProcess" (inter.) @[K03] in <process ?[K03]> (no vars)
E PI           ACTIVATING        - #26->#23 K11 - START_EVENT "startEv..0abbb77" in <process "process..process"[K03]>
E PI           ACTIVATED         - #27->#23 K11 - START_EVENT "startEv..0abbb77" in <process "process..process"[K03]>
C PI           COMPLETE          - #28->#23 K11 - START_EVENT "startEv..0abbb77" in <process "process..process"[K03]>
E PROC_MSG_SUB CREATED           - #29->#25 K07 - "eventSubProcess" (inter.) correlationKey: correlationKey @[K03] in <process "process..process"[K03]> (no vars)
E PI           COMPLETING        - #30->#28 K11 - START_EVENT "startEv..0abbb77" in <process "process..process"[K03]>
E PROC_MSG_SUB CREATING          - #31->#28 K12 - "boundary" (inter.) correlationKey: correlationKey @[K09] in <process "process..process"[K03]> (no vars)
E PI           COMPLETED         - #32->#28 K11 - START_EVENT "startEv..0abbb77" in <process "process..process"[K03]>
E PI           SEQ_FLOW_TAKEN    - #33->#28 K13 - SEQUENCE_FLOW "sequenc..7148367" in <process "process..process"[K03]>
C PI           ACTIVATE          - #34->#28 K14 - SERVICE_TASK "task" in <process "process..process"[K03]>
C MSG_SUB      CREATE            - #35-> -1  -1 - "boundary" (inter.) correlationKey: correlationKey @[K09] in <process "process..process"[K03]> (no vars)
E PI           ACTIVATING        - #36->#34 K14 - SERVICE_TASK "task" in <process "process..process"[K03]>
E JOB          CREATED           - #37->#34 K15 - K15 "task" @"task"[K14] 3 retries, in <process "process..process"[K03]> (no vars)
E PI           ACTIVATED         - #38->#34 K14 - SERVICE_TASK "task" in <process "process..process"[K03]>
E MSG_SUB      CREATED           - #39->#35 K16 - "boundary" (inter.) correlationKey: correlationKey @[K09] in <process "process..process"[K03]> (no vars)
C PROC_MSG_SUB CREATE            - #40-> -1  -1 - "boundary" (inter.) @[K09] in <process ?[K03]> (no vars)
C MSG          PUBLISH           - #41-> -1 K01 - "boundary" correlationKey: correlationKey (no vars)
C MSG          PUBLISH           - #42-> -1 K01 - "eventSubProcess" correlationKey: correlationKey (no vars)
E PROC_MSG_SUB CREATED           - #43->#40 K12 - "boundary" (inter.) correlationKey: correlationKey @[K09] in <process "process..process"[K03]> (no vars)
E MSG          PUBLISHED         - #44->#41 K17 - "boundary" correlationKey: correlationKey (no vars)
E MSG_SUB      CORRELATING       - #45->#41 K16 - "boundary" (inter.) correlationKey: correlationKey @[K09] in <process "process..process"[K03]> (no vars)
E MSG          EXPIRED           - #46->#41 K17 - "boundary" correlationKey: correlationKey (no vars)
C PROC_MSG_SUB CORRELATE         - #47-> -1  -1 - "boundary" (inter.) correlationKey: correlationKey @[K09] in <process "process..process"[K03]> (no vars)
E MSG          PUBLISHED         - #48->#42 K18 - "eventSubProcess" correlationKey: correlationKey (no vars)
E MSG_SUB      CORRELATING       - #49->#42 K10 - "eventSubProcess" (inter.) correlationKey: correlationKey @[K03] in <process "process..process"[K03]> (no vars)
E MSG          EXPIRED           - #50->#42 K18 - "eventSubProcess" correlationKey: correlationKey (no vars)
E PROC_MSG_SUB CORRELATED        - #51->#47 K12 - "boundary" (inter.) correlationKey: correlationKey @[K09] in <process "process..process"[K03]> (no vars)
E PROC_EVNT    TRIGGERING        - #52->#47 K19 -  @"msgBoundary"[K09] in <process K01[K03]> (no vars)
C PI           TERMINATE         - #53->#47 K09 - SUB_PROCESS "subProcess" in <process "process..process"[K03]>
E PI           TERMINATING       - #54->#53 K09 - SUB_PROCESS "subProcess" in <process "process..process"[K03]>
C PI           TERMINATE         - #55->#53 K14 - SERVICE_TASK "task" in <process "process..process"[K03]>
C PROC_MSG_SUB CORRELATE         - #56-> -1  -1 - "eventSubProcess" (inter.) correlationKey: correlationKey @[K03] in <process "process..process"[K03]> (no vars)
C MSG_SUB      CORRELATE         - #57-> -1  -1 - "boundary" (inter.) @[K09] in <process "process..process"[K03]> (no vars)
E PI           TERMINATING       - #58->#55 K14 - SERVICE_TASK "task" in <process "process..process"[K03]>
E JOB          CANCELED          - #59->#55 K15 - K15 "task" @"task"[K14] 3 retries, in <process "process..process"[K03]> (no vars)
E PI           TERMINATED        - #60->#55 K14 - SERVICE_TASK "task" in <process "process..process"[K03]>
E PI           TERMINATED        - #61->#55 K09 - SUB_PROCESS "subProcess" in <process "process..process"[K03]>
E PROC_EVNT    TRIGGERED         - #62->#55 K19 -  @"msgBoundary"[K09] in <process K01[K03]> (no vars)
E PI           ACTIVATING        - #63->#55 K20 - BOUNDARY_EVENT "msgBoundary" in <process "process..process"[K03]>
E PI           ACTIVATED         - #64->#55 K20 - BOUNDARY_EVENT "msgBoundary" in <process "process..process"[K03]>
C PI           COMPLETE          - #65->#55 K20 - BOUNDARY_EVENT "msgBoundary" in <process "process..process"[K03]>
E PROC_MSG_SUB CORRELATED        - #66->#56 K07 - "eventSubProcess" (inter.) correlationKey: correlationKey @[K03] in <process "process..process"[K03]> (no vars)
E PROC_EVNT    TRIGGERING        - #67->#56 K21 -  @"eventSu..rtEvent"[K03] in <process K01[K03]> (no vars)
C PI           TERMINATE         - #68->#56 K20 - BOUNDARY_EVENT "msgBoundary" in <process "process..process"[K03]>
C MSG_SUB      CORRELATE         - #69-> -1  -1 - "eventSubProcess" (inter.) @[K03] in <process "process..process"[K03]> (no vars)
E MSG_SUB      CORRELATED        - #70->#57 K16 - "boundary" (inter.) correlationKey: correlationKey @[K09] in <process "process..process"[K03]> (no vars)
R PI           COMPLETE          - #71->#65 K20 - BOUNDARY_EVENT "msgBoundary" in <process "process..process"[K03]> !INVALID_STATE (Expected flow scope instance to be not interrupted but was interrupted by an event with id 'eventSubProcess'.)
E PI           TERMINATING       - #72->#68 K20 - BOUNDARY_EVENT "msgBoundary" in <process "process..process"[K03]>
E PI           TERMINATED        - #73->#68 K20 - BOUNDARY_EVENT "msgBoundary" in <process "process..process"[K03]>
C PI           ACTIVATE          - #74->#68  -1 - EVENT_SUB_PROCESS "eventSubProcess" in <process "process..process"[K03]>
E MSG_SUB      CORRELATED        - #75->#69 K10 - "eventSubProcess" (inter.) correlationKey: correlationKey @[K03] in <process "process..process"[K03]> (no vars)
E PI           ACTIVATING        - #76->#74 K22 - EVENT_SUB_PROCESS "eventSubProcess" in <process "process..process"[K03]>
E PI           ACTIVATED         - #77->#74 K22 - EVENT_SUB_PROCESS "eventSubProcess" in <process "process..process"[K03]>
C PI           ACTIVATE          - #78->#74  -1 - START_EVENT "eventSu..rtEvent" in <process "process..process"[K03]>
E PI           ACTIVATING        - #79->#78 K23 - START_EVENT "eventSu..rtEvent" in <process "process..process"[K03]>
E PI           ACTIVATED         - #80->#78 K23 - START_EVENT "eventSu..rtEvent" in <process "process..process"[K03]>
C PI           COMPLETE          - #81->#78 K23 - START_EVENT "eventSu..rtEvent" in <process "process..process"[K03]>
E PI           COMPLETING        - #82->#81 K23 - START_EVENT "eventSu..rtEvent" in <process "process..process"[K03]>
E PI           COMPLETED         - #83->#81 K23 - START_EVENT "eventSu..rtEvent" in <process "process..process"[K03]>
E PI           SEQ_FLOW_TAKEN    - #84->#81 K24 - SEQUENCE_FLOW "sequenc..241a622" in <process "process..process"[K03]>
C PI           ACTIVATE          - #85->#81 K25 - END_EVENT "endEven..0d7e1e4" in <process "process..process"[K03]>
E PI           ACTIVATING        - #86->#85 K25 - END_EVENT "endEven..0d7e1e4" in <process "process..process"[K03]>
E PI           ACTIVATED         - #87->#85 K25 - END_EVENT "endEven..0d7e1e4" in <process "process..process"[K03]>
E PI           COMPLETING        - #88->#85 K25 - END_EVENT "endEven..0d7e1e4" in <process "process..process"[K03]>
E PI           COMPLETED         - #89->#85 K25 - END_EVENT "endEven..0d7e1e4" in <process "process..process"[K03]>
C PI           COMPLETE          - #90->#85 K22 - EVENT_SUB_PROCESS "eventSubProcess" in <process "process..process"[K03]>
E PI           COMPLETING        - #91->#90 K22 - EVENT_SUB_PROCESS "eventSubProcess" in <process "process..process"[K03]>
E PI           COMPLETED         - #92->#90 K22 - EVENT_SUB_PROCESS "eventSubProcess" in <process "process..process"[K03]>
C PI           COMPLETE          - #93->#90 K03 - PROCESS "process..process" in <process "process..process"[K03]>
E PI           COMPLETING        - #94->#93 K03 - PROCESS "process..process" in <process "process..process"[K03]>
E PI           COMPLETED         - #95->#93 K03 - PROCESS "process..process" in <process "process..process"[K03]>

-------------- Deployed Processes ----------------------
process.xml -> "process..process" (version:1)[K01] ------
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<definitions xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:ns0="http://camunda.org/schema/zeebe/1.0" id="definitions_236b20e6-d97b-464b-96c1-2e9efa4e717c" targetNamespace="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL">
  <process id="process-with-sub-process" isExecutable="true">
    <subProcess id="eventSubProcess" name="eventSubProcess" triggeredByEvent="true">
      <startEvent id="eventSubProcessStartEvent" name="eventSubProcessStartEvent">
        <outgoing>sequenceFlow_09cd7f8a-713b-4184-8856-7dc04241a622</outgoing>
        <messageEventDefinition id="messageEventDefinition_d7f20456-b693-4516-af27-a262d2a5b710" messageRef="message_21980cdd-d329-42c7-b8a3-1eb3173c0c69"/>
      </startEvent>
      <endEvent id="endEvent_770d4524-5669-42fe-8a25-f5fdf0d7e1e4">
        <incoming>sequenceFlow_09cd7f8a-713b-4184-8856-7dc04241a622</incoming>
      </endEvent>
      <sequenceFlow id="sequenceFlow_09cd7f8a-713b-4184-8856-7dc04241a622" sourceRef="eventSubProcessStartEvent" targetRef="endEvent_770d4524-5669-42fe-8a25-f5fdf0d7e1e4"/>
    </subProcess>
    <startEvent id="startEvent_803d4bf6-5392-4f6e-b76c-a534da7bc01a">
      <outgoing>sequenceFlow_f7d4296c-0443-42e8-b99e-4bfff81ce6f0</outgoing>
    </startEvent>
    <subProcess id="subProcess" name="subProcess">
      <incoming>sequenceFlow_f7d4296c-0443-42e8-b99e-4bfff81ce6f0</incoming>
      <outgoing>sequenceFlow_8af5bca1-af9a-4a66-a254-de9784a071ae</outgoing>
      <startEvent id="startEvent_5c8214b3-368d-4cb7-aa47-4c3dd0abbb77">
        <outgoing>sequenceFlow_a9b4a014-86ba-49a3-aa5a-721bc7148367</outgoing>
      </startEvent>
      <serviceTask id="task" name="task">
        <extensionElements>
          <ns0:taskDefinition type="task"/>
        </extensionElements>
        <incoming>sequenceFlow_a9b4a014-86ba-49a3-aa5a-721bc7148367</incoming>
        <outgoing>sequenceFlow_4f961860-8519-4195-9cd7-3fba1cfc2a7d</outgoing>
      </serviceTask>
      <sequenceFlow id="sequenceFlow_a9b4a014-86ba-49a3-aa5a-721bc7148367" sourceRef="startEvent_5c8214b3-368d-4cb7-aa47-4c3dd0abbb77" targetRef="task"/>
      <endEvent id="endEvent_55652168-f495-470f-82b8-2122f79784e3">
        <incoming>sequenceFlow_4f961860-8519-4195-9cd7-3fba1cfc2a7d</incoming>
      </endEvent>
      <sequenceFlow id="sequenceFlow_4f961860-8519-4195-9cd7-3fba1cfc2a7d" sourceRef="task" targetRef="endEvent_55652168-f495-470f-82b8-2122f79784e3"/>
    </subProcess>
    <sequenceFlow id="sequenceFlow_f7d4296c-0443-42e8-b99e-4bfff81ce6f0" sourceRef="startEvent_803d4bf6-5392-4f6e-b76c-a534da7bc01a" targetRef="subProcess"/>
    <boundaryEvent attachedToRef="subProcess" cancelActivity="true" id="msgBoundary" name="msgBoundary">
      <outgoing>sequenceFlow_80f45017-9d50-49e3-b1e8-513ba23684ff</outgoing>
      <messageEventDefinition id="messageEventDefinition_f6793544-6a98-455a-b405-6adbb297e2c8" messageRef="message_978ad85c-3f64-41db-b6f4-14fab2f795ab"/>
    </boundaryEvent>
    <endEvent id="endEvent_9cfcfdb6-485b-485e-a588-46d9f8a0ee99">
      <incoming>sequenceFlow_80f45017-9d50-49e3-b1e8-513ba23684ff</incoming>
    </endEvent>
    <sequenceFlow id="sequenceFlow_80f45017-9d50-49e3-b1e8-513ba23684ff" sourceRef="msgBoundary" targetRef="endEvent_9cfcfdb6-485b-485e-a588-46d9f8a0ee99"/>
    <endEvent id="endEvent_0052276b-ac04-4dfd-9361-a621bf83d439">
      <incoming>sequenceFlow_8af5bca1-af9a-4a66-a254-de9784a071ae</incoming>
    </endEvent>
    <sequenceFlow id="sequenceFlow_8af5bca1-af9a-4a66-a254-de9784a071ae" sourceRef="subProcess" targetRef="endEvent_0052276b-ac04-4dfd-9361-a621bf83d439"/>
  </process>
  <message id="message_21980cdd-d329-42c7-b8a3-1eb3173c0c69" name="eventSubProcess">
    <extensionElements>
      <ns0:subscription correlationKey="=correlationKey"/>
    </extensionElements>
  </message>
  <message id="message_978ad85c-3f64-41db-b6f4-14fab2f795ab" name="boundary">
    <extensionElements>
      <ns0:subscription correlationKey="=correlationKey"/>
    </extensionElements>
  </message>
  <bpmndi:BPMNDiagram id="BPMNDiagram_3bd343e4-dffb-47f3-b1be-2ac5f31d3cec">
    <bpmndi:BPMNPlane bpmnElement="process-with-sub-process" id="BPMNPlane_0ee77cbe-71b4-4fb6-8411-026a1cf69ea9">
      <bpmndi:BPMNShape bpmnElement="eventSubProcess" id="BPMNShape_6244afce-7238-4cf8-ae21-d426e399c3e5" isExpanded="true">
        <dc:Bounds height="200.0" width="350.0" x="100.0" y="250.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="eventSubProcessStartEvent" id="BPMNShape_ede300e4-e0ca-48be-87c3-daf7eaefcec3">
        <dc:Bounds height="36.0" width="36.0" x="150.0" y="332.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endEvent_770d4524-5669-42fe-8a25-f5fdf0d7e1e4" id="BPMNShape_28882588-835e-4af8-b191-c90d9d14f0c9">
        <dc:Bounds height="36.0" width="36.0" x="236.0" y="332.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="sequenceFlow_09cd7f8a-713b-4184-8856-7dc04241a622" id="BPMNEdge_28a724c2-a33e-47e5-92fa-99f60e86688e">
        <di:waypoint x="186.0" y="350.0"/>
        <di:waypoint x="236.0" y="350.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape bpmnElement="startEvent_803d4bf6-5392-4f6e-b76c-a534da7bc01a" id="BPMNShape_fc0d9492-bd98-4143-a6ab-a84cd10167cf">
        <dc:Bounds height="36.0" width="36.0" x="100.0" y="514.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="subProcess" id="BPMNShape_4022c810-abf2-4539-8b60-d816cbfeaca2" isExpanded="true">
        <dc:Bounds height="200.0" width="372.0" x="186.0" y="432.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="sequenceFlow_f7d4296c-0443-42e8-b99e-4bfff81ce6f0" id="BPMNEdge_81bc9d1e-1456-4de2-a1d5-ed6613f06caf">
        <di:waypoint x="136.0" y="532.0"/>
        <di:waypoint x="186.0" y="532.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape bpmnElement="startEvent_5c8214b3-368d-4cb7-aa47-4c3dd0abbb77" id="BPMNShape_ad81eebc-5688-4601-b1f0-393073025f50">
        <dc:Bounds height="36.0" width="36.0" x="236.0" y="514.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="task" id="BPMNShape_76c53ba3-cbf6-48d9-b792-b067f3bfaaa6">
        <dc:Bounds height="80.0" width="100.0" x="322.0" y="492.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="sequenceFlow_a9b4a014-86ba-49a3-aa5a-721bc7148367" id="BPMNEdge_d5328464-d721-4e26-8c9a-b3e2a7d3b1f5">
        <di:waypoint x="272.0" y="532.0"/>
        <di:waypoint x="322.0" y="532.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape bpmnElement="endEvent_55652168-f495-470f-82b8-2122f79784e3" id="BPMNShape_cdb3e832-f1d3-4cd9-a47f-02df8e108edc">
        <dc:Bounds height="36.0" width="36.0" x="472.0" y="514.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="sequenceFlow_4f961860-8519-4195-9cd7-3fba1cfc2a7d" id="BPMNEdge_19b1b1e9-5fd6-4e1c-9fc5-f4cee459f484">
        <di:waypoint x="422.0" y="532.0"/>
        <di:waypoint x="472.0" y="532.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape bpmnElement="msgBoundary" id="BPMNShape_a8d8da9a-2eb3-4a20-a9eb-115366b3bbca">
        <dc:Bounds height="36.0" width="36.0" x="354.0" y="614.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endEvent_9cfcfdb6-485b-485e-a588-46d9f8a0ee99" id="BPMNShape_70b2c137-4351-4729-8db0-75b0e512db37">
        <dc:Bounds height="36.0" width="36.0" x="402.5" y="682.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="sequenceFlow_80f45017-9d50-49e3-b1e8-513ba23684ff" id="BPMNEdge_65296033-8803-4b18-ba94-9d3ed88b27c3">
        <di:waypoint x="372.0" y="650.0"/>
        <di:waypoint x="372.0" y="700.0"/>
        <di:waypoint x="402.5" y="700.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape bpmnElement="endEvent_0052276b-ac04-4dfd-9361-a621bf83d439" id="BPMNShape_3b8095e6-9231-4bc1-8fa0-25bc9d8a39c2">
        <dc:Bounds height="36.0" width="36.0" x="608.0" y="514.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="sequenceFlow_8af5bca1-af9a-4a66-a254-de9784a071ae" id="BPMNEdge_527ee632-30d8-49d4-b3de-e7c66d16cc76">
        <di:waypoint x="558.0" y="532.0"/>
        <di:waypoint x="608.0" y="532.0"/>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>


--------------- Decomposed keys (for debugging) -----------------
 -1 <-> -1
K01 <-> 1
K01 <-> 2251799813685249
K02 <-> 2251799813685250
K03 <-> 2251799813685251
K04 <-> 2251799813685252
K05 <-> 2251799813685253
K06 <-> 2251799813685254
K07 <-> 2251799813685255
K08 <-> 2251799813685256
K09 <-> 2251799813685257
K10 <-> 2251799813685258
K11 <-> 2251799813685259
K12 <-> 2251799813685260
K13 <-> 2251799813685261
K14 <-> 2251799813685262
K15 <-> 2251799813685263
K16 <-> 2251799813685264
K17 <-> 2251799813685265
K18 <-> 2251799813685266
K19 <-> 2251799813685267
K20 <-> 2251799813685268
K21 <-> 2251799813685269
K22 <-> 2251799813685270
K23 <-> 2251799813685271
K24 <-> 2251799813685272
K25 <-> 2251799813685273

zeebe-bors-camunda bot added a commit that referenced this issue Jul 14, 2023
13497: Resolve flaky EmbeddedSubProcessTest r=remcowesterhoud a=remcowesterhoud

## Description

<!-- Please explain the changes you made here. -->
This test contained a race condition as it was depending on a specific timing of message correlations. This commit changes this test to use error events instead. The behavior is the same, but this should make it deterministic.

In other versions the test was moved to a different class. I will make a separate PR for this with back ports. This only for stable/8.0.

## Related issues

<!-- Which issues are closed by this PR or are related -->

closes #11844



Co-authored-by: Remco Westerhoud <remco@westerhoud.nl>
zeebe-bors-camunda bot added a commit that referenced this issue Jul 14, 2023
13500: [Backport stable/8.1] Resolve flaky EmbeddedSubProcessConcurrencyTest r=remcowesterhoud a=backport-action

# Description
Backport of #13498 to `stable/8.1`.

relates to #11844

Co-authored-by: Remco Westerhoud <remco@westerhoud.nl>
zeebe-bors-camunda bot added a commit that referenced this issue Jul 14, 2023
13501: [Backport stable/8.2] Resolve flaky EmbeddedSubProcessConcurrencyTest r=remcowesterhoud a=backport-action

# Description
Backport of #13498 to `stable/8.2`.

relates to #11844

Co-authored-by: Remco Westerhoud <remco@westerhoud.nl>
@megglos megglos added version:8.2.9 Marks an issue as being completely or in parts released in 8.2.9 version:8.3.0-alpha4 Marks an issue as being completely or in parts released in 8.3.0-alpha4 release/8.0.19 labels Jul 26, 2023
@abbasadel abbasadel added the version:8.1.15 Marks an issue as being completely or in parts released in 8.1.15 label Aug 2, 2023
@megglos megglos added the version:8.3.0 Marks an issue as being completely or in parts released in 8.3.0 label Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/engine kind/flake Categorizes issue or PR as related to a flaky test version:8.1.13 Marks an issue as being completely or in parts released in 8.1.13 version:8.1.15 Marks an issue as being completely or in parts released in 8.1.15 version:8.2.5 Marks an issue as being completely or in parts released in 8.2.5 version:8.2.9 Marks an issue as being completely or in parts released in 8.2.9 version:8.3.0-alpha2 Marks an issue as being completely or in parts released in 8.3.0-alpha2 version:8.3.0-alpha4 Marks an issue as being completely or in parts released in 8.3.0-alpha4 version:8.3.0 Marks an issue as being completely or in parts released in 8.3.0
Projects
None yet
8 participants