action icon indicating copy to clipboard operation
action copied to clipboard

Release 2.3: Cannot read properties of undefined (reading 'message')

Open rschmidt-webit opened this issue 1 year ago • 1 comments

Hey,

Using the new Release creates a error message, when the tests fails: Cannot read properties of undefined (reading 'message')

Using 2.2 works as expected.

Bye :)

rschmidt-webit avatar Feb 26 '24 16:02 rschmidt-webit

Getting the same issue. Seems to be caused by this change: https://github.com/test-summary/action/pull/40 @gstokkink would you be able to take a look?

andreyfel avatar Feb 27 '24 10:02 andreyfel

Is there any update to this, please?

@gstokkink I wonder if your PR (https://github.com/test-summary/action/pull/40) requires a specific requirements in the xml files - which not all will have.

cc @ethomson as they approved the PR (https://github.com/test-summary/action/pull/40).

thomaschaplin avatar Apr 09 '24 08:04 thomaschaplin

Seeing this as well. Sample Junit file is generated by https://storybook.js.org/ with the --junit option junit_fail_scrubbed.xml

austinpray-mixpanel avatar Apr 24 '24 01:04 austinpray-mixpanel

Thanks for adding a repro case @austinpray-mixpanel - I'll take a look. I think this should be unrelated to #40 ? But I'm not sure yet, I'll dig in.

ethomson avatar Apr 24 '24 07:04 ethomson

Hello @ethomson is there any update on this issue? I've just updated my project from version 2.1 to 2.3 and started to get the same error

JanMa avatar Jun 25 '24 20:06 JanMa

@JanMa - apologies, looking now. 👀

Unrelated - I notice that you're pinning your actions to SHAs. (Which is a good practice.) Curious if you're doing this manually or using a tool to help?

ethomson avatar Jun 26 '24 10:06 ethomson

Thanks for the quick fix @ethomson, I really appreciate it :slightly_smiling_face: We're using Dependabot to get updates for our GitHub Actions and it uses the SHA to pin them

JanMa avatar Jun 26 '24 10:06 JanMa

@JanMa Good to know. I just published v2.4, let me know if this doesn't resolve the issue!

ethomson avatar Jun 26 '24 11:06 ethomson