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

Remove init variable in Reclaimable and Preemptable parts of session_plugins #3551

Merged

Conversation

PigNatovsky
Copy link
Contributor

Hello,

it's a really small - so called - refactor. I've just changed values of init variable which shows if this is the first iteration of Reclaimable/Preemptable. In my opinion this if:

if init {
    victims = candidates
    init = false
}

is more readable than:

if !init {
    victims = candidates
    init = true
}

It's like a double negation.

@volcano-sh-bot volcano-sh-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 27, 2024
@PigNatovsky
Copy link
Contributor Author

/assign @lowang-bh

@PigNatovsky PigNatovsky changed the title Changed init value of init variable in Reclaimable and Preemptable parts of Changed init value of init variable in Reclaimable and Preemptable parts of session_plugins Jun 27, 2024
@lowang-bh
Copy link
Member

How about use inited instead of init?

@PigNatovsky
Copy link
Contributor Author

@lowang-bh @googs1025
I've pushed new commit with changes suggested by @googs1025 - as a reader I can say that it's pretty readable and I can understand a code flow.

@PigNatovsky PigNatovsky changed the title Changed init value of init variable in Reclaimable and Preemptable parts of session_plugins Remove init variable in Reclaimable and Preemptable parts of session_plugins Jun 30, 2024
@PigNatovsky
Copy link
Contributor Author

PigNatovsky commented Jul 1, 2024

Hello Guys,

Could You comment? If changes are too small and unimportant, just let me know, I will close this.

And thank You for the previous reaponses!

@googs1025
Copy link
Member

/assign @Monokaix
hi @Monokaix Maybe you can take a look and suggest an edit!

@Monokaix
Copy link
Member

Monokaix commented Jul 1, 2024

/assign @Monokaix hi @Monokaix Maybe you can take a look and suggest an edit!

I think it's ok: )

@Monokaix
Copy link
Member

Monokaix commented Jul 1, 2024

/lgtm

@volcano-sh-bot volcano-sh-bot added the lgtm Indicates that a PR is ready to be merged. label Jul 1, 2024
@PigNatovsky
Copy link
Contributor Author

Thank You @Monokaix . And sorry for stupid question, but what should I do next?

@googs1025
Copy link
Member

Thank You @Monokaix . And sorry for stupid question, but what should I do next?

Just wait for other approver to be reviewed and merged. 👍

@volcano-sh-bot volcano-sh-bot removed the lgtm Indicates that a PR is ready to be merged. label Jul 14, 2024
@PigNatovsky
Copy link
Contributor Author

@hudson741 @k82cn @googs1025
Is there a chance to get review/something with this small change, or should I abandon it and close?

@Monokaix
Copy link
Member

Monokaix commented Sep 2, 2024

Please rebase and squash to one commit: )

@volcano-sh-bot volcano-sh-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Oct 2, 2024
@PigNatovsky
Copy link
Contributor Author

PigNatovsky commented Oct 2, 2024

/assign @Monokaix

@Monokaix
Copy link
Member

Monokaix commented Oct 9, 2024

/assign @Monokaix

You can just keep your own commit and remove Merge Branch xxx to kepp a clean commit: )

…on_plugin.

Signed-off-by: Piotr Ignatowski <piotr.ignatowski@ing.com>
@PigNatovsky
Copy link
Contributor Author

Sorry, I was using a button in the PR UI to merge master branch, it's not the best idea. But now branch is rebased from master, my commit is on the tip.

@Monokaix
Copy link
Member

/lgtm
/approve

@volcano-sh-bot volcano-sh-bot added the lgtm Indicates that a PR is ready to be merged. label Oct 10, 2024
@volcano-sh-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Monokaix

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@volcano-sh-bot volcano-sh-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 10, 2024
@Monokaix
Copy link
Member

/ok-to-test

@volcano-sh-bot volcano-sh-bot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Oct 10, 2024
@volcano-sh-bot volcano-sh-bot merged commit 21bb2da into volcano-sh:master Oct 10, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants