Repository navigation
Lib update - #32
Merged
Merged
Lib update#32
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lay, recovery - Add a Clock trait (SystemClock default; TokioClock and ManualClock in jackdaw::testing). ctx.now, sleeps, step timeouts and retry delays all go through it. - Record absolute deadlines for sleeps and step timeouts in the journal, so a resumed instance waits only for the time that is left. Step timeouts now apply to every step kind, not only task calls. - Persist the event inbox with the journal; send_event returns after the event is stored. - Give journal records and signals a history position, and re-apply signals at that position on replay instead of all up front. - Share instance results between waiters; add Engine::recover, Engine::handle, Engine::execute_with_id, Engine::list, Engine::cancel and ExecutionHandle::erase. - Cancelling an instance cancels its child workflows. - Journal and event write failures now fail the step instead of only logging. - wait_condition returns a Condition that can be raced with select!. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd race specs Add the shared BDD harness for jackdaw/tests/lib: a test clock that only moves when a step moves it (or when a step waits and nothing else can happen), a probe that scripts and records every task invocation, typed fixtures, and simulated crashes that wait for the store to be released. Promote five scenarios that the new engine now satisfies (for_each and join resume only unfinished work, races resume with their deadline, an event sent before a crash still wins, a race's losing task is cancelled). Engine fixes found by the specs: - A step no longer holds the engine's shared state while it waits, so dropping the engine stops its instances and releases the store even while a task is running. - Export race, Either and Condition from the prelude. - ExecutionHandle is Clone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ep specs pass
Engine and API:
- Cancelling an instance makes pending and new steps return StepError::Cancelled, so a
workflow can clean up; Step::shielded() runs a step after cancellation. The run gets a
grace period before it is dropped.
- TaskContext::cancelled() and is_cancelled() let a running task notice cancellation.
- #[update] methods: typed UpdateRef markers, ExecutionHandle::update and
update_with_id (idempotent by id), UpdateError and Error::Rejected. Accepted updates are
journaled at their history position and re-applied on replay.
- Engine::execute_with(ExecuteOptions { id, timeout }): a durable deadline for the whole
run; execute_with_id now delegates to it.
- ctx.start(..) starts a workflow without waiting and records its id.
- A child whose step times out is cancelled; step type errors name the step.
- DurationExt::days(); From<TaskError> for StepError; uuid serializes (serde feature).
Specs: step definitions for every feature in tests/lib/tasks (102 of 105 scenarios pass;
per-step caching, continue-as-new and journal growth are still @todo). A spec that said a
missing child workflow fails the build now describes the actual behavior: children are
registered with their parent. Add compile-fail cases for macro misuse.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Step::cached() / Step::uncached() (and TaskOptions::cached/uncached) override a task's #[task(cached)] setting for one call. - ctx.continue_as_new(input) ends the run and starts the next run of the same instance with a fresh journal and state; handles, signals and the event stream carry on, and Event::ContinuedAsNew marks each new run in the history. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Engine (builds; all Rust API, unit and previously wired spec tests passed before the workflow step modules were added): - Append-only journal log with a constant-size header (journal format 2); old journals still load. PersistenceProvider gains append/load/prune journal, list_instances and delete_instance with checkpoint-based defaults; built-in stores implement them. - Fix redb event keys colliding within one nanosecond and get_events scanning the table. - Store trait with Redb, Sqlite and Postgres; PayloadCodec for stored payloads; Engine::describe; WorkflowId prints as namespace/name@version. - Persistence errors keep their kind for every waiter; an instance whose end could not be written stays visible as failed. Queries and updates wait for replay to catch up. Specs: durability step definitions (all durability scenarios pass on redb). WIP: the step modules for tests/lib/workflows (saga, approval, batch, incident, subscription) do not compile yet (4 errors in the lib_features target). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… instances - Step definitions for the order saga, expense approval, batch import, incident response and subscription billing specs; all 37 scenarios pass, and the 7 that were @todo (restart deadlines, crash mid-fan-out, a 5000-chunk fan-out, continue-as-new billing, ...) are promoted. - Engine::replay_all no longer fails on an instance that ended with its own fault or cancellation: that is the workflow's outcome, not a divergence. - Test harness: pass() never moves the clock past its target, and endless workflows are checked without waiting for them to end. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- TaskContext::heartbeat / last_heartbeat and Step::heartbeat_timeout: an attempt that stops heartbeating fails retryably, and the next attempt can read the last progress. - WorkflowContext::state_mut lets #[run] change the workflow's fields (queries see it, wait_conditions are re-checked). - Step definitions for every runnable scenario in tests/lib/api (15 @todo promoted). Add trybuild cases for the prelude, signal argument types and #[non_exhaustive] enums. - Specs now describe the real behavior where they did not: a child workflow is registered with its parent, and replayed-event flags are checked on a resumed running instance. The Postgres typed-store row is its own @todo @postgres outline (it needs a server). - Test harness: per-scenario store choice instead of a process-wide variable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nt specs pass - Engine::purge removes a finished instance; EngineBuilder::retention + Engine::sweep purge finished instances older than the retention period. - Engine::shutdown(grace) refuses new work, waits (on the engine clock) for running task steps, then stops every instance without ending it, so the next process recovers it. - Errors for unknown instances say "was not found". - Step definitions for operations/instance_management and operations/lifecycle; all 20 @todo scenarios there are promoted. - Test harness: the clock only jumps ahead after several idle polls, so a busy machine cannot age instances past slow-but-running work. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Schedule::cron / Schedule::every with catch-up and overlap policies,
durable last-fire state and deterministic <name>/<time> instance ids
- Engine::{pause,resume,remove}_schedule
- PersistenceProvider::create_checkpoint (atomic in built-in stores);
new instances claim their id so engines sharing a store never start
or resume the same instance twice
- operations/schedules.feature specs implemented
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- workflow span (workflow.id, instance.id, replay) and step span (step.name, step.kind, attempt) around live steps; replayed steps get no span, so task logs are not repeated - spawned instances, schedules and blocking tasks keep the caller's subscriber; child workflow spans nest under the parent's step span - metrics feature: workflow started/completed/failed/cancelled counters, task retries and step duration histogram via the metrics facade - operations/observability.feature specs implemented Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- TestEngineBuilder::replace_task swaps a task for a fake - TestEngine::crash_after_step / restart simulate a process dying after a durable step and coming back on the same store - YAML workflows whose then directives name no task are rejected before they run - step definitions for the catalog, YAML interop, custom provider and testing engine scenarios; the runner now fails on undefined steps and skips @external scenarios (covered by another suite) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ainer - ctx.emit(CloudEvent) is a step that publishes Event::Emitted on the run's stream and history once (stable id, not repeated on replay) - the other helpers are engine-provided jackdaw.* tasks, so retries, timeouts and .cached() work as for any task; non-zero exits and 4xx responses are faults, 408/429/5xx are retryable - context_task_helpers.feature implemented; @docker scenarios are skipped when Docker does not answer Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- jackdaw::Executor: exec(Call) and optional cacheable, registered with EngineBuilder::executor(name, impl) (also for Arc<T>); duplicate or built-in names fail the build; YAML validation knows custom types - as_any removed from the internal executor trait - examples/: quickstart, signals, durable_restart, yaml_interop, custom_persistence, custom_executor (replacing the uncompiled legacy examples under jackdaw-cli/examples/lib) - custom_extensions.feature implemented; a process-wide interested dispatcher keeps tracing callsite interest stable across scenarios Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d specs - EngineBuilder::lease(ttl), engine_id, poll_interval: instances are leased in the store (acquire_lease/release_lease on all built-in stores), renewed while running and checked before every journal write; an engine that lost a lease stops the instance without writing; recover skips leased instances and takes over expired ones - signals, events and cancels sent through a non-owning engine travel through the store (post_message/take_messages); the remote handle reads the result from the store; queries and updates need the owner - without lease, a second engine on the same store fails to build - shutdown waits until in-flight task results are recorded - multi_worker.feature implemented (Redb, SQLite, Postgres); @postgres scenarios run when DATABASE_URL is set - harness: crash scenarios wait until finished steps are durable, idle detection scales for Postgres, deterministic overlap check - guide: several engines on one store Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- crate root re-exports Engine, EngineBuilder, ExecutionHandle, Error, Executor, PersistenceProvider and CacheProvider (the legacy DurableEngineBuilder/ExecutionHandle root exports are gone) - macro plumbing moved to #[doc(hidden)] jackdaw::__private; the macros emit ::jackdaw::__private paths - YAML-engine modules are #[doc(hidden)]; providers shows only the stores and caches - #![warn(missing_docs)] crate-wide; persistence, cache, workflow, providers and testing items documented; cargo doc passes with -D warnings - #[non_exhaustive] on persistence::Error, cache::Error, executor::Error - public_surface.feature: 4 more scenarios implemented Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rivate - jackdaw-cli: run builds an Engine (persistence/cache providers, yaml_workflow for --registry, set_yaml_trace for --debug), validate uses Workflow::validate, visualize renders a workflow and, with -i, task states from the run's history (it was a stub); results are printed when stdout is not a terminal (indicatif dropped them) - library: Workflow::validate (Validation/Issue/Severity), EngineBuilder::yaml_workflow, Engine::register_yaml_workflow, api::set_yaml_trace - visualization (d2/graphviz) moved to the CLI; tempfile is no longer a library dependency - YAML-engine modules are private; DurableEngineBuilder and dead output helpers removed; the legacy YAML suites run on the new Engine through tests/yaml_engine - public_surface: the internals scenario is implemented with compile-fail cases Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
crates.io rejects git dependencies, so the `serverless_workflow_core` fork (DSL 1.0.3 fixes) is now vendored into jackdaw/src/dsl, verbatim from the SDK's core/src/models at 6c3b00a. `just update-dsl [repo] [ref]` replaces the folder from upstream and records the commit in src/dsl/UPSTREAM. The vendored files are never edited: lib.rs carries the module docs and attribution, lint allows and #[rustfmt::skip], and a private `use dsl as models;` resolves upstream's `crate::models::` paths. pre-commit's end-of-file-fixer skips the folder. jackdaw's own imports move from serverless_workflow_core::models to crate::dsl / jackdaw::dsl. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- [workspace.package] holds version, edition, rust-version, authors, license and repository; all three crates inherit them. [workspace.dependencies] pins jackdaw and jackdaw-macros to each other with `=`, since the macros expand to paths in jackdaw. - rust-version = 1.90, the highest MSRV among the dependencies. A new `msrv` job in pr.yml checks the workspace on it. - `include` allowlists keep tests, fixtures and wip/ out of the packages. - jackdaw/README.md (compiled as a doctest) and jackdaw-macros/README.md. The manifest pointed at a root README that no longer exists. - A `package` job in pr.yml and `just publish-dry-run` run `cargo publish --dry-run` for both crates. `just publish-crate` publishes jackdaw-macros, then jackdaw. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The `jackdaw` name on crates.io belongs to an unrelated project. The packages are now jackdaw-wf and jackdaw-wf-macros. `[lib] name` keeps the imports as `jackdaw` and `jackdaw_macros`, so `use jackdaw::prelude::*` and the macros' `::jackdaw::__private` paths are unchanged. Workspace deps keep their keys through `package = "..."`. Cargo commands now take the package name (`-p jackdaw-wf`) in the justfile, CI, the example headers, the test docs and the specs. The README and manifest links point at docs.rs/jackdaw-wf. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`cargo install jackdaw-cli --locked` now installs the `jackdaw` binary. [package.metadata.binstall] points `cargo binstall jackdaw-cli` at the GitHub release tarballs, so it can skip the build. The crate ships only src/ and the README. `just publish-dry-run`, `just publish-crate` and the CI package job cover all three crates. The install instructions are in the CLI README and the library docs. The CLI README's empty "Open Workflow Specification" link now points at serverlessworkflow.io. The Python setup steps in release-on-merge.yml are removed: they were left over from the dropped Python bindings, and nothing links against libpython any more. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The library builds with only what you enable:
- default = yaml, redb, http-client.
- Opt-in: sqlite, postgres, docker, openapi, http-listener, grpc-listener,
metrics.
- `full` enables everything, and the CLI and the tests use it.
Without features the dependency tree is 66 crates, against 148 by default
and 236 for `full`.
`yaml` covers `jackdaw::dsl`, the interpreter, `api::Workflow` and
`Validation`, `ctx.run_definition`, catalogs (whose entries are YAML) and
the engine's YAML methods. The native API works without it. The YAML
interpreter's state on `Shared` is grouped in `YamlRuntime`. `RunTarget`,
`TaskTarget` and `Dependency` become #[non_exhaustive], since their YAML
and catalog variants are gated and features must stay additive. A YAML
workflow that needs a missing feature fails with an error naming it.
Also:
- tokio uses only the features the library needs (`full` before).
- `console` is pulled in only by `yaml`.
- The HTTP listener moves to axum 0.8, so only one axum is built. 0.8
uses OpenAPI's `{param}` route syntax, so the path conversion is gone.
- docs.rs metadata, plus doc(cfg) on gated items.
- A feature table in the crate docs and README.
- A `features` CI job runs `cargo hack clippy` for each feature.
- The "YAML interpreter is optional" spec builds a downstream crate with
default-features = false. It checks that the native API runs and that
`Workflow::from_yaml` is absent.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`Engine::recover()` resumes running YAML instances, using the record the interpreter already keeps: its events and checkpoint. The stored `WorkflowStarted` now names `namespace/name/version`, and the definition comes from the YAML workflows registered with `yaml_workflow`. The interpreter changes to support this: - It saves a checkpoint when an instance starts, so the instance is listed and resumable from its first task. - It stores `WorkflowFailed`. - It runs on the engine's clock. A `wait` ends `duration` after the task first started, so a resumed wait only waits for what is left. - Dropping the engine stops its YAML runs, as it stops native instances: the interpreter's handle now aborts its run. `Schedule::from_workflow(workflow, input)` schedules a YAML workflow from its `schedule` block (`cron` or `every`) with the native scheduler. `execute_with` accepts YAML workflows, with an id and `create_only`, which schedules need. A `timeout` option is rejected for YAML. Listeners now bind before the workflow counts as started, retrying briefly while a stopping engine still holds the port. A bind that fails fails the workflow; before, it was only logged. The listener suite relied on servers from earlier scenarios that never stopped. Specs: "YAML workflows are durable on the new engine" (the wait checks that only the remaining minute is waited) and "YAML workflows with a schedule are scheduled by the engine". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The YAML interpreter gets an engine-wide event bus.
- `ctx.emit` publishes to it, on live runs only, never on replay. So do
YAML `emit` tasks.
- A YAML `listen` task whose filters are event attributes waits on the
bus. That is `to: one`, `any` or `all` with `with: { type: ... }`. It
returns the consumed events, or their data with `read: data`.
- Listen tasks that name an endpoint (`with.source.uri`) still go to the
HTTP and gRPC listeners. Startup no longer requires every listen task to
name one.
Before, the interpreter answered every non-endpoint `listen` with
`already_listening` and moved on.
Spec "Rust workflows can emit events": a YAML workflow on the engine
listens for `order.shipped`, a Rust workflow emits it, and the YAML
workflow completes with the event. The step wording now says `Emitted`,
the event the stream has always delivered for `ctx.emit`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… call `api::Listener` serves an OpenAPI document's operations (`Listener::openapi`) or a gRPC service from a .proto file (`Listener::grpc`). Each request starts the workflow bound with `.bind(operation, workflow)`, and its output is the response. - Registration and binding: register a listener with `EngineBuilder::listener`. `build` binds the socket synchronously, so port 0 works, and `Engine::listener_addr(name)` returns the address. - HTTP: the request's input is its JSON body plus the path and query parameters. Unreadable input is a 400, a failed workflow a 500, and an engine shutting down a 503. - gRPC: messages use the protobuf JSON mapping, through prost-reflect. - Shutdown: `Engine::shutdown` stops the listeners first and waits for the requests in flight. Dropping the engine closes the listeners; the servers hold the engine weakly. The gRPC server's method handlers are async now; the YAML interpreter wraps its synchronous ones. `serve_on` serves a socket that is already bound. `http-listener` and `grpc-listener` no longer imply `yaml`. Specs: the four scenarios in interop/listeners.feature. Their wording now matches the API (a listener name, the proto's `result` field, a request in flight during shutdown). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ing audit The scenario runner: - A watchdog thread ends the run (exit 2) when a scenario runs past JACKDAW_SCENARIO_TIMEOUT (600 s by default). It names the scenarios still running, so a hang fails CI instead of stalling it. With JACKDAW_HANG_DEBUGGER=lldb|gdb it prints every thread's stack first. It caught the flaky hang in "A resumed sleep waits only for the time that is left", which has not reproduced since. - JACKDAW_SCENARIO_CONCURRENCY sets how many scenarios run at once (default 8). - Scenario Postgres databases are dropped after each scenario. - Two harness races are fixed. The fan-out crash step now waits for chunk results to be recorded, since SQLite and Postgres record them later than Redb. The listener-shutdown step now checks that the request's workflow completed, not whether the client had read the response yet. CI (pr.yml): - `specs-on-stores` runs the library specs on SQLite and Postgres, one scenario at a time. With several at once the SQL stores stall; that is not fixed yet. Both pass in full locally. - `docs` builds the library docs with all features and warnings denied. - `cargo audit` fails the job on a vulnerability that is not ignored; each ignore is explained. Updating rustls-webpki to 0.103.16, webpki-roots to 1.0.11 and tokio to 1.54.1 fixes RUSTSEC-2026-0381, -0382 and -0386. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tes.io publishing
- CHANGELOG.md: the Unreleased (0.2.0) section, covering the library API,
the crates and their names, features, removals and the MSRV.
- CONTRIBUTING.md covers:
- the workspace and its tests, with their environment variables
- how `@todo` scenarios become `@implemented`
- the vendored DSL
- a stability note: what is meant to be stable before 1.0, what
follows the spec, what is not API
- the release steps
- The durability guide chapter adds:
- which workflow changes are safe for running instances
- a deploy procedure
- "The journal across jackdaw versions": the stored format and the
compatibility policy until 1.0
- release-on-merge.yml: a `publish-crates` job after the GitHub release.
It runs only when the repository variable PUBLISH_CRATES is "true",
uses CARGO_REGISTRY_TOKEN, and skips a version already on crates.io.
- The CLI README's one relative link is now absolute, since the README is
also jackdaw-cli's crates.io page.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
All three crates move to 0.2.0 together, as do the `=` pins between jackdaw-wf and jackdaw-wf-macros. The changelog's notes are now under [0.2.0]; set its date when the release is tagged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The image build did not copy jackdaw-macros, which the library depends on, so cargo could not load the workspace. It also built on nightly, a leftover from before edition 2024 was stable, and current nightly fails to compile sqlx-core. The builder now uses rust:1.99.0-alpine, matching rust-toolchain.toml. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…iner is missing The container runs with --rm, so once it exits `docker logs` has nothing; the reason it stopped (or never started) is in the output of `docker run` itself, which the test discarded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The expected errors in tests/rust/ui quote the standard library's source, which rustc includes only when rust-src is installed; without it the output differs and trybuild reports a mismatch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n audit with no ignores The older versions pulled in rsa (RUSTSEC-2023-0071), tokio-tar (RUSTSEC-2025-0111), number_prefix (RUSTSEC-2025-0119) and rustls-pemfile (RUSTSEC-2025-0134), which cargo audit had to ignore. None of them is in Cargo.lock now, so the audit runs without ignores. - bollard moved its option types to `query_parameters` and the container body to `models::ContainerCreateBody`; the Docker provider follows. bollard stays on 0.20 because testcontainers-modules 0.15 uses it. - sqlx 0.9 requires dynamic SQL to be marked: the stores' table names and the test databases' generated names are wrapped in `AssertSqlSafe`. - sqlx 0.9 needs Rust 1.94, so the minimum supported Rust version moves from 1.90 to 1.94 (the development toolchain stays 1.99). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
serde_yaml is archived and depends on unsafe-libyaml, which RustSec lists as unmaintained (RUSTSEC-2024-0449). serde-saphyr is a Serde layer on a pure-Rust YAML parser; jackdaw only reads YAML, so it is built with just its `deserialize` feature. The calls are the same (`from_str`, `Error`); serde-saphyr's error is larger (it carries a snippet of the source), so the CLI boxes it in its own error types. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The specification renamed itself and moved to the open-workflow-specification GitHub organization and
open-workflow-specification.org. The docs, crate descriptions, CLI text, Docker label and test descriptions use the
new names (the Open Workflow Specification, the Open Workflow DSL) and links; each crate's introduction mentions
the old name once so it can still be found by it. The submodule and `just update-dsl` examples point at the new
organization (the old URLs redirect).
Unchanged: the vendored `jackdaw/src/dsl`, the SDK's authorship ("The Serverless Workflow Authors", as upstream
still lists it), and error-type URIs in test fixtures, which are data.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eir older spellings The DSL reference defines the standard error types as https://open-workflow-specification.org/spec/1.0.0/errors/<type>; jackdaw raised .../dsl/errors/types/<type>, which the spec never defines. `api::error_types` and the executors now use the spec's URIs. A YAML `catch` compares `type` after mapping three older spellings to the current one: the spec 1.0.0 original (serverlessworkflow.io/spec/1.0.0/errors/), the form jackdaw 0.1 raised (serverlessworkflow.io/dsl/errors/types/), and the form the specification's own CTK still filters on (open-workflow-specification/specification#1199, with the fix in #1200). Other filter fields still compare exactly, and so does `Fault::kind` in Rust. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Nothing links OpenSSL or libpq (TLS is rustls, the Postgres driver is pure Rust), the bundled SQLite does not need pkg-config, and git was for the SDK git dependency, now vendored. musl-dev stays: it is the C toolchain for ring and SQLite. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
.ci held a CI pipeline written as a jackdaw workflow (`just ci`, `ci-clean`, `ci-reset`). CI runs on GitHub Actions, and nothing else referenced it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- release.yml built the same binaries and GitHub release as release-on-merge.yml, without the Docker image or the crates, and ran only on a hand-pushed v* tag, where it would make a second release. - dependabot.yml was GitHub's unfilled template (`package-ecosystem: ""`) and configured nothing. It now sends weekly grouped updates for cargo and GitHub Actions, and leaves dtolnay/rust-toolchain alone: those pins are the development toolchain and the MSRV. - The commented-out pre-commit hook ran `just ci`, which is gone. - .gitignore: workflow.db is no longer written, and node_modules is ignored wherever the examples live now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ainers 0.28 The Postgres tests start their container with testcontainers' GenericImage, so testcontainers-modules was unused, and it was what held bollard at 0.20. No code changes were needed for bollard 0.21. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The listener tests slept a fixed five seconds after `docker run` and then expected the container to be serving. Under load (CI, or beside the testcontainers Postgres tests) creating the container can take longer, and the gRPC TypeScript test then failed with "No such container". They now wait, for up to a minute, until the container logs "listener started", and stop waiting if `docker run` exits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Turns jackdaw from a CLI into a library first. You 10000 can write durable workflows in Rust, run Open Workflow YAML (formerly Serverless Workflow) on the same engine, and the CLI is now a thin crate built on the library's public API. Released as 0.2.0. The full list of changes is in
CHANGELOG.md.Crates
The repository is now a workspace of three crates. They're published together, all at the same version:
jackdaw-wfjackdawjackdaw-wf-macrosjackdaw_macros#[task],#[tasks],#[workflow],#[workflow_methods],#[catalog]jackdaw-clijackdawbinary (cargo install jackdaw-cli, orcargo binstall jackdaw-cli)The name
jackdawon crates.io belongs to another project, so the published names carry a suffix. The code still saysjackdaw.The library
jackdaw::api,jackdaw::prelude):EngineandEngineBuilder, with typed tasks and workflows from the macros.WorkflowContext:call,run,start,for_each,race,sleep,wait_for_event,wait_condition,continue_as_new,patched,emit, plus deterministicnow,randomanduuid.resume,recover,replay_all.Storetrait, plusPayloadCodec.scheduleblock.Workflow::from_yaml,ctx.run_definition, and YAML calling Rust tasks by name.listentasks receive events emitted on the engine.api::Listenerserves the operations in an OpenAPI document, or a gRPC service, and each request starts a workflow.jackdaw::testing::TestEnginegives a virtual clock, self-replay checks, simulated crashes and fake tasks.tracingspans per instance and step, andmetricsbehind a feature.yaml,redb,http-client.sqlite,postgres,docker,openapi,http-listener,grpc-listener,metrics.fullenables all of them.redbhas no C dependencies.jackdaw::guide) and runnable examples.Breaking changes
.cipipeline removed: the CI pipeline written as a jackdaw workflow, with itsjust ci,ci-cleanandci-resetrecipes, is gone. CI runs on GitHub Actions.DurableEngine,DurableEngineBuilderand the expression and context modules are private. YAML workflows run throughEngine.https://open-workflow-specification.org/spec/1.0.0/errors/<type>. 0.1 raisedhttps://serverlessworkflow.io/dsl/errors/types/<type>.catchstill matches the older spellings: the 0.1 form, the spec 1.0.0 original, and the…/dsl/errors/types/…form the CTK still uses (CTK try.feature filters its catch on an error type the spec never defines (dsl/errors/types/communication vs spec/1.0.0/errors/communication) open-workflow-specification/specification#1199).Fault::kindin Rust is exact.Dependencies and security
jackdaw::dsl, replacing the git dependency on a fork.just update-dsl [repo] [ref]refreshes them and records the upstream commit.serde-saphyr, which is pure Rust. It replaces the archivedserde_yamland the unmaintainedunsafe-libyamlunder it.testcontainers-modulesdev-dependency is gone.rsa,tokio-tar,number_prefixandrustls-pemfilefrom the lockfile.cargo auditnow runs with no ignores, and it fails the job on any vulnerability.ring, which rustls uses for TLS, and the bundled SQLite, which is built only with thesqlitefeature.Open Workflow Specification
The specification renamed itself and moved to the
open-workflow-specificationorganisation. The docs, crate descriptions, CLI text and Docker label now use the new names and links, and each crate's introduction mentions the old name once. The submodule URL points at the new organisation; the old URLs redirect.CI and release
cargo hack).dependabot.ymlwas an unfilled template. It now sends weekly grouped updates for cargo and GitHub Actions, leaving the pinned Rust toolchains alone.release.yml, which duplicated the merge workflow without the Docker image or crates, is removed.release-on-mergebuilds the binaries, the Docker image and the GitHub release when the version changes. It publishes the three crates only when the repository variablePUBLISH_CRATESistrueand theCARGO_REGISTRY_TOKENsecret is set.Testing
On merge
Merging bumps the version, so
release-on-mergewill build and publish the v0.2.0 binaries, the Docker image and the GitHub release. Crates go to crates.io oncePUBLISH_CRATESis set. For the first publish, runjust publish-crateafter the GitHub release exists, so thatcargo binstall jackdaw-clican find the binaries.Known follow-ups
…/dsl/errors/types/…alias incatchonce [Fix #1199] Use the mandated communication error type in the CTK try feature and the Try examples open-workflow-specification/specification#1200 lands.🤖 Generated with Claude Code