Skip to content
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

Teste contre la version build #1178

Merged
merged 8 commits into from
Oct 31, 2018
Merged

Conversation

bonjourmauko
Copy link
Member

@bonjourmauko bonjourmauko commented Oct 17, 2018

Child of #1177

  • Changement mineur
  • Détails :
    • Lors de l'ajout d'un fichier statique requis pour le fonctionnement de la librairie, nous devons le rendre découvrable par wheel
    • Pour éviter des soucis involontaires de packaging, on build désormais la librairie, et on exécute les tests contre la version qui sera mise à disposition des usagers

Ces changements :

  • Modifient des éléments non fonctionnels de ce dépôt.

Quelques conseils à prendre en compte :

Copy link
Contributor

@Morendil Morendil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documente le "pourquoi", afin que ça ne soit pas détricoté par erreur plus tard.

@bonjourmauko bonjourmauko changed the title [wip] test agains build Teste contre la version build Oct 18, 2018
@bonjourmauko bonjourmauko force-pushed the test-against-packaged-library branch from 6e27263 to c7a209a Compare October 18, 2018 10:33
@bonjourmauko bonjourmauko requested review from Morendil and a team October 18, 2018 10:33
@bonjourmauko bonjourmauko force-pushed the test-against-packaged-library branch from c7a209a to f3a1a6c Compare October 18, 2018 10:36
@bonjourmauko bonjourmauko force-pushed the test-against-packaged-library branch from f3a1a6c to aa32ac4 Compare October 18, 2018 10:56
@guillett
Copy link
Member

J'ai fait un test, ça fonctionne sur la CI (le test échoue comme attendu).

@bonjourmauko bonjourmauko requested review from fpagnoux and Morendil and removed request for Morendil October 19, 2018 10:55
@bonjourmauko
Copy link
Member Author

bonjourmauko commented Oct 19, 2018

SVP rebase + fixup avant de merger


Edit: done

@bonjourmauko bonjourmauko force-pushed the test-against-packaged-library branch 2 times, most recently from f3024ee to 831302b Compare October 19, 2018 11:13
@bonjourmauko bonjourmauko force-pushed the test-against-packaged-library branch from 831302b to 17569f3 Compare October 19, 2018 15:30
@bonjourmauko bonjourmauko force-pushed the test-against-packaged-library branch from 52dc391 to ccebdfe Compare October 19, 2018 18:51
@bonjourmauko bonjourmauko force-pushed the test-against-packaged-library branch 2 times, most recently from 767c6ce to 9ae00bf Compare October 19, 2018 23:45
@Morendil
Copy link
Contributor

Up ? @fpagnoux il me semble que les réserves que tu as soulevées sont résolues ?

@bonjourmauko bonjourmauko force-pushed the test-against-packaged-library branch 3 times, most recently from 251f318 to a597f2f Compare October 30, 2018 17:03
Mauko Quiroga added 4 commits October 30, 2018 18:07
L'idée est d'éviter de faux positifs lors du testing, dans les cas où on
ajoute d'assets mais qu'on oublie de les déclarer dans le fichier
`MANIFEST.in`
L'idée est d'éviter d'erreurs involontaires lors de la modification de
cette librairie.
À partir du moment où nous allons tester contre la version packaged de
la librairie, il faut qu'elle soit exclue du cache de dépendances.
@bonjourmauko bonjourmauko force-pushed the test-against-packaged-library branch from a597f2f to 72ab796 Compare October 30, 2018 17:07
Copy link
Contributor

@Morendil Morendil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je ne suis pas à l'aise qu'un diff qui change le Makefile soit embarqué dans un commit appelé "Modifie Changelog et setup.py", peux-tu le séparer et documenter l'intention de ces changements?

@bonjourmauko
Copy link
Member Author

@Morendil Je l'ai déjà fait, et ajouté dans la description du commit concerné 😃

@bonjourmauko bonjourmauko requested a review from Morendil October 30, 2018 20:44
CHANGELOG.md Outdated
### 29.2.1 [#1178](https://github.com/openfisca/openfisca-france/pull/1178)

* Changement mineur
* Périodes concernées : toutes
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

La spécification des périodes n'est pertinente qu'en cas de changement dans la législation. Elle ne doit pas être spécifiée pour des changements techniques.

MANIFEST.in Outdated
recursive-include openfisca_france/reforms/parameters *
recursive-include openfisca_france/scripts *
recursive-include openfisca_france/situation_examples *
recursive-include openfisca_france *
include openfisca_france/tests/__init__.py
Copy link
Member

@fpagnoux fpagnoux Oct 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ces fichiers n'existent plus depuis un certain temps. J'ai plusieurs fois pushé des commit sur cette branche pour supprimer les trois lignes qui suivent, mais à chaque fois mes commits ont sauté, probablement lors d'un push --force. Utiliser --force-with-lease à la place de --force permet dans la majorité des cas d'éviter ce problème (merci @pblayo pour l'astuce 🙂 ), essayons de prendre pour habitude de l'utiliser.

Copy link
Member

@fpagnoux fpagnoux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed and tested.

Pour info, on peut tester la publication sur France de la même manière que sur les autres paquets, en désactivant en plus temporairement les tests pour éviter les longs

Je ne peux pas merger car @Morendil a des requested changes, mais please pas d'édition de la config circle, à moins que vous ne vous engagiez à ré-effectuer tous les tests 🙂

@fpagnoux fpagnoux force-pushed the test-against-packaged-library branch from 8b8179c to e2383fc Compare October 31, 2018 00:41
@Morendil Morendil merged commit 414ff5b into master Oct 31, 2018
@Morendil Morendil deleted the test-against-packaged-library branch October 31, 2018 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants