prysm-pulse/shared
Mohamed Mansour 47c28e6cd6
Show error in logs if passing invalid flags in yaml (#9033)
* Show error in logs if passing invalid flags in yaml

The YAML configs pass if an invalid flag is set, this causes frustration
because the flag could have been mispelled causing a huge mystery.

This will strictly check if the flags are deserialized, if a flag
doesn't exist, it will error out as a Fatal error with appropriate
reasoning which flag is wrong.

* Fix review comments to make some of them non-fatal

* Make yaml.TypeError a pointer

* Remove UnmarshalStrict from spectests since they use a different YAML package

Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-08-01 03:26:24 +00:00
..
abool Bazel: minimal test build transitions (#9122) 2021-06-30 19:22:09 +00:00
aggregation Fix duplicated imports (#9304) 2021-07-29 16:45:17 -05:00
asyncutil Bazel: minimal test build transitions (#9122) 2021-06-30 19:22:09 +00:00
attestationutil Move v1alpha1 into Prysm API namespace (#9245) 2021-07-21 21:34:07 +00:00
backuputil Adding ability to override directory permissions for db backup (#8888) 2021-06-18 01:37:58 +00:00
benchutil Fix duplicated imports (#9304) 2021-07-29 16:45:17 -05:00
blockutil Eliminate Proto V2 Namespace (#9297) 2021-07-28 21:23:44 +00:00
bls Cleanup Fast Aggregate Verify (#9193) 2021-07-14 11:12:50 +00:00
bytesutil Bazel: minimal test build transitions (#9122) 2021-06-30 19:22:09 +00:00
clientstats Move v1alpha1 into Prysm API namespace (#9245) 2021-07-21 21:34:07 +00:00
cmd Fix Spaced Arguments for Subcommands (#9292) 2021-07-28 14:36:48 +00:00
copyutil Fix duplicated imports (#9304) 2021-07-29 16:45:17 -05:00
debug Fixes incorrect usages of gazelle:ignore (#8562) 2021-03-08 18:09:39 +00:00
depositutil Fix duplicated imports (#9304) 2021-07-29 16:45:17 -05:00
event Bazel: minimal test build transitions (#9122) 2021-06-30 19:22:09 +00:00
featureconfig remove flag (#9290) 2021-07-28 16:11:22 +08:00
fileutil Bazel: minimal test build transitions (#9122) 2021-06-30 19:22:09 +00:00
gateway Properly broadcast attestations (#9301) 2021-07-29 18:33:18 +02:00
grpcutils Bazel: minimal test build transitions (#9122) 2021-06-30 19:22:09 +00:00
hashutil Move v1alpha1 into Prysm API namespace (#9245) 2021-07-21 21:34:07 +00:00
htrutils Eliminate Proto V2 Namespace (#9297) 2021-07-28 21:23:44 +00:00
httputils Bazel: minimal test build transitions (#9122) 2021-06-30 19:22:09 +00:00
interop Fix duplicated imports (#9304) 2021-07-29 16:45:17 -05:00
iputils Bazel: minimal test build transitions (#9122) 2021-06-30 19:22:09 +00:00
journald Add space at the start of comments (#8202) 2021-01-05 13:09:41 +00:00
keystore Bazel: minimal test build transitions (#9122) 2021-06-30 19:22:09 +00:00
logutil Bazel: minimal test build transitions (#9122) 2021-06-30 19:22:09 +00:00
mathutil Bazel: minimal test build transitions (#9122) 2021-06-30 19:22:09 +00:00
maxprocs automaxprocs: Log error to DEBUG instead of panic (#6592) 2020-07-14 01:51:07 +00:00
mclockutil libfuzz based tests (#5095) 2020-05-05 07:22:26 +00:00
messagehandler Bazel: minimal test build transitions (#9122) 2021-06-30 19:22:09 +00:00
mock Eliminate Proto V2 Namespace (#9297) 2021-07-28 21:23:44 +00:00
mputil Bazel: minimal test build transitions (#9122) 2021-06-30 19:22:09 +00:00
p2putils Eliminate Proto V2 Namespace (#9297) 2021-07-28 21:23:44 +00:00
pagination Bazel: minimal test build transitions (#9122) 2021-06-30 19:22:09 +00:00
params Show error in logs if passing invalid flags in yaml (#9033) 2021-08-01 03:26:24 +00:00
petnames Accounts V2: Derived Keymanager Sign (#6667) 2020-07-21 21:15:47 +00:00
prereq Bazel: minimal test build transitions (#9122) 2021-06-30 19:22:09 +00:00
progressutil Add Back New Attester Protection DB Logic (#8242) 2021-01-11 23:59:17 +00:00
prometheus Bazel: minimal test build transitions (#9122) 2021-06-30 19:22:09 +00:00
promptutil Bazel: minimal test build transitions (#9122) 2021-06-30 19:22:09 +00:00
queue shared/queue: Add RetrieveByKey method (#9195) 2021-07-15 10:31:19 -05:00
rand Bazel: minimal test build transitions (#9122) 2021-06-30 19:22:09 +00:00
runutil Bazel: minimal test build transitions (#9122) 2021-06-30 19:22:09 +00:00
slashutil Move v1alpha1 into Prysm API namespace (#9245) 2021-07-21 21:34:07 +00:00
sliceutil Bazel: minimal test build transitions (#9122) 2021-06-30 19:22:09 +00:00
slotutil Bazel: minimal test build transitions (#9122) 2021-06-30 19:22:09 +00:00
sszutil Eliminate Proto V2 Namespace (#9297) 2021-07-28 21:23:44 +00:00
testutil Fix duplicated imports (#9304) 2021-07-29 16:45:17 -05:00
timeutils Replace Roughtime With Timeutils Across Prysm (#7301) 2020-09-22 19:49:58 +08:00
tos Bazel: minimal test build transitions (#9122) 2021-06-30 19:22:09 +00:00
traceutil libfuzz based tests (#5095) 2020-05-05 07:22:26 +00:00
tracing Rename getter functions to be idiomatic (#8320) 2021-01-25 21:27:30 +00:00
trieutil Eliminate Proto V2 Namespace (#9297) 2021-07-28 21:23:44 +00:00
version Clean up shared interface package (#9172) 2021-07-13 18:58:43 +00:00
BUILD.bazel Bazel: minimal test build transitions (#9122) 2021-06-30 19:22:09 +00:00
service_registry_test.go Apply testutils assertions: final cleanup (#7003) 2020-08-25 15:23:06 +00:00
service_registry.go Fix comments (#8802) 2021-04-23 12:06:05 +00:00