Skip to content

Commit 90ac975

Browse files
The Windows test leg runs the whole suite, in Release, and fails when it does not (#2165)
C# Test's Windows leg ran `dotnet test` under PowerShell, in a multi-line step whose result is its last command's, CopyCovReport. On most master runs since 2026-09-15 the test host crashed with a stack overflow, and the step was green each time. Sampled from master: 09-15 7,889 tests run, crashed (RationalIntegralsTest) 09-25 2,094, crashed (RationalFunctionBesideTheRootOfAQuadraticTest) 10-05 15,075, complete 10-15 5,265, crashed (APowerOfALinearOverAPowerOfAQuadraticIntegralTest) 10-22 8,507, crashed 10-27 5,681, crashed (RationalIntegralsTest) It was the only leg testing a Debug build, since its `dotnet test` named no configuration. On a thread of a given stack size, the six rows of RationalIntegralsTest.ALinearNumeratorOverASymbolicQuadratic, as written in the test: Debug overflows 1 MB on the cubic row (654 repeats of the InnerSimplified cycle), and Release passes all six on 512 KB. The library has no Debug.Assert, so a Debug build tests nothing that Release does not. The leg now tests Release, as the other two do, under bash, which fails the step at the first failing command. The coverage report from the crashed host recorded 0 of 81,664 sequence points, which is what Codecov received after #2162. A new step fails on a report with no visited point, as the C++ leg does for an empty one. Locally, the full suite under the same collector records 90.57% of lines. Part of #397 Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 9c3dce4 commit 90ac975

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

‎.github/workflows/CSharpTest.yml‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,33 @@ jobs:
5656
run: dotnet run AreaTimes
5757
working-directory: Sources/Utils/Utils
5858

59+
# Release, as the other two legs test, and bash, which stops the step at the first command
60+
# that fails. Under PowerShell the step took the result of its last command, so a test host
61+
# that crashed still went green. From 2026-09-15 it crashed on most runs: in a Debug build,
62+
# Simplify on the cubic row of RationalIntegralsTest recursed deeper than a 1 MB stack holds,
63+
# and the leg ran 2,094 to 8,507 of the tests. A Release build passes that row on 512 KB.
64+
# https://github.com/asc-community/AngouriMath/issues/397
5965
- name: Test if to send
6066
if: ${{ matrix.os == 'windows-latest' }}
67+
shell: bash
6168
run: |
6269
cd Sources/Tests/UnitTests
63-
dotnet test --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
70+
dotnet test -c Release --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
6471
cd ../../Utils/Utils
6572
dotnet run CopyCovReport
6673
6774
- name: Info about the coverage report
6875
if: ${{ matrix.os == 'windows-latest' }}
6976
run: dir ./Sources/Tests/UnitTests/coverage.opencover.xml
77+
78+
# A report can be well formed and record nothing. From a crashed test host this one listed
79+
# all 81,664 sequence points of the kernel with 0 visited, and Codecov took it as 0%. Fail
80+
# here instead, as the C++ leg does for an empty report.
81+
# https://github.com/asc-community/AngouriMath/issues/397
82+
- name: 'The report records hits'
83+
if: ${{ matrix.os == 'windows-latest' }}
84+
shell: bash
85+
run: grep -q 'visitedSequencePoints="[1-9]' ./Sources/Tests/UnitTests/coverage.opencover.xml
7086

7187
- name: 'Upload report as artifact'
7288
if: ${{ matrix.os == 'windows-latest' }}

0 commit comments

Comments
 (0)