Skip to content

Fix I/O conflicts when running OpenAPI tests#2013

Merged
bkoelman merged 3 commits into
masterfrom
refactor-tests
May 25, 2026
Merged

Fix I/O conflicts when running OpenAPI tests#2013
bkoelman merged 3 commits into
masterfrom
refactor-tests

Conversation

@bkoelman
Copy link
Copy Markdown
Member

@bkoelman bkoelman commented May 25, 2026

The project OpenApiTests writes swagger.g.json files when tests are run. They are consumed by end-to-end tests to generate typed clients. Because OpenApiTests targets multiple frameworks, writing such files occasionally results in I/O conflicts when tests run in parallel. This PR fixes that by only writing them for net10.0 in a dedicated subdirectory. Additionally, it fails these tests when the file on disk differs from the one generated by the test, forcing PRs to commit the changed files to achieve a green build.

The other commits simplify some service registration calls and rename some test methods.

QUALITY CHECKLIST

@codecov
Copy link
Copy Markdown

codecov Bot commented May 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.12%. Comparing base (8e3443e) to head (93ef9f5).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2013   +/-   ##
=======================================
  Coverage   92.12%   92.12%           
=======================================
  Files         438      438           
  Lines       15044    15044           
  Branches     2488     2488           
=======================================
  Hits        13859    13859           
  Misses        731      731           
  Partials      454      454           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bkoelman bkoelman force-pushed the refactor-tests branch 3 times, most recently from f5abb76 to 7d11941 Compare May 25, 2026 08:35
…n in tests; fail test if file on disk changed
@bkoelman bkoelman changed the title Refactor tests Fix I/O conflicts when running OpenAPI tests May 25, 2026
@bkoelman bkoelman marked this pull request as ready for review May 25, 2026 09:04
@bkoelman bkoelman merged commit 034b101 into master May 25, 2026
15 checks passed
@bkoelman bkoelman deleted the refactor-tests branch May 25, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant