JenkinsPipelineUnit icon indicating copy to clipboard operation
JenkinsPipelineUnit copied to clipboard

[BaseRegressionTest] Remove memory address for objects

Open jgsogo opened this issue 4 years ago • 1 comments

Using the regression feature you need to remove the memory address for objects so the saved callstack files match.

image

Right now I'm using this workaround, is there any built-in feature?

        // Workaround: remove memory address for objects
        helper.callStack = helper.callStack.stream()
                .map { "$it".replaceAll(/@[a-z0-9]{7,8}/, '') }
                .collect(Collectors.toList())

jgsogo avatar Jun 01 '20 08:06 jgsogo

hi, @jgsogo I don't use "regression" feature, so i'm not sure how to help, however your workaround looks good to me. If you would like to submit a PR I'll be glad to merge it in.

stchar avatar Jul 10 '20 19:07 stchar