OpenFn / OpenFn/lightning

Collections flaky tests

Open
#3,167 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

Collection/Data Tests

test collection_item has a sequence on both id and inserted_at

Classname: Elixir.Lightning.FactoriesTest
Failures: 5
Last occurrence: 9 hours ago

test get_all/3 with key pattern returns matching items for the given collection sorted by inserted_at

Classname: Elixir.Lightning.CollectionsTest
Failures: 5
Last occurrence: 1 day ago

test get_all/3 returns all items for the given collection sorted by inserted_at

Classname: Elixir.Lightning.CollectionsTest
Failures: 4
Last occurrence: 1 day 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 with the named tests in Elixir.Lightning.FactoriesTest and Elixir.Lightning.CollectionsTest, especially the collection_item sequence and get_all/3 ordering cases. Reproduce the failures locally and inspect how collection data and inserted_at ordering are set up. Done means the listed tests pass reliably without intermittent failures.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
backend, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.