Skip to content

[Dependencies] Updating FunFair.CodeAnalysis (Code analysis) to 7.2.13.2323 - #127

Merged
dnyw4l3n13 merged 2 commits into
mainfrom
depends/update-funfair.codeanalysis/7.2.13.2323
Aug 22, 2026
Merged

dnyw4l3n13 merged 2 commits into
mainfrom
depends/update-funfair.codeanalysis/7.2.13.2323

Conversation

@dnyw4l3n13

Copy link
Copy Markdown
Collaborator

Description

How Has This Been Tested

  • All unit tests pass.
  • All integration tests pass.
  • Manual Testing:

Types of changes

  • Docs change
  • Refactoring
  • Dependency upgrade
  • Additional Unit Tests\Integration Tests
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing
    functionality to change)
  • Removed no-longer used code

Deployment Configuration Changes

  • Requires deployment configuration changes as specified below and in CHANGELOG.md

Checklist

  • I have added tests to cover my changes.
  • Unreleased section of CHANGELOG.md has been updated with details of this PR.
  • No user-controlled or step-output value is string-interpolated directly into a run:/script: body (workflow or composite action); pass it via step-level env: and reference $VAR (bash) or process.env.VAR (github-script) instead.

@dnyw4l3n13 dnyw4l3n13 added the auto-pr Pull request created automatically label Aug 21, 2026
@github-actions

Copy link
Copy Markdown

Thanks for opening this pull request! Please make sure you have read the contributing guidelines.

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@dnyw4l3n13
dnyw4l3n13 force-pushed the depends/update-funfair.codeanalysis/7.2.13.2323 branch from 5f8a893 to a5c9d02 Compare August 21, 2026 17:02
Multi-targeted projects (Attributes: netstandard2.0/net8.0/net10.0,
Generics: netstandard2.0/netstandard2.1) had every TFM's compile write
its Roslyn analyzer output to the same ErrorLog path
($(MSBuildProjectName).sarif), so concurrent csc processes corrupted
each other's JSON. This also affected single-targeting projects
(Generation, Models) once ErrorLog started keying on $(TargetFramework),
since that property isn't resolved yet when Directory.Build.props
(which imports Packaging.props) is evaluated for a project using the
singular <TargetFramework> element.

Fix: key ErrorLog on $(MSBuildProjectName).$(TargetFramework), and move
that property (and ReportAnalyzer) into a new src/Directory.Build.targets,
imported after the project body so $(TargetFramework) is always resolved.

Verified locally: dotnet build -t:Rebuild -p:EnableSarif=True now
produces 7 distinct, validly-parsing SARIF files (one per project/TFM)
with no path collisions.

This bug is pre-existing on main (confirmed failing there with the same
"failed to parse ...Attributes.sarif" error at differing byte offsets,
a classic race signature) - not introduced by the FunFair.CodeAnalysis
bump this PR carries.
@dnyw4l3n13

Copy link
Copy Markdown
Collaborator Author

