fix(core): return valid slot count from scan - #34
Open
ujjwalredd wants to merge 1 commit into
Open
Conversation
Signed-off-by: Ujjwal Reddy K S <ujjwalreddyks@gmail.com>
ujjwalredd
requested review from
hshanmug12,
maheshmunnangi and
srpatcha
as code owners
August 25, 2026 16:19
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.
Problem
eos_slot_scan_all()is documented to return the number of valid firmware slots but always returnedEOS_OK(zero). The existing slot-manager test reimplemented every public slot API inside the test executable, so it tested the fake implementation rather thancore/slot_manager.c. Release builds also disabled its standardassert()checks throughNDEBUG.Approach
No public signature or dependency changes are introduced.
Validation
test_slot_manager: 6/6 passed.test_slot_manager: 6/6 passed.git diff --check: passed.Additional considerations and limitations
The unmodified baseline full build already fails while linking
test_recoverybecauseeos_boot_log_append,eos_boot_log_get_head, andeos_boot_log_readare unresolved. The full Python suite also has one unrelated existing failure:run_all_tests.run_tests()raisesSystemExitwhile its test expects a return value. This PR does not hide or expand into either issue. Validation was host-based; no hardware flashing was performed.GitHub Actions created build, simulation, CodeQL, and assignment runs for this PR, but all are currently
action_requiredpending maintainer approval.