Wednesday, 2021-07-28

*** ykarel|away is now known as ykarel04:44
opendevreviewIan Wienand proposed openstack/project-config master: Remove debian-stretch disk images  https://review.opendev.org/c/openstack/project-config/+/80265404:49
opendevreviewIan Wienand proposed openstack/project-config master: Remove Debian stretch image builds  https://review.opendev.org/c/openstack/project-config/+/80265504:49
*** rpittau|afk is now known as rpittau07:02
*** ykarel is now known as ykarel|lunch08:34
stephenfinfungi: It does not, but that's the error you get with an invalid 'string.format' call, e.g. "'{y:5:2f}'.format(**{'y': 5})"08:57
stephenfinfungi: If it's reproducible, you can run sphinx in verbose mode to get the full traceback08:57
*** zbr is now known as Guest254409:09
*** sshnaidm|afk is now known as sshnaidm09:45
*** ykarel|lunch is now known as ykarel10:17
*** jcapitao is now known as jcapitao_lunch10:42
fungistephenfin: oh, indeed thanks, once i swapped out my placeholders it passed fine11:49
fungiso that's clearly what it was11:49
*** rlandy is now known as rlandy|ruck11:52
*** jcapitao_lunch is now known as jcapitao12:19
marios|rucko/ folks any idea why that one might be stuck it is holding our gate https://zuul.openstack.org/status#800848 13:26
marios|ruckam going to abandon and restore that, unless someone else can do anything about that13:26
marios|ruckproblem is it has a lot of green runs below it that'll get discarded and have to rerun 13:26
marios|ruckrlandy|ruck: ^^ 13:26
fungimarios|ruck: don't abandon anything, probably there's a stuck node request which i can free and get that missing build run without rerunning the others13:29
fungii'm checking now to see which launcher accepted that node request13:30
marios|ruckthank you for checking fungi !13:30
marios|ruckfungi: holding the abandon for now13:30
*** ykarel is now known as ykarel|away14:45
opendevreviewRadosÅ‚aw Piliszek proposed openstack/project-config master: Allow kolla cores to edit kolla hashtags  https://review.opendev.org/c/openstack/project-config/+/80274415:44
zbrpbr15:45
zbrstephenfin: do you happen to know if pbr got fixed on master around setuptools/dist.py UserWarnings? They are very annoying15:48
stephenfinwhich warnings are these?15:48
zbrthe (in)famous: dist.py:697: UserWarning: Usage of dash-separated ...15:49
zbrusually getting rid of them requires something like https://review.opendev.org/c/openstack/pbr/+/791127/1/setup.cfg -- but that would obviously not work unless pbr knows to use the underline ones.15:50
stephenfinah, it does15:50
zbrdo we need a minimal version of pbr for that to work?15:50
stephenfinyou can simply replace the dashes with underscores15:51
gagehugoHas anyone seen this error before in the docs job? Started happening recently: https://zuul.opendev.org/t/openstack/build/c3850af040d746f8969dad480e8dc92315:51
stephenfinI'm not entirely sure. I'd have to check15:51
gagehugoI am assuming "rST localisation for language "id" not found." is the underlying cause15:51
gagehugo?*15:52
stephenfinand I'm in a meeting for the next while. We did make changes to this some of the parser stuff recently but I don't think there was anything specific to this15:52
stephenfinso something like https://github.com/openstack/nova/commit/7d08a360d73dbf6b1b317867a51dfe86573b51b9 will do the trick15:52
stephenfingagehugo: do you have an 'id' file or directory in doc/source/locale/?15:55
stephenfinthat errors coming from here https://opendev.org/openstack/openstackdocstheme/src/branch/master/bin/docstheme-build-translated.sh#L15315:55
stephenfin*'id' directory (not file)15:55
stephenfinbecause it's finding an 'id' directory and attempting to build the docs using the "translations" within15:55
gagehugoI don't believe we do15:56
gagehugooh nvm we do15:56
stephenfinhmm, it's been there a while though15:57
stephenfinhttps://github.com/openstack/openstack-helm/commits/master/doc/source/locale/id/LC_MESSAGES15:57
stephenfinid is indonesia15:57
stephenfinhttps://www.science.co.il/language/Locale-codes.php15:57
gagehugoyeah15:58
gagehugoI assume our indonesia translations are missing something then?15:59
stephenfinokay, looks like a change in behavior introduced by a newer version of docutils which was in turn brought in by Sphinx 4.x https://lists.freebsd.org/pipermail/freebsd-ports/2021-April/120848.html15:59
stephenfinthat points to this docutils change https://sourceforge.net/p/docutils/code/8465/15:59
clarkbzbr: stephenfin: I'm still not entirely convinced that pbr/setuptools are avoiding conflict in that space because setuptools should be ignoring setup.cfg when pbr is used. However, it seems to work in all the cases we are using it so a technicality may not matter here15:59
clarkbbasically setup.cfg as handled by pbr is incompatible with setup.cfg as handled by setuptools for a number of reasons (still not super happy they did that since pbr absed it on their original docs) and that warning implies setuptools is reading the file as if it can do so safely16:00
stephenfinclarkb: possibly. I touch pbr infrequently enough to have forgotten most of the context by the next time I work on it :-( (hence all my docs changes in the past, mostly as notes to myself)16:00
clarkbya me too16:01
fungiclarkb: i think it's distutils which ends up complaining16:02
gagehugostephenfin: thanks for the help!16:08
stephenfingagehugo: Okay, so docutils actually provides a list of supported languages and Indonesian isn't among them https://repo.or.cz/docutils.git/tree/HEAD:/docutils/docutils/languages16:13
stephenfinso I guess the solution is 'rm -rf doc/source/locale/id' /o\16:13
gagehugoha16:14
gagehugook16:14
gagehugoI assume opendev does support it though?16:14
stephenfinyou mean docs.openstack.org?16:14
stephenfinif not, what?16:14
gagehugoI mean the proposal bot was the thing that added it16:15
gagehugoI think anyway16:15
stephenfinAh, yes. Those are generated by a bot based on translations located in Transifex or whatever service we use for translations now16:15
stephenfinI don't really know who, if anyone, is still doing those translations16:16
gagehugooh ok16:16
stephenfinIs was ianychoi and company but I think they've all moved on16:16
gagehugowasn't sure if removing it would cause issues16:16
stephenfinthe bot might re-add them16:16
stephenfinguess wait and see :)16:16
stephenfinif they do, we can figure out how to go delete them at source16:16
fungizbr: for a minimum pbr version, if you're trying to tackle deprecation warnings you probably want at least 5.5.1 as it's the first version to include https://review.opendev.org/75279416:17
gagehugook16:17
clarkbstephenfin: gagehugo: if you can convince docutils to just ignore that dir that might be better? then the data is still there for people who want it rather tha ndiscarded16:17
clarkbcertainly in a far less useable form though16:17
zbrfungi: thanks for the hint. my first attempt to locate it in release notes failed.16:18
stephenfinyes, we could modify https://opendev.org/openstack/openstackdocstheme/src/branch/master/bin/docstheme-build-translated.sh to skip unsupported locales16:18
*** rpittau is now known as rpittau|afk16:21
zbrfungi: so the appropiate way to do it looks more like https://review.opendev.org/c/openstack/tripleo-repos/+/802750 ?16:22
stephenfinI fricking hate bash arrays :-(16:22
* zbr wonders who loves bash arrays...16:23
stephenfin:)16:23
fungizbr: i've got a personal pbr-using project where i export PYTHONWARNINGS=error globally in tox for all testenvs, and current pbr is no longer a problem for me. my current challenges are around the pip versions included in various interpreter builds (i build all my python interpreters from upstream source) vendoring old versions of things which touch distutils or urllib3, pyyaml using16:24
fungioutdated wheel metadata and missing cython directives16:24
fungimy PYTHONWARNINGS exclusion list is still very ugly as a result:16:25
fungiignore::FutureWarning:Cython.Compiler.Main, ignore::DeprecationWarning:setuptools.config, ignore::DeprecationWarning:distutils.command.install, ignore::ImportWarning:importlib._bootstrap, ignore::DeprecationWarning:pip._vendor.urllib3.connection, ignore::DeprecationWarning:pip._vendor.urllib3.util.ssl_, ignore:The "license_file" option is deprecated. Use "license_files"16:25
fungiinstead.:DeprecationWarning:wheel.bdist_wheel, ignore:The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives:DeprecationWarning, ignore:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning16:25
zbrfor not openstack projects, i no longer use pbr, went full on setuptools-scm for 2+ years now. Not painless, but as you know no support for release notes.16:25
fungidoes setuptools-scm create pep 440 compliant dev version numbers, and does it provide you with a way to encode the git commit?16:26
fungii remember those being reasons i didn't use it in the past16:27
zbrthose warnings are there for a reason, we need to be very careful which ones we hide.16:28
fungiyep, normally i would exclude by full message plus module, but a limitation of the PYTHONWARNINGS envvar is that it uses comma as a separator so can't represent messages containing commas (because it also lacks a quoting/escaping mechanism)16:29
zbrfungi: yes but not both at the same time, if you include the commit id, is no longer pepe 440 compliant. you can easily extend the versioning if you really want.16:30
fungialso some of those warnings are unlikely to ever be "fixed" because they're specific to outdated versions of modules vendored into outdated tools vendored into old python release branches16:30
zbrmy preference was to avoid commit it and produce simple versions like `5.1.2.dev1`16:30
fungizbr: yeah, one of the things i like about pbr is that it writes additional metadata you can reference so the commit id is accessible in the package info but not as part of the version string16:31
zbri think is possible but i did not check, maybe already does this and i not know. indeed useful when implementing `--version`.16:31
fungiright, that's how i end up leveraging it16:32
zbrthe maintainance improved recently so it should be quite easy to add features like this if needed.16:32
fungiand yeah, maybe it's gained that capability recently, i haven't tried it for a while16:33
fungii also rely on pbr's authors and changelog file generation16:33
zbrone thing that i did not check yet is if we can remove the runtime dependency on setuptools-scm and only use it as a build-dependency, once somene built a package wheel or sdist, you should not need it anymore.16:34
zbrone bug that is not yet addressed is versionign of github tar archives, as they lack tags. i guess pbr has the same issue, unless github finds a way to add extra info to these nobody can guess these.16:35
clarkbthat is beacuse github tar archives are not sdists16:36
clarkbif you want sdists in your github releases you have to manually add them yourself16:36
fungiyes, the problem with "github tarballs" is that they're missing egg-info metadata files16:36
fungian sdist is not merely a tarball, it's a tarball with some very specific files located inside it16:37
fungiyou *could* commit those metadata files into your git repository and they would probably work, but then you run into the commit/versioning race conditions pbr (and setuptools-scm) exists to solve16:37
*** marios|ruck is now known as marios|out16:38
fungizbr: as for being only a build-time dependency and not a runtime dependency, you can do that with pbr just fine (it's my personal preferred way to use pbr). just use native python stdlib mechanisms to interface with package/module metadata16:39
fungii only include pbr in my setup_requires, never in my install_requires16:39
fungiand none of my code imports pbr16:40
stephenfingagehugo: clarkb: https://review.opendev.org/c/openstack/openstackdocstheme/+/80275816:50
stephenfinjust FYI16:50
clarkbstephenfin: fwiw I think you can do a for X in $FOO ; do stuff ;done and avoid the array stuff entirely as long as the entries are whitespace separated16:53
stephenfino rly?16:53
* stephenfin tries16:53
clarkbya so LANGS="x y z" ; for X in $LANGS; do echo $X ; done16:53
gagehugostephenfin: We're gonna just remove the id dir for now to unblock people, but that works too, can always revert the change on our end16:53
stephenfingagehugo: yes, I think that makes sense16:54
clarkbstephenfin: also is your last condition inverted from what it should be?16:54
clarkbI think you may want if ! $supported ; then16:55
stephenfinwhoops, so it is /o\16:55
opendevreviewJeremy Stanley proposed openstack/project-config master: Make Sunny an operator on Kata IRC channels  https://review.opendev.org/c/openstack/project-config/+/80276517:59
*** mtreinish_ is now known as mtreinish18:52
*** prometheanfire is now known as Guest262119:34
opendevreviewMerged openstack/project-config master: Make Sunny an operator on Kata IRC channels  https://review.opendev.org/c/openstack/project-config/+/80276519:35
*** timburke_ is now known as timburke20:55
opendevreviewMerged openstack/project-config master: Revert "nodepool: set inmotion cloud to zero"  https://review.opendev.org/c/openstack/project-config/+/80101022:06

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!