Skip to content

Failing test: Workflow execution concurrency control - drop strategy drops new executions until there is an already running execution #257103

@kibanamachine

Description

@kibanamachine

A test failed on a tracked branch

Scout Test Details:

Field Value
Test ID fedda44db506679-f33c86dd5c9b2b6
Target local-serverless-security_complete
Location src/platform/plugins/shared/workflows_management/test/scout_workflows_ui/api/tests/workflow_execution/concurrency_control.spec.ts
Duration 21.17s
Module workflowsManagement (plugin)
Config path src/platform/plugins/shared/workflows_management/test/scout_workflows_ui/api/playwright.config.ts
Code Owners elastic/workflows-eng
Error: expect(received).toHaveLength(expected)

Expected length: 1
Received length: 2
Received array:  [{"concurrencyGroupKey": "dev-issue-1", "context": {"consts": {}, "execution": {"executedBy": "elastic_serverless", "id": "b3fbb998-221e-4c63-a0fb-0c6b45f9c6d2", "isTestRun": false, "startedAt": "2026-03-11T12:16:04.945Z", "triggeredBy": "manual", "url": "http://localhost:5620/s/test-space-1/app/workflows/workflow-8adafe37-5580-46dd-a24a-4e1eea977065?executionId=b3fbb998-221e-4c63-a0fb-0c6b45f9c6d2&tab=executions"}, "inputs": {"env": "dev", "problem": "issue-1"}, "kibanaUrl": "http://localhost:5620", "now": "2026-03-11T12:16:17.412Z", "spaceId": "test-space-1", "workflow": {"enabled": true, "id": "workflow-8adafe37-5580-46dd-a24a-4e1eea977065", "name": "Scout API Test Workflow", "spaceId": "test-space-1"}}, "createdAt": "2026-03-11T12:16:03.013Z", "currentNodeId": "wait_step_2", "duration": 12467, "entryTransactionId": "98175a82a4795381", "executedBy": "elastic_serverless", "finishedAt": "2026-03-11T12:16:17.412Z", "id": "b3fbb998-221e-4c63-a0fb-0c6b45f9c6d2", "isTestRun": false, "scopeStack": [], "spaceId": "test-space-1", "startedAt": "2026-03-11T12:16:04.945Z", "status": "completed", "stepExecutionIds": ["360128b3a56be422f716944e68d6743209a0d473b166d257e16d0576c8ed9511", "068fb00b54e864daeb81e7a1c2ea32475a73acb9c4e653e53dd055fa6da3a611", "17960fcc285aeacaa7ceb2e5b1b67efe5cf1596ae44e3c21849d2a823b3c9e7e", "d405566a5948308c458d70f048f77168fb67ce512ca5300d29a2c8009aedb0a4"], "stepExecutions": [{"executionTimeMs": 210, "finishedAt": "2026-03-11T12:16:05.368Z", "globalExecutionIndex": 0, "id": "360128b3a56be422f716944e68d6743209a0d473b166d257e16d0576c8ed9511", "scopeStack": [[Object]], "spaceId": "test-space-1", "startedAt": "2026-03-11T12:16:05.158Z", "status": "completed", "stepExecutionIndex": 0, "stepId": "hello_world_step_1", "stepType": "console", "topologicalIndex": 1, "workflowId": "workflow-8adafe37-5580-46dd-a24a-4e1eea977065", "workflowRunId": "b3fbb998-221e-4c63-a0fb-0c6b45f9c6d2"}, {"executionTimeMs": 5368, "finishedAt": "2026-03-11T12:16:10.945Z", "globalExecutionIndex": 1, "id": "068fb00b54e864daeb81e7a1c2ea32475a73acb9c4e653e53dd055fa6da3a611", "scopeStack": [[Object]], "spaceId": "test-space-1", "startedAt": "2026-03-11T12:16:05.577Z", "state": {"resumeAt": "2026-03-11T12:16:10.577Z"}, "status": "completed", "stepExecutionIndex": 0, "stepId": "wait_step_1", "stepType": "wait", "topologicalIndex": 2, "workflowId": "workflow-8adafe37-5580-46dd-a24a-4e1eea977065", "workflowRunId": "b3fbb998-221e-4c63-a0fb-0c6b45f9c6d2"}, {"executionTimeMs": 5883, "finishedAt": "2026-03-11T12:16:16.830Z", "globalExecutionIndex": 2, "id": "17960fcc285aeacaa7ceb2e5b1b67efe5cf1596ae44e3c21849d2a823b3c9e7e", "scopeStack": [[Object]], "spaceId": "test-space-1", "startedAt": "2026-03-11T12:16:10.947Z", "state": {"resumeAt": "2026-03-11T12:16:15.947Z"}, "status": "completed", "stepExecutionIndex": 0, "stepId": "wait_step_2", "stepType": "wait", "topologicalIndex": 3, "workflowId": "workflow-8adafe37-5580-46dd-a24a-4e1eea977065", "workflowRunId": "b3fbb998-221e-4c63-a0fb-0c6b45f9c6d2"}, {"executionTimeMs": 161, "finishedAt": "2026-03-11T12:16:16.993Z", "globalExecutionIndex": 3, "id": "d405566a5948308c458d70f048f77168fb67ce512ca5300d29a2c8009aedb0a4", "scopeStack": [[Object]], "spaceId": "test-space-1", "startedAt": "2026-03-11T12:16:16.832Z", "status": "completed", "stepExecutionIndex": 0, "stepId": "hello_world_step_2", "stepType": "console", "topologicalIndex": 4, "workflowId": "workflow-8adafe37-5580-46dd-a24a-4e1eea977065", "workflowRunId": "b3fbb998-221e-4c63-a0fb-0c6b45f9c6d2"}], "traceId": "ec4f06f9a1768310322234c70923be51", "triggeredBy": "manual", "workflowDefinition": {"description": "Temporary workflow created by Scout API tests", "enabled": true, "inputs": {"properties": {"env": [Object], "problem": [Object]}, "type": "object"}, "name": "Scout API Test Workflow", "settings": {"concurrency": {"key": "{{inputs.env}}-{{inputs.problem}}", "strategy": "drop"}}, "steps": [{"name": "hello_world_step_1", "type": "console", "with": [Object]}, {"name": "wait_step_1", "type": "wait", "with": [Object]}, {"name": "wait_step_2", "type": "wait", "with": [Object]}, {"name": "hello_world_step_2", "type": "console", "with": [Object]}], "triggers": [{"type": "manual"}], "version": "1"}, "workflowId": "workflow-8adafe37-5580-46dd-a24a-4e1eea977065", "yaml": "
name: Scout API Test Workflow
enabled: true
description: Temporary workflow created by Scout API tests
triggers:
  - type: manual
settings:
  concurrency:
    key: \"{{inputs.env}}-{{inputs.problem}}\"
    strategy: \"drop\"
inputs:
  type: object
  properties:
    env:
      type: string
    problem:
      type: string·
steps:
  - name: hello_world_step_1
    type: console
    with:
      message: \"Hello from Scout API test 1\"
  - name: wait_step_1
    type: wait
    with:
      duration: 5s
  - name: wait_step_2
    type: wait
    with:
      duration: 5s
  - name: hello_world_step_2
    type: console
    with:
      message: \"Hello from Scout API test 2\"
"}, {"concurrencyGroupKey": "dev-issue-1", "context": {"consts": {}, "execution": {"executedBy": "elastic_serverless", "id": "923ba42a-e883-4c1e-8489-76c5ba2c0628", "isTestRun": false, "startedAt": "2026-03-11T12:16:10.935Z", "triggeredBy": "manual", "url": "http://localhost:5620/s/test-space-1/app/workflows/workflow-8adafe37-5580-46dd-a24a-4e1eea977065?executionId=923ba42a-e883-4c1e-8489-76c5ba2c0628&tab=executions"}, "inputs": {"env": "dev", "problem": "issue-1"}, "kibanaUrl": "http://localhost:5620", "now": "2026-03-11T12:16:23.570Z", "spaceId": "test-space-1", "workflow": {"enabled": true, "id": "workflow-8adafe37-5580-46dd-a24a-4e1eea977065", "name": "Scout API Test Workflow", "spaceId": "test-space-1"}}, "createdAt": "2026-03-11T12:16:07.322Z", "currentNodeId": "wait_step_2", "duration": 12635, "entryTransactionId": "07df8b6a1cb2e498", "executedBy": "elastic_serverless", "finishedAt": "2026-03-11T12:16:23.570Z", "id": "923ba42a-e883-4c1e-8489-76c5ba2c0628", "isTestRun": false, "scopeStack": [], "spaceId": "test-space-1", "startedAt": "2026-03-11T12:16:10.935Z", "status": "completed", "stepExecutionIds": ["2c3b179aeb148fe800b6f6bb3e885b9a855cf618d4fe52e442a267e2d58b326b", "a3701e24e0b17c9bf7e2ceca81ffeafb673ae26d626ea73e92949b4563ef8cd3", "aaad9a3117afaa148618e472d17b7ddc7defe6039c68c521e21fa2decad5449e", "8bd87689f2f16d62e3c25502fe297f4fae933ed9f3e05b51ffde720e3008f35b"], "stepExecutions": [{"executionTimeMs": 207, "finishedAt": "2026-03-11T12:16:11.353Z", "globalExecutionIndex": 0, "id": "2c3b179aeb148fe800b6f6bb3e885b9a855cf618d4fe52e442a267e2d58b326b", "scopeStack": [[Object]], "spaceId": "test-space-1", "startedAt": "2026-03-11T12:16:11.146Z", "status": "completed", "stepExecutionIndex": 0, "stepId": "hello_world_step_1", "stepType": "console", "topologicalIndex": 1, "workflowId": "workflow-8adafe37-5580-46dd-a24a-4e1eea977065", "workflowRunId": "923ba42a-e883-4c1e-8489-76c5ba2c0628"}, {"executionTimeMs": 5000, "finishedAt": "2026-03-11T12:16:16.561Z", "globalExecutionIndex": 1, "id": "a3701e24e0b17c9bf7e2ceca81ffeafb673ae26d626ea73e92949b4563ef8cd3", "scopeStack": [[Object]], "spaceId": "test-space-1", "startedAt": "2026-03-11T12:16:11.561Z", "status": "completed", "stepExecutionIndex": 0, "stepId": "wait_step_1", "stepType": "wait", "topologicalIndex": 2, "workflowId": "workflow-8adafe37-5580-46dd-a24a-4e1eea977065", "workflowRunId": "923ba42a-e883-4c1e-8489-76c5ba2c0628"}, {"executionTimeMs": 6378, "finishedAt": "2026-03-11T12:16:22.940Z", "globalExecutionIndex": 2, "id": "aaad9a3117afaa148618e472d17b7ddc7defe6039c68c521e21fa2decad5449e", "scopeStack": [[Object]], "spaceId": "test-space-1", "startedAt": "2026-03-11T12:16:16.562Z", "state": {"resumeAt": "2026-03-11T12:16:21.562Z"}, "status": "completed", "stepExecutionIndex": 0, "stepId": "wait_step_2", "stepType": "wait", "topologicalIndex": 3, "workflowId": "workflow-8adafe37-5580-46dd-a24a-4e1eea977065", "workflowRunId": "923ba42a-e883-4c1e-8489-76c5ba2c0628"}, {"executionTimeMs": 209, "finishedAt": "2026-03-11T12:16:23.150Z", "globalExecutionIndex": 3, "id": "8bd87689f2f
[report_failure] output truncated to 8192 characters

First failure: kibana-on-merge - main

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions