SmartStackDocs v5.24.0

Gestion du code et déploiementCode management and deployment

Quatre environnements et GitFlow : rien n’arrive en production sans validation.Four environments and GitFlow: nothing reaches production without a sign-off.

Branches et environnementsBranches and environments
fonctionnalitéfeatureintégrationintegrationversion candidaterelease candidatecorrectifhotfixproduction
main hotfix/* release/* develop feature/* PROD correctif urgenturgent fix QUAL · PREPROD TEST poste de devdev machine v1.0 v1.0.1
  1. TESTdevelop

    Intégration continue avec le jeu de testContinuous integration with the test dataset

  2. IT ouvre la releaseIT opens the release
  3. QUALrelease/*

    Recette par le métierBusiness acceptance testing

  4. recette validéeacceptance signed off
  5. PREPRODrelease/* recettéeaccepted release/*

    Répétition de la mise en productionProduction rehearsal

  6. IT approuveIT approves
  7. PRODmain + versionmain + version

    Vos utilisateursYour users

Chaque fonctionnalité vit sur sa propre branche et rejoint TEST une fois terminée. Une version candidate part ensuite en QUAL pour la recette du métier, puis en PREPROD pour répéter la mise en production. L’IT approuve, et la version part en PROD avec son numéro.Each feature lives on its own branch and joins TEST once finished. A release candidate then goes to QUAL for business acceptance, then to PREPROD to rehearse the go-live. IT approves, and the version goes to PROD with its number.

Les quatre environnementsThe four environments

Chaque environnement reçoit toujours la même branche. Ce qui tourne en PROD correspond exactement à la dernière version publiée.Each environment always receives the same branch. What runs in PROD is exactly the latest published version.

EnvironnementEnvironmentCe qu’on y trouveWhat runs thereÀ quoi il sertWhat it is forPour passer à la suiteTo move on
TESTdevelopRéunir les fonctionnalités terminées et les essayer avec le jeu de test.Bring finished features together and try them with the test dataset.L’IT ouvre une releaseIT opens a release
QUALrelease/*Le métier fait la recette de la version candidate.The business runs acceptance tests on the release candidate.Le métier valide la recetteThe business signs off acceptance
PREPRODrelease/* recettéeacceptedRépéter la mise en production, dans des conditions proches du réel.Rehearse the go-live in near-real conditions.L’IT approuveIT approves
PRODmain + numéro de version+ version numberLa version utilisée par vos équipes.The version your teams use.—

Avant TEST, chaque fonctionnalité est développée et essayée sur le poste du développeur, dans sa propre branche feature/*.Before TEST, each feature is developed and tried on the developer’s machine, in its own feature/* branch.

Le rôle de l’ITThe role of IT

Valide chaque fusion et chaque mise en production.Approves every merge and every go-live.

Garde l’hébergement, les accès et les sauvegardes.Keeps hosting, access and backups.

Met à jour le socle avec ss upgrade, migrations de base contrôlées.Updates the foundation with ss upgrade, with controlled database migrations.

En cas d’urgence : le correctifIn an emergency: the hotfix

Un correctif urgent part de la version en production, sur une branche hotfix/*, sans bloquer le travail en cours. Une fois vérifié en PREPROD, il est publié en PROD sous un nouveau numéro (par exemple v1.0.1), puis reporté dans develop pour que la version suivante le contienne aussi.An urgent fix starts from the version in production, on a hotfix/* branch, without blocking ongoing work. Once checked in PREPROD, it is published to PROD under a new number (for example v1.0.1), then carried over into develop so the next version contains it too.

Pour les équipes techniquesFor technical teams

Les commandes, étape par étapeThe commands, step by step TechniqueTechnical
ÉtapeStepCommandeCommandEnvironnementEnvironment
Démarrer une fonctionnalitéStart a feature/gitflow -f <nom>poste de devdev machine
Enregistrer son travailSave your work/gitflow commitposte de devdev machine
Proposer la fusion dans developPropose the merge into develop/gitflow prTEST
Ouvrir une releaseOpen a release/gitflow -rQUAL, puis PREPRODQUAL, then PREPROD
Fusionner dans main et poser la versionMerge into main and tag the version/gitflow pr puisthen /gitflow finishPROD
Correctif urgentUrgent fix/gitflow -hPREPROD, puis PRODPREPROD, then PROD
Les contrôles automatiques avant PRODThe automatic checks before PROD TechniqueTechnical

Parité des migrations. Une migration déjà en production ne peut pas disparaître de la branche. Remède : /gitflow update.Migration parity. A migration already in production cannot disappear from the branch. Remedy: /gitflow update.

Delta de seed Core. Un changement de menu ou de droits seedé exige son script SQL de delta.Core seed delta. A seeded menu or rights change requires its SQL delta script.

Approbation manuelle. Le déploiement PROD attend une approbation dans le pipeline.Manual approval. The PROD deployment waits for an approval in the pipeline.