Skip to content

Fix flaky e2e-upload test timeout #155

Closed

Description

@neuromechanist

Problem

The test/e2e-upload.test.ts test (full upload flow with dry-run) consistently times out after 5000ms:

(fail) E2E Upload Tests > full upload flow with dry-run (requires all prerequisites) [5000.31ms]
  ^ this test timed out after 5000ms.

The test expects "Prerequisites check passed" in stdout, but only receives "- Checking prerequisites...\n" before timing out.

Impact

This causes bun test to report 1 failure across the full suite even though all other tests pass. A permanently failing test undermines confidence in the test suite and masks real regressions.

Suggested fixes

  • Increase the timeout to accommodate the prerequisites check (which may need to verify datalad, git-annex, etc.)
  • Or skip the test when prerequisites are slow to resolve (similar to how other e2e tests gate on env vars)
  • Or fix the underlying prerequisite check to complete faster

Reproduction

bun test test/e2e-upload.test.ts

Activity

  1. added
    bug
    on Feb 18, 2026
  2. added 2 commits that reference this issue on Feb 20, 2026
    d7e0bdb
    77bb7bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions