Skip to content

Instantly share code, notes, and snippets.

@exarkun
exarkun / gist:cd4ffa625bf11ffb45095d954198fc02
Created December 14, 2022 14:20
recently started to notice trial crashing with errors like this on windows
2022-12-14T13:55:45.6118492Z Error in sys.excepthook:
2022-12-14T13:55:45.6118628Z
2022-12-14T13:55:45.6118719Z Original exception was:
2022-12-14T13:55:47.3146387Z ##[error]ERROR: InvocationError for command 'D:\a\tahoe-lafs\tahoe-lafs\.tox\py310-coverage\Scripts\python.EXE' -b -m coverage run -m twisted.trial --rterrors --reporter=timing allmydata (exited with code 120)
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/tmp/tahoe-lafs.tox/py37/lib/python3.7/site-packages/twisted/internet/defer.py", line 893, in _runCallbacks
current.result, *args, **kwargs
File "/tmp/tahoe-lafs.tox/py37/lib/python3.7/site-packages/allmydata/test/test_repairer.py", line 126, in _check
judgement(vr)
File "/tmp/tahoe-lafs.tox/py37/lib/python3.7/site-packages/allmydata/test/test_repairer.py", line 213, in judge_invisible_corruption
self.failIf(vr.is_healthy(), (vr, vr.is_healthy(), vr.as_dict()))
File "/tmp/tahoe-lafs.tox/py37/lib/python3.7/site-packages/twisted/trial/_synctest.py", line 386, in assertFalse
super().assertFalse(condition, msg)
File "/usr/lib/python3.7/unittest/case.py", line 686, in assertFalse
>>> import dis
>>> def f():
... if x: y
... else: z
...
>>> def g():
... if x: y
... if not x: z
...
>>> dis.dis(f)
Collecting zfec>=1.1.0
Downloading zfec-1.5.3.tar.gz (79 kB)
ERROR: Command errored out with exit status 1:
command: /tmp/venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-csyplfsb/zfec/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-csyplfsb/zfec/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-58971div
cwd: /tmp/pip-wheel-csyplfsb/zfec/
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-wheel-csyplfsb/zfec/setup.py", line 60, in <module>
long_description=open('README.rst', 'rU').read(),
diff --git a/pkgs/development/tools/build-managers/meson/default.nix b/pkgs/development/tools/build-managers/meson/default.nix
index 35ae59af617..d8ee00fa5af 100644
--- a/pkgs/development/tools/build-managers/meson/default.nix
+++ b/pkgs/development/tools/build-managers/meson/default.nix
@@ -4,6 +4,8 @@ python3Packages.buildPythonApplication rec {
version = "0.46.1";
pname = "meson";
+ junk = builtins.trace ("${stdenv.buildPlatform.config} ${stdenv.hostPlatform.config} ${stdenv.targetPlatform.config}") "junk";
+
exarkun@baryon:~$ virtualenv /tmp/webdigestthing
Using base prefix '/usr'
New python executable in /tmp/webdigestthing/bin/python3
Also creating executable in /tmp/webdigestthing/bin/python
Installing setuptools, pip, wheel...done.
exarkun@baryon:~$ rm -rf /tmp/webdigestthing/
exarkun@baryon:~$ virtualenv --python=python2 /tmp/webdigestthing
Running virtualenv with interpreter /usr/bin/python2
New python executable in /tmp/webdigestthing/bin/python2
Also creating executable in /tmp/webdigestthing/bin/python
[-Wdeferred-type-errors]
• Couldn't match type ‘GHC.IO.Exception.IOException’
with ‘ServantErr’
arising from a functional dependency between:
constraint ‘Control.Monad.Error.Class.MonadError ServantErr IO’
arising from a use of ‘throwError’
instance ‘Control.Monad.Error.Class.MonadError
GHC.IO.Exception.IOException IO’
at <no location info>
• In the expression: throwError invalidPlanErr
# This configuration file is used to manage the behavior of the Salt Master.
# Values that are commented out but have an empty line after the comment are
# defaults that do not need to be set in the config. If there is no blank line
# after the comment then the value is presented as an example and is not the
# default.
...
# Salt supports a modular fileserver backend system, this system allows
# the salt master to link directly to third party systems to gather and
# manage the files available to minions. Multiple backends can be
# configured and will be searched for the requested file in the order in which
>> Issue: [B603:subprocess_without_shell_equals_true] subprocess call - check for execution of untrusted input.
Severity: Low Confidence: High
Location: telepresence/container.py:173
172 docker_command += docker_args
173 p = Popen(docker_command)
from __future__ import unicode_literals, print_function
from functools import partial
from itertools import count
from random import randrange
from tempfile import mktemp
from sys import stdout
from twisted.internet.defer import Deferred
from twisted.internet.task import deferLater, react