Skip to content

Add Windows CI smoke test (import all artifact modules)#837

Merged
abrignoni merged 1 commit into
mainfrom
ci-windows-smoke
Jun 21, 2026
Merged

Add Windows CI smoke test (import all artifact modules)#837
abrignoni merged 1 commit into
mainfrom
ci-windows-smoke

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Why

CI was lint-only on ubuntu — nothing ran the code on Windows. On Windows, extracted paths use backslash separators (scripts/search_files.py:66 rewrites /\), so an artifact mishandling separators could break on Windows while passing all current checks.

What

  • admin/test/scripts/test_artifact_imports.py — imports every scripts/artifacts/*.py by file path (mirroring plugin_loader.py, so dotted filenames like kleinanzeigen.de.py load), and runs PluginLoader. Fails on any import error. Plain unittest, runs on any platform (311 modules import clean locally).
  • .github/workflows/windows_smoke.yml — runs it on windows-latest for every PR touching .py/requirements.txt, plus manual dispatch.

Scope / limits

Catches import-time / module-level Windows breakage (the most common kind) automatically. It does not validate parsing correctness — that still needs a real run against sample data on Windows. Think of it as a tripwire, not full coverage.

ALEAPP CI was lint-only (ubuntu); nothing exercised the code on Windows,
where extracted file paths use backslash separators (scripts/search_files.py
rewrites them). Adds a windows-latest job that imports every artifact module
by file path (mirroring plugin_loader, so dotted filenames like
kleinanzeigen.de.py load) and runs PluginLoader, failing on any import error.

Catches OS-specific import/module-level path breakage automatically per PR.
Does not validate parsing correctness (that needs sample data / a real run).
The test is a plain unittest, runnable on any platform.
@abrignoni abrignoni merged commit e251f27 into main Jun 21, 2026
2 checks passed
@abrignoni abrignoni deleted the ci-windows-smoke branch June 21, 2026 21:51
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