Cli ERC/DRC gives different output than running manually in GUI

I am starting to play with the cli to automatically run ERC and DRC. The problem is that it fails even though running it manually passes.

I don’t see any option here that can help with this. There are --severity-*, but this seems like I can only change it so warnings do not force a non-zero exit code. No option to use my configured severities and exclusions.

I think specifically it is ignoring the violations I marked excluded, but even then the numbers don’t add up (54 violations vs 37 exclusions).

kicad-cli pcb drc \
	--schematic-parity \
	--exit-code-violations \
	"${pcbFile}"

Loading board
Running DRC...
Found 54 violations
Found 0 unconnected items
Found 0 schematic parity issues
Saved DRC Report to

Application: KiCad Symbol Editor x86_64 on x86_64

Version: 8.0.5, release build

Libraries:
	wxWidgets 3.2.6
	FreeType 2.13.3
	HarfBuzz 9.0.0
	FontConfig 2.15.0
	libcurl/8.10.0 OpenSSL/3.3.2 zlib/1.3.1 brotli/1.1.0 zstd/1.5.6 libidn2/2.3.7 libpsl/0.21.5 libssh2/1.11.0 nghttp2/1.63.0 nghttp3/1.5.0

Platform: Arch Linux, 64 bit, Little endian, wxGTK, X11, KDE, x11
OpenGL: Intel, Mesa Intel(R) Arc(tm) A770 Graphics (DG2), 4.6 (Compatibility Profile) Mesa 24.2.2-arch1.1

Build Info:
	Date: Sep 10 2024 12:58:22
	wxWidgets: 3.2.6 (wchar_t,wx containers) GTK+ 3.24
	Boost: 1.86.0
	OCC: 7.8.1
	Curl: 8.9.1
	ngspice: 43
	Compiler: GCC 14.2.1 with C++ ABI 1019

Build settings:
	KICAD_USE_EGL=ON

Just an idea, try to re-enable the ignored test. To see if you get the 54 drc issue with those tests.

It’s not a solution, but it’s to narrow the possible issue.

Thanks for the answer. In that case, I get 77, so it still doesn’t add up.

Can you share the project? You can also open an issue on Gitlab with the project attached, and set it to confidential. Only the core team can see the project then.

I’m a big dummy. For some reason, kicad-cli used version 8.0.2 instead of 8.0.5.