Skip to content

test: fix all ignored integration tests #2021

@sanity

Description

@sanity

Problem

Multiple critical integration tests are ignored/disabled, creating blind spots in our test coverage. Recent bugs (#2018, etc.) were not caught because the tests that would expose them are disabled.

Ignored Tests Inventory

apps/freenet-ping/app/tests/

test_small_network_get_issue.rs:

run_app_partially_connected_network.rs:

run_app.rs:

run_app_blocked_peers.rs:

test_50_node_operations.rs:

Root Causes

The ignore reasons reveal systemic issues:

  1. "Test has never worked" - Tests were committed broken (test: fix 'channel closed' startup errors in partially connected network tests #2022)
  2. "Gateway crashes" / "channel closed errors" - Real bugs in core functionality (test: fix 'channel closed' startup errors in partially connected network tests #2022, test: fix PUT timeout and gateway crashes in small network test #2023)
  3. "PUT operations timeout" - Network layer issues (test: fix PUT timeout and gateway crashes in small network test #2023)
  4. "Reliability issues in CI" - Flaky tests masking real problems (test: fix PUT timeout and gateway crashes in small network test #2023)
  5. No enforcement - Nothing prevents ignoring tests without tracking (test: establish policy and enforcement to prevent future ignored tests #2027)

The Vicious Cycle

Real bug exists → Test exposes it → Test fails
→ Test ignored ("flaky") → Bug stays unfixed
→ More bugs accumulate → Tests stay ignored forever

Impact

Fix Strategy

This issue has been broken down into 6 focused subissues (see below). Each subissue has detailed investigation tasks, success criteria, and proper labels.

Phase 1: Triage and Reproduce (Weeks 1-2)

Phase 2: Fix Underlying Bugs (Weeks 3-5)

Work on subissues above based on investigation findings.

Phase 3: Prevention and Cleanup (Week 6)

Success Criteria

  • All subissues below are resolved
  • Zero ignored tests without explicit tracking issues
  • All "never worked" tests either work or are deleted
  • CI test suite actually catches regressions
  • Enforcement in place to prevent recurrence

Related Issues

[AI-assisted debugging and comment]

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-developer-xpArea: developer experienceA-networkingArea: Networking, ring protocol, peer discoveryE-hardExperience needed to fix/implement: Hard / a lotS-needs-reproductionStatus: Bug needs reproduction steps or confirmationT-trackingType: Meta-issue tracking multiple related issues

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions