Simon Prinsloo
13 posts
Registered:
20 Feb 2019
23 Oct
Link to this post
We just jumped roughty 14 months forward with our version of Smart Component Library (No Framework) from a version of August 2024.
During that time, SmartUnit.cls was changed to use ClassAnnotationParser instead of the nowdeprecated XrefClassAnnotationParser. On Linux that means that the pure ABL ProparseAblApi is used, which seems to be quite slow.
The impact of that on our CI pipeline is massive. Where our Test stage in Jenkins used to run between 4.5 and 7minutes, depending on how busy the hyper visor was, the stage now takes anything from 15 to 19 minutes.
Is there a recommended way to resolve this, or at least achieve better speeds?
One idea we can think of is to inherit from TestRunner.cls and register an instance of XrefClassAnnotationParser in the ServiceContainer, but we do not like the idea of reverting to a deprecated piece of code.
Another option might be to implement a version of IProparseApi that build the AST only, as that appears to be all the test runner really needs, and register that in the ServiceContainer, but that also feels a bit ugly.