Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
corecfg: handle unknown keys that are explicitly set #3746
Conversation
zyga
requested a review
from
mvo5
Aug 16, 2017
codecov-io
commented
Aug 16, 2017
•
Codecov Report
@@ Coverage Diff @@
## master #3746 +/- ##
==========================================
+ Coverage 75.72% 75.84% +0.11%
==========================================
Files 398 399 +1
Lines 34235 34530 +295
==========================================
+ Hits 25926 26190 +264
- Misses 6459 6477 +18
- Partials 1850 1863 +13
Continue to review full report at Codecov.
|
|
Thanks for the PR! I looked into this some more and I think we want a slightly different semantic here. The idea behind "allConfig" is really "supportedConfigOptions", i.e. it contains the map of the things updateKeyValueStream understands. I think we want to error if "newConfig" contains things that are not n "allConfig". I prepare a branch for this now (with some better tests) and will also rename "allConfig" into "supportedConfigKeys". |
zyga commentedAug 16, 2017
When updateKeyValueStream is processing a stream with a key that is not
known but is explicitly listed in new configuration it would needlessly
indicate that the file needs writing.
The test that was checking this was flaky because the writes happened
so quickly we were never given a chance to observe the failure
(usually). Running the test repeatedly on my SSD makes it fail very
frequently tough.
Signed-off-by: Zygmunt Krynicki zygmunt.krynicki@canonical.com