Skip to content

[Foundation] Refactor IBuildExtension hooks onto middleware pipeline #94

Closed

Description

@ChrisonSimtian

Part of the v11 internal-foundation workstream. See docs/roadmap.md and milestone #6.

Goal

The IBuildExtension lifecycle hooks (IOnBuildCreated, IOnBuildInitialized, IOnTargetRunning, IOnTargetSucceeded, IOnTargetFailed, IOnBuildFinished) are attribute-discovered via reflection. Reimplement them on the new middleware pipeline (#93) so they become DI-registered handlers internally, while the consumer-facing interfaces stay identical for back-compat.

Scope

  • Internally, lifecycle hooks become ITargetLifecycleListener (internal in v11) — multiple implementations resolved via IEnumerable<ITargetLifecycleListener> from the container.
  • The orchestrator invokes registered listeners at the right phase transitions.
  • Existing IOnXyz attribute hooks keep working — scanned at startup, registered as listener instances.
  • Re-register every CI host integration (TeamCity, Azure Pipelines, GitHub Actions, Jenkins, Bitrise, etc. — ~12) through the new mechanism. Verify each still emits its expected metadata.

Verification

  • All Fallout.Common.CI.* integrations still emit their CI-specific output. Smoke-test via ./build.ps1 Compile under act or similar for at least one provider.
  • ITargetLifecycleListener is internal, not exposed to consumers in v11.
  • Existing extension-hook tests in tests/Fallout.Build.Tests/ pass.

Out of scope (tracked separately)

Blocks

Activity

  1. ChrisonSimtian commented on Jun 16, 2026

    @ChrisonSimtian
    CollaboratorAuthor

    Superseded by the [Foundation] FT-* series (epic #315), which re-decomposes this engine-foundation work with file:line findings and an explicitly backwards-compatible, facade-preserving scope (vs. the obsolete v11 "breaking" framing here). Tracked going forward by: #312 (#FT-7: extension hooks onto the formalized pipeline). Closing to avoid double-counting milestone #6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions