Skip to content

chore(engine): release 1.12.0#207

Merged
hugocorreia90 merged 4 commits intomainfrom
chore/engine-release-1.12.0
Apr 21, 2026
Merged

chore(engine): release 1.12.0#207
hugocorreia90 merged 4 commits intomainfrom
chore/engine-release-1.12.0

Conversation

@hugocorreia90
Copy link
Copy Markdown
Contributor

Summary

Coordinated release cut: engine-v1.12.0. Eight PRs since v1.11.0 (all 2026-04-21).

Arc 1 wave 2 shipped + a short cleanup wave around it. record_run wiring finally makes the run-history query surfaces (rocky history / replay / trace / cost) return real data end-to-end, plus two new commands (rocky cost, rocky branch compare) and a SIGPIPE fix.

What's in this release

New commands

Load-bearing engine changes

Fixes

Internal

Pre-flight completed

  • cargo build --release clean (built as 1.12.0)
  • cargo test --workspace --lib — all tests pass
  • cargo clippy --workspace --all-targets -- -D warnings clean
  • cargo fmt --all --check clean
  • just codegen idempotent (no diff after regen)
  • 20 Cargo.toml files bumped from 1.11.0 → 1.12.0 (all engine crates + rocky + rocky-lsp; rocky-bigquery stays on its own 0.1.0 track per convention)
  • CHANGELOG promoted [Unreleased][1.12.0] — 2026-04-21 with structured Added / Fixed / Internal sections

After merge

Per the rocky-release skill, tagging + pushing engine-v1.12.0 triggers engine-release.yml (5-platform build matrix + GH Release creation). Not doing that automatically here — hold for explicit go-ahead post-merge.

Sibling releases: chore/dagster-release-1.8.0, chore/vscode-release-1.6.2.

Arc 1 wave 2 + cleanup cascade. Eight PRs since v1.11.0:

- #199 SIGPIPE handler
- #200 rocky branch compare
- #201 POC target_dialect cleanup
- #202 rocky cost <run_id|latest> (Arc 2 wave 2 first PR)
- #203 rocky run persists RunRecord (Arc 1 wave 2 load-bearing fix)
- #204 docs + CHANGELOG [Unreleased] cascade
- #205 demo-branches-replay.gif refresh
- #206 real per-model started_at on MaterializationOutput

rocky history / replay / trace / cost now return real data end-to-end
for the first time. Full notes in CHANGELOG.
- `StateConfig.transfer_timeout_seconds` (default 300s) replaces the hard-
  coded `STATE_TRANSFER_TIMEOUT`. Operators can now tune the wall-clock
  budget in `rocky.toml` for very large state or slow networks without
  recompiling. `StateConfig` gains a manual `Default` impl so
  `StateConfig::default()` yields 300s (not u64's zero).
- `state.upload` / `state.download` tracing spans wrap every transfer
  carrying `backend`, `bucket`, and `size_bytes`. The in-elapse warn event
  inherits those fields automatically, so hung transfers are diagnosable
  from stderr logs alone (which dagster-rocky streams into the Dagster run
  viewer).
- Structured `warn!` on timeout elapse ("state transfer exceeded timeout
  budget") with a `duration_ms` field — replaces silent `Timeout(_)`.
- Valkey read/write paths audited and closed: `redis::Client::get_connection`
  + `redis::cmd(...).query()` are sync and blocked the tokio runtime thread;
  no outer `tokio::time::timeout` could rescue them. Both `upload_to_valkey`
  and `download_from_valkey` now run under `tokio::task::spawn_blocking`
  inside `with_transfer_timeout`, closing the same class of hang the
  object-store paths were already protected against.
- `default_client_options()` in `object_store.rs` honours the standard
  `object_store`-crate env vars `AWS_ALLOW_HTTP` / `AZURE_ALLOW_HTTP` /
  `GOOGLE_STORAGE_ALLOW_HTTP`. Always off in production; the new
  integration test uses it to front-end the S3 SDK with a plain-HTTP
  wiremock server without bypassing the credential chain.
- New `tests/state_sync_timeout_test.rs` integration test: a wiremock S3
  endpoint that holds PutObject for 1h proves `upload_state` returns
  `StateSyncError::Timeout` within the configured 2s budget (+grace).
  A prompt-endpoint negative control guards against regressions.
- CHANGELOG entries added under [1.12.0]. Example config in
  `engine/examples/dagster-integration/rocky.toml` surfaces the new key.

cargo fmt clean; `clippy --workspace --all-targets -- -D warnings` clean;
all 977 rocky-core unit tests + 30 e2e + 20 integration + the 2 new
timeout tests pass.
`just regen-fixtures` — version string bump only (1.11.0 → 1.12.0) across
35 captured fixtures under integrations/dagster/tests/fixtures_generated/.
@hugocorreia90 hugocorreia90 merged commit c84f30c into main Apr 21, 2026
15 of 16 checks passed
@hugocorreia90 hugocorreia90 deleted the chore/engine-release-1.12.0 branch April 21, 2026 18:34
hugocorreia90 added a commit that referenced this pull request Apr 21, 2026
)

Closes two silent-drift classes that hit three times in a single day
(2026-04-21) during the Arc 1 wave 2 cascade:

## Fix 1 — codegen-vscode auto-installs deps

Before: `just codegen-vscode` assumed `editors/vscode/node_modules`
was already populated. When it wasn't (fresh worktree, CI runner,
release PR checkout), the npx json2ts step failed with "could not
determine executable to run" — but `codegen-rust` + `codegen-dagster`
had already written their outputs, so half the pipeline had run. If
the dev didn't notice the error scroll and committed anyway, the
partial state landed on main and codegen-drift.yml fired on the next
PR. Happened to me on PR #204, and to whoever ran codegen for the
v1.12.0 release PR (#207#210 hotfix).

After: the recipe checks for node_modules and runs `npm install`
automatically. ~15s cost on a cold cache, skipped when deps are
present. Same self-heal pattern codegen-dagster already uses via
`uv run`.

## Fix 2 — new `codegen-all` recipe bundles regen-fixtures

Before: `just codegen` regenerated schemas + bindings but not
fixtures. Engine version bumps cascaded every fixture's `"version"`
field out of sync (hit on PR #207 release). The muscle memory was
"run codegen and you're done", which was wrong for anything
touching output shapes or version strings.

After: `just codegen-all` runs codegen + regen-fixtures together.
Kept `codegen` as the fast dev loop (~30s) and `codegen-all` as the
slower release loop (~1-2 min of extra fixture regen). Docstring on
`codegen` now points at `codegen-all` for the cases where it's the
right tool.

## Verification

- [x] Deleted `editors/vscode/node_modules`, ran `just codegen` — self-heal kicked in, npm install ran, codegen completed cleanly, `git status` shows only `justfile` modified (idempotent against main).
- [x] `just --list` shows both `codegen` and `codegen-all`.

## Not in scope (noted for follow-up if needed)

- Upfront preflight check (Fix B from the discussion) — decided against, because the self-heal in Fix 1 makes it redundant. Both dagster (uv-managed) and vscode (npm-managed) codegen steps now recover from missing deps on their own.
- Pre-commit hook additions — `.git-hooks/pre-commit` already runs codegen drift detection when schema files are staged; opt-in via `just install-hooks`. Making it default-on is a separate discussion about solo-project friction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant