Skip to content

fix(workflow): harden workflow logs, engine concurrency, mail relay, and UI release rollbacks - #641

Merged
huyplb merged 1 commit into
mainfrom
fix/recent-review-hardening
Nov 23, 2026
Merged

huyplb merged 1 commit into
mainfrom
fix/recent-review-hardening

Conversation

@huyplb

@huyplb huyplb commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Hardens workflow failure diagnostics, database pipe concurrency, cron overlap execution, mail relay handling, and UI bundle release verification based on recent review findings:

  1. Workflow Failure Diagnostics:

    • Updates RunFailureSummary and server buildRunFailureSummary to aggregate all failed pipelines and pipes across concurrent branches (failedPipelines and failedPipes).
    • Updates RunsPanel and WorkflowLogPanel components to display multiple failed branches and steps rather than stopping at the first failure.
    • Enhances troubleshoot summary generation for complex multi-branch pipeline failures.
  2. Database Pipe & Cron Concurrency:

    • Hardens shared-handle-gate.ts lock handling for concurrent DB pipes sharing database connections.
    • Improves cron scheduler queue / overlap policy handling and timer lifecycle.
  3. Mail Relay & WordPress Plugin:

    • Hardens WordPress mail relay plugin (packaging/wordpress/foxschema-mail.php) error handling and auth mail delivery links.
  4. UI Bundle Release:

    • Adds rollback verification and integrity tests in scripts/ui-release/bundle.mjs and bundle.test.mjs.

Verification

  • npx vitest run: 69/69 relevant unit and component tests passing.
  • npm run typecheck: Passed (0 errors across web, server, e2e, cli).
  • npm run lint: Passed (0 errors).
  • npm run lint:security: Passed (0 warnings).

Note

Medium Risk
Touches workflow execution (DB transactions, cron scheduling, pipe status recording) and outbound mail security controls—behavior changes that could affect concurrent runs and production scheduling, though changes are covered by new tests.

Overview
Improves workflow run diagnostics when several pipelines or pipes fail in parallel: failure summaries and UI (RunsPanel, WorkflowLogPanel) now surface all failed branches, with refresh/live SSE reloading details, better median stats, and tighter troubleshoot hints.

Hardens engine runtime: shared DB handle gating waits for in-flight queries before BEGIN, SQL sessions roll back on close if they still hold a transaction, pipe status events no longer overwrite a failed pipe with a later success, and the cron coordinator uses a generation counter so stop()/start() during a tick cannot leave duplicate timers.

Also tightens the WordPress mail relay (daily rate limits, optional mail secret and allowed link hosts, invite copy), fixes UI release rollback version strings for repeated rollbacks, and tweaks auth invite email wording.

Reviewed by Cursor Bugbot for commit 42d6a9f. Bugbot is set up for automated code reviews on this repo. Configure here.

@cursor

cursor Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: aaeac683-9d8e-49ad-95cb-7f9e9ef1ed27)

@huyplb
huyplb merged commit f657728 into main Nov 23, 2026
12 checks passed
@huyplb
huyplb deleted the fix/recent-review-hardening branch November 23, 2026 04:48
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