OpenFn / OpenFn/kit

Flaky Tests Hub

Open
#844 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

DevX good first issue help wanted
Dominant language
TypeScript
Stars
21
Forks
23
Avg merge
1d 22h
Merged PRs (30d)
17

Description

Description

This is a space dedicated to tracking known flaky tests and systematically resolving them.

[!NOTE]

  1. Pick one, create issue if it doesn't exist and reference here via related issue
  2. After your issue's related PR has been merged and related issue is closed on a good note. click the checkmark!

Flaky Tests

  • [skipped] "synchronously create a placeholder before generating the docs"
    Reason[1]: Promise functions start resolving as soon as they've been called. await doesn't tell a promise to start resolving but rather blocks execution only in the scope of its async function.
    Reason[2]: A placeholder is supposed to be generated quickly before the promise is resolved. Here, we're trying to test in between the time the placeholder is generator and when the promise with the actual data is resolved. Since there's no good mechanism to test in-between promise call and resolution, it makes this test very flaky. Hence, an error is thrown when the placeholder doesn't exist but we try doing JSON.parse(readFileSync(path, 'utf8'));
    https://github.com/OpenFn/kit/blob/7554a34c009eb722c9e38ead837096e3e249db31/packages/cli/test/docgen/handler.test.ts#L137-L157
    Related Issue: no issue created


  • There's something failing intermittently in integration tests Log
    I think it's this?
integration-tests/worker test: [worker] ✘ 29bbf427-4414-47d4-9901-b5f79aa092cc failed to send run:complete event. This run will be lost!
integration-tests/worker test: [worker] ✘ Unexpected keys: timestamp

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 reviewing the linked sections of packages/cli/test/docgen/handler.test.ts and integration-tests/worker/test/server.test.ts, then inspect the CircleCI log for the intermittent worker failure. Confirm which entries remain actionable and reproduce the relevant flaky test; done means the selected flake is resolved or documented and the hub is updated after its related issue and PR are complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.