Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add resource_pools intg test #9356

Merged
merged 9 commits into from
May 20, 2024
Merged

Conversation

carolinaecalderon
Copy link
Contributor

@carolinaecalderon carolinaecalderon commented May 13, 2024

Ticket

RM-201

Description

Add intg tests for resource_pool.go
Leave a couple things as TODO for Bradley's refactor PR.

Test Plan

See attached test.

Checklist

  • Changes have been manually QA'd
  • User-facing API changes need the "User-facing API Change" label.
  • Release notes should be added as a separate file under docs/release-notes/.
    See Release Note for details.
  • Licenses should be included for new code which was copied and/or modified from any external code.

@cla-bot cla-bot bot added the cla-signed label May 13, 2024
Copy link

netlify bot commented May 13, 2024

Deploy Preview for determined-ui canceled.

Name Link
🔨 Latest commit fd908d3
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/6644f4040dd5ff0008729ecd

Copy link

codecov bot commented May 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.23%. Comparing base (16a3f3b) to head (fd908d3).
Report is 12 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9356      +/-   ##
==========================================
+ Coverage   45.14%   45.23%   +0.08%     
==========================================
  Files        1230     1230              
  Lines      154567   154567              
  Branches     2404     2405       +1     
==========================================
+ Hits        69783    69912     +129     
+ Misses      84589    84460     -129     
  Partials      195      195              
Flag Coverage Δ
backend 42.01% <ø> (+0.25%) ⬆️
harness 64.07% <ø> (ø)
web 36.06% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 5 files with indirect coverage changes

@carolinaecalderon carolinaecalderon marked this pull request as ready for review May 13, 2024 16:16
@carolinaecalderon carolinaecalderon requested a review from a team as a code owner May 13, 2024 16:16
@carolinaecalderon carolinaecalderon changed the base branch from main to carolinac/revert-rm-201 May 13, 2024 16:37
Base automatically changed from carolinac/revert-rm-201 to main May 13, 2024 16:58
@carolinaecalderon carolinaecalderon changed the title chore: fix race condition in resource pools intg test chore: add resource_pools intg test May 13, 2024
rp.Schedule()

require.False(t, rp.reschedule)
go require.True(t, rp.reqList.IsScheduled(allocID))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this one a goroutine and not the others? (I apologize, I'm not familiar with this part of the code. I dug into it a bit, but couldn't find anything.)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think @carolinaecalderon was trying to fix the race condition. This (surprisingly) tricks the race detector but, of course, doesn't fix it. I think she's working on something else.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, outdated -- I removed the test that was flaky in CI. I created a new ticket (https://hpe-aiatscale.atlassian.net/browse/RM-291) where I'll address this later.

Copy link
Member

@dannysauer dannysauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@carolinaecalderon carolinaecalderon merged commit 893f7f5 into main May 20, 2024
84 of 97 checks passed
@carolinaecalderon carolinaecalderon deleted the carolinac/rm-201 branch May 20, 2024 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants