Skip to content

fix(tests): update gap-ratio asserts after allocation-op refactor - #44

Open
teddytennant wants to merge 1 commit into
rlops:mainfrom
teddytennant:fix/rlix
Open

fix(tests): update gap-ratio asserts after allocation-op refactor#44
teddytennant wants to merge 1 commit into
rlops:mainfrom
teddytennant:fix/rlix

Conversation

@teddytennant

Copy link
Copy Markdown

978b84d replaced gpus_to_allocate / dp_ranks_to_add on SchedGuidedAllocationOp with dp_rank_to_gpus_to_add. Two tests added later in 0d5fd0a still read the old fields, so they crash with AttributeError on main.

Updated those asserts to the same mapping used by the other gap-ratio tests.

python3 -m pytest tests/ -q
# before: 2 failed, 47 passed, 1 skipped
# after:  49 passed, 1 skipped

SchedGuidedAllocationOp dropped gpus_to_allocate / dp_ranks_to_add in
978b84d, but two tests added later in 0d5fd0a still read those fields
and crash with AttributeError on main.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant