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

fix: job queue's allocated slots should be correct after restarts #9461

Merged
merged 3 commits into from
Jun 1, 2024

Conversation

stoksc
Copy link
Contributor

@stoksc stoksc commented May 31, 2024

Description

What it says on the tin.

..but I also renamed Schedule to Admit because it's not scheduling, just deciding to admit tasks to Kubernetes to be scheduled (and from that, reschedule is now tryAdmitPendingTasks). My test had a call to schedule followed by an assertion that the job queue's state said we were queued. The name couldn't stand any longer lol.

Test Plan

Has automated testing.

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.

@stoksc stoksc requested a review from kkunapuli May 31, 2024 21:12
@stoksc stoksc requested a review from a team as a code owner May 31, 2024 21:12
@cla-bot cla-bot bot added the cla-signed label May 31, 2024
Copy link

netlify bot commented May 31, 2024

Deploy Preview for determined-ui canceled.

Name Link
🔨 Latest commit 871f2b2
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/665a77f79dc706000852173a

Copy link

codecov bot commented May 31, 2024

Codecov Report

Attention: Patch coverage is 77.27273% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 49.03%. Comparing base (0fdb822) to head (871f2b2).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9461      +/-   ##
==========================================
+ Coverage   49.00%   49.03%   +0.03%     
==========================================
  Files        1233     1233              
  Lines      159389   159392       +3     
  Branches     2778     2778              
==========================================
+ Hits        78102    78158      +56     
+ Misses      81113    81060      -53     
  Partials      174      174              
Flag Coverage Δ
backend 43.63% <77.27%> (+0.10%) ⬆️
harness 64.04% <ø> (ø)
web 44.29% <ø> (ø)

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

Files Coverage Δ
...nal/rm/kubernetesrm/kubernetes_resource_manager.go 28.29% <0.00%> (ø)
master/internal/rm/kubernetesrm/resource_pool.go 72.53% <80.95%> (+7.26%) ⬆️

... and 6 files with indirect coverage changes

Copy link
Contributor

@kkunapuli kkunapuli left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -766,6 +766,115 @@ func TestReattach(t *testing.T) {
}
}

func TestJobQueueReattach(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice!

@stoksc stoksc merged commit 57bece4 into main Jun 1, 2024
84 of 97 checks passed
@stoksc stoksc deleted the stoksc/fix/jobqslots branch June 1, 2024 02:23
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.

2 participants