Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 19, 2025

DURABLE2003/DURABLE2004 analyzers report false positives when activity functions or sub-orchestrations are defined in referenced assemblies, since Roslyn analyzers cannot resolve symbols across assembly boundaries at compile time.

Changes

  • Severity: Changed from Warning to Info for both DURABLE2003 (activity) and DURABLE2004 (sub-orchestration)
  • Diagnostic message: Added clarification that cross-assembly functions can be safely ignored:

    "If the function is defined in another assembly, this diagnostic can be safely ignored. Static resolution across referenced assemblies is not supported."

  • Documentation: Updated AnalyzerReleases.Shipped.md to reflect severity change

Example diagnostic output

Before:

warning DURABLE2003: The activity function 'SayHello' was not found in the current compilation. Ensure the activity is defined and the name matches exactly.

After:

info DURABLE2003: The activity function 'SayHello' was not found in the current compilation. Ensure the activity is defined and the name matches exactly. If the function is defined in another assembly, this diagnostic can be safely ignored. Static resolution across referenced assemblies is not supported.
Original prompt

make changes to make functionnotfound analyzers severity level to info, also the diagnostic message should indicate something like
If the function is defined in another assembly, this diagnostic can be safely ignored.
Static resolution across referenced assemblies is not supported. #580


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

Copilot AI changed the title [WIP] Update functionnotfound analyzer severity level to info Change FunctionNotFound analyzer severity to Info for cross-assembly scenarios Dec 19, 2025
Copilot AI requested a review from YunchuWang December 19, 2025 22:15
@YunchuWang YunchuWang marked this pull request as ready for review December 19, 2025 22:46
Copilot AI review requested due to automatic review settings December 19, 2025 22:46
@YunchuWang YunchuWang requested a review from halspang December 19, 2025 22:47
Copy link
Contributor

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 addresses false positives in the FunctionNotFoundAnalyzer (DURABLE2003/DURABLE2004) by downgrading their severity from Warning to Info and clarifying that cross-assembly function references cannot be validated at compile time.

Key Changes:

  • Severity changed from DiagnosticSeverity.Warning to DiagnosticSeverity.Info for both DURABLE2003 and DURABLE2004
  • Diagnostic messages updated to clarify that cross-assembly functions are not statically resolvable
  • Documentation updated to use "Reports" instead of "Warns" to reflect the Info severity level

Reviewed changes

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

File Description
src/Analyzers/Activities/FunctionNotFoundAnalyzer.cs Updated severity from Warning to Info for both ActivityNotFoundRule and SubOrchestrationNotFoundRule
src/Analyzers/Resources.resx Added clarification text to diagnostic messages explaining that cross-assembly functions can be safely ignored
src/Analyzers/AnalyzerReleases.Shipped.md Updated documentation to reflect Info severity and changed "Warns" to "Reports" with added cross-assembly explanation

@YunchuWang YunchuWang merged commit cdf3f27 into main Dec 20, 2025
8 checks passed
@YunchuWang YunchuWang deleted the copilot/update-functionnotfound-analyzer branch December 20, 2025 00:45
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