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

Added test file for cmd/armadactl/cmd/cancel_test.go #2418

Closed
wants to merge 9 commits into from
Closed

Added test file for cmd/armadactl/cmd/cancel_test.go #2418

wants to merge 9 commits into from

Conversation

biswajit-9776
Copy link
Contributor

@biswajit-9776 biswajit-9776 commented May 2, 2023

Fixes #
Issue #2167

Special notes for your reviewer:

┆Issue is synchronized with this Jira Task by Unito

@codecov
Copy link

codecov bot commented May 2, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.03 🎉

Comparison is base (04c6673) 58.56% compared to head (90ba04a) 58.60%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2418      +/-   ##
==========================================
+ Coverage   58.56%   58.60%   +0.03%     
==========================================
  Files         231      231              
  Lines       28813    28813              
==========================================
+ Hits        16875    16886      +11     
+ Misses      10636    10624      -12     
- Partials     1302     1303       +1     
Flag Coverage Δ
armada-server 58.60% <ø> (+0.03%) ⬆️

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

see 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@kannon92 kannon92 left a comment

Choose a reason for hiding this comment

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

Thank you for your PR. Can you get the lint issues fixed and then I’ll review?

biswajit-9776 and others added 8 commits May 3, 2023 19:23
Updated the armada/cmd/armadactl/cmd/cancel_test.go, fixing lint issues.
Updated cancel_test.go file added as test file for armada/cmd/armadactl/cmd/cancel.go, fixing lint issues.
Fixed lint issues in armada/cmd/armadactl/cmd/cancel_test.go
* Make fake executor support cancellation

We now track which pods are allocated to each node, so we can deallocate them correctly on cancellation

Previously cancelled pods would just remain allocated forever and block all capacity on the cluster

* Formatting
Copy link
Contributor

@kannon92 kannon92 left a comment

Choose a reason for hiding this comment

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

Can you make sure your PR only has your additions?

@biswajit-9776
Copy link
Contributor Author

I apologise for the inconvenience. The other account is not mine so I won't be able to remove its commits from this PR. Is it okay if I create another PR for this test file and close this one?

@kannon92
Copy link
Contributor

kannon92 commented May 5, 2023

Yea feel free to close and reopen. It’s no big deal

@biswajit-9776 biswajit-9776 deleted the cancel_test branch May 5, 2023 13:03
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.

None yet

4 participants