-
Notifications
You must be signed in to change notification settings - Fork 286
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
maint: fix and cleanup maint/extracterrmsgs #5819
Conversation
test:mpich/ch3/most
|
test:mpich/custom |
test:mpich/ch3/most nearly all ✔️ , just 1 unreleated io failure on ch3-tcp-centos32 |
test:mpich/ch3/most |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK. One minor nitpick in comment.
maint/extracterrmsgs
Outdated
$generic_loc{"UNKNOWN"} = ":[NONE]"; | ||
$longnames{"UNKNOWN"} = "Unknown error class"; | ||
# add a dummy UNKNOWN entry in the front. | ||
# NOTE: assume all other generic message are loower cases so "UNKNOWN" will |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/loower cases/lowercase
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx. Fixed.
We have been manually setting MPI error class index in src/mpi/errhan/baseerrnames.txt, and it has been out-of-sync with the values defined in mpi.h. This commit does following: * Remove the index from baseerrnames.txt and directly load the defined value from mpi.h instead. * Add UNKNOWN entry to map the missing entries in baseerrnames.txt. * When autogen.sh fails to extract error messages, do not generate dummy defmsg.h, fail instead. The dummy header will break the error class message translation anyway.
Add some indentation to the generated src/mpi/errhan/defmsg.h.
Re-initializing %KnownErrRoutines for every line of the source code is waste of time. Just load once can make the script run much faster -- from 3 seconds to a fraction of a second.
Use strict prevents misuse of global variables in Perl scripts.
Pull Request Description
We have been manually setting MPI error class index in
src/mpi/errhan/baseerrnames.txt, and it has been out-of-sync with the
values defined in mpi.h. This commit does the following:
value from mpi.h instead.
UNKNOWN
entry to map the missing entries in baseerrnames.txt.defmsg.h, fail instead. The dummy header will break the error class
message translation anyway.
defmsg.h
TODO
use strict
to the scriptAuthor Checklist
Particularly focus on why, not what. Reference background, issues, test failures, xfail entries, etc.
Commits are self-contained and do not do two things at once.
Commit message is of the form:
module: short description
Commit message explains what's in the commit.
Whitespace checker. Warnings test. Additional tests via comments.
For non-Argonne authors, check contribution agreement.
If necessary, request an explicit comment from your companies PR approval manager.