Skip to content

test: fix IntegrationTests compile drift and add CI compile-check#812

Merged
laurentiu021 merged 1 commit into
mainfrom
test/integration-tests-compile-and-ci
Jun 8, 2026
Merged

test: fix IntegrationTests compile drift and add CI compile-check#812
laurentiu021 merged 1 commit into
mainfrom
test/integration-tests-compile-and-ci

Conversation

@laurentiu021

Copy link
Copy Markdown
Owner

Surfaced by the regression sweep after Round 2b.

Problem

SysManager.IntegrationTests had 64 compile errors and had been broken for a while — it is the only project never built in CI, so ViewModel/service signature changes silently broke it:

  • WindowsUpdateViewModel ctor gained a WindowsUpdateService param (feat: install Windows Update via WUA COM API (replaces PSWindowsUpdate) #611)
  • DashboardViewModel ctor gained a TemperatureService param
  • LogsViewModel.SearchText → renamed FilterText
  • Removed/renamed: DashboardViewModel.Snapshot/CpuLine/MemLine, RequestElevationCommand (now RelaunchAsAdminCommand), WindowsUpdateViewModel.ListFeatureUpdatesCommand

Fix

  • Updated every broken constructor to the current signature.
  • Rewrote the tests that referenced removed API to assert the current surface (OsLine/UptimeLine/CpuName/RamTotalGB, RelaunchAsAdminCommand, FilterText).
  • Added a "Build integration tests (compile check)" step to ci.yml (restore + build only — they are not run in CI because they touch the live system). This catches signature drift immediately going forward.

Verification

All four projects build: main, Tests, IntegrationTests, UITests — 0 warnings, 0 errors. No production code changed; test:/ci: → no release.

The IntegrationTests project had accumulated 64 compile errors because it was
never built in CI, so ViewModel/service signature changes silently broke it:
- WindowsUpdateViewModel ctor gained a WindowsUpdateService param (#611)
- DashboardViewModel ctor gained a TemperatureService param
- LogsViewModel.SearchText was renamed to FilterText
- DashboardViewModel.Snapshot/CpuLine/MemLine and RequestElevationCommand,
  WindowsUpdateViewModel.ListFeatureUpdatesCommand were removed/renamed

Updated all constructors and rewrote the tests that referenced removed API to
assert the current surface. Added a 'Build integration tests (compile check)'
step to ci.yml (restore + build only — not run in CI since they touch the live
system) so this drift is caught immediately from now on.

No production code changed; no release.
@laurentiu021 laurentiu021 merged commit ece50d9 into main Jun 8, 2026
4 checks passed
@laurentiu021 laurentiu021 deleted the test/integration-tests-compile-and-ci branch June 8, 2026 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant