Commit fef0403
Modules - Composition (#1343)
* Refactor module result repository to use IModule interface
* refactor: change TaskCompletionSource to instance variable in EngineCancellationTokenTests
* Refactor module interfaces and implementations to use IModule instead of ModuleBase
- Updated IModuleScheduler and IPipelineSetupExecutor interfaces to accept IModule instead of ModuleBase.
- Introduced ModuleDependencyResolver to handle module dependencies using DependsOn attributes.
- Refactored ModuleDisposer and ModuleExecutor to work with IModule and ModuleState.
- Enhanced ModuleState to track module results and skip decisions.
- Updated event notifications to use ModuleState instead of ModuleBase.
- Adjusted ProgressPrinter to manage progress for IModule and ModuleState.
- Modified IPipelineModuleHooks to work with IModule.
- Ensured all modules and related classes now consistently use IModule for better abstraction and flexibility.
* Refactor unit tests to use IModule interface and improve consistency
* refactor: update JSON serialization handling for IModule properties in PipelineSummary
* refactor: add global.json for SDK and test configuration; update TrxParsingTests to use temporary results directory
* refactor: update AzureCommandTests to implement IModule interface and improve test consistency
* refactor: update ModuleExecutor to create a scope for resolving IPipelineContext
* refactor: update .NET version in workflow to 10.0.x
* refactor: create a scope for resolving scoped services in ModuleExecutor
* fix: use scoped service provider in tests for IPipelineContext
IPipelineContext is a scoped service, so tests need to create a scope
before resolving it from the host's service provider.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* refactor: update test options to use WorkingDirectory instead of ProjectSolutionDirectoryDllExe
* refactor: update IModule references to use Module base class in various modules and tests
* refactor: replace RunModuleWithResult with RunModule in test cases
* fix: set completion result for skipped modules in ModuleExecutionPipeline
* refactor: update AzureCommandModules to inherit from Module base class and adjust test cases
* refactor: update modules to inherit from Module base class and override ExecuteAsync method
* refactor: enhance module dependency resolution to support self-referencing checks and available module types
* refactor: enhance logging for NotInParallel constraint checks in ModuleScheduler and related tests
* refactor: enhance logging in ModuleScheduler and simplify test setup in NotInParallelTestsWithConstraintKeys
* refactor: replace ConcurrentBag with ConcurrentDictionary for accurate module tracking in NotInParallelTestsWithConstraintKeys
* refactor: replace Dictionary with ConcurrentDictionary for thread-safe module start time tracking in MyModuleHooks
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 784ce43 commit fef0403
File tree
202 files changed
+3763
-2828
lines changed- .github
- workflows
- src
- ModularPipelines.Analyzers/ModularPipelines.Analyzers.Test
- ModularPipelines.Build
- Modules
- LocalMachine
- ModularPipelines.Examples
- Modules
- Azure
- ModularPipelines.Git
- ModularPipelines
- Attributes
- Context
- DependencyInjection
- Engine
- Executors
- ModuleHandlers
- Events
- Exceptions
- Extensions
- Helpers
- Host
- Interfaces
- Logging
- Models
- Modules
- Behaviors
- test
- ModularPipelines.Azure.UnitTests
- ModularPipelines.TestHelpers
- ModularPipelines.TestsForTests
- ModularPipelines.UnitTests
- Helpers
- Modules
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
202 files changed
+3763
-2828
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
| 115 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
| 22 | + | |
22 | 23 | | |
23 | | - | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | | - | |
| 33 | + | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| |||
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
49 | | - | |
50 | | - | |
| 48 | + | |
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
54 | | - | |
| 52 | + | |
55 | 53 | | |
56 | 54 | | |
57 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
| 52 | + | |
54 | 53 | | |
55 | | - | |
| 54 | + | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments