elsa-core/src/modules/Elsa.Workflows.Runtime
Sipke Schoorstra 5862bb84e3
fix(build): make ConfigureAwait.Fody weaving actually take effect (#7983)
* fix(build): make ConfigureAwait.Fody weaving actually take effect

ConfigureAwait.Fody only rewrites awaits when it is handed an explicit
ContinueOnCapturedContext value. A bare <ConfigureAwait /> element parses
cleanly, emits no warning, and weaves nothing.

Of the 98 FodyWeavers.xml files under src/, only 22 set the attribute. The
other 76 carried a bare element, so those projects compiled with no weaving
at all while looking correctly configured. Verified on Debug net10.0 builds:
Elsa.Secrets (attribute set) referenced ConfiguredTaskAwaitable, while
Elsa.Alterations (bare element) did not.

Elsa ships as a library and can be hosted where a SynchronizationContext
exists, so weave everywhere rather than dropping the packages.

Fody reads the WeaverConfiguration MSBuild property in preference to any
FodyWeavers.xml, so the directive now lives in a single file, src/Fody.props,
alongside the package references it belongs with. All 98 per-project XML files
are deleted; they would otherwise be dead and misleading.

src/apps has its own props root that does not chain up to
src/Directory.Build.props, so it imports src/Fody.props directly instead of
redeclaring the Fody package references. This second gap was found by the
guard below, not by inspection.

Guard: Directory.Build.targets fails the build for any project that references
ConfigureAwait.Fody without an effective directive (ELSA0001) or that
reintroduces a FodyWeavers.xml alongside it (ELSA0002). Both were verified to
fire, including on the exact original bug shape.

The 22 already-weaving projects are unaffected: their effective directive is
identical before and after, and that set is disjoint from the four projects
holding explicit .ConfigureAwait( calls. All 25 such calls pass false, matching
what the weaver now applies, so they become redundant rather than contradictory
and are left in place.

Also repoints two security-assessment claims that cited the presence of
FodyWeavers.xml as evidence of weaving — the inference that masked this bug.

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

* fix(build): drop FodyWeavers.xml from the new UserTasks modules

Merging main brought in eight new projects. Elsa.UserTasks carried a bare
<ConfigureAwait /> — the same latent no-op this branch removes elsewhere, added
while the fix was in review. Its seven persistence siblings set the attribute.

The guard caught it: ELSA0002 failed CI on the PR merge commit for all three
TFMs, on a file that never existed in the branch's own worktree.

All eight are redundant now that src/Fody.props supplies the directive.
Verified Elsa.UserTasks resolves it and its net10.0 build references
ConfiguredTaskAwaitable.

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

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-25 01:37:23 +02:00
..
ActivationValidators Add workflow activation and startup services. (#6076) 2024-10-30 22:51:14 +01:00
Activities fix: stop two silent serialization and test-isolation traps (#7969) 2026-08-21 00:36:11 +02:00
Bookmarks Merge branch 'refs/heads/main' into blueberry 2025-03-10 15:13:26 +02:00
Commands Add workflow dispatch transactional outbox (#7517) 2026-05-22 00:13:16 +02:00
Comparers Refactor: Overhauls workflow JSON type serialization (#7549) 2026-05-31 11:09:39 +02:00
Constants Add Fault Code, Category and Type (#5362) 2024-05-10 15:30:32 +02:00
Contexts Add workflow activation and startup services. (#6076) 2024-10-30 22:51:14 +01:00
Contracts Merge pull request #7748 from elsa-workflows/sfmskywalker-fix-commit-state-atomicity 2026-06-23 03:10:36 +02:00
Discovery [codex] Fix console log metadata and type resolution (#7542) 2026-05-30 22:52:01 +02:00
Entities Add bookmark queue dead-letter store (#7516) 2026-05-21 23:43:36 +02:00
Enums Graceful shutdown for the workflow runtime (drain, pause, recover) (#7424) 2026-05-02 19:27:08 +02:00
Exceptions Graceful shutdown for the workflow runtime (drain, pause, recover) (#7424) 2026-05-02 19:27:08 +02:00
Extensions Refactor: Overhauls workflow JSON type serialization (#7549) 2026-05-31 11:09:39 +02:00
Features Fix workflow commit atomicity 2026-06-21 19:58:09 +02:00
Filters Add bookmark queue dead-letter store (#7516) 2026-05-21 23:43:36 +02:00
Handlers Add workflow dispatch transactional outbox (#7517) 2026-05-22 00:13:16 +02:00
HealthChecks Address health check review feedback 2026-05-21 02:13:19 +02:00
HostedServices Graceful shutdown for the workflow runtime (drain, pause, recover) (#7424) 2026-05-02 19:27:08 +02:00
IngressSources Graceful shutdown for the workflow runtime (drain, pause, recover) (#7424) 2026-05-02 19:27:08 +02:00
Lifecycle Graceful shutdown for the workflow runtime (drain, pause, recover) (#7424) 2026-05-02 19:27:08 +02:00
LogPersistence Refactor activity execution record capturing (#6836) 2025-08-04 08:44:42 +02:00
Matches Incremental work on restoring previous workflow runtime API surface for backward compatibility 2025-01-28 00:11:25 +01:00
Messages Adds activity execution call stack support (#7271) 2026-02-24 15:23:59 +01:00
Middleware Add workflow dispatch transactional outbox (#7517) 2026-05-22 00:13:16 +02:00
Models Add workflow dispatch transactional outbox (#7517) 2026-05-22 00:13:16 +02:00
Notifications Graceful shutdown for the workflow runtime (drain, pause, recover) (#7424) 2026-05-02 19:27:08 +02:00
OptionConfigurators Graceful shutdown for the workflow runtime (drain, pause, recover) (#7424) 2026-05-02 19:27:08 +02:00
Options Fix workflow commit atomicity 2026-06-21 19:58:09 +02:00
OrderDefinitions Add bookmark queue dead-letter store (#7516) 2026-05-21 23:43:36 +02:00
Parameters Deprecate and clean up legacy workflow runtime components. 2025-01-28 09:26:46 +01:00
Params Deprecate and clean up legacy workflow runtime components. 2025-01-28 09:26:46 +01:00
Providers [codex] Harden workflow JSON type resolution (#7499) 2026-05-22 15:25:49 +02:00
Requests Graceful shutdown for the workflow runtime (drain, pause, recover) (#7424) 2026-05-02 19:27:08 +02:00
Responses Distributed locks to prevent multiple pods executing Reload and Refresh (#7311) 2026-02-23 20:56:15 +01:00
Results Merge branch 'refs/heads/main' into blueberry 2025-03-10 15:13:26 +02:00
Services fix(runtime): let a trigger index payloads under per-payload stimulus names (#7950) 2026-08-17 23:43:59 +02:00
ShellFeatures Fix workflow commit atomicity 2026-06-21 19:58:09 +02:00
StartupTasks Graceful shutdown for the workflow runtime (drain, pause, recover) (#7424) 2026-05-02 19:27:08 +02:00
Stimuli ExecuteWorkflow Activity: Add Wait For Completion option (#6153) 2024-11-26 20:37:41 +01:00
Stores Fix scheduling startup backlog catch-up 2026-06-21 19:43:09 +02:00
Tasks Add workflow dispatch transactional outbox (#7517) 2026-05-22 00:13:16 +02:00
UIHints Implement dispatch channels (#4949) 2024-02-16 10:56:30 +01:00
AssemblyInfo.cs Add workflow dispatch transactional outbox (#7517) 2026-05-22 00:13:16 +02:00
Elsa.Workflows.Runtime.csproj [codex] Extract dashboard contributors into companion modules (#7692) 2026-06-05 14:30:52 +02:00
Elsa.Workflows.Runtime.csproj.DotSettings Fixed Log Persistence Mode Evaluation For Activity Execution (#6595) 2025-04-17 18:03:06 +02:00
RuntimeStimulusNames.cs Support for Writing Custom Trigger Activities Using Existing Trigger Infrastructure (#6527) 2025-03-21 23:16:56 +01:00
WorkflowRuntimeTypeAliasRegistrar.cs Refactor: Overhauls workflow JSON type serialization (#7549) 2026-05-31 11:09:39 +02:00