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: partially scheduled k8s jobs should display as queued #9468

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

stoksc
Copy link
Contributor

@stoksc stoksc commented Jun 4, 2024

Ticket

RM-323

Description

Fixes an issue where we didn't wait for all pod states to make a call about the state of a job.

Test Plan

Has an automated 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.

@stoksc stoksc requested a review from a team as a code owner June 4, 2024 17:49
@cla-bot cla-bot bot added the cla-signed label Jun 4, 2024
@stoksc stoksc requested a review from kkunapuli June 4, 2024 17:49
Copy link

netlify bot commented Jun 4, 2024

Deploy Preview for determined-ui ready!

Name Link
🔨 Latest commit bd1eb76
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/666b38152c8d9600080f324e
😎 Deploy Preview https://deploy-preview-9468--determined-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Jun 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.28%. Comparing base (32585ad) to head (bd1eb76).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9468   +/-   ##
=======================================
  Coverage   49.28%   49.28%           
=======================================
  Files        1242     1242           
  Lines      161441   161442    +1     
  Branches     2868     2868           
=======================================
+ Hits        79564    79567    +3     
+ Misses      81705    81703    -2     
  Partials      172      172           
Flag Coverage Δ
backend 43.89% <100.00%> (+<0.01%) ⬆️
harness 63.81% <ø> (ø)
web 44.87% <ø> (ø)

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

Files Coverage Δ
master/internal/rm/kubernetesrm/job.go 82.51% <100.00%> (+0.32%) ⬆️

... and 1 file with indirect coverage changes

@stoksc stoksc changed the title fix: partially scheduled k8s jobs show as queued fix: partially scheduled k8s jobs should display as queued Jun 4, 2024
t.Error("state went to PULLING or beyond when all pods could not have been scheduled")
t.FailNow()
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: What do you think about adding a couple comments describing what the test is doing / what its goal is? I'm having a hard time following what's setup and what's validation.

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!

@NicholasBlaskey NicholasBlaskey merged commit 9adc092 into main Jun 13, 2024
90 of 101 checks passed
@NicholasBlaskey NicholasBlaskey deleted the stoksc/fix/jobqslots branch June 13, 2024 20:02
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.

3 participants