-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create upgrade_to_0.8.0.sql #100
Conversation
Merci pour la contribution @Jersig Pour faire du SQL, il y a 2 choses :
Il faut que les 2 soit synchro. Je viens de d'approuver le lancement des tests et avec surprise, le test est vert ... Je pense qu'il y a un soucis de notre côté suite à la migration Travis vers GitHub récemment. Parce que ton PR n'ayant que un fichier de migration, il y a donc une différence si quelqu'un fait l'installation d'une nouvelle base. Je dois vérifier ca. |
@Jersig Je me suis permis de faire un "rebase", CAD mettre à jour ton PR, suite à la découverte d'un problème possible ce matin. Donc comme dit ci-dessus, le test des migrations plante désormais car le PR ne couvre pas l'installation d'une base. Merci pour la puce à l'oreille :) |
db31bf9
to
5cc03eb
Compare
9a43214
to
e50980e
Compare
b5cfa0d
to
73752df
Compare
fba9605
to
8d6c4bb
Compare
@@ -37,6 +37,7 @@ def tearDown(self) -> None: | |||
del self.connection | |||
time.sleep(1) | |||
|
|||
@unittest.skip("Test desable because timeout") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@unittest.skip("Test desable because timeout") | |
@unittest.skip("Test disabled because of timeout") |
Can you elaborate the problem ? Does it work on on your local machine ? Is the problem only on GH Action ? (if yes, skip only on GH Action, not always, with environnement variable)
If you remove the latest migration, does it work ?
This test is IMHO important, so it would be good to now why there is a timeout and where in the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On my local machine I ran it for about an hour and a half without it being finished
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More than 2 minutes, there is already something wrong, it's only a SQL script.
But is-it the latest migration making this trouble ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, is the migration 0.8.0
Ajouter |
Update of the latest production version of the "adresse" schema. It implements various objects type : • Functions • tables, sequences, default values • views • indexes • triggers • constrains • comments This upgrade aims to create new tables and setup several functions which automatically update different fields in our tables. It allow to produce assessment view used to export data with a structure expected by the project partners.
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Good idea the BEGIN COMMIT in the install file, thanks
Can you do it in all migration files with the test checking these keywords (begin and commit) ?
A separate PR is ok. Check in veloroutes for the test.
Update of the latest production version of the "adresse" schema.
It implements various objects type :
• Functions
• tables, sequences, default values
• views
• indexes
• triggers
• constrains
• comments
This upgrade aims to create new tables and setup several functions which automatically update different fields in our tables. It allow to produce assessment view used to export data with a structure expected by the project partners.