Skip to content

Conversation

@koparasy
Copy link
Member

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a Policy abstraction that serves as a factory for creating Pipeline objects. The Policy pattern separates the "what" (control flow and strategy) from the "how" (execution details in Actions), providing a clean architectural boundary for defining different workflow behaviors.

Key changes:

  • Adds Policy abstract base class with makePipeline() factory method
  • Implements comprehensive unit tests covering normal execution and error handling
  • Integrates the new test into the CMake build system

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/AMSlib/wf/policy.hpp Defines the Policy abstract interface as a factory for Pipeline construction
tests/AMSlib/wf/policy.cpp Provides comprehensive test coverage with mock implementations testing both success and failure scenarios
tests/AMSlib/wf/CMakeLists.txt Registers the new policy unit test in the build system

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI commented Dec 18, 2025

@koparasy I've opened a new pull request, #184, to work on those changes. Once the pull request is ready, I'll request review from you.

* Initial plan

* Remove unnecessary __has_include preprocessor check

Co-authored-by: koparasy <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: koparasy <[email protected]>
Copy link
Member

@lpottier lpottier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@koparasy koparasy merged commit 441c250 into develop Dec 18, 2025
21 checks passed
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.

3 participants