Comments (7)
This issue also appears in TwinCat XAE 15.0 if LauchTcUnit.bat from Jenkins (Node is running as Windows Service), I „solved“ it by putting a retry(3) block around the bat command and utilizing the -u timeout option.
I am not very happy with this „solution“ though.
Have you tried to run the Jenkins Node in a commandline window instead of running it as a service? It is not really an option for me, but maybe it helps in your case?
from tcunit-runner.
I ended up forking the Repo and uncommenting the CleanSolution + BuildSolution code sections as I do not need them for my use case. This solved all issues that I experienced before (timeouts, hang ups…).
Before uncommenting, I tried a bit around with saving the solution before Cleaning and stuff like this, but that didn’t work out.
@sagatowski Any interest in a patch that provides a switch to disable this code sections per commandline? I can happily implement this, but understand if you do not want any more switches for TcUnit-Runner + this option might be a be contraverse. You never run into this issue?
from tcunit-runner.
@anthonyjacques20
fyi I stumbled into some other problems with TcUnit-Runner using it with many (semi-autogenerated) tests in my struckig project. Most of the time TcUnit-Runner was complaining about TC_STATISTICS being transmitted out of order... I ended up using the option (ParameterList) to write the result directly from the PLC.
from tcunit-runner.
@anthonyjacques20 & @stefanbesler, first of thanks for the very good fault description. Sorry for late response, for some reason I don't get e-mail notifications for this project...
I have not been running TcUnit-Runner with VS2019, only TcXaeShell never seen the problem there. I think most of the users of TcUnit-Runner are using the vanilla TcXaeShell.
But I remember that there was some other problem related to the cleansolution + buildsolution, and the current solution is where it ended up at (see this: #5). The problem is of course that if these two always get stuck, I don't know what to do about it as it's outside of TcUnit-Runner.
Something that might be worth trying is to replace the TwinCAT Automation interface DLL from 3.2 to 3.3 and see if that makes any difference for VS2019. TcUnit-Runner is using 3.2 as it needs to support both 4020 and 4022, and I think 3.3 was introduced together with 4024 (and thus requires 4024.x installed).
Also, maybe contacting Beckhoff and asking for advice might make sense here, as it's probably not only TcUnit-Runner that has this problem?
from tcunit-runner.
@sagatowski
Yes, probably it’s a bug in the Automation Interface. What I noticed is, that manipulations to tsproj or plcproj via the Interface causes VS to (sometimes) see „external modifications to files in the project“.
When this happens and it additionally sees a file conflict a message box pops up (no matter if using the silent option of the Automation Interface) or not. If this happens, you are stuck until you close it programmatically. What I can’t figure out is why VS sees „external modifications“ and why this is not reproduceable reliably + this seems to pop up way more often in a Jenkins/Service context. The latter, makes this very hard to figure out … if the Automation Interface is used in a debugging session from visual studio I never have any issues with it.
from tcunit-runner.
@stefanbesler Yes I've noticed this as well, it feels like it started to happen more often in the more recent 4024 releases. For me this however happens when I use TwinCAT normally, then this popup shows up randomly.
from tcunit-runner.
Note: Commit 3379fe8 might have improved this a bit.
from tcunit-runner.
Related Issues (20)
- Building the project in TCXaeShell does not collect test results correctly when generating the XML file. HOT 21
- TcUnit-Runner Microsoft Azure DevOps HOT 3
- Add variant handling to TcUnit-Runner HOT 1
- Exit process with an exit code depending on test-results HOT 1
- TcUnit-Runner zombie instance of only solution is loaded HOT 2
- Running TcUnit-Runner on an Azure Virtual Machine through Azure Pipelines HOT 3
- Timeout issues during execution of `LaunchTcUnit.bat` on VM HOT 7
- ERROR: Error loading VS DTE. Is the correct version of Visual Studio and TwinCAT installed? Is the TcUnit-Runner running with administrator privileges? HOT 1
- Java Web Start is now deprecated by Oracle
- Double items in ErrorList causes TcUnitResultCollector to fail HOT 3
- Unit test in separate project using TcRunner HOT 17
- Turning on Static Analysis (light edition), gives build errors. HOT 1
- Add feature to optionally specify a directory for saving test result HOT 1
- Building the project results in several errors that don't appear when building from the XAE HOT 1
- Adding solution file path as a parameter for the TcUnit-Runner HOT 3
- Testsuite failures are not updated HOT 4
- TcUnit-Runner fail to find TwinCAT project given a more complex solution structure
- TcUnit release 1.3.0.0 seems to broke the old TcUnit-Runner documentation HOT 1
- README link to user manual returns 404 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tcunit-runner.