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 BeforeSelectWorker #8136

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

evanchaoli
Copy link
Contributor

@evanchaoli evanchaoli commented Mar 2, 2022

Changes proposed by this PR

This is a small refactor.

BeforeSelectWorker() was added purely for having a place to call OnCheckBuildStart(). But ended up that OnCheckBuildStart() is called in two places. Now, I think it would be better to explicitly call OnCheckBuildStart() in check step rather than wrapping it in BeforeSelectWorker(), so that BeforeSelectWorker() is no longer needed. Removing it helps reducing code complexity.

  • Code change
  • Update tests
  • Cleanup dirty code

Notes to reviewer

This is a dirty change yet, I haven't run any test. I'm quickly creating this PR to prevent me from forgetting the idea.

Release Note

@evanchaoli evanchaoli requested a review from a team as a code owner March 2, 2022 21:52
@evanchaoli evanchaoli added the misc label Mar 2, 2022
Signed-off-by: Evan <chaol@vmware.com>
@evanchaoli evanchaoli changed the title WIP: Remove BeforeSelectWorker Remove BeforeSelectWorker Mar 7, 2022
Signed-off-by: Evan <chaol@vmware.com>
@xtremerui xtremerui added this to the v7.8.0 milestone Mar 8, 2022
@clarafu clarafu removed this from the v7.8.0 milestone Mar 31, 2022
@clarafu clarafu removed their assignment May 12, 2022
@navdeep-pama navdeep-pama added this to the v7.9.0 milestone May 31, 2022
@evanchaoli evanchaoli removed this from the v7.9.0 milestone Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants