Skip to content

Instantly share code, notes, and snippets.

View mweinelt's full-sized avatar

Martin Weinelt mweinelt

View GitHub Profile
pytest-mpl> ============================= test session starts ==============================
pytest-mpl> platform linux -- Python 3.11.8, pytest-8.0.2, pluggy-1.4.0 -- /nix/store/7wz6hm9i8wljz0hgwz1wqmn2zlbgavrq-python3-3.11.8/bin/python3.11
pytest-mpl> cachedir: .pytest_cache
pytest-mpl> Matplotlib: 3.8.3
pytest-mpl> Freetype: 2.13.2
pytest-mpl> rootdir: /build/pytest-mpl-0.17.0
pytest-mpl> configfile: setup.cfg
pytest-mpl> testpaths: tests
pytest-mpl> plugins: mpl-0.17.0
pytest-mpl> collected 120 items / 2 deselected / 118 selected
Machine state will be reset. To keep it, pass --keep-vm-state
start all VLans
start vlan
running vlan (pid 5; ctl /build/vde1.ctl)
(finished: start all VLans, in 0.00 seconds)
Test will time out and terminate in 3600 seconds
run the VM test script
additionally exposed symbols:
acme, client, dnsserver, webserver,
vlan1,
debugpy> tests/debugpy/test_args.py::test_args[attach_connect(cli)-code] PASSED [ 1%]
debugpy> tests/debugpy/test_args.py::test_args[attach_pid-program]
debugpy> +++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++
debugpy>
debugpy> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Captured stderr ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
debugpy> I+00.027: Starting Session[1]
debugpy>
debugpy> I+00.028: Listening for incoming connection from BackChannel[1] on port 41745...
debugpy>
debugpy> I+00.028: Attaching Session[1] to program "/build/pytest-of-nixbld/pytest-0/test_args_attach_pid_program_0/code_to_debug.py" by PID.
@mweinelt
mweinelt / gist:6a9ec50a06d96630f50be58c388f895c
Created January 30, 2024 19:04
Python 3.12 PGO Performance Gain (Intel i7-8700K 6C/12T, 64GB DDR4-2400)
python312-no-pgo.json
=====================
Performance version: 1.10.0
Report on Linux-6.6.14-x86_64-with-glibc2.38
Number of logical CPUs: 12
Start date: 2024-01-30 18:57:43.076973
End date: 2024-01-30 20:01:50.659574
python312-pgo.json
@mweinelt
mweinelt / bupstash.nix
Created January 12, 2024 17:13
Bupstash NixOS module mock-up
{ config
, lib
, pkgs
, ...
}:
let
inherit (lib)
concatMapStringsSep
escapeShellArgs
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
❯ poetry run pytest
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.11.6, pytest-7.4.3, pluggy-1.0.0
rootdir: /tmp/bleak
plugins: asyncio-0.22.0, cov-3.0.0
asyncio: mode=Mode.STRICT
collected 0 items
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/home/hexa/.cache/pypoetry/virtualenvs/bleak-bSnE_Rog-py3.11/lib/python3.11/site-packages/_pytest/python.py", line 617, in _importtestmodule
INTERNALERROR> mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
This file has been truncated, but you can view the full file.
Running phase: qmakePrePhase
Running phase: qtPreHook
Running phase: unpackPhase
unpacking source archive /nix/store/vy5mjw87j4kf4c24y9x7kxj1w62yx4lg-qtquickcontrols-dcc9055
source root is qtquickcontrols-dcc9055
unpackPhase completed in 49 seconds
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
fixQtBuiltinPaths: Fixing Qt builtin paths in `./examples/quickcontrols/extras/gallery/gallery.pro'...
result/
result/lib
result/lib/python3.11
result/lib/python3.11/site-packages
result/lib/python3.11/site-packages/_dbus_bindings.la
result/lib/python3.11/site-packages/_dbus_glib_bindings.la
result/lib/python3.11/site-packages/_dbus_glib_bindings.so
result/lib/python3.11/site-packages/dbus
result/lib/python3.11/site-packages/dbus/__pycache__
result/lib/python3.11/site-packages/dbus/__pycache__/__init__.cpython-311.opt-1.pyc
firefox-beta-unwrapped> /nix/store/2fzhkihy0935kmcrfih450kikf71yd5j-clang-wrapper-16.0.6/bin/clang++ -o Unified_cpp_resistfingerprinting0.o -c -I/build/firefox-120.0/mozobj/dist/stl_wrappers -I/build/firefox-120.0/mozobj/dist/system_wrappers -include /build/firefox-120.0/config/gcc_hidden.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fstack-clash-protection -DNDEBUG=1 -DTRIMMED=1 -DMOZ_HAS_MOZGLUE -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -DSTATIC_EXPORTABLE_JS_API -I/build/firefox-120.0/toolkit/components/resistfingerprinting -I/build/firefox-120.0/mozobj/toolkit/components/resistfingerprinting -I/build/firefox-120.0/mozobj/ipc/ipdl/_ipdlheaders -I/build/firefox-120.0/ipc/chromium/src -I/build/firefox-120.0/mozobj/dist/include -I/nix/store/0nb84rxdp2m3w7bamjmph0bb5yb7ql19-nspr-4.35-dev/include -I/nix/store/0nb84rxdp2m3w7bamjmph0bb5yb7ql19-nspr-4.35-dev/include -I/nix/store/fksszjmj4m7ns3i9mh2d4q2wv8svnav0-nss-3.94-dev/include/nss -I/build/firefox-120.0/mozobj/dist/include/nss -I/nix/store/5ly