Skip to content

fix: EventEmitter doc accuracy, registerPluginTrigger deterministic failure, remove duplicate admin tests#151

Merged
intel352 merged 2 commits intofeat/issue-84-engine-phase4-interfacesfrom
copilot/sub-pr-136
Feb 24, 2026
Merged

fix: EventEmitter doc accuracy, registerPluginTrigger deterministic failure, remove duplicate admin tests#151
intel352 merged 2 commits intofeat/issue-84-engine-phase4-interfacesfrom
copilot/sub-pr-136

Conversation

Copy link
Contributor

Copilot AI commented Feb 23, 2026

Addresses three unresolved review comments from the Phase 4 interfaces extraction PR.

Changes

  • interfaces/events.go: Doc comment claimed EventEmitter publishes "workflow and step lifecycle events" — corrected to "workflow lifecycle events" since no step-level methods exist on the interface.

  • engine_module_bridge.go / engine.go: registerPluginTrigger previously logged and silently returned when a plugin's trigger factory returned a non-interfaces.Trigger value, despite a comment saying "fail fast". Changed to return error; LoadPlugin now propagates it, so a misconfigured plugin trigger factory fails deterministically at load time:

    // Before: silent log + return
    e.logger.Error(fmt.Sprintf("...non-Trigger type %T...", result))
    return
    
    // After: error propagated through LoadPlugin
    return fmt.Errorf("workflow: plugin trigger factory for %q returned non-Trigger type %T", triggerType, result)
  • admin/admin_test.go: Removed TestLoadConfig_Parses and TestLoadConfigRaw_NonEmpty — exact duplicates of the pre-existing TestLoadConfig and TestLoadConfigRaw.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…r error handling, remove duplicate admin tests

Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor interface types for engine decomposition fix: EventEmitter doc accuracy, registerPluginTrigger deterministic failure, remove duplicate admin tests Feb 23, 2026
Copilot AI requested a review from intel352 February 23, 2026 21:06
@intel352 intel352 marked this pull request as ready for review February 24, 2026 00:18
@intel352 intel352 merged commit 8d570d4 into feat/issue-84-engine-phase4-interfaces Feb 24, 2026
@intel352 intel352 deleted the copilot/sub-pr-136 branch February 24, 2026 00:18
intel352 added a commit that referenced this pull request Feb 24, 2026
…rom module (#84) (#136)

* refactor: extract Trigger, EventEmitter, MetricsRecorder interfaces from module package (#84)

Phase 4 engine decomposition progress:
- Move Trigger interface to interfaces/ package (module.Trigger is now a type alias)
- Add EventEmitter and MetricsRecorder interfaces in interfaces/
- Add TriggerRegistrar interface for registry abstraction
- Create engine_module_bridge.go to isolate remaining module/ imports
- Update engine.go fields to use interface types instead of concrete module types
- Fix mock GetService to support interface assignment (matching real modular behavior)
- Add 10 new tests for requires.plugins validation (15 test runs with subtests)

Closes #84 (partial)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: tighten engine_module_bridge and mockApplication based on review feedback (#148)

* Initial plan

* refactor: address code review feedback on engine_module_bridge and engine_test

Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>

* fix: correct syntax error in TestMergeInto_WithRealAdminConfig

The function was closed with a mismatched `)` instead of `}` and had
2-space indented closing brace for the if block instead of tab-indented.
This caused `expected statement, found ')'` errors, breaking all
build/vet/test CI checks on any branch touching this file.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: EventEmitter doc accuracy, registerPluginTrigger deterministic failure, remove duplicate admin tests (#151)

* Initial plan

* fix: address review comments - EventEmitter doc, registerPluginTrigger error handling, remove duplicate admin tests

Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>

* fix: require master_password for RDS instance creation instead of defaulting

Remove hardcoded default password fallback in the RDS driver. The Create
method now returns an error if master_password is not provided, preventing
insecure defaults from being used in production.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: restore missing multiWorkflowAddr flag declaration in cmd/server

The flag was referenced but not declared, causing build failures.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: restore missing `multiWorkflowAddr` flag in cmd/server/main.go (#153)

* Initial plan

* fix: restore missing multiWorkflowAddr flag definition in cmd/server/main.go

Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
Co-authored-by: Jonathan Langevin <codingsloth@pm.me>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
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.

2 participants