Closed ZLLentz closed 9 months ago
@ghalym I can break this up into smaller PRs if you want, I just remembered that you had a branch open for other work that might conflict with the aggressive changes here
I'm definitely going to close this and submit just the part that makes the tests pass in an isolated PR following your upcoming TXI vetoes PR.
Description
FB_Arbiter_Test.RemoveReq
. This was done by moving the arbiter from VAR to VAR_INST to put it on the heap instead of the stack. The test suite can now run with the default stack memory size without crashing. https://github.com/pcdshub/lcls-twincat-pmps/commit/332ae4c5c14cfc161b5e6b132a9f98b515e0e4d2#diff-4c3956add6b24a881a2227bed9ad0c39f03d16c89fff372b911102d732947d12R334-R337FB_FastFaultTest.FFOvrdAndNextFault
could last anywhere from 1hr to infinitely long if the PLC wasn't on the UTC time zone. This was done by retrieving and passing in the correct time zone information into the existing test suite function. https://github.com/pcdshub/lcls-twincat-pmps/commit/332ae4c5c14cfc161b5e6b132a9f98b515e0e4d2#diff-07237d9b483b4eb40c39b5866e02e8931e0184ae908e3bd3b8f29789c50f120eR160pre-commit run --all
Motivation and Context
These two unit tests were very disruptive when provisioning our TwinCAT CI solutions:
The other changes are minor and are mostly just "while I'm here" sort of standard-practice adjustments.
How Has This Been Tested?
The unit tests pass in about 10s now, both on the ci PLC and on the pmps test PLC, even with default stack sizes.
Where Has This Been Documented?
Only here
Pre-merge checklist
Always Newest
version (Library, *
)pre-commit
or ranpre-commit run --all-files
BP_IO
parameters weren't modified unintentionally