Skip to content

Instantly share code, notes, and snippets.

@asymmetric
Created June 1, 2024 19:57
Show Gist options
  • Save asymmetric/e5fb38b2fe1588151c94ad5789afd8a1 to your computer and use it in GitHub Desktop.
Save asymmetric/e5fb38b2fe1588151c94ad5789afd8a1 to your computer and use it in GitHub Desktop.
tarsnapper failure
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-build-hook
Using pypaBuildPhase
Sourcing python-runtime-deps-check-hook
Using pythonRuntimeDepsCheckHook
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing pytest-check-hook
Using pytestCheckPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/8bx5x42c5s84as4fcdzvvqfrjcf2gjza-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/tests/test_script.py
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
applying patch /nix/store/jy6sxfm9a9wdvc8chpq7ly1qizhyr47i-2ee33ce748b9bb42d559cc2c0104115732cb4150.patch
patching file tarsnapper/config.py
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: configurePhase
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: buildPhase
Executing pypaBuildPhase
Creating a wheel...
* Getting build dependencies for wheel...
running egg_info
creating tarsnapper.egg-info
writing tarsnapper.egg-info/PKG-INFO
writing dependency_links to tarsnapper.egg-info/dependency_links.txt
writing entry points to tarsnapper.egg-info/entry_points.txt
writing requirements to tarsnapper.egg-info/requires.txt
writing top-level names to tarsnapper.egg-info/top_level.txt
writing manifest file 'tarsnapper.egg-info/SOURCES.txt'
reading manifest file 'tarsnapper.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'README.rst'
warning: no files found matching 'CHANGES'
warning: no previously-included files matching '*.pyc' found under directory 'tests'
adding license file 'LICENSE'
writing manifest file 'tarsnapper.egg-info/SOURCES.txt'
* Building wheel...
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/tarsnapper
copying tarsnapper/config.py -> build/lib/tarsnapper
copying tarsnapper/test.py -> build/lib/tarsnapper
copying tarsnapper/script.py -> build/lib/tarsnapper
copying tarsnapper/expire.py -> build/lib/tarsnapper
copying tarsnapper/__init__.py -> build/lib/tarsnapper
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/tarsnapper
copying build/lib/tarsnapper/__init__.py -> build/bdist.linux-x86_64/wheel/tarsnapper
copying build/lib/tarsnapper/expire.py -> build/bdist.linux-x86_64/wheel/tarsnapper
copying build/lib/tarsnapper/script.py -> build/bdist.linux-x86_64/wheel/tarsnapper
copying build/lib/tarsnapper/test.py -> build/bdist.linux-x86_64/wheel/tarsnapper
copying build/lib/tarsnapper/config.py -> build/bdist.linux-x86_64/wheel/tarsnapper
running install_egg_info
running egg_info
writing tarsnapper.egg-info/PKG-INFO
writing dependency_links to tarsnapper.egg-info/dependency_links.txt
writing entry points to tarsnapper.egg-info/entry_points.txt
writing requirements to tarsnapper.egg-info/requires.txt
writing top-level names to tarsnapper.egg-info/top_level.txt
reading manifest file 'tarsnapper.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'README.rst'
warning: no files found matching 'CHANGES'
warning: no previously-included files matching '*.pyc' found under directory 'tests'
adding license file 'LICENSE'
writing manifest file 'tarsnapper.egg-info/SOURCES.txt'
Copying tarsnapper.egg-info to build/bdist.linux-x86_64/wheel/tarsnapper-0.4.0-py3.11.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/tarsnapper-0.4.0.dist-info/WHEEL
creating '/build/source/dist/.tmp-uv1l9igb/tarsnapper-0.4.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'tarsnapper/__init__.py'
adding 'tarsnapper/config.py'
adding 'tarsnapper/expire.py'
adding 'tarsnapper/script.py'
adding 'tarsnapper/test.py'
adding 'tarsnapper-0.4.0.dist-info/LICENSE'
adding 'tarsnapper-0.4.0.dist-info/METADATA'
adding 'tarsnapper-0.4.0.dist-info/WHEEL'
adding 'tarsnapper-0.4.0.dist-info/entry_points.txt'
adding 'tarsnapper-0.4.0.dist-info/top_level.txt'
adding 'tarsnapper-0.4.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built tarsnapper-0.4.0-py3-none-any.whl
Finished creating a wheel...
/build/source/dist /build/source
Unpacking to: unpacked/tarsnapper-0.4.0...OK
Repacking wheel as ./tarsnapper-0.4.0-py3-none-any.whl...OK
/build/source
Finished executing pypaBuildPhase
@nix { "action": "setPhase", "phase": "pythonRuntimeDepsCheckHook" }
Running phase: pythonRuntimeDepsCheckHook
Executing pythonRuntimeDepsCheck
Checking runtime dependencies for tarsnapper-0.4.0-py3-none-any.whl
Finished executing pythonRuntimeDepsCheck
@nix { "action": "setPhase", "phase": "installPhase" }
Running phase: installPhase
Executing pypaInstallPhase
Successfully installed tarsnapper-0.4.0-py3-none-any.whl
Finished executing pypaInstallPhase
@nix { "action": "setPhase", "phase": "pythonOutputDistPhase" }
Running phase: pythonOutputDistPhase
Executing pythonOutputDistPhase
Finished executing pythonOutputDistPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
Running phase: fixupPhase
shrinking RPATHs of ELF executables and libraries in /nix/store/s18fkrm4drx46dxynqp2ngy5zp91vgp5-tarsnapper-0.5
checking for references to /build/ in /nix/store/s18fkrm4drx46dxynqp2ngy5zp91vgp5-tarsnapper-0.5...
patching script interpreter paths in /nix/store/s18fkrm4drx46dxynqp2ngy5zp91vgp5-tarsnapper-0.5
stripping (with command strip and flags -S -p) in /nix/store/s18fkrm4drx46dxynqp2ngy5zp91vgp5-tarsnapper-0.5/lib /nix/store/s18fkrm4drx46dxynqp2ngy5zp91vgp5-tarsnapper-0.5/bin
shrinking RPATHs of ELF executables and libraries in /nix/store/29hzvn2ipdfykwl1dwd3hqwzc2s5kvx4-tarsnapper-0.5-dist
checking for references to /build/ in /nix/store/29hzvn2ipdfykwl1dwd3hqwzc2s5kvx4-tarsnapper-0.5-dist...
patching script interpreter paths in /nix/store/29hzvn2ipdfykwl1dwd3hqwzc2s5kvx4-tarsnapper-0.5-dist
Rewriting #!/nix/store/7hnr99nxrd2aw6lghybqdmkckq60j6l9-python3-3.11.9/bin/python3.11 to #!/nix/store/7hnr99nxrd2aw6lghybqdmkckq60j6l9-python3-3.11.9
wrapping `/nix/store/s18fkrm4drx46dxynqp2ngy5zp91vgp5-tarsnapper-0.5/bin/tarsnapper'...
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
@nix { "action": "setPhase", "phase": "installCheckPhase" }
Running phase: installCheckPhase
no Makefile or custom installCheckPhase, doing nothing
@nix { "action": "setPhase", "phase": "pythonCatchConflictsPhase" }
Running phase: pythonCatchConflictsPhase
@nix { "action": "setPhase", "phase": "pythonRemoveBinBytecodePhase" }
Running phase: pythonRemoveBinBytecodePhase
@nix { "action": "setPhase", "phase": "pythonImportsCheckPhase" }
Running phase: pythonImportsCheckPhase
Executing pythonImportsCheckPhase
Check whether the following modules can be imported: tarsnapper
@nix { "action": "setPhase", "phase": "pytestCheckPhase" }
Running phase: pytestCheckPhase
Executing pytestCheckPhase
============================= test session starts ==============================
platform linux -- Python 3.11.9, pytest-8.1.1, pluggy-1.4.0
rootdir: /build/source
collecting ... 
collecting 21 items 
collecting 22 items 
collected 34 items 
tests/test_config.py ..................... [ 61%]
tests/test_expire.py . [ 64%]
tests/test_script.py FFFFFFFFFFFF [100%]
=================================== FAILURES ===================================
______________________ TestTarsnapOptions.test_pass_along ______________________
self = <tests.test_script.TestTarsnapOptions object at 0x7ffff5ac0510>
def test_pass_along(self):
# Short option
> cmd = self.run(self.job(), [], tarsnap_options=(('o', '1'),))
tests/test_script.py:101:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <tests.test_script.TestTarsnapOptions object at 0x7ffff5ac0510>
deltas = '1d 2d', name = 'test', kwargs = {}
def job(self, deltas='1d 2d', name='test', **kwargs):
"""Make a job object.
"""
opts = dict(
target="$name-$date",
deltas=parse_deltas(deltas),
name=name,
> sources=[self._tmpdir])
E AttributeError: 'TestTarsnapOptions' object has no attribute '_tmpdir'
tests/test_script.py:80: AttributeError
________________________________ TestMake.test _________________________________
self = <tests.test_script.TestMake object at 0x7ffff5ac1310>
def test(self):
> cmd = self.run(self.job(), [])
tests/test_script.py:122:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <tests.test_script.TestMake object at 0x7ffff5ac1310>, deltas = '1d 2d'
name = 'test', kwargs = {}
def job(self, deltas='1d 2d', name='test', **kwargs):
"""Make a job object.
"""
opts = dict(
target="$name-$date",
deltas=parse_deltas(deltas),
name=name,
> sources=[self._tmpdir])
E AttributeError: 'TestMake' object has no attribute '_tmpdir'
tests/test_script.py:80: AttributeError
___________________________ TestMake.test_no_sources ___________________________
self = <tests.test_script.TestMake object at 0x7ffff5ac0c90>
def test_no_sources(self):
"""If no sources are defined, the job is skipped."""
> cmd = self.run(self.job(sources=None), [])
tests/test_script.py:130:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <tests.test_script.TestMake object at 0x7ffff5ac0c90>, deltas = '1d 2d'
name = 'test', kwargs = {'sources': None}
def job(self, deltas='1d 2d', name='test', **kwargs):
"""Make a job object.
"""
opts = dict(
target="$name-$date",
deltas=parse_deltas(deltas),
name=name,
> sources=[self._tmpdir])
E AttributeError: 'TestMake' object has no attribute '_tmpdir'
tests/test_script.py:80: AttributeError
____________________________ TestMake.test_excludes ____________________________
self = <tests.test_script.TestMake object at 0x7ffff5ac0750>
def test_excludes(self):
> cmd = self.run(self.job(excludes=['foo']), [])
tests/test_script.py:134:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <tests.test_script.TestMake object at 0x7ffff5ac0750>, deltas = '1d 2d'
name = 'test', kwargs = {'excludes': ['foo']}
def job(self, deltas='1d 2d', name='test', **kwargs):
"""Make a job object.
"""
opts = dict(
target="$name-$date",
deltas=parse_deltas(deltas),
name=name,
> sources=[self._tmpdir])
E AttributeError: 'TestMake' object has no attribute '_tmpdir'
tests/test_script.py:80: AttributeError
___________________________ TestMake.test_no_expire ____________________________
self = <tests.test_script.TestMake object at 0x7ffff5ac1210>
def test_no_expire(self):
> cmd = self.run(self.job(), [], no_expire=True)
tests/test_script.py:141:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <tests.test_script.TestMake object at 0x7ffff5ac1210>, deltas = '1d 2d'
name = 'test', kwargs = {}
def job(self, deltas='1d 2d', name='test', **kwargs):
"""Make a job object.
"""
opts = dict(
target="$name-$date",
deltas=parse_deltas(deltas),
name=name,
> sources=[self._tmpdir])
E AttributeError: 'TestMake' object has no attribute '_tmpdir'
tests/test_script.py:80: AttributeError
______________________________ TestMake.test_exec ______________________________
self = <tests.test_script.TestMake object at 0x7ffff5ac1650>
def test_exec(self):
"""Test ``exec_before`` and ``exec_after`` options.
"""
> cmd = self.run(self.job(exec_before="echo begin", exec_after="echo end"),
[], no_expire=True)
tests/test_script.py:149:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <tests.test_script.TestMake object at 0x7ffff5ac1650>, deltas = '1d 2d'
name = 'test', kwargs = {'exec_after': 'echo end', 'exec_before': 'echo begin'}
def job(self, deltas='1d 2d', name='test', **kwargs):
"""Make a job object.
"""
opts = dict(
target="$name-$date",
deltas=parse_deltas(deltas),
name=name,
> sources=[self._tmpdir])
E AttributeError: 'TestMake' object has no attribute '_tmpdir'
tests/test_script.py:80: AttributeError
________________________ TestExpire.test_nothing_to_do _________________________
self = <tests.test_script.TestExpire object at 0x7ffff5ac2ad0>
def test_nothing_to_do(self):
> cmd = self.run(self.job(deltas='1d 10d'), [
self.filename('1d'),
self.filename('5d'),
])
tests/test_script.py:163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <tests.test_script.TestExpire object at 0x7ffff5ac2ad0>
deltas = '1d 10d', name = 'test', kwargs = {}
def job(self, deltas='1d 2d', name='test', **kwargs):
"""Make a job object.
"""
opts = dict(
target="$name-$date",
deltas=parse_deltas(deltas),
name=name,
> sources=[self._tmpdir])
E AttributeError: 'TestExpire' object has no attribute '_tmpdir'
tests/test_script.py:80: AttributeError
__________________________ TestExpire.test_no_deltas ___________________________
self = <tests.test_script.TestExpire object at 0x7ffff5ac3990>
def test_no_deltas(self):
"""If a job does not define deltas, we skip it."""
> cmd = self.run(self.job(deltas=None), [
self.filename('1d'),
self.filename('5d'),
])
tests/test_script.py:173:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <tests.test_script.TestExpire object at 0x7ffff5ac3990>, deltas = None
name = 'test', kwargs = {}
def job(self, deltas='1d 2d', name='test', **kwargs):
"""Make a job object.
"""
opts = dict(
target="$name-$date",
deltas=parse_deltas(deltas),
name=name,
> sources=[self._tmpdir])
E AttributeError: 'TestExpire' object has no attribute '_tmpdir'
tests/test_script.py:80: AttributeError
_____________________ TestExpire.test_something_to_expire ______________________
self = <tests.test_script.TestExpire object at 0x7ffff5ac2cd0>
def test_something_to_expire(self):
> cmd = self.run(self.job(deltas='1d 2d'), [
self.filename('1d'),
self.filename('5d'),
])
tests/test_script.py:180:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <tests.test_script.TestExpire object at 0x7ffff5ac2cd0>, deltas = '1d 2d'
name = 'test', kwargs = {}
def job(self, deltas='1d 2d', name='test', **kwargs):
"""Make a job object.
"""
opts = dict(
target="$name-$date",
deltas=parse_deltas(deltas),
name=name,
> sources=[self._tmpdir])
E AttributeError: 'TestExpire' object has no attribute '_tmpdir'
tests/test_script.py:80: AttributeError
___________________________ TestExpire.test_aliases ____________________________
self = <tests.test_script.TestExpire object at 0x7ffff5ac3810>
def test_aliases(self):
> cmd = self.run(self.job(deltas='1d 2d', aliases=['alias']), [
self.filename('1d'),
self.filename('5d', name='alias'),
])
tests/test_script.py:190:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <tests.test_script.TestExpire object at 0x7ffff5ac3810>, deltas = '1d 2d'
name = 'test', kwargs = {'aliases': ['alias']}
def job(self, deltas='1d 2d', name='test', **kwargs):
"""Make a job object.
"""
opts = dict(
target="$name-$date",
deltas=parse_deltas(deltas),
name=name,
> sources=[self._tmpdir])
E AttributeError: 'TestExpire' object has no attribute '_tmpdir'
tests/test_script.py:80: AttributeError
______________________ TestExpire.test_date_name_mismatch ______________________
self = <tests.test_script.TestExpire object at 0x7ffff5ac3c90>
def test_date_name_mismatch(self):
"""Make sure that when processing a target "home-$date",
we won't stumble over "home-dev-$date". This can be an issue
due to the way we try to parse the dates in filenames.
"""
> cmd = self.run(self.job(name="home"), [
self.filename('1d', name="home-dev"),
])
tests/test_script.py:204:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <tests.test_script.TestExpire object at 0x7ffff5ac3c90>, deltas = '1d 2d'
name = 'home', kwargs = {}
def job(self, deltas='1d 2d', name='test', **kwargs):
"""Make a job object.
"""
opts = dict(
target="$name-$date",
deltas=parse_deltas(deltas),
name=name,
> sources=[self._tmpdir])
E AttributeError: 'TestExpire' object has no attribute '_tmpdir'
tests/test_script.py:80: AttributeError
________________________________ TestList.test _________________________________
self = <tests.test_script.TestList object at 0x7ffff5ab9690>
def test(self):
> cmd = self.run([self.job(), self.job(name='foo')], [
self.filename('1d'),
self.filename('5d'),
self.filename('1d', name='foo'),
self.filename('1d', name='something-else'),
])
tests/test_script.py:214:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <tests.test_script.TestList object at 0x7ffff5ab9690>, deltas = '1d 2d'
name = 'test', kwargs = {}
def job(self, deltas='1d 2d', name='test', **kwargs):
"""Make a job object.
"""
opts = dict(
target="$name-$date",
deltas=parse_deltas(deltas),
name=name,
> sources=[self._tmpdir])
E AttributeError: 'TestList' object has no attribute '_tmpdir'
tests/test_script.py:80: AttributeError
=============================== warnings summary ===============================
../../nix/store/frf9vrd2vzhmanvqanpipnnphvin0ggp-python3.11-nose-1.3.7/lib/python3.11/site-packages/nose/plugins/manager.py:418
/nix/store/frf9vrd2vzhmanvqanpipnnphvin0ggp-python3.11-nose-1.3.7/lib/python3.11/site-packages/nose/plugins/manager.py:418: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
../../nix/store/frf9vrd2vzhmanvqanpipnnphvin0ggp-python3.11-nose-1.3.7/lib/python3.11/site-packages/nose/importer.py:12
/nix/store/frf9vrd2vzhmanvqanpipnnphvin0ggp-python3.11-nose-1.3.7/lib/python3.11/site-packages/nose/importer.py:12: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
from imp import find_module, load_module, acquire_lock, release_lock
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_script.py::TestTarsnapOptions::test_pass_along - AttributeError: 'TestTarsnapOptions' object has no attribute '_tmpdir'
FAILED tests/test_script.py::TestMake::test - AttributeError: 'TestMake' object has no attribute '_tmpdir'
FAILED tests/test_script.py::TestMake::test_no_sources - AttributeError: 'TestMake' object has no attribute '_tmpdir'
FAILED tests/test_script.py::TestMake::test_excludes - AttributeError: 'TestMake' object has no attribute '_tmpdir'
FAILED tests/test_script.py::TestMake::test_no_expire - AttributeError: 'TestMake' object has no attribute '_tmpdir'
FAILED tests/test_script.py::TestMake::test_exec - AttributeError: 'TestMake' object has no attribute '_tmpdir'
FAILED tests/test_script.py::TestExpire::test_nothing_to_do - AttributeError: 'TestExpire' object has no attribute '_tmpdir'
FAILED tests/test_script.py::TestExpire::test_no_deltas - AttributeError: 'TestExpire' object has no attribute '_tmpdir'
FAILED tests/test_script.py::TestExpire::test_something_to_expire - AttributeError: 'TestExpire' object has no attribute '_tmpdir'
FAILED tests/test_script.py::TestExpire::test_aliases - AttributeError: 'TestExpire' object has no attribute '_tmpdir'
FAILED tests/test_script.py::TestExpire::test_date_name_mismatch - AttributeError: 'TestExpire' object has no attribute '_tmpdir'
FAILED tests/test_script.py::TestList::test - AttributeError: 'TestList' object has no attribute '_tmpdir'
================== 12 failed, 22 passed, 2 warnings in 2.94s ===================
/nix/store/xfhkjnpqjwlf6hlk1ysmq3aaq80f3bjj-stdenv-linux/setup: line 1579: pop_var_context: head of shell_variables not a function context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment