Commit 64b2cbf
ci: install Pillow in nuget-publish; deflake FluentApi save test
Two unrelated CI bugs that surfaced after the recent merges:
1) NuGet Publish workflow failed at the "Optimize package icon" step with
`ModuleNotFoundError: No module named 'PIL'`. The Python heredoc that
trims + centres + resizes the icon imports Pillow but the step never
installs it on the ubuntu-latest runner. Add a one-line `pip install`
before the heredoc.
2) DocumentTests.FluentApi_ChainsMultipleOperations races on a shared
output path. The test calls SaveAsync("fluent-test"), which resolves
to <repoRoot>/output/fluent-test.pdf via FileOperations.GetOutputPath.
In CI we run the test suite against three TFMs in parallel (net8.0,
net9.0, net10.0), so three test-host processes try to create the same
file simultaneously and one loses with
`IOException: The process cannot access the file ... because it is
being used by another process`. Switch to a Guid-suffixed filename so
the three TFM hosts each write to their own file.
Both fixes are minimal: no production code changes, no test-suite-wide
refactor. Other tests with similar deterministic filenames can be fixed
the same way if they start flaking.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 63d069b commit 64b2cbf
2 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
165 | 169 | | |
166 | 170 | | |
167 | 171 | | |
168 | 172 | | |
169 | 173 | | |
170 | 174 | | |
171 | 175 | | |
172 | | - | |
| 176 | + | |
173 | 177 | | |
174 | 178 | | |
175 | 179 | | |
| |||
0 commit comments