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

Add CONTRIBUTING.md to sig scheduling #7292

Merged

Conversation

kerthcet
Copy link
Member

Which issue(s) this PR fixes:

Fixes #7228

Signed-off-by: kerthcet <kerthcet@gmail.com>
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 12, 2023
@kerthcet
Copy link
Member Author

/sig scheduling

@k8s-ci-robot k8s-ci-robot added sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 12, 2023
@kerthcet
Copy link
Member Author

/hold
still need some input.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 12, 2023
sig-scheduling/CONTRIBUTING.md Outdated Show resolved Hide resolved
sig-scheduling/CONTRIBUTING.md Outdated Show resolved Hide resolved
sig-scheduling/CONTRIBUTING.md Outdated Show resolved Hide resolved
sig-scheduling/CONTRIBUTING.md Outdated Show resolved Hide resolved
sig-scheduling/CONTRIBUTING.md Outdated Show resolved Hide resolved
sig-scheduling/CONTRIBUTING.md Outdated Show resolved Hide resolved
sig-scheduling/CONTRIBUTING.md Outdated Show resolved Hide resolved
sig-scheduling/CONTRIBUTING.md Outdated Show resolved Hide resolved
sig-scheduling/CONTRIBUTING.md Show resolved Hide resolved
sig-scheduling/CONTRIBUTING.md Outdated Show resolved Hide resolved
@kerthcet
Copy link
Member Author

Should we mention that each PR(exclude a simple one) should be reviewed by two approvers?

@sanposhiho
Copy link
Member

/assign

Copy link
Member

@sanposhiho sanposhiho left a comment

Choose a reason for hiding this comment

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

Thanks @kerthcet for having a draft!

I feel we need to cover the common technical mistakes/review comments. Like:

  • Unless the change is minor, new changes probably need to have UT.
  • Check/share a scheduler_perf result if the change may introduce degradation in a specific path.
  • use cmp.Diff instead of reflect.Equal.
  • framework.NewStatus(framework.Success) can be just replaced by nil.
  • Use PodWrapper to build Pod in tests.
  • how to decide log level.
    • I'm also not sure about it to be honest. If there is a good doc from sig-instrumentation, then it's probably enough to just have a link for it.

* [first-good-issue](https://github.com/kubernetes/kubernetes/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22+label%3Asig%2Fscheduling+)
* [help wanted](https://github.com/kubernetes/kubernetes/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22+label%3Asig%2Fscheduling+)

* If you want to understand the architectural details of scheduler, you can refer to the [design docs](https://github.com/kubernetes/community/tree/master/contributors/devel/sig-scheduling)
Copy link
Member

Choose a reason for hiding this comment

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

Actually, there are pretty old docs only.
Instead of (or in addition to) them, I'd prefer to have a link for some official doc explaining the scheduler like:
https://kubernetes.io/docs/concepts/scheduling-eviction/scheduling-framework/

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually, there are pretty old docs only.

We should update them.

I will mention the scheduling-eviction as well. Thanks.

sig-scheduling/CONTRIBUTING.md Outdated Show resolved Hide resolved
sig-scheduling/CONTRIBUTING.md Outdated Show resolved Hide resolved
@kerthcet
Copy link
Member Author

I feel we need to cover the common technical mistakes/review comments.

Seems some small tips, we can have a bunch of that suggestions, maybe a new place? Glad to hear other's advices.

how to decide log level.

You can refer to https://github.com/kubernetes/community/blob/master/contributors/devel/sig-instrumentation/logging.md#logging-conventions from some guidances.

@kerthcet
Copy link
Member Author

cc @kubernetes/sig-scheduling-misc

Signed-off-by: kerthcet <kerthcet@gmail.com>
@sanposhiho
Copy link
Member

Yep, having them on somewhere new also sounds good.

@alculquicondor
Copy link
Member

Should we mention that each PR(exclude a simple one) should be reviewed by two approvers?

It's rather the opposite. Most PRs require only one approver. Bigger PRs, or PRs that touch critical pieces (the framework, event handlers) might benefit from more than one approver, but not necessarily. In general, the approver would judge whether they want to involve another approver.

@alculquicondor
Copy link
Member

I feel we need to cover the common technical mistakes/review comments

It can be added as a follow up with a separate section :)

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 15, 2023
sig-scheduling/CONTRIBUTING.md Outdated Show resolved Hide resolved
sig-scheduling/CONTRIBUTING.md Outdated Show resolved Hide resolved
sig-scheduling/CONTRIBUTING.md Outdated Show resolved Hide resolved
sig-scheduling/CONTRIBUTING.md Outdated Show resolved Hide resolved
sig-scheduling/CONTRIBUTING.md Outdated Show resolved Hide resolved
sig-scheduling/CONTRIBUTING.md Outdated Show resolved Hide resolved
sig-scheduling/CONTRIBUTING.md Outdated Show resolved Hide resolved
sig-scheduling/CONTRIBUTING.md Outdated Show resolved Hide resolved
@Huang-Wei
Copy link
Member

Huang-Wei commented May 15, 2023

I feel we need to cover the common technical mistakes/review comments.

+1 it's an important area to cover. But it's best to be constructed as separate doc(s) in contributors/devel/sig-scheduling, and linked back here.

@kerthcet
Copy link
Member Author

Tracked here #7296.

Signed-off-by: kerthcet <kerthcet@gmail.com>
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 16, 2023
@kerthcet
Copy link
Member Author

Updated. PTAL.

Copy link
Member

@alculquicondor alculquicondor left a comment

Choose a reason for hiding this comment

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

/lgtm
/label tide/merge-method-squash

@k8s-ci-robot k8s-ci-robot added tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. lgtm "Looks good to me", indicates that a PR is ready to be merged. labels May 16, 2023
@alculquicondor
Copy link
Member

Leaving the approval to others

@kerthcet
Copy link
Member Author

cc @Huang-Wei @ahg-g

@Huang-Wei
Copy link
Member

/approve

Thanks @kerthcet !

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Huang-Wei, kerthcet

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 17, 2023
@kerthcet
Copy link
Member Author

Since it's approved, so I'd like to unhold this PR.
/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 17, 2023
@k8s-ci-robot k8s-ci-robot merged commit c95cf93 into kubernetes:master May 17, 2023
3 checks passed
@kerthcet kerthcet deleted the feat/add-contributing-to-sigscheduling branch May 17, 2023 05:41
@alculquicondor
Copy link
Member

can you send an email to the mailing list about this published doc?

@ahg-g
Copy link
Member

ahg-g commented May 17, 2023

/lgtm

Thanks for applying the suggestions.

@kerthcet
Copy link
Member Author

can you send an email to the mailing list about this published doc?

I suppose you mean the sig scheduling mailing list.

@alculquicondor
Copy link
Member

Yes :)

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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Draft a CONTRIBUTING.md to sig-scheduling
6 participants