Skip to content

refs #12232/#7772 - added script to detect missing --errorlist entries and test coverage / added some missing --errorlist entries #7439

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

firewave
Copy link
Collaborator

@firewave firewave commented Apr 7, 2025

No description provided.

@firewave
Copy link
Collaborator Author

firewave commented Apr 7, 2025

Requires the error ID to be added to the expected output of all unit tests to be fully effective.

@firewave firewave force-pushed the errorid branch 6 times, most recently from b8cc289 to 1b83028 Compare April 13, 2025 19:10
@firewave firewave force-pushed the errorid branch 3 times, most recently from 59eb818 to 021b7ec Compare May 2, 2025 06:58
@firewave firewave force-pushed the errorid branch 3 times, most recently from ab2fe8c to c886e8e Compare May 16, 2025 19:42
@firewave firewave changed the title added script to detect missing --errorlist entries and test coverage refs #12232 - added script to detect missing --errorlist entries and test coverage May 16, 2025
@firewave firewave force-pushed the errorid branch 2 times, most recently from af122b0 to 791a104 Compare June 3, 2025 09:43
@firewave firewave changed the title refs #12232 - added script to detect missing --errorlist entries and test coverage refs #12232 - added script to detect missing --errorlist entries and test coverage / added some missing --errorlist entries Jun 3, 2025
@firewave firewave force-pushed the errorid branch 2 times, most recently from 079a40c to c0c70e1 Compare June 3, 2025 09:45
@firewave firewave changed the title refs #12232 - added script to detect missing --errorlist entries and test coverage / added some missing --errorlist entries refs #12232/#7772 - added script to detect missing --errorlist entries and test coverage / added some missing --errorlist entries Jun 3, 2025
@firewave firewave marked this pull request as ready for review June 3, 2025 09:49
@firewave
Copy link
Collaborator Author

firewave commented Jun 3, 2025

CC @amai2012

@@ -873,4 +874,5 @@ void CheckFunctions::getErrorMessages(ErrorLogger *errorLogger, const Settings *
c.missingReturnError(nullptr);
c.copyElisionError(nullptr);
c.useStandardLibraryError(nullptr, "memcpy");
// TODO: allocaCalled, <funcname>Called
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm instead of <funcname>Called I feel it is better to use the same id and then provide the funcname in the symbol instead. But that is something we can tweak in another PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree.


#set -x

SCRIPT_DIR="$(dirname "$(realpath "$0")")"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Imho it would be easier to maintain a python script than a bash script.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but I started out with these shell commands and I didn't feel like try to replicate it in Python for now. It is also sufficient until we want to integrate it into the CI.

@@ -0,0 +1,31 @@
#!/bin/bash
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the filename is pretty generic so it's not easy to understand exactly what it does. And there is no comment that explains it neither. can it be clarified..

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. Will adjust the name and document it in the related markdown file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants