Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
16 tasks
chrisdutz opened this issue Feb 27, 2025 · 1 comment
Open
16 tasks
Labels
python Pull requests that update Python code

Comments

@chrisdutz
Copy link
Contributor

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 chrisdutz added the bug label Feb 27, 2025
@chrisdutz
Copy link
Contributor Author

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.

@ottlukas ottlukas added python Pull requests that update Python code and removed bug labels Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests that update Python code
Projects
None yet
Development

No branches or pull requests

2 participants