Actions
Development Plan & Roadmap¶
Phase 1: Foundation & Deterministic Testing Environment¶
- Prepare GitHub Actions workflow to run Debian GNU/Hurd inside QEMU.
- Write the core C test suite using
libmicrohttpdv1 to simulate a loopback (127.0.0.1) embedded HTTP server. - Implement specific test endpoints:
Rangeheader support, truncated responses, HTTP error codes, static raw files for post-read SHA256 checksum validation. - Ensure tests model atomic POSIX calls and remain completely environment-agnostic.
Phase 2: Refactoring Core httpfs (Raw Transport)¶
- Strip all HTML parsing code from the current
httpfsimplementation. - Optimize
libnetfscallbacks to map POSIX calls cleanly and performantly to the network. - Implement a robust seek mechanism using HTTP
Rangeheaders to faithfully maplseek/pread. - Validate
httpfsagainst the Phase 1 test suite (must reliably yield 100% raw bytes while handling EOF, timeouts, and disconnects).
Phase 3: Content-Type Translators Architecture (The Parser Chain)¶
-
htmlfs: Develop the standalone DOM/HTML parsing translator and interface it to be stacked viasettranson top ofhttpfs(tolerant single-pass extractor: title, visible text, meta, headings, links). -
jsonfs: Design and build the JSON translator to map JSON trees into Mach file system nodes (objects → directories, arrays → numbered entries, scalars → files). -
csvfs/tsvfs: Develop interfaces to dynamically interpret structured text tables (RFC 4180 dialect, delimiter sniffing, row and column views;tsvfsiscsvfsunder its tab default). - Write dedicated test suites to verify correct I/O interactions between the transport translator (
httpfs) and parser translators (test_json,test_html,test_csvunit tests plus the stacking section oftests/smoke.sh). - Cluster operation from this phase onward:
httpfsand the parser chain must be usable in a multi-node Hurd cluster — mounted on the orchestrator node, serving concurrent multi-user fetches with one seek/Range cursor per open file per reader, and the stacking behaviour (httpfsunderhtmlfs/jsonfs/csvfs) must not depend on a single-node topology.
Phase 4: Evolution & Hardening¶
- Controlled migration of embedded tests from
libmicrohttpdv1 tolibmicrohttpdv2, leveraging new APIs for increased I/O determinism (e.g., complex fault-injection scenarios). - Multi-task and multi-user operation:
httpfsand the parser chain (htmlfs,jsonfs,csvfs/tsvfs) must serve concurrent readers and several users at once — one seek/Range cursor per open file per reader, no shared mutable state without locking, no user-serialized global state. - Optimize Mach IPC and minimize buffer-copy overhead (memory-to-memory I/O) between
httpfsand upstream content translators.
Design Notes¶
- Cluster from phase 3: as of orchestrator phase 3, the stack runs on multi-node Hurd clusters.
httpfsitself needs no new contract — a translator mounted on the orchestrator node serves fetches for the remote instances too. The design rule is that neither the transport nor the parser chain may assume a single-node topology: one seek/Range cursor per open file per reader, no shared mutable state without locking.
Mis à jour par clarie Admin il y a environ 2 mois · 1 révisions