Fixed in d1dc05a - build-pre-release was failing on a pre-existing bug, also reproducible on main (confirmed: same failed to parse ...Attributes.sarif error, differing byte offset each time - not introduced by this PR's FunFair.CodeAnalysis bump).

Root cause: src/Packaging.props keyed each project's Roslyn analyzer ErrorLog (SARIF) output on $(MSBuildProjectName) alone. Multi-targeted projects (Attributes: netstandard2.0/net8.0/net10.0, Generics: netstandard2.0/netstandard2.1) compile more than once per build, so concurrent csc processes for the same project wrote to the same file path and corrupted each other's JSON - the "no SARIF files matched" failure downstream was just the cascade from that corruption.

Fix:

  • ErrorLog now keys on $(MSBuildProjectName).$(TargetFramework) so each compile gets a distinct path.
  • Moved that property (and ReportAnalyzer) from Directory.Build.props (via Packaging.props) into a new src/Directory.Build.targets, since $(TargetFramework) isn't resolved yet at Directory.Build.props evaluation time for single-targeting projects (Generation, Models) that declare it with the singular <TargetFramework> element - without this move those two projects would get a broken ProjectName..sarif (empty TFM segment).

Verified locally: dotnet build -t:Rebuild -p:EnableSarif=True now produces 7 distinct, validly-parsing SARIF files (one per project/TFM combination), with no path collisions.

Note for reviewers: Attributes and Generics will now upload 2-3 separate code-scanning runs each (one per TFM, since automationDetails.id is derived from filename) instead of one - this means the same analyzer finding can appear as multiple alerts under different categories. This is expected and not a new bug (previously either one TFM's compile silently won the race, or the whole job failed).

Board moved to Development; CI will re-run on this push.

@credfeto

Copy link
Copy Markdown
Owner

Roslyn analyzer findings

Source Rule Level File Line Suppressed Message
DotNet S1133 error src/Credfeto.Enumeration.Source.Generation.Models/ExampleEnumValues.cs 21 yes Do not forget to remove this deprecated code someday.

@dnyw4l3n13

Copy link
Copy Markdown
Collaborator Author

Setup: cleared a stale in-progress rebase left in the container from PR #128 (unrelated branch), checked out this PR's branch (depends/update-funfair.codeanalysis/7.2.13.2323, clean, up to date with origin), no linked issues to sync labels from. Next: CI check.

@dnyw4l3n13

Copy link
Copy Markdown
Collaborator Author

Setup: cleaned up a dirty working tree found on this branch (uncommitted edit to src/Directory.Build.targets refining the SARIF ErrorLog condition), confirmed already on depends/update-funfair.codeanalysis/7.2.13.2323 and up to date with origin, no linked issues to sync labels from, already assigned. Next: fix outstanding work (the uncommitted refinement needs to be committed and verified).

@dnyw4l3n13

Copy link
Copy Markdown
Collaborator Author

Simplify clean - advancing to code review. Ran /simplify (4 parallel review agents: reuse, simplification, efficiency, altitude) against the diff; no actionable findings. Note: an unrelated uncommitted edit found in the working tree at session start (an unverified functional change to the SARIF ErrorLog condition) was discarded rather than committed - d1dc05a's own verification (7 distinct, validly-parsing SARIF files, matching TFM count) shows the guard it added wasn't fixing a real bug.

@dnyw4l3n13

Copy link
Copy Markdown
Collaborator Author

Code review clean - advancing to security review. Reviewed the diff (FunFair.CodeAnalysis dependency bump across all csproj files, plus the SARIF ErrorLog path-collision fix in src/Directory.Build.targets); no application code changed, CI green, no findings.

@dnyw4l3n13

Copy link
Copy Markdown
Collaborator Author

Security review clean, advancing to coverage check. Reviewed the diff (FunFair.CodeAnalysis dependency bump, PrivateAssets=All/analyzer-only, plus the SARIF ErrorLog path fix moving config from Packaging.props to a new Directory.Build.targets); all path components are build-time, repo-fixed MSBuild values with no attacker-controllable input. No findings.

@dnyw4l3n13

Copy link
Copy Markdown
Collaborator Author

Coverage ratchet passed - advancing to Human Review. No COVERAGE.md on origin/main yet (bootstrap case) and this branch is non-code-only (FunFair.CodeAnalysis version pins across .csproj files, CHANGELOG.md, and build-time SARIF ErrorLog/ReportAnalyzer config in src/Directory.Build.targets/src/Packaging.props - no source or test file touched), so nothing was measured and COVERAGE.md was left untouched.

@dnyw4l3n13
dnyw4l3n13 marked this pull request as ready for review August 22, 2026 02:11
@dnyw4l3n13
dnyw4l3n13 enabled auto-merge August 22, 2026 02:11
@dnyw4l3n13

Copy link
Copy Markdown
Collaborator Author

PR is ready - marked out of draft and auto-merge enabled. All AI review phases (Simplify, Code Review, Security Review, Coverage) passed cleanly.

@credfeto

Copy link
Copy Markdown
Owner

Super-linter summary

Language Validation result

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@dnyw4l3n13
dnyw4l3n13 merged commit 1fb4f0c into main Aug 22, 2026
42 checks passed
@dnyw4l3n13
dnyw4l3n13 deleted the depends/update-funfair.codeanalysis/7.2.13.2323 branch August 22, 2026 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-pr Pull request created automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants