Repository navigation
fix(workflow): harden workflow logs, engine concurrency, mail relay, and UI release rollbacks - #641
Merged
Merged
Conversation
Contributor
Bugbot couldn't run - usage limit reachedBugbot 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) |
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.
Summary
Hardens workflow failure diagnostics, database pipe concurrency, cron overlap execution, mail relay handling, and UI bundle release verification based on recent review findings:
Workflow Failure Diagnostics:
RunFailureSummaryand serverbuildRunFailureSummaryto aggregate all failed pipelines and pipes across concurrent branches (failedPipelinesandfailedPipes).RunsPanelandWorkflowLogPanelcomponents to display multiple failed branches and steps rather than stopping at the first failure.Database Pipe & Cron Concurrency:
shared-handle-gate.tslock handling for concurrent DB pipes sharing database connections.Mail Relay & WordPress Plugin:
packaging/wordpress/foxschema-mail.php) error handling and auth mail delivery links.UI Bundle Release:
scripts/ui-release/bundle.mjsandbundle.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 sostop()/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.