-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
JUnit output format fails: invalid memory address #1306
Comments
Hi there, and thanks for reporting this issue. The JUnit format is a recent contribution, and I guess not as well-tested as the others. But that's no excuse! And that's a nil dereference alright regal/pkg/reporter/reporter.go Line 525 in 7f8e54d
While I wasn't able to directly reproduce it here, what seems to happen is that you have a violation that doesn't have a corresponding text attribute, and we're trying to print something that doesn't exist. Fixing. |
PR is up and the fix will be included in the next release. Might be that's after the holidays though, so if you want, you can download a binary with the fix from the PR build. You'll find the artifacts in the bottom of this page https://github.com/StyraInc/regal/actions/runs/12400026924 (There's no Windows build there though, for reasons I don't remember 😅 so if that's your platform, you'll have to |
Thanks a lot @anderseknert for the fast response, seems to work fine with the new build! 😄 |
Awesome! May I ask what you’re using the JUnit output for? I think the contributor of that format mentioned GitLab support, but I could be wrong. Mostly just curious to learn which tools people use together with Regal, and how 🙂 |
We use the JUnit output in the Azure pipelines, along with the PublishTestResults@2 task to publish them to an overview within Azure DevOps. |
Thanks! 👍 |
Fixes StyraInc#1306 Thanks @OhMyGuus for reporting the issue! (Unrelated to the issue, but I'm also reverting the URL change of that integration test we changed recently... as the URL in OPA is now back to what it was before :) Signed-off-by: Anders Eknert <anders@styra.com>
Hey, I'm trying to use the JUnit output, but for some reason, it fails with a memory error.
Tried other formats and those are working fine.
command used:
regal lint --format junit ./policies/claims
The text was updated successfully, but these errors were encountered: