Repository navigation
Conversation
On hosts with constrained free RAM (freeMB < 3072), chooseProfile clamps memoryMB to 2048. As a result, variant 3 (software fallback) and variant 4 (conservative cold boot with lastResort=true and cores=2) shared the exact same key in auto-test, causing assertion failure. Include cores and lastResort in uniqueness keys.
6 tasks done
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.
Description (说明)
test/auto-test.jswhereplanVariantsschemes were falsely detected as duplicates on hosts with constrained free RAM (< 3GB). On such machines,memoryMBis clamped to 2048, causing both Variant 3 (software fallback) and Variant 4 (last-resort cold boot with 2 cores) to evaluate to identical keys becausecoresandlastResortwere omitted from the test assertion key.test/auto-test.js中小内存/低空闲内存机型(freeMB < 3072)下,重试矩阵判重失败的问题。此类机器上chooseProfile会将memoryMB收敛至 2048,导致方案 3(软件模拟)与方案 4(2 核保底冷启动)在测试断言中生成的键完全一致。将cores与lastResort纳入 keys 后,所有机型配置均能正常通过。Tests passed (测试结果)
npm test-> 100% Passed (141/141 passed inauto-test.js).