Skip to content

v0.0.2

Pre-release
Pre-release

Choose a tag to compare

@trakhimenok trakhimenok released this 04 Dec 15:35
e37ca45

Added

  • openflange validate accepts --input and --output, with the same
    meaning as for run (see Changed: this alters what validate reports).
  • Library: openflange.CompileOptions.PortsOnly and
    pipeline.Options.PortsOnly compile only to learn a target's external
    ports, skipping checks that depend on connections. A PortsOnly plan must
    not be run.
  • Errors from adapter and pipe checks carry the port they are about, so
    some --json error objects gain a port field.
  • Batch benchmark kit (benchmarks/batch): RUNNING.md for a dedicated
    machine; run.sh --quick (smoke test), --check (prerequisites only)
    and --shared (confined to two CPUs on a shared Linux machine); a
    -summary report; timed runs interleaved within a runtime, with the
    load recorded per run and a pause while the machine stalls; macOS
    support.

Changed

  • A connected additional input that a subprocess pipe never fetches from
    its loopback endpoint is still discarded (CLI specification 6.3), but
    openflange run now warns and names the port. Before, a script that read
    only standard input lost its other inputs without a word.
  • Breaking (CLI): openflange validate compiles the target exactly as
    run would with the same bindings and accepts --input / --output:
    unbound optional
    outputs are disconnected (they were all enabled), required ones count as
    bound. With no --output, outputs the target needs are reported as a
    note naming the flags run will need, so openflange validate std:partition --param partitions=3 … is valid. What this breaks:
    • validate --plan and --plan --json of a pipeline no longer show
      edges to unbound optional outputs (scripts reading .edges see fewer);
    • exit statuses change for some targets, e.g. openflange validate std:partition --param partitions=3 exited 2 and now exits 0 with a
      note;
    • a pipeline whose optional external outputs feed a node check is
      validated as run would see it, so a partial --output set can now
      fail where it passed before.
  • An E_UNCONNECTED or E_PARAM about an output that is unbound or bound
    on the command line now has a command-line hint (--output p1=-,
    --output p1=/dev/null, "remove --output p3=…") instead of pipeline
    YAML.

Fixed

  • openflange run std:partition --param partitions=N with --output p0=…
    … --output p{N-1}=… failed with E_PARAM ("output p{N} … is
    connected, but partitions=N never routes items to it"). The first compile,
    which only learns the target's ports, enabled every output and ran the
    pipe's checks. It now skips checks that depend on connections, and
    unbound optional outputs are disconnected before the real compile.
  • A flaky test: with maxWaitMs: 0 the last batch counts as a wait flush or
    an end-of-input flush depending on timing; TestBatchFlag accepts both.
  • CI was red on every commit since before v0.0.1: the end-to-end step ran
    openflange test ./examples on a runner without the examples' runtimes,
    so 37 of 144 tests failed (E_UNSUPPORTED: duckdb / Rscript not on
    PATH; npm-wrapper's dependency not installed; python-http-enrich's server
    not started). CI now installs pinned runtimes — DuckDB 2.0.1 (checksum
    verified), R 4.5.3 with jsonlite 2.0.0, Node.js 24.23.0 with
    npm ci --ignore-scripts for npm-wrapper, Python 3.13.18 — builds the Go
    multi-port example, starts the HTTP example's server, and runs every
    example for real. No assertion was weakened and nothing is skipped: the
    language-model examples already use their mock providers; the tests of
    the real-model ones (Anthropic, Ollama) only check the permission refusal
    and never call a model.
  • go test ./examples/... and scripts/run-examples.sh accept
    OPENFLANGE_EXAMPLES_REQUIRE_ALL=1: a missing runtime then fails instead
    of skipping. CI sets it.
  • The CI conformance step passed -spec-dir ../spec/conformance, which
    go test resolves from the package directory, so every conformance test
    was skipped and the step was green without running a fixture. It now
    passes ../../spec/conformance, and the conformance tests fail (instead of
    skipping) when a directory given with -spec-dir or
    OPENFLANGE_CONFORMANCE_DIR does not exist, yields no cases, or yields
    only skipped cases.
  • CI uses actions/checkout@v7, actions/setup-go@v7,
    actions/setup-python@v7 and actions/setup-node@v7 (all Node.js 24; the
    Node.js 20 deprecation warning is gone) and r-lib/actions/setup-r v2
    pinned to a commit SHA. Checkouts no longer keep the token
    (persist-credentials: false), and the openflange/spec checkout is
    pinned to a commit, so a tag's conformance result is reproducible.

Install: go install github.com/openflange/openflange-go/cmd/openflange@v0.0.2

Experimental pre-release of the OpenFlange reference implementation (draft v0.1 specifications). Breaking changes are possible before 1.0.0.