You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hop.apache.org by "mattcasters (via GitHub)" <gi...@apache.org> on 2026/09/27 15:00:18 UTC

[PR] Issue #8648: Replay Workflow Engine, Replay Gates, and Execution Viewer integration (hop)

mattcasters opened a new pull request, #8649:
URL: https://github.com/apache/hop/pull/8649

   ### What changes were proposed in this pull request?
   This pull request implements the **Replay Workflow Engine**, **Replay Gates** on workflow actions and pipeline transforms, and full integration with the Hop GUI **Execution Perspective**, addressing #8648.
   
   #### Key Features:
   1. **Replay Gates (Transforms and Workflow Actions)**:
      - Configurable checkpoints on transforms and workflow actions (`@GuiContextAction`: *Configure Replay Gate*).
      - Visual badge overlays (`#` shield badge) on canvas icons with detailed tooltips.
      - Spools execution results (workflow actions) and intermediate binary row streams with compression (pipeline transforms) to VFS paths (`${PROJECT_HOME}/.hop/spool/...`).
      - Cryptographic manifest generation (`manifest.json`) verifying SHA-256 hashes of metadata attributes, hops, input variables/parameters, and data schemas/counts.
   
   2. **Hop Replay Workflow Engine (`ReplayWorkflowEngine`)**:
      - Specialized `@WorkflowEnginePlugin(id = "Replay")` that skips completed upstream actions whose gates are sealed and verified against SHA-256 checksums.
      - Restores exact prior action results (exit status, files, rows, variables, metrics) into the active workflow context.
      - Resumes live execution starting at the first failed/unsealed action (or user-designated start action).
      - Standard engines (`local`, `remote`) continue to execute all actions normally without skipping.
   
   3. **Execution Perspective One-Click Replay**:
      - Added a **Replay** toolbar action (`ui/images/replay.svg`) in `WorkflowExecutionViewer`.
      - Automatically pre-selects the first available Replay workflow run configuration in `WorkflowExecutionConfigurationDialog`.
      - Transitions to the Explorer perspective, prepares live logs, and launches execution.
   
   4. **Serialization and Execution Info Fixes**:
      - Fixed POJO and null handling in `XmlMetadataUtil` and `SerializableMetadataProvider` so execution information locations with polymorphic metadata (e.g. AI providers) reload cleanly in the Execution Perspective.
   
   5. **Comprehensive User Documentation**:
      - Added user guide for Replay Gates and Workflow Replay (`replay-gate.adoc`) including data engineer responsibilities (idempotency, side effects, gate placement strategy, storage management), capabilities, and boundaries.
      - Added engine reference page (`replay-workflow-engine.adoc`).
      - Included UI screenshots of the transform gate configuration and execution viewer toolbar.
      - Unit tests covering configuration resolution and gate listeners.
   
   ### Issue Priority
   Priority: 2
   
   ### Issue Component
   Component: Workflows


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Issue #8648: Replay Workflow Engine, Replay Gates, and Execution Viewer integration (hop)

Posted by "mattcasters (via GitHub) via issues" <is...@hop.apache.org>.
mattcasters commented on PR #8649:
URL: https://github.com/apache/hop/pull/8649#issuecomment-6606977207

   Thanks @hansva, that was a very useful review. I rebased onto main and reworked the gates along the lines you suggested.
   
   - **Run identity:** the spool is keyed by the source execution ID, and a successful workflow deletes that execution's folder. Every engine records gates now; only the Replay engine skips.
   - **Invalidation:** a sealed gate is reused only when the SHA-256 of the action XML, the workflow parameters and the variables referenced in that XML still match. Variables the action changed are stored and restored.
   - **Start action / paths:** skipping is decided per path. Once an action on a path has to run, the rest of that path runs, sealed or not, and parallel branches keep their own decision.
   - **Transform gates:** dropped. Nothing read the spool back, so that becomes a follow-up.
   - **Core serializer changes:** taken out of this PR. I split them out so they can get their own issue and PR.
   - **Test:** a new integration test fails mid-way, replays, and checks which actions ran or were skipped, including a parallel branch and the start action.
   
   The docs now describe only what the code does. The inline items (run configuration `clone()`, the dialog recipe, i18n, the Execution perspective button) are addressed too.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Issue #8648: Replay Workflow Engine, Replay Gates, and Execution Viewer integration (hop)

Posted by "hansva (via GitHub) via issues" <is...@hop.apache.org>.
hansva merged PR #8649:
URL: https://github.com/apache/hop/pull/8649


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org