Skip to content

Bundled-mode HTTP end-to-end integration test (spike behaviours #1, #3, #9) #62

Closed

Description

@jrosskopf

Follow-up from epic #40 / PR #56. Spike behaviours #1, #3, and #9 were
explicitly deferred when the round-trip integration tests landed.

Scope

Add a pytest integration test that:

  1. Starts the unbundled `flapi` against a fixture config dir, hits
    `/hello`, asserts 200 + body (spike behaviour Issues noticed while dockerizing the bq connection to flapi #1).
  2. Runs `flapi pack` against the fixture, then starts the bundled
    output from a clean cwd with no source tree present, hits
    `/hello`, asserts the same 200 + body (spike behaviour Ability to pass default values to query parameters #3).
  3. Endpoint template uses `read_csv('embed://data/cities.csv')` and
    the bundled server returns the expected rows over HTTP (spike
    behaviour Feature Request: Support Apache Arrow IPC Streaming over HTTP #9 — the embed:// proof-of-life is already verified
    in-process by feat(self-packaging #44): embed:// DuckDB filesystem #54's unit tests, but not yet over HTTP).

Blocking question

The HTTP round-trip requires the bundled server to load its
`flapi.yaml` from `embed://` and resolve `template.path: ./sqls`
sensibly against an `embed://` base. The `EmbeddedArchiveFileProvider`
normalises paths (`./foo` -> `foo`) which is the right call for
relative lookups, but `ConfigManager` computes a base path from the
config file's parent dir. We need to confirm that base-path
computation works (or doesn't trip) when the config came from
`embed://flapi.yaml`.

Acceptance

  • 3 new pytest cases in `test/integration/test_self_packaging_http.py`
    (or extend `test_self_packaging.py` if simpler).
  • The bundled binary serves at least one endpoint from a clean cwd.
  • The `read_csv('embed://...')` query returns expected rows over the
    REST surface.
  • Tests added to the existing `integration-tests` CI job (Linux
    amd64) so they run on every PR.

References

Activity

  1. added
    enhancement
    on May 24, 2026
  2. added a commit that references this issue on May 25, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions