[TENT] Reject malformed numeric metrics environment overrides - #3228
Merged
alogfans merged 1 commit intoAug 3, 2026
Merged
Conversation
Hubert-Zhu
requested review from
00fish0,
alogfans,
chestnut-Q,
doujiang24,
dtcccc and
staryxchen
as code owners
August 1, 2026 20:40
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intro
Description
TENT numeric metrics environment overrides currently accept partial parses such as
8080junk,2x, and30sbecausestd::stoiis used without checking whether the complete input was consumed. This can silently turn malformed configuration into a valid but unintended value.This change:
No matching open issue or pull request was found.
Module
mooncake-transfer-engine)mooncake-store)mooncake-ep)mooncake-pg)mooncake-integration)mooncake-p2p-store)mooncake-wheel)mooncake-common)mooncake-rl)Type of Change
How Has This Been Tested?
Test commands:
The production config sources were also compiled on macOS with Apple Clang using
-Wall -Wextra -Werror, then exercised with partially parsed port, thread-count, and report-interval inputs.Test results:
The repository TENT unit target requires the Linux dependency stack and was not run locally.
Checklist
./scripts/code_format.shpre-commit run --all-filesand all hooks passAI Assistance Disclosure
OpenAI Codex helped identify the parsing edge cases, implement the focused fix, and add regression tests. The human submitter has reviewed the scope and is responsible for understanding and defending every changed line.