Skip to content

Avoid sqlite fallback during Shipit builds - #1

Open
theduke wants to merge 1 commit into
mainfrom
fix-shipit-build-sqlite-fallback
Open

Avoid sqlite fallback during Shipit builds#1
theduke wants to merge 1 commit into
mainfrom
fix-shipit-build-sqlite-fallback

Conversation

@theduke

@theduke theduke commented Jun 19, 2026

Copy link
Copy Markdown

Summary

  • keep local development using SQLite when no database env vars are set
  • use MySQL placeholder settings during Shipit build-time Django commands so collectstatic does not import Python's sqlite3 module
  • preserve the existing MySQL env-var path for deployed apps

Context

The backend integration template canary failed for django-wasmer-starter in wasmerio/backend run 27819941199, job 82339241719. Remote build failed in python manage.py collectstatic --noinput with ModuleNotFoundError: No module named '_sqlite3' because the template fell back to SQLite while Shipit had detected the template as a MySQL Django app.

Validation

  • python -m py_compile mysite/settings.py
  • uvx shipit-cli --regenerate --temp-shipit --skip-prepare --no-wasmer --no-docker . was attempted locally; it reaches dependency installation but cannot build mysqlclient on this host because local MySQL/MariaDB pkg-config development files are not installed. The CI remote build image has those dependencies and reached collectstatic, which is the failure addressed here.

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