Repository navigation
Description
Summary
The build-pre-release required check has failed independently on both main and PR #128 with corrupted/missing SARIF output during the "Merge Roslyn analyzer SARIF files" / "Summarise Roslyn analyzer findings" steps (.github/actions/sarif-merge, .github/actions/sarif-summary). The dotnet build/dotnet test steps themselves pass (0 Error(s)); only the CI's own SARIF post-processing fails.
Evidence
- PR [Dependencies] Updating FunFair.Test (Test Infrastructure) to 6.3.9.2602 #128, run
32546006824, attempt 1:failed to parse Credfeto.Enumeration.Source.Generation.Attributes.sarif: Unexpected token 'o', ..."Seconds": onds": "0."... is not valid JSON - PR [Dependencies] Updating FunFair.Test (Test Infrastructure) to 6.3.9.2602 #128, run
32546006824, attempt 2 (after a manual rerun):failed to parse Credfeto.Enumeration.Source.Generation.Attributes.sarif: Expected ',' or ']' after array element in JSON at position 1073078 (line 26659 column 17)followed byRoslyn analyzer findings: no SARIF files matched 'DotNet.sarif' in results/(a downstream symptom of the merge step having failed/bailed). mainalso shows two independentBuild: Pre-Releasefailures on 2026-08-21 (runs32477297133,32481692818), unrelated to PR [Dependencies] Updating FunFair.Test (Test Infrastructure) to 6.3.9.2602 #128, indicating this is a pre-existing, repo-wide condition rather than something introduced by the dependency bump in [Dependencies] Updating FunFair.Test (Test Infrastructure) to 6.3.9.2602 #128.
Both failures point at the same file: Credfeto.Enumeration.Source.Generation.Attributes.sarif, produced by src/Credfeto.Enumeration.Source.Generation.Attributes/Credfeto.Enumeration.Source.Generation.Attributes.csproj, which multi-targets netstandard2.0;net8.0;net10.0. A second project, Credfeto.Enumeration.Source.Generation.Generics, also multi-targets and shares the same risk profile.
Root cause candidates (not yet confirmed which, or both)
- Same-path write race across TFMs.
src/Packaging.props:6sets<ErrorLog>$(SolutionDir)\..\results\$(MSBuildProjectName).sarif,version=2.1</ErrorLog>keyed only on$(MSBuildProjectName), not$(TargetFramework). For a multi-targeted project, MSBuild's inner builds per TFM can run concurrently and all three would write to the sameresults/Credfeto.Enumeration.Source.Generation.Attributes.sarifpath, which would produce exactly this kind of interleaved/corrupted JSON. - Oversized SARIF from
ReportAnalyzer=true. The same property block (src/Packaging.props:10-12) also enablesReportAnalyzer, and the project pulls in ~16 analyzer packages. The second failure's corruption position (~1,073,078 bytes, just over 1 MiB) is close enough to a buffer/size boundary that a single oversized/truncated write is also plausible, independent of any race.
The two observed failures differ in shape (an interleaved token in attempt 1 vs. a truncation-like error near a ~1 MiB boundary in attempt 2), so this issue is filed with both hypotheses open rather than assuming one.
Suggested next step
Whoever picks this up should first determine which hypothesis is correct (e.g. by reproducing locally with dotnet build -m on this project and inspecting results/*.sarif sizes/contents per TFM), then apply the appropriate fix in its own PR:
- If it's the path race: disambiguate
ErrorLogper TFM, e.g.$(MSBuildProjectName).$(TargetFramework).sarif, insrc/Packaging.props. Thesarif-mergeaction already merges arbitrary numbers of*.sariffiles by glob, so this should be transparent downstream. - If it's a size/serialization issue: investigate the SARIF writer/
ReportAnalyzeroutput for excessive size, independent of any TFM-path change.
This is CI/build-tooling scope (src/Packaging.props, plus verifying .github/actions/sarif-merge -- note the latter carries a "Maintain in repo: funfair-server-template" header, so a fix touching it belongs upstream) and should not be bundled into an unrelated dependency-update PR.
Impact
Blocks the build-pre-release required check from going green on any branch/PR that builds one of the affected multi-targeted projects, including PR #128, until fixed.
Activity
github-actions commentedon Aug 22, 2026
Thanks for opening your first issue here! Please make sure you have read the contributing guidelines.
dnyw4l3n13 commentedon Nov 15, 2026
Implementation Plan
Files to change
src/Packaging.props- verify/adjust the SARIFErrorLogandReportAnalyzersettings.github/actions/sarif-merge- read-only check only (upstream-maintained: funfair-server-template); no change hereApproach
On current main,
src/Packaging.propsalready setsErrorLogto<ProjectName>.<TargetFramework>.sarifinside a_SetSarifErrorLogtarget that runs beforeCoreCompile, so hypothesis 1 (same-path write race across TFMs) appears already addressed; the failing runs may predate that change. First, confirm by checking git history ofPackaging.propsagainst the failing run dates and by runningdotnet build -mlocally, inspectingresults/*.sarifper TFM for validity and size. If per-TFM files are valid and small, close the issue as already fixed with the evidence. If corruption or oversized output (~1 MiB) persists, setReportAnalyzerto false (or restrict it) for multi-targeted projects insrc/Packaging.props, so the SARIF is smaller and less likely to be truncated. Any fix needed insarif-merge/sarif-summaryis raised upstream rather than patched here.Test strategy
Local
dotnet build -mof the solution; validate everyresults/*.sarifparses as JSON (e.g.jq .) with distinct per-TFM filenames; confirm thebuild-pre-releaseCI check passes on the PR.Assumptions
a. The
Packaging.propsErrorLog change was made after the failing runs listed in the issue.b. The sarif-merge action's glob picks up the per-TFM files transparently, as the issue states.
Open questions
Q1. If the per-TFM path already fixes the failures, should the issue simply be closed with evidence rather than a PR being raised?