Skip to content

TestServicePostgres hangs intermittently in E2E tests #315

@dpup

Description

@dpup

Summary

TestServicePostgres in internal/e2e/services_test.go hangs intermittently during E2E test runs.

Details

The test has been skipped with t.Skip() to unblock CI. The hang likely involves the custom network + proxy setup interaction, possibly related to synthetic hostname resolution on custom Docker networks.

Steps to reproduce

Run the E2E test suite repeatedly:

go test -tags=e2e -v -run TestServicePostgres ./internal/e2e/

Expected behavior

The test should complete within the test timeout.

Actual behavior

The test hangs indefinitely (or until the test timeout is hit).

Investigation notes

  • May be related to the synthetic hostname changes in the proxy bypass fix (fix/host-traffic-proxy-bypass branch)
  • Custom network gateway rewriting and --add-host entries may not resolve correctly in all network configurations
  • The proxy's forwarding of allowed host-gateway traffic now rewrites moat-host → actual IP, which may interact with service container networking

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions