[artix-build-failures] [galaxy-goblins] Failure: python-sh

jenkins at artixlinux.org jenkins at artixlinux.org
Thu Nov 12 10:45:07 CET 2020


   Failure

   Build: x86_64/community-staging

   Packages:

   python-sh-1.14.1-3-any.pkg.tar.zst

   author: alium

   email: alium at artixlinux.org

   [1]https://orion.artixlinux.org/job/packagesPython/job/python-sh/job/ma
   ster/2/

References

   1. https://orion.artixlinux.org/job/packagesPython/job/python-sh/job/master/2/
-------------- next part --------------
Push event to branch master
Querying the current revision of branch master...
Current revision of branch master is f7d8e459b9267c9712a443120d7bebdebd870122
Obtained Jenkinsfile from f7d8e459b9267c9712a443120d7bebdebd870122
Running in Durability level: PERFORMANCE_OPTIMIZED
Loading library artix-ci at master
Attempting to resolve master from remote references...
 > git --version # timeout=10
 > git --version # 'git version 2.27.0'
 > git ls-remote -- https://gitea.artixlinux.org/artix/pipeline-libs.git # timeout=10
Found match: refs/heads/master revision 6271842ae2c48166f805c969881e1444705a8d74
Selected Git installation does not exist. Using Default
The recommended git tool is: NONE
Warning: CredentialId "jenkins-gotea-token" could not be found.
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://gitea.artixlinux.org/artix/pipeline-libs.git # timeout=10
Fetching without tags
Fetching upstream changes from https://gitea.artixlinux.org/artix/pipeline-libs.git
 > git --version # timeout=10
 > git --version # 'git version 2.27.0'
 > git fetch --no-tags --force --progress -- https://gitea.artixlinux.org/artix/pipeline-libs.git +refs/heads/master:refs/remotes/origin/master # timeout=10
Checking out Revision 6271842ae2c48166f805c969881e1444705a8d74 (master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 6271842ae2c48166f805c969881e1444705a8d74 # timeout=10
Commit message: "zse map type prop instead of def type"
[Gitea] Notifying branch build status: PENDING Build started...
[Gitea] Notified
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Jenkins in /var/lib/jenkins/workspace/packagesPython_python-sh_master
[Pipeline] {
[Pipeline] timestamps
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Prepare)
[Pipeline] catchError
[Pipeline] {
[Pipeline] checkout
[2020-11-12T09:44:04.908Z] The recommended git tool is: NONE
[2020-11-12T09:44:04.908Z] Warning: CredentialId "jenkins-gotea-token" could not be found.
[2020-11-12T09:44:04.909Z]  > git rev-parse --is-inside-work-tree # timeout=10
[2020-11-12T09:44:04.914Z] Fetching changes from the remote Git repository
[2020-11-12T09:44:04.914Z]  > git config remote.origin.url https://237b7412742b4068af4173944de150f12959f4d3@gitea.artixlinux.org/packagesPython/python-sh.git # timeout=10
[2020-11-12T09:44:04.919Z] Cleaning workspace
[2020-11-12T09:44:04.919Z]  > git rev-parse --verify HEAD # timeout=10
[2020-11-12T09:44:04.923Z] Resetting working tree
[2020-11-12T09:44:04.923Z]  > git reset --hard # timeout=10
[2020-11-12T09:44:04.929Z]  > git clean -fdx # timeout=10
[2020-11-12T09:44:04.934Z] Fetching without tags
[2020-11-12T09:44:04.934Z] Fetching upstream changes from https://237b7412742b4068af4173944de150f12959f4d3@gitea.artixlinux.org/packagesPython/python-sh.git
[2020-11-12T09:44:04.934Z]  > git --version # timeout=10
[2020-11-12T09:44:04.938Z]  > git --version # 'git version 2.27.0'
[2020-11-12T09:44:04.938Z]  > git fetch --no-tags --force --progress -- https://237b7412742b4068af4173944de150f12959f4d3@gitea.artixlinux.org/packagesPython/python-sh.git +refs/heads/master:refs/remotes/origin/master # timeout=10
[2020-11-12T09:44:05.087Z] Checking out Revision f7d8e459b9267c9712a443120d7bebdebd870122 (master)
[2020-11-12T09:44:05.087Z]  > git config core.sparsecheckout # timeout=10
[2020-11-12T09:44:05.091Z]  > git checkout -f f7d8e459b9267c9712a443120d7bebdebd870122 # timeout=10
[2020-11-12T09:44:05.100Z] Commit message: "[trunk] -> [community-staging] 'python-sh-1.14.1-3' add"
[2020-11-12T09:44:05.100Z]  > git rev-list --no-walk a6214759434dafe319826fd91b32a519c3fea8dc # timeout=10
[2020-11-12T09:44:05.111Z] Cleaning workspace
[2020-11-12T09:44:05.111Z]  > git rev-parse --verify HEAD # timeout=10
[2020-11-12T09:44:05.115Z] Resetting working tree
[2020-11-12T09:44:05.115Z]  > git reset --hard # timeout=10
[2020-11-12T09:44:05.122Z]  > git clean -fdx # timeout=10
[2020-11-12T09:44:05.127Z] [Gitea] Notifying branch build status: PENDING Build started...
[2020-11-12T09:44:05.274Z] [Gitea] Notified
[Pipeline] libraryResource
[Pipeline] readYaml
[Pipeline] sh
[2020-11-12T09:44:05.546Z] + git show -s --format=%an f7d8e459b9267c9712a443120d7bebdebd870122
[Pipeline] sh
[2020-11-12T09:44:05.802Z] + git show -s --format=%ae f7d8e459b9267c9712a443120d7bebdebd870122
[Pipeline] sh
[2020-11-12T09:44:06.060Z] + git show --pretty=format: --name-status f7d8e459b9267c9712a443120d7bebdebd870122
[Pipeline] fileExists
[Pipeline] sh
[2020-11-12T09:44:06.331Z] + pkg2yaml -d x86_64/community-staging
[Pipeline] readYaml
[Pipeline] }
[Pipeline] // catchError
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build)
[Pipeline] withCredentials
[2020-11-12T09:44:06.494Z] Masking supported pattern matches of $BUILDBOT_GPGP
[Pipeline] {
[Pipeline] echo
[2020-11-12T09:44:06.524Z] isLibBump: false
[Pipeline] dir
[2020-11-12T09:44:06.529Z] Running in /var/lib/jenkins/workspace/packagesPython_python-sh_master/x86_64/community-staging
[Pipeline] {
[Pipeline] catchError
[Pipeline] {
[Pipeline] sh
[2020-11-12T09:44:06.795Z] + buildpkg -C -d galaxy-goblins
[2020-11-12T09:44:10.024Z] :: Synchronizing package databases...
[2020-11-12T09:44:10.024Z]  goblins is up to date
[2020-11-12T09:44:10.024Z]  gremlins is up to date
[2020-11-12T09:44:10.024Z]  system is up to date
[2020-11-12T09:44:10.024Z]  world is up to date
[2020-11-12T09:44:10.024Z] downloading galaxy-goblins.db...
[2020-11-12T09:44:10.024Z]  galaxy-gremlins is up to date
[2020-11-12T09:44:10.024Z]  galaxy is up to date
[2020-11-12T09:44:10.024Z]  extra is up to date
[2020-11-12T09:44:10.024Z]  community-staging is up to date
[2020-11-12T09:44:10.024Z]  community-testing is up to date
[2020-11-12T09:44:10.024Z]  community is up to date
[2020-11-12T09:44:10.024Z] :: Starting full system upgrade...
[2020-11-12T09:44:10.274Z]  there is nothing to do
[2020-11-12T09:44:11.617Z] ==> Building in chroot for [goblins] (x86_64)...
[2020-11-12T09:44:11.874Z] ==> Synchronizing chroot copy [/build/buildpkg/goblins-x86_64/root] -> [jenkins]...done
[2020-11-12T09:44:12.785Z] ==> Making package: python-sh 1.14.1-3 (Thu Nov 12 10:44:12 2020)
[2020-11-12T09:44:12.785Z] ==> Retrieving sources...
[2020-11-12T09:44:12.785Z]   -> Found sh-1.14.1.tar.gz
[2020-11-12T09:44:12.785Z] ==> Validating source files with sha512sums...
[2020-11-12T09:44:12.785Z]     sh-1.14.1.tar.gz ... Passed
[2020-11-12T09:44:12.785Z] ==> Validating source files with b2sums...
[2020-11-12T09:44:12.786Z]     sh-1.14.1.tar.gz ... Passed
[2020-11-12T09:44:17.980Z] ==> Making package: python-sh 1.14.1-3 (Thu 12 Nov 2020 09:44:17 AM UTC)
[2020-11-12T09:44:17.980Z] ==> Checking runtime dependencies...
[2020-11-12T09:44:17.980Z] ==> Installing missing dependencies...
[2020-11-12T09:44:17.980Z] resolving dependencies...
[2020-11-12T09:44:17.980Z] looking for conflicting packages...
[2020-11-12T09:44:17.980Z] 
[2020-11-12T09:44:17.980Z] Package (2)     New Version  Net Change
[2020-11-12T09:44:17.980Z] 
[2020-11-12T09:44:17.980Z] system/libnsl   1.3.0-1        0.19 MiB
[2020-11-12T09:44:17.980Z] goblins/python  3.9.0-1       80.76 MiB
[2020-11-12T09:44:17.980Z] 
[2020-11-12T09:44:17.980Z] Total Installed Size:  80.96 MiB
[2020-11-12T09:44:17.980Z] 
[2020-11-12T09:44:17.980Z] :: Proceed with installation? [Y/n] 
[2020-11-12T09:44:17.980Z] checking keyring...
[2020-11-12T09:44:17.980Z] checking package integrity...
[2020-11-12T09:44:18.230Z] loading package files...
[2020-11-12T09:44:18.230Z] checking for file conflicts...
[2020-11-12T09:44:18.230Z] checking available disk space...
[2020-11-12T09:44:18.230Z] :: Processing package changes...
[2020-11-12T09:44:18.230Z] installing libnsl...
[2020-11-12T09:44:18.230Z] installing python...
[2020-11-12T09:44:18.481Z] Optional dependencies for python
[2020-11-12T09:44:18.481Z]     python-setuptools
[2020-11-12T09:44:18.481Z]     python-pip
[2020-11-12T09:44:18.481Z]     sqlite [installed]
[2020-11-12T09:44:18.481Z]     mpdecimal: for decimal
[2020-11-12T09:44:18.481Z]     xz: for lzma [installed]
[2020-11-12T09:44:18.481Z]     tk: for tkinter
[2020-11-12T09:44:18.481Z] ==> Checking buildtime dependencies...
[2020-11-12T09:44:18.481Z] ==> Installing missing dependencies...
[2020-11-12T09:44:19.031Z] resolving dependencies...
[2020-11-12T09:44:19.031Z] looking for conflicting packages...
[2020-11-12T09:44:19.031Z] 
[2020-11-12T09:44:19.031Z] Package (17)                              New Version  Net Change  Download Size
[2020-11-12T09:44:19.031Z] 
[2020-11-12T09:44:19.031Z] galaxy-goblins/python-apipkg              1.5-4          0.02 MiB               
[2020-11-12T09:44:19.031Z] goblins/python-appdirs                    1.4.4-2        0.07 MiB               
[2020-11-12T09:44:19.031Z] goblins/python-attrs                      20.3.0-2       0.37 MiB               
[2020-11-12T09:44:19.031Z] galaxy-goblins/python-importlib-metadata  2.0.0-2        0.19 MiB               
[2020-11-12T09:44:19.031Z] galaxy-goblins/python-iniconfig           1.0.1-2        0.02 MiB               
[2020-11-12T09:44:19.031Z] galaxy-goblins/python-more-itertools      8.6.0-2        0.27 MiB               
[2020-11-12T09:44:19.031Z] goblins/python-ordered-set                4.0.2-2        0.06 MiB               
[2020-11-12T09:44:19.031Z] goblins/python-packaging                  20.4-3         0.17 MiB               
[2020-11-12T09:44:19.031Z] galaxy-goblins/python-pluggy              0.13.1-3       0.12 MiB               
[2020-11-12T09:44:19.031Z] galaxy-goblins/python-py                  1.9.0-2        0.72 MiB               
[2020-11-12T09:44:19.031Z] goblins/python-pyparsing                  2.4.7-2        0.73 MiB               
[2020-11-12T09:44:19.031Z] goblins/python-six                        1.15.0-2       0.09 MiB               
[2020-11-12T09:44:19.031Z] galaxy-goblins/python-toml                0.10.2-2       0.14 MiB               
[2020-11-12T09:44:19.031Z] galaxy-goblins/python-zipp                3.4.0-2        0.03 MiB               
[2020-11-12T09:44:19.031Z] world/lsof                                4.93.2-3       0.20 MiB       0.11 MiB
[2020-11-12T09:44:19.031Z] galaxy-goblins/python-pytest              6.1.2-2        2.40 MiB               
[2020-11-12T09:44:19.031Z] goblins/python-setuptools                 1:50.3.2-3     2.98 MiB               
[2020-11-12T09:44:19.031Z] 
[2020-11-12T09:44:19.031Z] Total Download Size:   0.11 MiB
[2020-11-12T09:44:19.031Z] Total Installed Size:  8.58 MiB
[2020-11-12T09:44:19.031Z] 
[2020-11-12T09:44:19.031Z] :: Proceed with installation? [Y/n] 
[2020-11-12T09:44:19.031Z] :: Retrieving packages...
[2020-11-12T09:44:19.031Z] downloading lsof-4.93.2-3-x86_64.pkg.tar.zst...
[2020-11-12T09:44:19.031Z] checking keyring...
[2020-11-12T09:44:19.031Z] checking package integrity...
[2020-11-12T09:44:19.582Z] loading package files...
[2020-11-12T09:44:19.582Z] checking for file conflicts...
[2020-11-12T09:44:19.582Z] checking available disk space...
[2020-11-12T09:44:19.582Z] :: Processing package changes...
[2020-11-12T09:44:19.582Z] installing python-appdirs...
[2020-11-12T09:44:19.582Z] installing python-pyparsing...
[2020-11-12T09:44:19.582Z] installing python-six...
[2020-11-12T09:44:19.582Z] installing python-packaging...
[2020-11-12T09:44:19.582Z] installing python-ordered-set...
[2020-11-12T09:44:19.582Z] installing python-setuptools...
[2020-11-12T09:44:19.832Z] installing lsof...
[2020-11-12T09:44:19.832Z] installing python-attrs...
[2020-11-12T09:44:19.832Z] installing python-iniconfig...
[2020-11-12T09:44:19.832Z] installing python-more-itertools...
[2020-11-12T09:44:19.832Z] installing python-zipp...
[2020-11-12T09:44:19.832Z] installing python-importlib-metadata...
[2020-11-12T09:44:19.832Z] installing python-pluggy...
[2020-11-12T09:44:19.832Z] installing python-apipkg...
[2020-11-12T09:44:19.832Z] installing python-py...
[2020-11-12T09:44:19.832Z] installing python-toml...
[2020-11-12T09:44:19.832Z] installing python-pytest...
[2020-11-12T09:44:19.832Z] ==> Retrieving sources...
[2020-11-12T09:44:19.832Z]   -> Found sh-1.14.1.tar.gz
[2020-11-12T09:44:19.832Z] ==> WARNING: Skipping all source file integrity checks.
[2020-11-12T09:44:19.832Z] ==> Extracting sources...
[2020-11-12T09:44:19.832Z]   -> Extracting sh-1.14.1.tar.gz with bsdtar
[2020-11-12T09:44:19.832Z] ==> Starting build()...
[2020-11-12T09:44:20.083Z] running build
[2020-11-12T09:44:20.083Z] running build_py
[2020-11-12T09:44:20.083Z] creating build
[2020-11-12T09:44:20.083Z] creating build/lib
[2020-11-12T09:44:20.083Z] copying sh.py -> build/lib
[2020-11-12T09:44:20.083Z] ==> Starting check()...
[2020-11-12T09:44:20.633Z] ============================= test session starts ==============================
[2020-11-12T09:44:20.633Z] platform linux -- Python 3.9.0, pytest-6.1.2, py-1.9.0, pluggy-0.13.1
[2020-11-12T09:44:20.633Z] rootdir: /build/python-sh/src/sh-1.14.1
[2020-11-12T09:44:20.633Z] collected 171 items / 1 deselected / 170 selected
[2020-11-12T09:44:20.633Z] 
[2020-11-12T09:44:35.515Z] test.py ...............................s................................ [ 37%]
[2020-11-12T09:45:01.571Z] ...............................FF....................................... [ 80%]
[2020-11-12T09:45:06.266Z] ..................................                                       [100%]
[2020-11-12T09:45:06.266Z] 
[2020-11-12T09:45:06.266Z] =================================== FAILURES ===================================
[2020-11-12T09:45:06.266Z] ____________________ FunctionalTests.test_piped_exception1 _____________________
[2020-11-12T09:45:06.266Z] 
[2020-11-12T09:45:06.266Z] self = <test.FunctionalTests testMethod=test_piped_exception1>
[2020-11-12T09:45:06.266Z] 
[2020-11-12T09:45:06.266Z]         def test_piped_exception1(self):
[2020-11-12T09:45:06.266Z]             from sh import ErrorReturnCode_2
[2020-11-12T09:45:06.266Z]     
[2020-11-12T09:45:06.266Z]             py = create_tmp_test("""
[2020-11-12T09:45:06.266Z]     import sys
[2020-11-12T09:45:06.266Z]     sys.stdout.write("line1\\n")
[2020-11-12T09:45:06.266Z]     sys.stdout.write("line2\\n")
[2020-11-12T09:45:06.266Z]     exit(2)
[2020-11-12T09:45:06.266Z]     """)
[2020-11-12T09:45:06.266Z]     
[2020-11-12T09:45:06.266Z]             py2 = create_tmp_test("")
[2020-11-12T09:45:06.266Z]     
[2020-11-12T09:45:06.266Z]             def fn():
[2020-11-12T09:45:06.266Z]                 list(python(python(py.name, _piped=True), "-u", py2.name, _iter=True))
[2020-11-12T09:45:06.266Z]     
[2020-11-12T09:45:06.266Z] >           self.assertRaises(ErrorReturnCode_2, fn)
[2020-11-12T09:45:06.266Z] 
[2020-11-12T09:45:06.266Z] /build/python-sh/src/sh-1.14.1/test.py:742: 
[2020-11-12T09:45:06.266Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[2020-11-12T09:45:06.266Z] /build/python-sh/src/sh-1.14.1/test.py:740: in fn
[2020-11-12T09:45:06.266Z]     list(python(python(py.name, _piped=True), "-u", py2.name, _iter=True))
[2020-11-12T09:45:06.266Z] /build/python-sh/src/sh-1.14.1/sh.py:883: in __len__
[2020-11-12T09:45:06.266Z]     return len(str(self))
[2020-11-12T09:45:06.266Z] /build/python-sh/src/sh-1.14.1/sh.py:930: in __str__
[2020-11-12T09:45:06.266Z]     return self.__unicode__()
[2020-11-12T09:45:06.266Z] /build/python-sh/src/sh-1.14.1/sh.py:937: in __unicode__
[2020-11-12T09:45:06.266Z]     if self.process and self.stdout:
[2020-11-12T09:45:06.266Z] /build/python-sh/src/sh-1.14.1/sh.py:869: in stdout
[2020-11-12T09:45:06.266Z]     self.wait()
[2020-11-12T09:45:06.266Z] /build/python-sh/src/sh-1.14.1/sh.py:848: in wait
[2020-11-12T09:45:06.266Z]     self.process._stdin_process.command.wait()
[2020-11-12T09:45:06.266Z] /build/python-sh/src/sh-1.14.1/sh.py:841: in wait
[2020-11-12T09:45:06.266Z]     self.handle_command_exit_code(exit_code)
[2020-11-12T09:45:06.266Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[2020-11-12T09:45:06.266Z] 
[2020-11-12T09:45:06.266Z]     def handle_command_exit_code(self, code):
[2020-11-12T09:45:06.266Z]         """ here we determine if we had an exception, or an error code that we
[2020-11-12T09:45:06.266Z]         weren't expecting to see.  if we did, we create and raise an exception
[2020-11-12T09:45:06.266Z]         """
[2020-11-12T09:45:06.266Z]         ca = self.call_args
[2020-11-12T09:45:06.266Z]         exc_class = get_exc_exit_code_would_raise(code, ca["ok_code"], ca["piped"])
[2020-11-12T09:45:06.266Z]         if exc_class:
[2020-11-12T09:45:06.266Z]             exc = exc_class(self.ran, self.process.stdout, self.process.stderr, ca["truncate_exc"])
[2020-11-12T09:45:06.266Z] >           raise exc
[2020-11-12T09:45:06.266Z] E           sh.ErrorReturnCode_120: 
[2020-11-12T09:45:06.266Z] E           
[2020-11-12T09:45:06.266Z] E             RAN: /usr/bin/python /tmp/tmp97_ag_wm
[2020-11-12T09:45:06.266Z] E           
[2020-11-12T09:45:06.266Z] E             STDOUT:
[2020-11-12T09:45:06.266Z] E           
[2020-11-12T09:45:06.266Z] E           
[2020-11-12T09:45:06.266Z] E             STDERR:
[2020-11-12T09:45:06.266Z] E           Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
[2020-11-12T09:45:06.266Z] E           BrokenPipeError: [Errno 32] Broken pipe
[2020-11-12T09:45:06.266Z] 
[2020-11-12T09:45:06.266Z] /build/python-sh/src/sh-1.14.1/sh.py:865: ErrorReturnCode_120
[2020-11-12T09:45:06.266Z] ----------------------------- Captured stderr call -----------------------------
[2020-11-12T09:45:06.266Z] Exception in thread background thread for pid 4473:
[2020-11-12T09:45:06.266Z] Traceback (most recent call last):
[2020-11-12T09:45:06.266Z]   File "/usr/lib/python3.9/threading.py", line 950, in _bootstrap_inner
[2020-11-12T09:45:06.266Z]     self.run()
[2020-11-12T09:45:06.266Z]   File "/usr/lib/python3.9/threading.py", line 888, in run
[2020-11-12T09:45:06.266Z]     self._target(*self._args, **self._kwargs)
[2020-11-12T09:45:06.266Z]   File "/build/python-sh/src/sh-1.14.1/sh.py", line 1637, in wrap
[2020-11-12T09:45:06.266Z]     fn(*rgs, **kwargs)
[2020-11-12T09:45:06.266Z]   File "/build/python-sh/src/sh-1.14.1/sh.py", line 2561, in background_thread
[2020-11-12T09:45:06.266Z]     handle_exit_code(exit_code)
[2020-11-12T09:45:06.266Z]   File "/build/python-sh/src/sh-1.14.1/sh.py", line 2265, in fn
[2020-11-12T09:45:06.266Z]     return self.command.handle_command_exit_code(exit_code)
[2020-11-12T09:45:06.266Z]   File "/build/python-sh/src/sh-1.14.1/sh.py", line 865, in handle_command_exit_code
[2020-11-12T09:45:06.266Z]     raise exc
[2020-11-12T09:45:06.266Z] sh.ErrorReturnCode_120: 
[2020-11-12T09:45:06.266Z] 
[2020-11-12T09:45:06.266Z]   RAN: /usr/bin/python /tmp/tmp97_ag_wm
[2020-11-12T09:45:06.266Z] 
[2020-11-12T09:45:06.266Z]   STDOUT:
[2020-11-12T09:45:06.266Z] 
[2020-11-12T09:45:06.266Z] 
[2020-11-12T09:45:06.266Z]   STDERR:
[2020-11-12T09:45:06.266Z] Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
[2020-11-12T09:45:06.266Z] BrokenPipeError: [Errno 32] Broken pipe
[2020-11-12T09:45:06.266Z] 
[2020-11-12T09:45:06.266Z] ____________________ FunctionalTests.test_piped_exception2 _____________________
[2020-11-12T09:45:06.266Z] 
[2020-11-12T09:45:06.266Z] self = <test.FunctionalTests testMethod=test_piped_exception2>
[2020-11-12T09:45:06.266Z] 
[2020-11-12T09:45:06.266Z]         def test_piped_exception2(self):
[2020-11-12T09:45:06.266Z]             from sh import ErrorReturnCode_2
[2020-11-12T09:45:06.266Z]     
[2020-11-12T09:45:06.266Z]             py = create_tmp_test("""
[2020-11-12T09:45:06.266Z]     import sys
[2020-11-12T09:45:06.266Z]     sys.stdout.write("line1\\n")
[2020-11-12T09:45:06.266Z]     sys.stdout.write("line2\\n")
[2020-11-12T09:45:06.266Z]     exit(2)
[2020-11-12T09:45:06.266Z]     """)
[2020-11-12T09:45:06.266Z]     
[2020-11-12T09:45:06.266Z]             py2 = create_tmp_test("")
[2020-11-12T09:45:06.266Z]     
[2020-11-12T09:45:06.266Z]             def fn():
[2020-11-12T09:45:06.266Z]                 python(python(py.name, _piped=True), "-u", py2.name)
[2020-11-12T09:45:06.266Z]     
[2020-11-12T09:45:06.267Z] >           self.assertRaises(ErrorReturnCode_2, fn)
[2020-11-12T09:45:06.267Z] 
[2020-11-12T09:45:06.267Z] /build/python-sh/src/sh-1.14.1/test.py:759: 
[2020-11-12T09:45:06.267Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[2020-11-12T09:45:06.267Z] /build/python-sh/src/sh-1.14.1/test.py:757: in fn
[2020-11-12T09:45:06.267Z]     python(python(py.name, _piped=True), "-u", py2.name)
[2020-11-12T09:45:06.267Z] /build/python-sh/src/sh-1.14.1/sh.py:1520: in __call__
[2020-11-12T09:45:06.267Z]     return RunningCommand(cmd, call_args, stdin, stdout, stderr)
[2020-11-12T09:45:06.267Z] /build/python-sh/src/sh-1.14.1/sh.py:784: in __init__
[2020-11-12T09:45:06.267Z]     self.wait()
[2020-11-12T09:45:06.267Z] /build/python-sh/src/sh-1.14.1/sh.py:848: in wait
[2020-11-12T09:45:06.267Z]     self.process._stdin_process.command.wait()
[2020-11-12T09:45:06.267Z] /build/python-sh/src/sh-1.14.1/sh.py:841: in wait
[2020-11-12T09:45:06.267Z]     self.handle_command_exit_code(exit_code)
[2020-11-12T09:45:06.267Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[2020-11-12T09:45:06.267Z] 
[2020-11-12T09:45:06.267Z]     def handle_command_exit_code(self, code):
[2020-11-12T09:45:06.267Z]         """ here we determine if we had an exception, or an error code that we
[2020-11-12T09:45:06.267Z]         weren't expecting to see.  if we did, we create and raise an exception
[2020-11-12T09:45:06.267Z]         """
[2020-11-12T09:45:06.267Z]         ca = self.call_args
[2020-11-12T09:45:06.267Z]         exc_class = get_exc_exit_code_would_raise(code, ca["ok_code"], ca["piped"])
[2020-11-12T09:45:06.267Z]         if exc_class:
[2020-11-12T09:45:06.267Z]             exc = exc_class(self.ran, self.process.stdout, self.process.stderr, ca["truncate_exc"])
[2020-11-12T09:45:06.267Z] >           raise exc
[2020-11-12T09:45:06.267Z] E           sh.ErrorReturnCode_120: 
[2020-11-12T09:45:06.267Z] E           
[2020-11-12T09:45:06.267Z] E             RAN: /usr/bin/python /tmp/tmpgyrifebq
[2020-11-12T09:45:06.267Z] E           
[2020-11-12T09:45:06.267Z] E             STDOUT:
[2020-11-12T09:45:06.267Z] E           
[2020-11-12T09:45:06.267Z] E           
[2020-11-12T09:45:06.267Z] E             STDERR:
[2020-11-12T09:45:06.267Z] E           Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
[2020-11-12T09:45:06.267Z] E           BrokenPipeError: [Errno 32] Broken pipe
[2020-11-12T09:45:06.267Z] 
[2020-11-12T09:45:06.267Z] /build/python-sh/src/sh-1.14.1/sh.py:865: ErrorReturnCode_120
[2020-11-12T09:45:06.267Z] ----------------------------- Captured stderr call -----------------------------
[2020-11-12T09:45:06.267Z] Exception in thread background thread for pid 4482:
[2020-11-12T09:45:06.267Z] Traceback (most recent call last):
[2020-11-12T09:45:06.267Z]   File "/usr/lib/python3.9/threading.py", line 950, in _bootstrap_inner
[2020-11-12T09:45:06.267Z]     self.run()
[2020-11-12T09:45:06.267Z]   File "/usr/lib/python3.9/threading.py", line 888, in run
[2020-11-12T09:45:06.267Z]     self._target(*self._args, **self._kwargs)
[2020-11-12T09:45:06.267Z]   File "/build/python-sh/src/sh-1.14.1/sh.py", line 1637, in wrap
[2020-11-12T09:45:06.267Z]     fn(*rgs, **kwargs)
[2020-11-12T09:45:06.267Z]   File "/build/python-sh/src/sh-1.14.1/sh.py", line 2561, in background_thread
[2020-11-12T09:45:06.267Z]     handle_exit_code(exit_code)
[2020-11-12T09:45:06.267Z]   File "/build/python-sh/src/sh-1.14.1/sh.py", line 2265, in fn
[2020-11-12T09:45:06.267Z]     return self.command.handle_command_exit_code(exit_code)
[2020-11-12T09:45:06.267Z]   File "/build/python-sh/src/sh-1.14.1/sh.py", line 865, in handle_command_exit_code
[2020-11-12T09:45:06.267Z]     raise exc
[2020-11-12T09:45:06.267Z] sh.ErrorReturnCode_120: 
[2020-11-12T09:45:06.267Z] 
[2020-11-12T09:45:06.267Z]   RAN: /usr/bin/python /tmp/tmpgyrifebq
[2020-11-12T09:45:06.267Z] 
[2020-11-12T09:45:06.267Z]   STDOUT:
[2020-11-12T09:45:06.267Z] 
[2020-11-12T09:45:06.267Z] 
[2020-11-12T09:45:06.267Z]   STDERR:
[2020-11-12T09:45:06.267Z] Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
[2020-11-12T09:45:06.267Z] BrokenPipeError: [Errno 32] Broken pipe
[2020-11-12T09:45:06.267Z] 
[2020-11-12T09:45:06.267Z] =========================== short test summary info ============================
[2020-11-12T09:45:06.267Z] FAILED test.py::FunctionalTests::test_piped_exception1 - sh.ErrorReturnCode_1...
[2020-11-12T09:45:06.267Z] FAILED test.py::FunctionalTests::test_piped_exception2 - sh.ErrorReturnCode_1...
[2020-11-12T09:45:06.267Z] =========== 2 failed, 167 passed, 1 skipped, 1 deselected in 45.79s ============
[2020-11-12T09:45:06.267Z] ==> ERROR: A failure occurred in check().
[2020-11-12T09:45:06.267Z]     Aborting...
[2020-11-12T09:45:07.178Z] ==> ERROR: Build failed, check /build/buildpkg/goblins-x86_64/jenkins/build
[Pipeline] }
[2020-11-12T09:45:07.181Z] ERROR: Failed to build source
[2020-11-12T09:45:07.181Z] ERROR: script returned exit code 255
[Pipeline] // catchError
[Pipeline] }
[Pipeline] // dir
Post stage
[Pipeline] emailext
[2020-11-12T09:45:07.281Z] Sending email to: artix-build-failures at artixlinux.org


More information about the artix-build-failures mailing list