Skip to content

Docker compose#1972

Draft
celine-m-s wants to merge 8 commits intomainfrom
celinems/docker-compose
Draft

Docker compose#1972
celine-m-s wants to merge 8 commits intomainfrom
celinems/docker-compose

Conversation

@celine-m-s
Copy link
Copy Markdown
Collaborator

@celine-m-s celine-m-s commented Apr 1, 2026

  • WIP
  • WIP

Suite :

  • Vérifier le fichier de seed.
  • Suppression de pytest-env au profit de l'option pytest --ds
  • Suppression de pytest --cov par défaut pour une meilleure lisibilité de la suite de test.
  • Ajout de --cov dans la CI.
  • Mise à jour de la CI pour utiliser le Docker compose
  • Trouver une bonne solution pour DATABASE_URL (exposée par Scalingo)
  • Corriger les tests.
  • Changer la commune_id (qui est en fait une generated column) mais bien tester que cela n’entraîne pas un souci de perf ?
  • UserWarning: No directory at: /home/cms/sites/docurba/django/static/collected/ ?
  • Dernier refactor

@celine-m-s celine-m-s self-assigned this Apr 1, 2026
@gitguardian
Copy link
Copy Markdown

gitguardian bot commented Apr 1, 2026

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
9429425 Triggered Generic Password 29f8f78 django/.env.example View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@celine-m-s celine-m-s force-pushed the celinems/docker-compose branch from 2e83edb to c7d9186 Compare April 1, 2026 18:03
@celine-m-s
Copy link
Copy Markdown
Collaborator Author

Le jeton était un jeton de test généré par l'interface de Supabase. https://supabase.com/docs/guides/self-hosting/docker

@celine-m-s celine-m-s linked an issue Apr 1, 2026 that may be closed by this pull request
@celine-m-s celine-m-s force-pushed the celinems/docker-compose branch 2 times, most recently from d3d9d9c to b8b7273 Compare April 2, 2026 15:36
The database, created by Pytest on a local PG server, was missing
Supabase's specific structure used in production. For example,
the `auth` schema with the `users` table was first created by a
conftest.py and then by a signal.
It was also missing tables, functions and triggers created manually
on Supabase before Django migrations were used.
The more we import in Django the production structure, the more
we need a database that acts like the real one.

The test database is now created in a Docker container whose image
is managed directly by Supabase. See the `docker-compose.yml`.
The file `prod_schema_before_django_migrations.sql` references how the
database structure was before we start to use Django. It is used as a seed
file to populate the test database.
A mise command starts all the above and run migrations (start:tests).
Then Pytest uses the test database (thanks to the tests config).
@celine-m-s celine-m-s force-pushed the celinems/docker-compose branch 5 times, most recently from 30db8ba to 1c3b8ca Compare April 3, 2026 18:16
@celine-m-s celine-m-s force-pushed the celinems/docker-compose branch from 1c3b8ca to 29f8f78 Compare April 3, 2026 18:29
@celine-m-s celine-m-s force-pushed the celinems/docker-compose branch from cc78613 to 342dfe3 Compare April 3, 2026 18:41
@celine-m-s celine-m-s force-pushed the celinems/docker-compose branch from 342dfe3 to d0a2d03 Compare April 3, 2026 18:42
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 3, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
E Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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.

Utiliser Supabase en test

1 participant