Tuesday, 2020-01-28

*** sshnaidm|afk is now known as sshnaidm06:48
*** dpawlik has joined #softwarefactory07:34
*** apevec has joined #softwarefactory08:15
*** jpena|off is now known as jpena08:52
*** harrymichal has joined #softwarefactory09:12
*** harrymichal has quit IRC09:36
*** harrymichal has joined #softwarefactory09:38
*** harrymichal has quit IRC09:48
*** harrymichal has joined #softwarefactory09:58
sfbenderMerged rdopkg master: Run coverage html generation during run job  https://softwarefactory-project.io/r/1733410:05
*** electrofelix has joined #softwarefactory10:10
sfbenderMerged rdopkg master: Sanitize req when parsing requirements.txt  https://softwarefactory-project.io/r/1701610:42
sfbenderMerged rdopkg master: Show additional pkgs present in spec file  https://softwarefactory-project.io/r/1705210:42
*** jpena is now known as jpena|lunch12:23
*** jpena|lunch is now known as jpena13:20
*** harrymichal has quit IRC14:34
*** harrymichal has joined #softwarefactory14:34
*** harrymichal has quit IRC14:36
*** jpena is now known as jpena|brb16:45
*** rfolco is now known as rfolco|bbl16:46
*** jpena|brb is now known as jpena17:24
*** electrofelix has quit IRC17:59
*** jpena is now known as jpena|off18:32
*** rfolco|bbl has quit IRC19:19
adamwtristanC: ahoy! around?20:04
adamwtristanC: so i tried setting up os-autoinst-distri-fedora to run a real test via tox, but it's failing when it should pass. it looks like the test environment has some kind of bug in its tox setup - it seems to install python2 packages when it should be installing python3 ones20:15
adamwhttps://fedora.softwarefactory-project.io/zuul/build/7bed71d680d6405d9f0de498f9ea3cd220:15
adamwnote the python2 deprecation warning, we should not see that if it was installing python3 packages as it should (note the env is 'py38')20:16
adamwso i think maybe it installs a python2 jsonschema and that's why the test fails...'20:16
adamwwell, unless it's the ./fifloader.py invocation specifically that's the problem. hrm.20:17
*** rfolco has joined #softwarefactory20:24
tristanCadamw: looking20:27
adamwtristanC: i'm twiddling around with tox.ini to see if i can get anything that works20:28
adamwthe tox.ini from the initial pull request does work when i run it here20:28
adamwthough i do have jsonschema installed systemwide here, which is a difference.20:28
adamwhmm, got a different error this ime20:29
adamwhuh. can't import unittest...that's a core module, though...20:30
tristanCadamw: perhaps adding 'install_command = pip install -U {opts} {packages}' to the [testenv] section would help?20:30
adamwthat ought to be the default20:31
adamwhttps://fedora.softwarefactory-project.io/zuul/build/393f210afed24a8f9afd2561c6c34931 is the latest failure20:31
adamw    from unittest import mock20:32
adamwE   ImportError: cannot import name mock20:32
adamwwhich is odd, because unittest.mock should be part of the core.20:32
tristanCadamw: what about 'basepython = python3' in [testenv] section too?20:33
adamwcan try it...20:33
adamw"tox allows setting the python version for an environment via the basepython setting. If that’s not set tox can set a default value from the environment name ( e.g. py37 implies Python 3.7)."20:33
adamwwhat is the environment this is running in exactly? i couldn't find anything explaining that20:34
tristanCmy tox fu is a bit rusty, it seems like the job is running with py2 according to the 'py38 installed: DEPRECATION: Python 2.7 reached the end of its life on January 1st' error message20:34
adamwyes, that was my inference too20:34
adamwbut i don't get why - it should be python3 everything if it's in the 'py38' env20:34
tristanCoh, that is running in centos20:35
tristanCadamw: you can see that by looking at the zuul-info/inventory.yaml file, e.g. https://fedora.softwarefactory-project.io/zuul/build/393f210afed24a8f9afd2561c6c34931/log/zuul-info/inventory.yaml20:35
adamwaha20:35
adamwcentos...7? 8?20:36
tristanCadamw: you could try using the `nodeset: fedora-31-vm` job attribute to use a fedora cloud based image instead20:36
tristanCadamw: that's centos-720:36
adamwthat might help20:36
adamwwe might be on a really old tox here where 'py38' is not an env it understands at all, i guess20:37
adamwso that would go in the -job bit of .zuul.yaml ?20:37
tristanCyes, that seems like the issue, an old tox20:39
tristanCadamw: cloud image might be too much for such tox job, i'm proposing new pod labels here: https://pagure.io/fedora-zuul-jobs/pull-request/2920:41
adamwcool20:41
tristanCadamw: in any case, yes in the .zuul.yaml, in the job object you can add a nodeset attribute here: https://pagure.io/fedora-qa/os-autoinst-distri-fedora/blob/dfe5b99edd6e52b4d15aff29b2c80421c21c67a1/f/.zuul.yaml#_220:41
tristanCadamw: and in https://pagure.io/fedora-qa/os-autoinst-distri-fedora/blob/6dd97792c25bda4cabbda30137f619db1e105414/f/ci/tox.yaml , you can add a 'include_role: {name: ensure-tox}'  to setup tox20:43
adamwaha, okay, thanks21:12
adamwbtw, the zuul 'failure' link points to https://sftests.com , which doesn't exist...21:12
adamwthe 'pending' link points to the right place21:12
*** dpawlik has quit IRC21:55
tristanCadamw: that's odd, where do you see sftests.com link?22:09
tristanCoh, on the flags22:10
*** rfolco has quit IRC22:46

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