plc4x icon indicating copy to clipboard operation
plc4x copied to clipboard

[Bug]: It seems to be impossible to run the plc4py build with skip tests

Open chrisdutz opened this issue 9 months ago • 2 comments

What happened?

When building PLC4X it sometimes is usefull to build all parts locally, skipping all tests. IntelliJ has a checkbox in the maven panel, which I think passes the "-DskipTests" to the maven build. If this is set, the plc4py build fails.

In our build README we tell people to build with skipTests to skip the tests, if the build fails we might have problems with the next release.

Version

0.13.0-SNAPSHOT

Programming Languages

  • [ ] plc4j
  • [ ] plc4go
  • [ ] plc4c
  • [ ] plc4net

Protocols

  • [ ] AB-Ethernet
  • [ ] ADS /AMS
  • [ ] BACnet/IP
  • [ ] CANopen
  • [ ] DeltaV
  • [ ] DF1
  • [ ] EtherNet/IP
  • [ ] Firmata
  • [ ] KNXnet/IP
  • [ ] Modbus
  • [ ] OPC-UA
  • [ ] S7

chrisdutz avatar Feb 27 '25 22:02 chrisdutz

It seems that when "skipTests" is enabled, there are two modules missing:

  • black
  • deptry

If I comment out the two executions requiring them (python-black, python-dependency-check), then I am able to build the project with "skipTests". It seems that when not set, these dependencies are pulled in in the python-test-compile step ... at least can I see them being mentioned in the log then.

Just thought this might help in tracking down the issue.

chrisdutz avatar Feb 27 '25 22:02 chrisdutz

I wonder if https://github.com/apache/plc4x/commit/05d74143784b4af014286fb4dc128904c37ade0e fixes it and this issue was never closed?

sruehl avatar Mar 28 '25 08:03 sruehl