Friday, 2020-04-17

*** kgiusti has left #openstack-oslo00:34
*** rcernin has quit IRC03:10
*** rcernin has joined #openstack-oslo03:25
*** mnasiadka has quit IRC05:10
*** Anticimex has quit IRC05:10
*** mnasiadka has joined #openstack-oslo05:15
*** Anticimex has joined #openstack-oslo05:15
*** jhesketh has quit IRC07:04
*** rpittau|afk is now known as rpittau07:19
*** tosky has joined #openstack-oslo07:30
*** ralonsoh has joined #openstack-oslo07:38
*** threestrands has quit IRC07:56
*** tkajinam has quit IRC08:51
openstackgerritDmitry Tantsur proposed openstack/oslo.upgradecheck master: Remove Babel from requirements  https://review.opendev.org/72067409:44
*** rpittau is now known as rpittau|bbl10:30
*** szaher has joined #openstack-oslo10:34
*** tkajinam has joined #openstack-oslo11:56
*** tkajinam has quit IRC12:04
*** rcernin has quit IRC12:11
*** rpittau|bbl is now known as rpittau12:19
*** raildo has joined #openstack-oslo12:23
*** kgiusti has joined #openstack-oslo13:20
openstackgerritDmitry Tantsur proposed openstack/oslo-cookiecutter master: Remove Babel from requirements  https://review.opendev.org/72071613:44
*** moguimar has joined #openstack-oslo14:09
openstackgerritMerged openstack/oslo-cookiecutter master: Remove Babel from requirements  https://review.opendev.org/72071614:41
openstackgerritMerged openstack/oslo.upgradecheck master: Remove Babel from requirements  https://review.opendev.org/72067414:50
*** moguimar has quit IRC15:24
*** moguimar has joined #openstack-oslo15:26
openstackgerritMerged openstack/oslo.messaging master: Imported Translations from Zanata  https://review.opendev.org/72038915:30
hberaudbnemec, stephenfin, smcginnis, moguimar: hey o/, what do you think about introducing `pre-commit` on oslo's project?15:32
hberaud(just to avoid to spend time on it if y'all think isn't a good idea or something useful)15:33
stephenfinFine by me. If we were to introduce it, I'd like to do it for one project, settle on the checkers we want to use and then work from there15:33
hberaudstephenfin: yep I agree this is the path that I want to follow  too15:34
smcginnishberaud: What would you want to add to the pre-commit hook?15:34
hberaudmy main concern is mainly about duplicate test stuff between tox and pre-commit... I would try to call tox from pre-commit15:35
hberaudsmcginnis: I want to introduce black in a second time15:35
hberaudsmcginnis: driven by pre-commit15:35
smcginnisYou had me until "black".15:35
smcginnisIn that case, hell no. :)15:36
hberaudsmcginnis: but anyway it could be useful to run test15:36
hberaudsmcginnis: even if we skip the black stuff15:36
smcginnisSome quick checks would be good.15:36
hberaudsmcginnis: my main goal is to avoid back and forth with patches15:37
hberaudsmcginnis: so if pre-commit could help us to catch things before pushing then we'll reduce the CI usages15:37
hberaudor some parts of the usage15:37
smcginnisWe wouldn't want to do too much with pre-commit hooks, but it could catch some common things.15:37
hberaudyep this is the idea15:38
stephenfinWe have it in nova at the moment15:38
smcginnisOther projects have had success with hacking checks and things like sphinx-import-order and other add-ons to help get rid of the back and forth due to diffing opinions and just have some objective enforce policies.15:38
smcginnisstephenfin: black?15:38
stephenfingod no15:38
stephenfin:D15:38
stephenfinpre-commit15:38
smcginnisWhew, good. :D15:38
stephenfin(though I've nothing against black for _new_ projects, fwiw)15:39
stephenfinhttps://github.com/openstack/nova/blob/master/.pre-commit-config.yaml15:39
smcginnisNice15:39
bnemec+1 to all of this. From stephenfin's discussion on pre-commit previously it sounds fine, and we as a community pretty much rejected moving to black a while back.15:39
bnemecToo much churn for too little benefit at this point.15:40
hberaudwack15:40
hberaudack15:40
smcginnisstephenfin: That could probably be sped up with the fast8 hook in cinder: https://github.com/openstack/cinder/blob/master/tools/fast8.sh15:40
bnemeclol15:40
stephenfinsmcginnis: what's "that" (that could be sped up)15:40
bnemecI kind of like wack, actually. ;-)15:40
smcginnisstephenfin: Just seeing that the nova pre-commit runs flake8.15:41
*** sean-k-mooney has quit IRC15:41
stephenfinsmcginnis: Ah, it's very clever - it only runs it on the changed files15:41
smcginnisMakes it a lot less intrusive.15:41
stephenfinand actually usable15:41
stephenfinif it did all files, every commit would take ~10 minutes15:41
stephenfinalso, fwiw we have our own fast8 thing in nova https://github.com/openstack/nova/blob/master/tox.ini#L52-L5715:42
stephenfinbut I don't use it anymore since pre-commit was introduced15:42
smcginnisOh nice.15:42
hberaudstephenfin: thanks for the links I'll base my patch on that to begin this topic15:44
hberaudand thanks y'all for your feedback15:45
stephenfinhberaud: Sweet. FYI, the newer version of pre-commit (2.6.0 I think) has deprecated the flake8 plugin in favour of the one from gitlab.com/pycqa/flake8 so watch out for that15:49
hberaudstephenfin: ack15:49
hberaudstephenfin: FYI it's 2.5.0 => https://github.com/pre-commit/pre-commit-hooks/commit/1057813c2ff113312dafe793061cdb100db67f5415:53
hberaudstephenfin: and the nova's pre-commit config use 2.4.015:54
openstackgerritVishakha Agarwal proposed openstack/pycadf master: Remove Babel as requirement  https://review.opendev.org/72076316:00
openstackgerritHervĂ© Beraud proposed openstack/oslo.cache master: Introducing usage of pre-commit  https://review.opendev.org/72077116:14
hberaudstephenfin, smcginnis, bnemec: a first try ^^^^^16:15
*** rpittau is now known as rpittau|afk16:17
*** ianychoi_ has joined #openstack-oslo16:29
*** ianychoi has quit IRC16:31
openstackgerritHervĂ© Beraud proposed openstack/oslo.cache master: Introducing usage of pre-commit  https://review.opendev.org/72077116:38
*** ralonsoh has quit IRC17:53
openstackgerritBen Nemec proposed openstack/oslo-specs master: Add branch request to end of cycle activities  https://review.opendev.org/72006817:55
openstackgerritMerged openstack/oslo.config master: Use unittest.mock instead of third party mock  https://review.opendev.org/71639319:02
*** moguimar has quit IRC19:22
*** raildo has quit IRC19:30
*** raildo has joined #openstack-oslo19:50
*** raildo has quit IRC21:35
*** dkehn has quit IRC21:52
*** kgiusti has left #openstack-oslo22:09
*** tosky has quit IRC23:21

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!