OpenFn / OpenFn/lightning

Workflows API flaky tests

Open
#3,168 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Elixir
Stars
296
Forks
86
Avg merge
1d 13h
Merged PRs (30d)
50

Description

Describe the bug

test POST /workflows/ inserts a workflow with disconnected job

Classname: Elixir.LightningWeb.API.WorkflowsControllerTest
Failures: 8
Last occurrence: 9 hours ago

test PATCH /workflows/ updates a workflow trigger

Classname: Elixir.LightningWeb.API.WorkflowsControllerTest
Failures: 2
Last occurrence: 4 hours ago

test PUT /workflows/ updates completely a workflow

Classname: Elixir.LightningWeb.API.WorkflowsControllerTest
Failures: 2
Last occurrence: 4 days ago

test PUT /workflows/ updates completely a workflow removing a job

Classname: Elixir.LightningWeb.API.WorkflowsControllerTest
Failures: 1
Last occurrence: 13 days ago

test PATCH /workflows/ adds some jobs to a workflow

Classname: Elixir.LightningWeb.API.WorkflowsControllerTest
Failures: 1
Last occurrence: 1 day ago

test PATCH /workflows/ Adds a disconnected/orphan job

Classname: Elixir.LightningWeb.API.WorkflowsControllerTest
Failures: 1
Last occurrence: 13 days ago

Version number

v2.12.0

I have reproduced this locally on main:

  • Yes
  • No

To Reproduce Steps to reproduce the behavior:

CircleCI info

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the listed cases in Elixir.LightningWeb.API.WorkflowsControllerTest, focusing on the POST, PATCH, and PUT workflow operations described in the issue. Trace the failures and make the affected tests pass reliably on main, with all six reported cases no longer flaky.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
api, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.