Skip to content

Speed up legacy end-to-end tests using preinstalled databases - #473

Merged
doron050 merged 8 commits into
mainfrom
legacy-tests-speedup
Oct 25, 2026
Merged

doron050 merged 8 commits into
mainfrom
legacy-tests-speedup

Conversation

@doron050

@doron050 doron050 commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Speeds up .Net Framework Tests (Legacy) / End-to-End Tests from ~7 min to ~2m20s (270/270 tests pass).

  • Use the PostgreSQL 17 and MySQL 8.0 preinstalled on the windows-latest image instead of ikalnytskyi/action-setup-postgres (~3m25s) and choco install mysql (~2 min).
  • Set both databases up in the background (.github/scripts/start-postgres.ps1, start-mysql.ps1) while the test projects are restored and built, in one step, then wait for them. MySQL runs as a Windows service so it outlives the step; Postgres is the existing image service.
  • Relax MySQL durability (no binlog, innodb-flush-log-at-trx-commit=0, no doublewrite) for the throwaway test server; the test run drops from ~2 min to ~35s.
Step Before After
DB setup ~3m25s + part of ~1m56s parallel with build
Restore + build (+ DBs) ~1m56s 1m21s
Run Tests ~1m58s 38s
Job ~7 min ~2m20s

CI-only change; no generated output affected.


Generated by Claude Code

@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Release Assistant - Passed

PR marked as skip-release. No release will be triggered.

@doron050 doron050 changed the title TEST: speed up legacy tests (do not merge) Speed up legacy end-to-end tests using preinstalled databases Oct 25, 2026
@doron050 doron050 added the skip-release Exclude this pull request from the next release changelog. label Oct 25, 2026 — with Claude
@doron050
doron050 marked this pull request as ready for review October 25, 2026 10:24
@doron050
doron050 merged commit 196c7a5 into main Oct 25, 2026
15 checks passed
@doron050
doron050 deleted the legacy-tests-speedup branch October 25, 2026 10:32
@github-actions github-actions Bot mentioned this pull request Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-release Exclude this pull request from the next release changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants