Diff of the two buildlogs: -- --- b1/build.log 2024-12-05 14:19:02.133680091 +0000 +++ b2/build.log 2024-12-05 14:20:19.110202683 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Wed Jan 7 08:38:50 -12 2026 -I: pbuilder-time-stamp: 1767818330 +I: Current time: Thu Jan 8 10:42:04 +14 2026 +I: pbuilder-time-stamp: 1767818524 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -25,52 +25,84 @@ dpkg-source: info: unpacking bandit_1.7.10-1.debian.tar.xz I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/2668327/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/110691/tmp/hooks/D01_modify_environment starting +debug: Running on codethink03-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Jan 7 20:42 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/110691/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/110691/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="32" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.32(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='32919f1d781b4a2e8f684f1272a280ee' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='2668327' - PS1='# ' - PS2='> ' + INVOCATION_ID=87a2e55088cb483487393abdb3432c38 + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=110691 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.4y3LFIO4/pbuilderrc_zkg1 --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.4y3LFIO4/b1 --logfile b1/build.log bandit_1.7.10-1.dsc' - SUDO_GID='109' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.4:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.4y3LFIO4/pbuilderrc_5NwU --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.4y3LFIO4/b2 --logfile b2/build.log bandit_1.7.10-1.dsc' + SUDO_GID=109 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink01-arm64 6.1.0-28-cloud-arm64 #1 SMP Debian 6.1.119-1 (2024-11-22) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-28-cloud-arm64 #1 SMP Debian 6.1.119-1 (2024-11-22) aarch64 GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 Nov 22 2024 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/2668327/tmp/hooks/D02_print_environment finished +I: user script /srv/workspace/pbuilder/110691/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -336,7 +368,7 @@ Get: 190 http://deb.debian.org/debian trixie/main arm64 python3-rich all 13.7.1-1 [201 kB] Get: 191 http://deb.debian.org/debian trixie/main arm64 python3-sarif-python-om all 1.0.4-3 [12.3 kB] Get: 192 http://deb.debian.org/debian trixie/main arm64 python3-testscenarios all 0.5.0-4 [12.8 kB] -Fetched 60.3 MB in 1s (92.0 MB/s) +Fetched 60.3 MB in 0s (211 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.12-minimal:arm64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 20087 files and directories currently installed.) @@ -958,8 +990,8 @@ Setting up tzdata (2024b-4) ... Current default time zone: 'Etc/UTC' -Local time is now: Wed Jan 7 20:39:50 UTC 2026. -Universal Time is now: Wed Jan 7 20:39:50 UTC 2026. +Local time is now: Wed Jan 7 20:42:23 UTC 2026. +Universal Time is now: Wed Jan 7 20:42:23 UTC 2026. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up liberror-perl (0.17029-2) ... @@ -1150,7 +1182,11 @@ fakeroot is already the newest version (1.36-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/reproducible-path/bandit-1.7.10/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../bandit_1.7.10-1_source.changes +I: user script /srv/workspace/pbuilder/110691/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/110691/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/bandit-1.7.10/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../bandit_1.7.10-1_source.changes dpkg-buildpackage: info: source package bandit dpkg-buildpackage: info: source version 1.7.10-1 dpkg-buildpackage: info: source distribution unstable @@ -1249,17 +1285,29 @@ warnings.warn(msg) running install [pbr] Generating AUTHORS -[pbr] AUTHORS complete (0.1s) +[pbr] AUTHORS complete (0.0s) running build running build_py creating build creating build/lib creating build/lib/bandit -creating build/lib/bandit/blacklists -copying bandit/blacklists/utils.py -> build/lib/bandit/blacklists -copying bandit/blacklists/imports.py -> build/lib/bandit/blacklists -copying bandit/blacklists/calls.py -> build/lib/bandit/blacklists -copying bandit/blacklists/__init__.py -> build/lib/bandit/blacklists +creating build/lib/bandit/formatters +copying bandit/formatters/yaml.py -> build/lib/bandit/formatters +copying bandit/formatters/xml.py -> build/lib/bandit/formatters +copying bandit/formatters/utils.py -> build/lib/bandit/formatters +copying bandit/formatters/text.py -> build/lib/bandit/formatters +copying bandit/formatters/screen.py -> build/lib/bandit/formatters +copying bandit/formatters/sarif.py -> build/lib/bandit/formatters +copying bandit/formatters/json.py -> build/lib/bandit/formatters +copying bandit/formatters/html.py -> build/lib/bandit/formatters +copying bandit/formatters/custom.py -> build/lib/bandit/formatters +copying bandit/formatters/csv.py -> build/lib/bandit/formatters +copying bandit/formatters/__init__.py -> build/lib/bandit/formatters +creating build/lib/bandit/cli +copying bandit/cli/main.py -> build/lib/bandit/cli +copying bandit/cli/config_generator.py -> build/lib/bandit/cli +copying bandit/cli/baseline.py -> build/lib/bandit/cli +copying bandit/cli/__init__.py -> build/lib/bandit/cli creating build/lib/bandit/plugins copying bandit/plugins/yaml_load.py -> build/lib/bandit/plugins copying bandit/plugins/weak_cryptographic_key.py -> build/lib/bandit/plugins @@ -1293,23 +1341,11 @@ copying bandit/plugins/__init__.py -> build/lib/bandit/plugins copying bandit/__main__.py -> build/lib/bandit copying bandit/__init__.py -> build/lib/bandit -creating build/lib/bandit/cli -copying bandit/cli/main.py -> build/lib/bandit/cli -copying bandit/cli/config_generator.py -> build/lib/bandit/cli -copying bandit/cli/baseline.py -> build/lib/bandit/cli -copying bandit/cli/__init__.py -> build/lib/bandit/cli -creating build/lib/bandit/formatters -copying bandit/formatters/yaml.py -> build/lib/bandit/formatters -copying bandit/formatters/xml.py -> build/lib/bandit/formatters -copying bandit/formatters/utils.py -> build/lib/bandit/formatters -copying bandit/formatters/text.py -> build/lib/bandit/formatters -copying bandit/formatters/screen.py -> build/lib/bandit/formatters -copying bandit/formatters/sarif.py -> build/lib/bandit/formatters -copying bandit/formatters/json.py -> build/lib/bandit/formatters -copying bandit/formatters/html.py -> build/lib/bandit/formatters -copying bandit/formatters/custom.py -> build/lib/bandit/formatters -copying bandit/formatters/csv.py -> build/lib/bandit/formatters -copying bandit/formatters/__init__.py -> build/lib/bandit/formatters +creating build/lib/bandit/blacklists +copying bandit/blacklists/utils.py -> build/lib/bandit/blacklists +copying bandit/blacklists/imports.py -> build/lib/bandit/blacklists +copying bandit/blacklists/calls.py -> build/lib/bandit/blacklists +copying bandit/blacklists/__init__.py -> build/lib/bandit/blacklists creating build/lib/bandit/core copying bandit/core/utils.py -> build/lib/bandit/core copying bandit/core/tester.py -> build/lib/bandit/core @@ -1367,23 +1403,11 @@ copying build/lib/bandit/core/test_set.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/core copying build/lib/bandit/core/tester.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/core copying build/lib/bandit/core/utils.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/core -creating /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters -copying build/lib/bandit/formatters/__init__.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters -copying build/lib/bandit/formatters/csv.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters -copying build/lib/bandit/formatters/custom.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters -copying build/lib/bandit/formatters/html.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters -copying build/lib/bandit/formatters/json.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters -copying build/lib/bandit/formatters/sarif.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters -copying build/lib/bandit/formatters/screen.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters -copying build/lib/bandit/formatters/text.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters -copying build/lib/bandit/formatters/utils.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters -copying build/lib/bandit/formatters/xml.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters -copying build/lib/bandit/formatters/yaml.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters -creating /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/cli -copying build/lib/bandit/cli/__init__.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/cli -copying build/lib/bandit/cli/baseline.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/cli -copying build/lib/bandit/cli/config_generator.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/cli -copying build/lib/bandit/cli/main.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/cli +creating /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists +copying build/lib/bandit/blacklists/__init__.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists +copying build/lib/bandit/blacklists/calls.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists +copying build/lib/bandit/blacklists/imports.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists +copying build/lib/bandit/blacklists/utils.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists copying build/lib/bandit/__init__.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit copying build/lib/bandit/__main__.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit creating /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/plugins @@ -1417,11 +1441,23 @@ copying build/lib/bandit/plugins/try_except_pass.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/plugins copying build/lib/bandit/plugins/weak_cryptographic_key.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/plugins copying build/lib/bandit/plugins/yaml_load.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/plugins -creating /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists -copying build/lib/bandit/blacklists/__init__.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists -copying build/lib/bandit/blacklists/calls.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists -copying build/lib/bandit/blacklists/imports.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists -copying build/lib/bandit/blacklists/utils.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists +creating /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/cli +copying build/lib/bandit/cli/__init__.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/cli +copying build/lib/bandit/cli/baseline.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/cli +copying build/lib/bandit/cli/config_generator.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/cli +copying build/lib/bandit/cli/main.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/cli +creating /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters +copying build/lib/bandit/formatters/__init__.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters +copying build/lib/bandit/formatters/csv.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters +copying build/lib/bandit/formatters/custom.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters +copying build/lib/bandit/formatters/html.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters +copying build/lib/bandit/formatters/json.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters +copying build/lib/bandit/formatters/sarif.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters +copying build/lib/bandit/formatters/screen.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters +copying build/lib/bandit/formatters/text.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters +copying build/lib/bandit/formatters/utils.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters +copying build/lib/bandit/formatters/xml.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters +copying build/lib/bandit/formatters/yaml.py -> /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/core/__init__.py to __init__.cpython-312.pyc byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/core/blacklisting.py to blacklisting.cpython-312.pyc byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/core/config.py to config.cpython-312.pyc @@ -1438,21 +1474,10 @@ byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/core/test_set.py to test_set.cpython-312.pyc byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/core/tester.py to tester.cpython-312.pyc byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/core/utils.py to utils.cpython-312.pyc -byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters/__init__.py to __init__.cpython-312.pyc -byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters/csv.py to csv.cpython-312.pyc -byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters/custom.py to custom.cpython-312.pyc -byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters/html.py to html.cpython-312.pyc -byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters/json.py to json.cpython-312.pyc -byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters/sarif.py to sarif.cpython-312.pyc -byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters/screen.py to screen.cpython-312.pyc -byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters/text.py to text.cpython-312.pyc -byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters/utils.py to utils.cpython-312.pyc -byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters/xml.py to xml.cpython-312.pyc -byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters/yaml.py to yaml.cpython-312.pyc -byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/cli/__init__.py to __init__.cpython-312.pyc -byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/cli/baseline.py to baseline.cpython-312.pyc -byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/cli/config_generator.py to config_generator.cpython-312.pyc -byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/cli/main.py to main.cpython-312.pyc +byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists/__init__.py to __init__.cpython-312.pyc +byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists/calls.py to calls.cpython-312.pyc +byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists/imports.py to imports.cpython-312.pyc +byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists/utils.py to utils.cpython-312.pyc byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/__init__.py to __init__.cpython-312.pyc byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/__main__.py to __main__.cpython-312.pyc byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/plugins/__init__.py to __init__.cpython-312.pyc @@ -1485,10 +1510,21 @@ byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/plugins/try_except_pass.py to try_except_pass.cpython-312.pyc byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/plugins/weak_cryptographic_key.py to weak_cryptographic_key.cpython-312.pyc byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/plugins/yaml_load.py to yaml_load.cpython-312.pyc -byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists/__init__.py to __init__.cpython-312.pyc -byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists/calls.py to calls.cpython-312.pyc -byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists/imports.py to imports.cpython-312.pyc -byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists/utils.py to utils.cpython-312.pyc +byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/cli/__init__.py to __init__.cpython-312.pyc +byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/cli/baseline.py to baseline.cpython-312.pyc +byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/cli/config_generator.py to config_generator.cpython-312.pyc +byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/cli/main.py to main.cpython-312.pyc +byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters/__init__.py to __init__.cpython-312.pyc +byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters/csv.py to csv.cpython-312.pyc +byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters/custom.py to custom.cpython-312.pyc +byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters/html.py to html.cpython-312.pyc +byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters/json.py to json.cpython-312.pyc +byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters/sarif.py to sarif.cpython-312.pyc +byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters/screen.py to screen.cpython-312.pyc +byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters/text.py to text.cpython-312.pyc +byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters/utils.py to utils.cpython-312.pyc +byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters/xml.py to xml.cpython-312.pyc +byte-compiling /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters/yaml.py to yaml.cpython-312.pyc running install_egg_info Copying bandit.egg-info to /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages/bandit-1.7.10.egg-info Skipping SOURCES.txt @@ -1503,147 +1539,95 @@ + PYTHON3S=disabled + TEST_PARALLEL_OPT=--parallel + TEST_SERIAL_OPT= -+ echo WARNING: --no-py2 is deprecated, and always on. ++ for i in $@ ++ case "${1}" in ++ echo 'WARNING: --no-py2 is deprecated, and always on.' WARNING: --no-py2 is deprecated, and always on. + shift -+ py3versions -vr ++ for i in $@ ++ case "${1}" in +++ py3versions -vr + PYTHON3S=3.12 -+ [ yes = no ] -+ [ no = yes ] -+ [ 3.12 = disabled ] -+ echo 3.12 -+ cut -d. -f1 ++ '[' yes = no ']' ++ '[' no = yes ']' ++ for pyvers in ${PYTHON3S} ++ '[' 3.12 = disabled ']' +++ echo 3.12 +++ cut -d. -f1 + PYMAJOR=3 -+ echo ===> Testing with python (python3) ++ echo '===> Testing with python (python3)' ===> Testing with python (python3) -+ pwd -+ [ -d /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages ] -+ [ -z /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages ] -+ [ -e .stestr.conf ] -+ [ -x /usr/bin/python3-stestr ] +++ pwd ++ '[' -d /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages ']' ++ '[' -z /build/reproducible-path/bandit-1.7.10/debian/tmp/usr/lib/python3/dist-packages ']' ++ '[' -e .stestr.conf ']' ++ '[' -x /usr/bin/python3-stestr ']' + STESTR=stestr + rm -rf .stestr -+ PYTHON=python3.12 stestr run --parallel --subunit tests\.(?!(.*unit\.cli\.test_baseline\.BanditBaselineToolTests\.test_bandit_baseline.*|.*functional\.test_runtime.*|.*functional\.test_baseline.*|.*functional\.test_functional\.FunctionalTests.*)) ++ PYTHON=python3.12 ++ stestr run --parallel --subunit 'tests\.(?!(.*unit\.cli\.test_baseline\.BanditBaselineToolTests\.test_bandit_baseline.*|.*functional\.test_runtime.*|.*functional\.test_baseline.*|.*functional\.test_functional\.FunctionalTests.*))' + subunit2pyunit -tests.unit.core.test_docs_util.DocsUtilTests.test_import_call_bib -tests.unit.core.test_docs_util.DocsUtilTests.test_import_call_bib ... ok -tests.unit.core.test_docs_util.DocsUtilTests.test_overwrite_bib_info -tests.unit.core.test_docs_util.DocsUtilTests.test_overwrite_bib_info ... ok -tests.unit.core.test_docs_util.DocsUtilTests.test_plugin_call_bib -tests.unit.core.test_docs_util.DocsUtilTests.test_plugin_call_bib ... ok -tests.unit.formatters.test_sarif.SarifFormatterTests.test_report -tests.unit.formatters.test_sarif.SarifFormatterTests.test_report ... ok -tests.unit.formatters.test_screen.ScreenFormatterTests.test_no_issues -tests.unit.formatters.test_screen.ScreenFormatterTests.test_no_issues ... ok -tests.unit.formatters.test_screen.ScreenFormatterTests.test_output_issue -tests.unit.formatters.test_screen.ScreenFormatterTests.test_output_issue ... ok -tests.unit.formatters.test_screen.ScreenFormatterTests.test_report_baseline -tests.unit.formatters.test_screen.ScreenFormatterTests.test_report_baseline ... ok -tests.unit.formatters.test_screen.ScreenFormatterTests.test_report_nobaseline -tests.unit.formatters.test_screen.ScreenFormatterTests.test_report_nobaseline ... ok -Run started:2026-01-07 20:41:36.751527 - -Test results: -ISSUE_OUTPUT_TEXT --------------------------------------------------- -ISSUE_OUTPUT_TEXT - --- Candidate Issues -- -ISSUE_OUTPUT_TEXT - - -ISSUE_OUTPUT_TEXT - - --------------------------------------------------- - -Code scanned: - Total lines of code: 0 - Total lines skipped (#nosec): 0 - -Run metrics: - Total issues (by severity): - Undefined: 0 - Low: 0 - Medium: 0 - High: 0 - Total issues (by confidence): - Undefined: 0 - Low: 0 - Medium: 0 - High: 0 -Files skipped (0): -Run started:2026-01-07 20:41:36.753088 -Files in scope (1): - binding.py (score: {SEVERITY: 1, CONFIDENCE: 1}) -Files excluded (1): - def.py - -Test results: -ISSUE_OUTPUT_TEXT --------------------------------------------------- -ISSUE_OUTPUT_TEXT --------------------------------------------------- - -Code scanned: - Total lines of code: 1000 - Total lines skipped (#nosec): 50 - -Run metrics: - Total issues (by severity): - Undefined: 1 - Low: 1 - Medium: 1 - High: 1 - Total issues (by confidence): - Undefined: 1 - Low: 1 - Medium: 1 - High: 1 -Files skipped (1): - abc.py (File is bad) -tests.unit.core.test_meta_ast.BanditMetaAstTests.test_add_node -tests.unit.core.test_meta_ast.BanditMetaAstTests.test_add_node ... ok -tests.unit.core.test_meta_ast.BanditMetaAstTests.test_str -tests.unit.core.test_meta_ast.BanditMetaAstTests.test_str ... ok +tests.unit.core.test_config.TestInit.test_file_does_not_exist +tests.unit.core.test_config.TestInit.test_file_does_not_exist ... ok +tests.unit.core.test_config.TestInit.test_settings +tests.unit.core.test_config.TestInit.test_settings ... ok +while parsing a flow sequence + in "/tmp/tmp357cwirq.yaml", line 1, column 3 +expected ',' or ']', but got '' + in "/tmp/tmp357cwirq.yaml", line 1, column 14 +tests.unit.core.test_config.TestInit.test_yaml_invalid +tests.unit.core.test_config.TestInit.test_yaml_invalid ... ok +tests.unit.core.test_issue.IssueTests.test_get_code +tests.unit.core.test_issue.IssueTests.test_get_code ... ok +tests.unit.core.test_issue.IssueTests.test_issue_as_dict +tests.unit.core.test_issue.IssueTests.test_issue_as_dict ... ok +tests.unit.core.test_issue.IssueTests.test_issue_create +tests.unit.core.test_issue.IssueTests.test_issue_create ... ok +tests.unit.core.test_issue.IssueTests.test_issue_filter_confidence +tests.unit.core.test_issue.IssueTests.test_issue_filter_confidence ... ok +tests.unit.core.test_issue.IssueTests.test_issue_filter_severity +tests.unit.core.test_issue.IssueTests.test_issue_filter_severity ... ok +tests.unit.core.test_issue.IssueTests.test_issue_str +tests.unit.core.test_issue.IssueTests.test_issue_str ... ok +tests.unit.core.test_issue.IssueTests.test_matches_issue +tests.unit.core.test_issue.IssueTests.test_matches_issue ... ok +tests.unit.formatters.test_xml.XmlFormatterTests.test_report +tests.unit.formatters.test_xml.XmlFormatterTests.test_report ... ok +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_init_logger +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_init_logger ... ok +Config file '/tmp/tmpod_tnhs0.toml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +Legacy blacklist data found in config, overriding data plugins +tests.unit.core.test_config.TestTomlConfig.test_bad_yaml +tests.unit.core.test_config.TestTomlConfig.test_bad_yaml ... ok +Config file '/tmp/tmp_ilx2g60.toml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +Legacy blacklist data found in config, overriding data plugins +Config file '' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +Config file '' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +tests.unit.core.test_config.TestTomlConfig.test_blacklist_error +tests.unit.core.test_config.TestTomlConfig.test_blacklist_error ... ok tests.unit.formatters.test_html.HtmlFormatterTests.test_escaping tests.unit.formatters.test_html.HtmlFormatterTests.test_escaping ... ok +Config file '/tmp/tmp8aq26nx8.toml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +Legacy blacklist data found in config, overriding data plugins +tests.unit.core.test_config.TestTomlConfig.test_converted_blacklist_call_data +tests.unit.core.test_config.TestTomlConfig.test_converted_blacklist_call_data ... ok +Unable to parse config file /tmp/tmp8xkkzvkq or missing [bandit] section tests.unit.formatters.test_html.HtmlFormatterTests.test_report_contents tests.unit.formatters.test_html.HtmlFormatterTests.test_report_contents ... ok +Config file '/tmp/tmpap6p9n9r.toml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +Legacy blacklist data found in config, overriding data plugins +Config file '/tmp/tmpjayxj_xm.toml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +Legacy blacklist data found in config, overriding data plugins +Multiple .bandit files found - scan separately or choose one with --ini + /tmp/tmp15nus293/.bandit, /tmp/tmp15nus293/second_config_directory/.bandit +tests.unit.core.test_config.TestTomlConfig.test_converted_blacklist_call_test +tests.unit.core.test_config.TestTomlConfig.test_converted_blacklist_call_test ... ok +tests.unit.cli.test_main.BanditCLIMainTests.test_get_options_from_ini_empty_directory_no_target +tests.unit.cli.test_main.BanditCLIMainTests.test_get_options_from_ini_empty_directory_no_target ... ok tests.unit.formatters.test_html.HtmlFormatterTests.test_report_with_skipped tests.unit.formatters.test_html.HtmlFormatterTests.test_report_with_skipped ... ok -tests.unit.core.test_test_set.BanditTestSetTests.test_has_defaults -tests.unit.core.test_test_set.BanditTestSetTests.test_has_defaults ... ok -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_blacklist_compat -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_blacklist_compat ... ok -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_builtin_blacklist -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_builtin_blacklist ... ok -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_builtin_blacklist_specific -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_builtin_blacklist_specific ... ok -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_init_logger -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_init_logger ... ok -[main] DEBUG logging initialized -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_id -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_id ... ok -tests.unit.cli.test_main.BanditCLIMainLoggerTests.test_init_logger -tests.unit.cli.test_main.BanditCLIMainLoggerTests.test_init_logger ... ok -tests.unit.cli.test_main.BanditCLIMainLoggerTests.test_init_logger_debug_mode -tests.unit.cli.test_main.BanditCLIMainLoggerTests.test_init_logger_debug_mode ... ok -tests.unit.cli.test_config_generator.BanditConfigGeneratorLoggerTests.test_init_logger -tests.unit.cli.test_config_generator.BanditConfigGeneratorLoggerTests.test_init_logger ... ok -tests.unit.core.test_config.TestGetOption.test_levels -tests.unit.core.test_config.TestGetOption.test_levels ... ok -Unable to parse config file /tmp/tmpldtrgljo or missing [bandit] section -tests.unit.core.test_blacklisting.BlacklistingTests.test_report_issue -tests.unit.core.test_blacklisting.BlacklistingTests.test_report_issue ... ok -tests.unit.core.test_blacklisting.BlacklistingTests.test_report_issue_defaults -tests.unit.core.test_blacklisting.BlacklistingTests.test_report_issue_defaults ... ok -tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_get_config_settings -tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_get_config_settings ... ok -Config file '/tmp/tmp3r8x3yon.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -Config file '/tmp/tmpnaswo30k.toml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -tests.unit.core.test_config.TestGetOption.test_levels_not_exist -tests.unit.core.test_config.TestGetOption.test_levels_not_exist ... ok +tests.unit.core.test_config.TestTomlConfig.test_converted_blacklist_import_data +tests.unit.core.test_config.TestTomlConfig.test_converted_blacklist_import_data ... ok tests.unit.core.test_manager.ManagerTests.test_compare_baseline tests.unit.core.test_manager.ManagerTests.test_compare_baseline ... ok tests.unit.core.test_manager.ManagerTests.test_create_manager @@ -1654,106 +1638,113 @@ tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude ... ok tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude_cmdline tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude_cmdline ... ok -tests.unit.formatters.test_xml.XmlFormatterTests.test_report -tests.unit.formatters.test_xml.XmlFormatterTests.test_report ... ok -tests.unit.cli.test_main.BanditCLIMainTests.test_get_options_from_ini_empty_directory_no_target -tests.unit.cli.test_main.BanditCLIMainTests.test_get_options_from_ini_empty_directory_no_target ... ok -Legacy blacklist data found in config, overriding data plugins -Multiple .bandit files found - scan separately or choose one with --ini - /tmp/tmptdblhivu/.bandit, /tmp/tmptdblhivu/second_config_directory/.bandit -Config file '/tmp/tmpx0fmpcb7.toml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -Legacy blacklist data found in config, overriding data plugins -Config file '' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -Config file '' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -tests.unit.formatters.test_json.JsonFormatterTests.test_report -tests.unit.formatters.test_json.JsonFormatterTests.test_report ... ok -tests.unit.core.test_config.TestTomlConfig.test_bad_yaml -tests.unit.core.test_config.TestTomlConfig.test_bad_yaml ... ok +tests.unit.core.test_docs_util.DocsUtilTests.test_import_call_bib +tests.unit.core.test_docs_util.DocsUtilTests.test_import_call_bib ... ok +tests.unit.core.test_docs_util.DocsUtilTests.test_overwrite_bib_info +tests.unit.core.test_docs_util.DocsUtilTests.test_overwrite_bib_info ... ok +tests.unit.core.test_docs_util.DocsUtilTests.test_plugin_call_bib +tests.unit.core.test_docs_util.DocsUtilTests.test_plugin_call_bib ... ok +tests.unit.formatters.test_text.TextFormatterTests.test_no_issues +tests.unit.formatters.test_text.TextFormatterTests.test_no_issues ... ok +tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude_dir +tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude_dirSkipping directory (thing), use -r flag to scan contents + ... ok +tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude_glob +tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude_glob ... ok +tests.unit.core.test_manager.ManagerTests.test_discover_files_include +tests.unit.core.test_manager.ManagerTests.test_discover_files_include ... ok +tests.unit.core.test_manager.ManagerTests.test_discover_files_recurse_files +tests.unit.core.test_manager.ManagerTests.test_discover_files_recurse_files ... ok +Config file '/tmp/tmppqyttluo.toml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +tests.unit.core.test_manager.ManagerTests.test_discover_files_recurse_skip +tests.unit.core.test_manager.ManagerTests.test_discover_files_recurse_skipLegacy blacklist data found in config, overriding data plugins + ... ok +tests.unit.core.test_manager.ManagerTests.test_find_candidate_matches +tests.unit.core.test_manager.ManagerTests.test_find_candidate_matches ... ok +tests.unit.core.test_config.TestTomlConfig.test_converted_blacklist_import_test +tests.unit.core.test_config.TestTomlConfig.test_converted_blacklist_import_test ... ok +Config file '/tmp/tmpje6wt_n_.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. Legacy blacklist data found in config, overriding data plugins -tests.unit.core.test_config.TestTomlConfig.test_blacklist_error -tests.unit.core.test_config.TestTomlConfig.test_blacklist_error ... ok tests.unit.cli.test_main.BanditCLIMainTests.test_get_options_from_ini_no_ini_path_multi_bandit_files tests.unit.cli.test_main.BanditCLIMainTests.test_get_options_from_ini_no_ini_path_multi_bandit_files ... ok +tests.unit.core.test_config.TestConfigCompat.test_bad_yaml +tests.unit.core.test_config.TestConfigCompat.test_bad_yaml ... ok tests.unit.cli.test_main.BanditCLIMainTests.test_get_options_from_ini_no_ini_path_no_bandit_files tests.unit.cli.test_main.BanditCLIMainTests.test_get_options_from_ini_no_ini_path_no_bandit_files ... ok tests.unit.cli.test_main.BanditCLIMainTests.test_get_options_from_ini_no_ini_path_no_target tests.unit.cli.test_main.BanditCLIMainTests.test_get_options_from_ini_no_ini_path_no_target ... ok +Config file '/tmp/tmpa4uwcozg.toml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. tests.unit.cli.test_main.BanditCLIMainTests.test_init_extensions tests.unit.cli.test_main.BanditCLIMainTests.test_init_extensions ... ok tests.unit.cli.test_main.BanditCLIMainTests.test_log_option_source_arg_val tests.unit.cli.test_main.BanditCLIMainTests.test_log_option_source_arg_val ... ok tests.unit.cli.test_main.BanditCLIMainTests.test_log_option_source_ini_val_with_str_default_and_no_arg_val -tests.unit.cli.test_main.BanditCLIMainTests.test_log_option_source_ini_val_with_str_default_and_no_arg_val ... ok +tests.unit.cli.test_main.BanditCLIMainTests.test_log_option_source_ini_val_with_str_default_and_no_arg_valLegacy blacklist data found in config, overriding data plugins + ... ok tests.unit.cli.test_main.BanditCLIMainTests.test_log_option_source_ini_value tests.unit.cli.test_main.BanditCLIMainTests.test_log_option_source_ini_value ... ok tests.unit.cli.test_main.BanditCLIMainTests.test_log_option_source_no_values tests.unit.cli.test_main.BanditCLIMainTests.test_log_option_source_no_values ... ok -Config file '/tmp/tmp7kfprd_0.toml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -Legacy blacklist data found in config, overriding data plugins -tests.unit.core.test_config.TestConfigCompat.test_bad_yaml -tests.unit.core.test_config.TestConfigCompat.test_bad_yaml ... ok -Config file '/tmp/tmpus3bwqn9.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +tests.unit.formatters.test_json.JsonFormatterTests.test_report +tests.unit.formatters.test_json.JsonFormatterTests.test_report ... ok +tests.unit.core.test_config.TestTomlConfig.test_converted_exclude +tests.unit.core.test_config.TestTomlConfig.test_converted_exclude ... ok +Config file '/tmp/tmpo0x15mab.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. Legacy blacklist data found in config, overriding data plugins Config file '' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. Config file '' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -tests.unit.core.test_config.TestTomlConfig.test_converted_blacklist_call_data -tests.unit.core.test_config.TestTomlConfig.test_converted_blacklist_call_data ... ok -tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_main_show_defaults -tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_main_show_defaults ... ok -tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude_dir -tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude_dir ... ok -tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude_glob -tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude_glob ... ok -tests.unit.core.test_manager.ManagerTests.test_discover_files_include -tests.unit.core.test_manager.ManagerTests.test_discover_files_include ... ok -tests.unit.core.test_manager.ManagerTests.test_discover_files_recurse_files -tests.unit.core.test_manager.ManagerTests.test_discover_files_recurse_files[config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. - ... ok tests.unit.core.test_config.TestConfigCompat.test_blacklist_error tests.unit.core.test_config.TestConfigCompat.test_blacklist_error ... ok +tests.unit.formatters.test_text.TextFormatterTests.test_output_issue +tests.unit.formatters.test_text.TextFormatterTests.test_output_issue ... ok +tests.unit.core.test_manager.ManagerTests.test_get_files_from_dir +tests.unit.core.test_manager.ManagerTests.test_get_files_from_dir ... ok +tests.unit.core.test_manager.ManagerTests.test_is_file_included +tests.unit.core.test_manager.ManagerTests.test_is_file_included ... ok +tests.unit.core.test_manager.ManagerTests.test_matches_globlist +tests.unit.core.test_manager.ManagerTests.test_matches_globlist ... ok +tests.unit.formatters.test_text.TextFormatterTests.test_report_baseline +tests.unit.formatters.test_text.TextFormatterTests.test_report_baseline ... ok +[config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. [main] INFO profile include tests: None [main] INFO profile exclude tests: None [main] INFO cli include tests: None [main] INFO cli exclude tests: None -Skipping directory (thing), use -r flag to scan contents -Config file '/tmp/tmp1c_o2som.toml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -Legacy blacklist data found in config, overriding data plugins -Config file '/tmp/tmpf9xrotda.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +Config file '/tmp/tmp2yk24cls.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. Legacy blacklist data found in config, overriding data plugins -[main] WARNING Could not open baseline report: base.json -tests.unit.core.test_manager.ManagerTests.test_discover_files_recurse_skip -tests.unit.core.test_manager.ManagerTests.test_discover_files_recurse_skip ... ok -tests.unit.core.test_config.TestTomlConfig.test_converted_blacklist_call_test -tests.unit.core.test_config.TestTomlConfig.test_converted_blacklist_call_test ... ok -tests.unit.core.test_manager.ManagerTests.test_find_candidate_matches -tests.unit.core.test_manager.ManagerTests.test_find_candidate_matches ... ok tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_call_data tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_call_data ... ok -tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_no_defaults -tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_no_defaults ... ok -tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_out_file -tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_out_file ... ok -tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_show_defaults -tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_show_defaults ... ok -Config file '/tmp/tmpb0moxr4a.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +Config file '/tmp/tmp9i5lraav.toml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. Legacy blacklist data found in config, overriding data plugins -Config file '/tmp/tmp8j5475ox.toml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +tests.unit.core.test_config.TestTomlConfig.test_converted_exclude_blacklist +tests.unit.core.test_config.TestTomlConfig.test_converted_exclude_blacklist ... ok +[main] WARNING Could not open baseline report: base.json +Config file '/tmp/tmpvqs1u1id.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +tests.unit.core.test_manager.ManagerTests.test_output_results_invalid_format +tests.unit.core.test_manager.ManagerTests.test_output_results_invalid_format ... Legacy blacklist data found in config, overriding data plugins +ok +Config file '/tmp/tmpz6kfhcer.toml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. Legacy blacklist data found in config, overriding data plugins tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_call_test tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_call_test ... ok -tests.unit.core.test_config.TestTomlConfig.test_converted_blacklist_import_data -tests.unit.core.test_config.TestTomlConfig.test_converted_blacklist_import_data ... ok +tests.unit.core.test_config.TestTomlConfig.test_converted_include +tests.unit.core.test_config.TestTomlConfig.test_converted_include ... ok [main] ERROR bandit.yaml : Could not read config file. tests.unit.cli.test_main.BanditCLIMainTests.test_main_baseline_ioerror tests.unit.cli.test_main.BanditCLIMainTests.test_main_baseline_ioerror ... ok tests.unit.cli.test_main.BanditCLIMainTests.test_main_config_unopenable tests.unit.cli.test_main.BanditCLIMainTests.test_main_config_unopenable ... ok -Config file '/tmp/tmp85tbszxg.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -Legacy blacklist data found in config, overriding data plugins -Config file '/tmp/tmp4e5i0f8d.toml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +Config file '/tmp/tmpyhqran8k.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. Legacy blacklist data found in config, overriding data plugins tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_import_data tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_import_data ... ok +tests.unit.formatters.test_text.TextFormatterTests.test_report_nobaseline +tests.unit.formatters.test_text.TextFormatterTests.test_report_nobaseline ... ok +Config file '/tmp/tmpe_vwjfq4.toml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +Legacy blacklist data found in config, overriding data plugins +[main] DEBUG logging initialized +tests.unit.core.test_manager.ManagerTests.test_output_results_valid_format +tests.unit.core.test_manager.ManagerTests.test_output_results_valid_format ... ok [config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. [main] INFO profile include tests: None [main] INFO profile exclude tests: None @@ -1761,18 +1752,36 @@ [main] INFO cli exclude tests: None [main] INFO using config: bandit.yaml [main] INFO running on Python 3.12.7 -tests.unit.core.test_config.TestTomlConfig.test_converted_blacklist_import_test -tests.unit.core.test_config.TestTomlConfig.test_converted_blacklist_import_test ... ok +Config file '/tmp/tmpxweuwh04.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +Legacy blacklist data found in config, overriding data plugins +tests.unit.core.test_config.TestTomlConfig.test_deprecation_message +tests.unit.core.test_config.TestTomlConfig.test_deprecation_message ... ok +tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_get_config_settings +tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_get_config_settings ... ok +tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_main_show_defaults +tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_main_show_defaults ... ok +tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_no_defaults +tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_no_defaults ... ok [text] INFO Text output written to file: output -Config file '/tmp/tmp98i4msg_.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_out_file +tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_out_file ... ok +tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_show_defaults +tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_show_defaults ... ok +tests.unit.cli.test_main.BanditCLIMainLoggerTests.test_init_logger +tests.unit.cli.test_main.BanditCLIMainLoggerTests.test_init_logger ... ok +tests.unit.cli.test_main.BanditCLIMainLoggerTests.test_init_logger_debug_mode +tests.unit.cli.test_main.BanditCLIMainLoggerTests.test_init_logger_debug_mode ... ok +Config file '/tmp/tmpu6q58h3g.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. Legacy blacklist data found in config, overriding data plugins tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_import_test tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_import_test ... ok -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_none -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_none ... ok -tests.unit.formatters.test_yaml.YamlFormatterTests.test_report -tests.unit.formatters.test_yaml.YamlFormatterTests.test_report ... ok - +tests.unit.core.test_manager.ManagerTests.test_populate_baseline_invalid_json +tests.unit.core.test_manager.ManagerTests.test_populate_baseline_invalid_json ... ok +tests.unit.core.test_manager.ManagerTests.test_populate_baseline_success +tests.unit.core.test_manager.ManagerTests.test_populate_baseline_success ... ok +tests.unit.core.test_manager.ManagerTests.test_results_count +tests.unit.core.test_manager.ManagerTests.test_results_count ... ok + usage: bandit-config-generator [-h] [--show-defaults] [-o OUTPUT_FILE] [-t TESTS] [-s SKIPS] @@ -1796,70 +1805,12 @@ list of test names to run -s SKIPS, --skip SKIPS list of test names to skip -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_all -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_all ... ok -tests.unit.cli.test_main.BanditCLIMainTests.test_main_exit_with_no_results -tests.unit.cli.test_main.BanditCLIMainTests.test_main_exit_with_no_results ... ok -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_include -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_include ... ok -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_none -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_none ... ok -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_one -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_one ... ok -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_has_builtin_blacklist -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_has_builtin_blacklist ... ok -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_include_id -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_include_id ... ok -Config file '/tmp/tmpvouquley.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -Legacy blacklist data found in config, overriding data plugins -Config file '/tmp/tmptfro87cc.toml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -Legacy blacklist data found in config, overriding data plugins tests.unit.core.test_config.TestConfigCompat.test_converted_exclude tests.unit.core.test_config.TestConfigCompat.test_converted_exclude ... ok -tests.unit.core.test_config.TestTomlConfig.test_converted_exclude -tests.unit.core.test_config.TestTomlConfig.test_converted_exclude ... ok -tests.unit.core.test_manager.ManagerTests.test_get_files_from_dir -tests.unit.core.test_manager.ManagerTests.test_get_files_from_dir ... ok -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_include_none -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_include_none ... ok -tests.unit.core.test_manager.ManagerTests.test_is_file_included -tests.unit.core.test_manager.ManagerTests.test_is_file_included ... ok -tests.unit.core.test_manager.ManagerTests.test_matches_globlist -tests.unit.core.test_manager.ManagerTests.test_matches_globlist ... ok -Config file '/tmp/tmpalfjj012.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -Legacy blacklist data found in config, overriding data plugins -tests.unit.formatters.test_csv.CsvFormatterTests.test_report -tests.unit.formatters.test_csv.CsvFormatterTests.test_report ... ok -tests.unit.core.test_config.TestConfigCompat.test_converted_exclude_blacklist -tests.unit.core.test_config.TestConfigCompat.test_converted_exclude_blacklist ... ok -[config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -[main] INFO profile include tests: None -[main] INFO profile exclude tests: None -[main] INFO cli include tests: None -[main] INFO cli exclude tests: None -[main] INFO using config: bandit.yaml -[main] INFO running on Python 3.12.7 -[text] INFO Text output written to file: output -Config file '/tmp/tmpd8vkiyc1.toml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -Legacy blacklist data found in config, overriding data plugins -tests.unit.core.test_config.TestTomlConfig.test_converted_exclude_blacklist -tests.unit.core.test_config.TestTomlConfig.test_converted_exclude_blacklist ... ok -Config file '/tmp/tmpvbgb7pjz.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -Legacy blacklist data found in config, overriding data plugins -tests.unit.core.test_config.TestConfigCompat.test_converted_include -tests.unit.core.test_config.TestConfigCompat.test_converted_include ... ok -tests.unit.core.test_manager.ManagerTests.test_output_results_invalid_format -tests.unit.core.test_manager.ManagerTests.test_output_results_invalid_format ... ok -tests.unit.cli.test_main.BanditCLIMainTests.test_main_exit_with_results -tests.unit.cli.test_main.BanditCLIMainTests.test_main_exit_with_results ... ok -Config file '/tmp/tmp2un1_3h4.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -Legacy blacklist data found in config, overriding data plugins -Config file '/tmp/tmpqhdil0yv.toml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -Legacy blacklist data found in config, overriding data plugins -tests.unit.core.test_config.TestConfigCompat.test_deprecation_message -tests.unit.core.test_config.TestConfigCompat.test_deprecation_message ... ok -tests.unit.core.test_config.TestTomlConfig.test_converted_include -tests.unit.core.test_config.TestTomlConfig.test_converted_include ... ok +tests.unit.formatters.test_sarif.SarifFormatterTests.test_report +tests.unit.formatters.test_sarif.SarifFormatterTests.test_report ... ok +tests.unit.cli.test_main.BanditCLIMainTests.test_main_exit_with_no_results +tests.unit.cli.test_main.BanditCLIMainTests.test_main_exit_with_no_results ... ok tests.unit.core.test_context.ContextTests.test__get_literal_value tests.unit.core.test_context.ContextTests.test__get_literal_value ... ok tests.unit.core.test_context.ContextTests.test_call_args @@ -1898,20 +1849,12 @@ tests.unit.core.test_context.ContextTests.test_statement ... ok tests.unit.core.test_context.ContextTests.test_string_val tests.unit.core.test_context.ContextTests.test_string_val ... ok -tests.unit.core.test_manager.ManagerTests.test_output_results_valid_format -tests.unit.core.test_manager.ManagerTests.test_output_results_valid_format ... ok -Config file '/tmp/tmpxoz993jj.toml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -Legacy blacklist data found in config, overriding data plugins -tests.unit.core.test_config.TestTomlConfig.test_deprecation_message -tests.unit.core.test_config.TestTomlConfig.test_deprecation_message ... ok -tests.unit.core.test_manager.ManagerTests.test_populate_baseline_invalid_json -tests.unit.core.test_manager.ManagerTests.test_populate_baseline_invalid_json ... ok -tests.unit.core.test_manager.ManagerTests.test_populate_baseline_success -tests.unit.core.test_manager.ManagerTests.test_populate_baseline_success ... ok -tests.unit.core.test_manager.ManagerTests.test_results_count -tests.unit.core.test_manager.ManagerTests.test_results_count ... ok tests.unit.core.test_manager.ManagerTests.test_run_tests_ioerror tests.unit.core.test_manager.ManagerTests.test_run_tests_ioerror ... ok +Config file '/tmp/tmpjotq22ev.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +Legacy blacklist data found in config, overriding data plugins +tests.unit.core.test_config.TestConfigCompat.test_converted_exclude_blacklist +tests.unit.core.test_config.TestConfigCompat.test_converted_exclude_blacklist ... ok [config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. [main] INFO profile include tests: None [main] INFO profile exclude tests: None @@ -1919,41 +1862,164 @@ [main] INFO cli exclude tests: None [main] INFO using config: bandit.yaml [main] INFO running on Python 3.12.7 +tests.unit.formatters.test_csv.CsvFormatterTests.test_report +tests.unit.formatters.test_csv.CsvFormatterTests.test_report ... ok [text] INFO Text output written to file: output +Config file '/tmp/tmpumpper2j.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +Legacy blacklist data found in config, overriding data plugins +tests.unit.formatters.test_yaml.YamlFormatterTests.test_report +tests.unit.formatters.test_yaml.YamlFormatterTests.test_report ... ok +tests.unit.cli.test_main.BanditCLIMainTests.test_main_exit_with_results +tests.unit.cli.test_main.BanditCLIMainTests.test_main_exit_with_results ... ok +tests.unit.core.test_config.TestConfigCompat.test_converted_include +tests.unit.core.test_config.TestConfigCompat.test_converted_include ... ok tests.unit.core.test_manager.ManagerTests.test_run_tests_keyboardinterrupt tests.unit.core.test_manager.ManagerTests.test_run_tests_keyboardinterrupt ... ok -tests.unit.core.test_util.UtilTests.test_check_ast_node_bad_node -tests.unit.core.test_util.UtilTests.test_check_ast_node_bad_node ... ok +Config file '/tmp/tmpporfyo4k.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +Legacy blacklist data found in config, overriding data plugins +tests.unit.core.test_config.TestConfigCompat.test_deprecation_message +tests.unit.core.test_config.TestConfigCompat.test_deprecation_message ... ok +tests.unit.core.test_meta_ast.BanditMetaAstTests.test_add_node +tests.unit.core.test_meta_ast.BanditMetaAstTests.test_add_node ... ok +tests.unit.core.test_meta_ast.BanditMetaAstTests.test_str +tests.unit.core.test_meta_ast.BanditMetaAstTests.test_str ... ok +tests.unit.formatters.test_screen.ScreenFormatterTests.test_no_issues +tests.unit.formatters.test_screen.ScreenFormatterTests.test_no_issues ... ok +tests.unit.formatters.test_screen.ScreenFormatterTests.test_output_issue +tests.unit.formatters.test_screen.ScreenFormatterTests.test_output_issue ... ok +[config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +[main] INFO profile include tests: None +[main] INFO profile exclude tests: None +[main] INFO cli include tests: None +[main] INFO cli exclude tests: None +[main] INFO using config: bandit.yaml +[main] INFO running on Python 3.12.7 +[text] INFO Text output written to file: output +tests.unit.formatters.test_screen.ScreenFormatterTests.test_report_baseline +tests.unit.formatters.test_screen.ScreenFormatterTests.test_report_baseline ... ok +tests.unit.core.test_blacklisting.BlacklistingTests.test_report_issue +tests.unit.core.test_blacklisting.BlacklistingTests.test_report_issue ... ok +[main] INFO Using command line arg for config file +tests.unit.core.test_blacklisting.BlacklistingTests.test_report_issue_defaults +tests.unit.core.test_blacklisting.BlacklistingTests.test_report_issue_defaults ... ok tests.unit.cli.test_main.BanditCLIMainTests.test_main_exit_with_results_and_with_exit_zero_flag tests.unit.cli.test_main.BanditCLIMainTests.test_main_exit_with_results_and_with_exit_zero_flag ... ok -[main] INFO Using command line arg for config file [main] INFO Using ini file for skipped tests [main] INFO Using ini file for selected tests -[main] INFO Using command line arg for selected targets +tests.unit.formatters.test_custom.CustomFormatterTests.test_report +tests.unit.formatters.test_custom.CustomFormatterTests.test_report[main] INFO Using command line arg for selected targets + ... ok [config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. [main] INFO profile include tests: None +tests.unit.formatters.test_screen.ScreenFormatterTests.test_report_nobaseline +tests.unit.formatters.test_screen.ScreenFormatterTests.test_report_nobaseline ... ok +Run started:2026-01-07 20:43:10.449902 + +Test results: +ISSUE_OUTPUT_TEXT +-------------------------------------------------- +ISSUE_OUTPUT_TEXT + +-- Candidate Issues -- +ISSUE_OUTPUT_TEXT + + +ISSUE_OUTPUT_TEXT + + +-------------------------------------------------- + +Code scanned: + Total lines of code: 0 + Total lines skipped (#nosec): 0 + +Run metrics: + Total issues (by severity): + Undefined: 0 + Low: 0 + Medium: 0 + High: 0 + Total issues (by confidence): + Undefined: 0 + Low: 0 + Medium: 0 + High: 0 +Files skipped (0): +Run started:2026-01-07 20:43:10.460445 +Files in scope (1): + binding.py (score: {SEVERITY: 1, CONFIDENCE: 1}) +Files excluded (1): + def.py + +Test results: +ISSUE_OUTPUT_TEXT +-------------------------------------------------- +ISSUE_OUTPUT_TEXT +-------------------------------------------------- + +Code scanned: + Total lines of code: 1000 + Total lines skipped (#nosec): 50 + +Run metrics: + Total issues (by severity): + Undefined: 1 + Low: 1 + Medium: 1 + High: 1 + Total issues (by confidence): + Undefined: 1 + Low: 1 + Medium: 1 + High: 1 +Files skipped (1): + abc.py (File is bad) [main] INFO profile exclude tests: None [main] INFO cli include tests: some_test [main] INFO cli exclude tests: skip_test [main] ERROR : tests.unit.cli.test_main.BanditCLIMainTests.test_main_handle_ini_options tests.unit.cli.test_main.BanditCLIMainTests.test_main_handle_ini_options ... ok -tests.unit.cli.test_main.BanditCLIMainTests.test_main_invalid_config -tests.unit.cli.test_main.BanditCLIMainTests.test_main_invalid_config ... ok -tests.unit.core.test_util.UtilTests.test_check_ast_node_bad_type -tests.unit.core.test_util.UtilTests.test_check_ast_node_bad_type ... ok [config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. [main] INFO profile include tests: None +tests.unit.cli.test_main.BanditCLIMainTests.test_main_invalid_config +tests.unit.cli.test_main.BanditCLIMainTests.test_main_invalid_config ... ok [main] INFO profile exclude tests: None [main] INFO cli include tests: None [main] INFO cli exclude tests: None +tests.unit.cli.test_config_generator.BanditConfigGeneratorLoggerTests.test_init_logger +tests.unit.cli.test_config_generator.BanditConfigGeneratorLoggerTests.test_init_logger ... ok +tests.unit.core.test_test_set.BanditTestSetTests.test_has_defaults +tests.unit.core.test_test_set.BanditTestSetTests.test_has_defaults ... ok +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_blacklist_compat +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_blacklist_compat ... ok +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_builtin_blacklist +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_builtin_blacklist ... ok +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_builtin_blacklist_specific +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_builtin_blacklist_specific ... ok +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_id +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_id ... ok [manager] WARNING Failed to load baseline data: 'issue_cwe' [main] WARNING Baseline must be used with one of the following formats: ['custom', 'html', 'json', 'screen', 'txt'] +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_none +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_none ... ok +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_all +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_all ... ok +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_include +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_include ... ok +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_none +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_none ... ok +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_one +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_one ... ok +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_has_builtin_blacklist +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_has_builtin_blacklist ... ok +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_include_id +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_include_id ... ok +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_include_none +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_include_none ... ok tests.unit.cli.test_main.BanditCLIMainTests.test_main_invalid_output_format tests.unit.cli.test_main.BanditCLIMainTests.test_main_invalid_output_format ... ok [config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -tests.unit.core.test_util.UtilTests.test_check_ast_node_good -tests.unit.core.test_util.UtilTests.test_check_ast_node_good ... ok tests.unit.cli.test_main.BanditCLIMainTests.test_main_profile_not_found tests.unit.cli.test_main.BanditCLIMainTests.test_main_profile_not_found ... ok [config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. @@ -1972,20 +2038,67 @@ [main] ERROR Unknown test found in profile: badID tests.unit.cli.test_main.BanditCLIMainTests.test_main_unknown_tests tests.unit.cli.test_main.BanditCLIMainTests.test_main_unknown_tests ... ok -tests.unit.core.test_issue.IssueTests.test_get_code -tests.unit.core.test_issue.IssueTests.test_get_code ... ok -tests.unit.core.test_issue.IssueTests.test_issue_as_dict -tests.unit.core.test_issue.IssueTests.test_issue_as_dict ... ok -tests.unit.core.test_issue.IssueTests.test_issue_create -tests.unit.core.test_issue.IssueTests.test_issue_create ... ok -tests.unit.core.test_issue.IssueTests.test_issue_filter_confidence -tests.unit.core.test_issue.IssueTests.test_issue_filter_confidence ... ok -tests.unit.core.test_issue.IssueTests.test_issue_filter_severity -tests.unit.core.test_issue.IssueTests.test_issue_filter_severity ... ok -tests.unit.core.test_issue.IssueTests.test_issue_str -tests.unit.core.test_issue.IssueTests.test_issue_str ... ok -tests.unit.core.test_issue.IssueTests.test_matches_issue -tests.unit.core.test_issue.IssueTests.test_matches_issue ... ok +[ INFO ] No output format specified, using terminal +tests.unit.core.test_config.TestGetOption.test_levels +tests.unit.core.test_config.TestGetOption.test_levels ... ok +tests.unit.core.test_config.TestGetOption.test_levels_not_exist +tests.unit.core.test_config.TestGetOption.test_levels_not_exist ... ok +[ ERROR ] Current working directory is dirty and must be resolved +tests.unit.core.test_config.TestGetSetting.test_not_exist +tests.unit.core.test_config.TestGetSetting.test_not_exist ... ok +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_dirty_repo +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_dirty_repo ... ok +[ ERROR ] File bandit_baseline_result.txt already exists, aborting +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_existing_report_file +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_existing_report_file ... ok +[ INFO ] No output format specified, using terminal +[ ERROR ] Temporary file _bandit_baseline_run.json_ needs to be removed prior to running +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_existing_temp_file +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_existing_temp_file ... ok +[ INFO ] No output format specified, using terminal +[ ERROR ] Git command not found +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_git_command_failure +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_git_command_failure ... ok +[ INFO ] No output format specified, using terminal +[ ERROR ] Bandit baseline must be called from a git project root +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_no_repo +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_no_repo ... ok +[ INFO ] No output format specified, using terminal +[ ERROR ] Bandit baseline must not be called with the -o option +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_with_output_argument +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_with_output_argument ... ok +[ INFO ] No output format specified, using terminal +[ ERROR ] Unable to get current or parent commit +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_git_command_failure +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_git_command_failure ... ok +[ INFO ] No output format specified, using terminal +[ INFO ] Got current commit: [3a11b1fc2ab497bf2659dd8b0cbc5ac34dbfe65b master] +[ ERROR ] Parent commit not available +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_no_parent_commit +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_no_parent_commit ... ok +[ INFO ] No output format specified, using terminal +[ ERROR ] Bandit baseline must be called from a git project root +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_non_repo +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_non_repo ... ok +[ INFO ] No output format specified, using terminal +[ INFO ] Got current commit: [b428afd0616285d91d88331e3601c6d183dd419c master] +[ INFO ] Got parent commit: [3a11b1fc2ab497bf2659dd8b0cbc5ac34dbfe65b master~1] +[ INFO ] Getting Bandit baseline results +[ ERROR ] Error running command: ['discover', '-t', './', './tests', '--load-list', '/tmp/tmp9hzynsbl'] +Output: None + +[ INFO ] Comparing Bandit results to baseline +[ ERROR ] Error running command: ['discover', '-t', './', './tests', '--load-list', '/tmp/tmp9hzynsbl'] +Output: None + +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_subprocess_error +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_subprocess_error ... ok +tests.unit.core.test_util.UtilTests.test_check_ast_node_bad_node +tests.unit.core.test_util.UtilTests.test_check_ast_node_bad_node ... ok +tests.unit.core.test_util.UtilTests.test_check_ast_node_bad_type +tests.unit.core.test_util.UtilTests.test_check_ast_node_bad_type ... ok +tests.unit.core.test_util.UtilTests.test_check_ast_node_good +tests.unit.core.test_util.UtilTests.test_check_ast_node_good ... ok tests.unit.core.test_util.UtilTests.test_deepgetattr tests.unit.core.test_util.UtilTests.test_deepgetattr ... ok tests.unit.core.test_util.UtilTests.test_escaped_representation_invalid @@ -1994,16 +2107,12 @@ tests.unit.core.test_util.UtilTests.test_escaped_representation_mixed ... ok tests.unit.core.test_util.UtilTests.test_escaped_representation_simple tests.unit.core.test_util.UtilTests.test_escaped_representation_simple ... ok -[ INFO ] No output format specified, using terminal tests.unit.core.test_util.UtilTests.test_escaped_representation_valid_not_printable tests.unit.core.test_util.UtilTests.test_escaped_representation_valid_not_printable ... ok -[ ERROR ] Current working directory is dirty and must be resolved tests.unit.core.test_util.UtilTests.test_get_call_name1 tests.unit.core.test_util.UtilTests.test_get_call_name1 ... ok tests.unit.core.test_util.UtilTests.test_get_call_name2 tests.unit.core.test_util.UtilTests.test_get_call_name2 ... ok -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_dirty_repo -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_dirty_repo ... ok tests.unit.core.test_util.UtilTests.test_get_call_name3 tests.unit.core.test_util.UtilTests.test_get_call_name3 ... ok tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_abs_missingend @@ -2022,11 +2131,8 @@ tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_rel_missingend ... ok tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_rel_missingmid tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_rel_missingmid ... ok -[ ERROR ] File bandit_baseline_result.txt already exists, aborting tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_rel_syms tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_rel_syms ... ok -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_existing_report_file -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_existing_report_file ... ok tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_rel_typical tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_rel_typical ... ok tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_sys @@ -2039,7 +2145,7 @@ tests.unit.core.test_util.UtilTests.test_namespace_path_join ... ok tests.unit.core.test_util.UtilTests.test_namespace_path_split tests.unit.core.test_util.UtilTests.test_namespace_path_split ... ok -Unable to parse config file /tmp/tmpzmq71136 or missing [bandit] section +Unable to parse config file /tmp/tmpsbbz8uir or missing [bandit] section tests.unit.core.test_util.UtilTests.test_parse_ini_file tests.unit.core.test_util.UtilTests.test_parse_ini_file ... ok tests.unit.core.test_util.UtilTests.test_path_for_function @@ -2050,89 +2156,25 @@ Cannot resolve file where 1 is defined tests.unit.core.test_util.UtilTests.test_path_for_function_no_module tests.unit.core.test_util.UtilTests.test_path_for_function_no_module ... ok -tests.unit.formatters.test_custom.CustomFormatterTests.test_report -tests.unit.formatters.test_custom.CustomFormatterTests.test_report ... ok -tests.unit.formatters.test_text.TextFormatterTests.test_no_issues -tests.unit.formatters.test_text.TextFormatterTests.test_no_issues ... ok -tests.unit.formatters.test_text.TextFormatterTests.test_output_issue -tests.unit.formatters.test_text.TextFormatterTests.test_output_issue ... ok -tests.unit.formatters.test_text.TextFormatterTests.test_report_baseline -tests.unit.formatters.test_text.TextFormatterTests.test_report_baseline ... ok -tests.unit.formatters.test_text.TextFormatterTests.test_report_nobaseline -tests.unit.formatters.test_text.TextFormatterTests.test_report_nobaseline ... ok -[ INFO ] No output format specified, using terminal -[ ERROR ] Temporary file _bandit_baseline_run.json_ needs to be removed prior to running -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_existing_temp_file -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_existing_temp_file ... ok -[ INFO ] No output format specified, using terminal -[ ERROR ] Git command not found -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_git_command_failure -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_git_command_failure ... ok -[ INFO ] No output format specified, using terminal -[ ERROR ] Bandit baseline must be called from a git project root -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_no_repo -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_no_repo ... ok -[ INFO ] No output format specified, using terminal -[ ERROR ] Bandit baseline must not be called with the -o option -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_with_output_argument -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_with_output_argument ... ok -[ INFO ] No output format specified, using terminal -[ ERROR ] Unable to get current or parent commit -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_git_command_failure -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_git_command_failure ... ok -[ INFO ] No output format specified, using terminal -[ INFO ] Got current commit: [2379dde50c545d788600c935c07970c74643bc49 master] -[ ERROR ] Parent commit not available -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_no_parent_commit -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_no_parent_commit ... ok -[ INFO ] No output format specified, using terminal -[ ERROR ] Bandit baseline must be called from a git project root -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_non_repo -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_non_repo ... ok -[ INFO ] No output format specified, using terminal -[ INFO ] Got current commit: [f261fa79931662e71d4462de85d0c76cb5e3729a master] -[ INFO ] Got parent commit: [82b367b58564bcb012c0b2717d17ca6217c14e4c master~1] -[ INFO ] Getting Bandit baseline results -[ ERROR ] Error running command: ['discover', '-t', './', './tests', '--load-list', '/tmp/tmpw5dcbduu'] -Output: None - -[ INFO ] Comparing Bandit results to baseline -[ ERROR ] Error running command: ['discover', '-t', './', './tests', '--load-list', '/tmp/tmpw5dcbduu'] -Output: None - -while parsing a flow sequence - in "/tmp/tmp5crcpgmb.yaml", line 1, column 3 -expected ',' or ']', but got '' - in "/tmp/tmp5crcpgmb.yaml", line 1, column 14 -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_subprocess_error -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_subprocess_error ... ok -tests.unit.core.test_config.TestGetSetting.test_not_exist -tests.unit.core.test_config.TestGetSetting.test_not_exist ... ok -tests.unit.core.test_config.TestInit.test_file_does_not_exist -tests.unit.core.test_config.TestInit.test_file_does_not_exist ... ok -tests.unit.core.test_config.TestInit.test_settings -tests.unit.core.test_config.TestInit.test_settings ... ok -tests.unit.core.test_config.TestInit.test_yaml_invalid -tests.unit.core.test_config.TestInit.test_yaml_invalid ... ok None ---------------------------------------------------------------------- -Ran 179 tests in 24.014s +Ran 179 tests in 7.881s OK + stestr slowest -Test id Runtime (s) ------------------------------------------------------------------------------------------ ----------- -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_dirty_repo 1.139 -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_with_output_argument 0.738 -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_git_command_failure 0.634 -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_subprocess_error 0.486 -tests.unit.core.test_util.UtilTests.test_check_ast_node_bad_node 0.471 -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_existing_temp_file 0.445 -tests.unit.core.test_util.UtilTests.test_get_call_name1 0.329 -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_git_command_failure 0.298 -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_no_parent_commit 0.229 -tests.unit.core.test_util.UtilTests.test_path_for_function_no_module 0.202 +Test id Runtime (s) +----------------------------------------------------------------------------------------------- ----------- +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_dirty_repo 0.337 +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_subprocess_error 0.070 +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_git_command_failure 0.062 +tests.unit.cli.test_main.BanditCLIMainTests.test_main_baseline_ioerror 0.061 +tests.unit.cli.test_main.BanditCLIMainTests.test_main_exit_with_results_and_with_exit_zero_flag 0.058 +tests.unit.cli.test_main.BanditCLIMainTests.test_main_invalid_output_format 0.052 +tests.unit.core.test_config.TestTomlConfig.test_converted_exclude_blacklist 0.046 +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_none 0.034 +tests.unit.core.test_manager.ManagerTests.test_output_results_invalid_format 0.033 +tests.unit.core.test_manager.ManagerTests.test_get_files_from_dir 0.032 + rm -rf .stestr # Generate the config file mkdir -p /build/reproducible-path/bandit-1.7.10/debian/bandit/etc/bandit @@ -2173,14 +2215,14 @@ cat /usr/share/openstack-pkg-tools/init-script-template >>$MYINIT.init ; \ pkgos-gen-systemd-unit $i ; \ done -+ ls -1 debian/*.init.in +++ ls -1 'debian/*.init.in' ls: cannot access 'debian/*.init.in': No such file or directory # If there's a service.in file, use that one instead of the generated one set -e ; set -x ; for i in `ls -1 debian/*.service.in`; do \ MYPKG=`echo $i | sed s/.service.in//` ; \ cp $MYPKG.service.in $MYPKG.service ; \ done -+ ls -1 debian/*.service.in +++ ls -1 'debian/*.service.in' ls: cannot access 'debian/*.service.in': No such file or directory # Generate the systemd unit if there's no already existing .service.in set -e ; set -x ; for i in `ls debian/*.init.in` ; do \ @@ -2189,7 +2231,7 @@ pkgos-gen-systemd-unit $i ; \ fi \ done -+ ls debian/*.init.in +++ ls 'debian/*.init.in' ls: cannot access 'debian/*.init.in': No such file or directory dh_installinit --error-handler=true make[1]: Leaving directory '/build/reproducible-path/bandit-1.7.10' @@ -2224,12 +2266,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: including full source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/110691/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/110691/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/2668327 and its subdirectories -I: Current time: Wed Jan 7 08:42:00 -12 2026 -I: pbuilder-time-stamp: 1767818520 +I: removing directory /srv/workspace/pbuilder/110691 and its subdirectories +I: Current time: Thu Jan 8 10:43:17 +14 2026 +I: pbuilder-time-stamp: 1767818597