-
Notifications
You must be signed in to change notification settings - Fork 508
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
🌱 Feature: Group commits into changesets #2260
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2260 +/- ##
==========================================
+ Coverage 44.45% 44.87% +0.41%
==========================================
Files 95 95
Lines 7987 7953 -34
==========================================
+ Hits 3551 3569 +18
+ Misses 4173 4121 -52
Partials 263 263 |
Signed-off-by: Raghav Kaul <[email protected]>
Signed-off-by: Raghav Kaul <[email protected]>
Signed-off-by: Raghav Kaul <[email protected]>
5861166
to
4553b84
Compare
I took a quick glance, will take a closer tomorrow and provide my detailed feedback. Just wanted to comment to say this is an awesome change and will really help improve Scorecard results - thanks for working through this! |
Signed-off-by: Raghav Kaul <[email protected]>
Signed-off-by: Raghav Kaul <[email protected]>
Signed-off-by: Raghav Kaul <[email protected]>
* Handle randomized order * e2e Signed-off-by: Raghav Kaul <[email protected]>
Signed-off-by: Raghav Kaul <[email protected]>
Integration tests success for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with comments. Thanks for fixing this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Raghav Kaul <[email protected]>
Integration tests success for |
Integration tests success for |
* Group raw commits into changesets Signed-off-by: Raghav Kaul <[email protected]> * Add tests, fix golint Signed-off-by: Raghav Kaul <[email protected]> * Fix lint Signed-off-by: Raghav Kaul <[email protected]> * Address PR comments Signed-off-by: Raghav Kaul <[email protected]> * Fix test failures, remove unneeded fields from raw results Signed-off-by: Raghav Kaul <[email protected]> * Fix lint Signed-off-by: Raghav Kaul <[email protected]> * Fix tests * Handle randomized order * e2e Signed-off-by: Raghav Kaul <[email protected]> * Accept code reviews on any commit, not just HEAD Signed-off-by: Raghav Kaul <[email protected]> * Address PR comments Signed-off-by: Raghav Kaul <[email protected]> Signed-off-by: Raghav Kaul <[email protected]> Co-authored-by: Azeem Shaikh <[email protected]>
* Group raw commits into changesets Signed-off-by: Raghav Kaul <[email protected]> * Add tests, fix golint Signed-off-by: Raghav Kaul <[email protected]> * Fix lint Signed-off-by: Raghav Kaul <[email protected]> * Address PR comments Signed-off-by: Raghav Kaul <[email protected]> * Fix test failures, remove unneeded fields from raw results Signed-off-by: Raghav Kaul <[email protected]> * Fix lint Signed-off-by: Raghav Kaul <[email protected]> * Fix tests * Handle randomized order * e2e Signed-off-by: Raghav Kaul <[email protected]> * Accept code reviews on any commit, not just HEAD Signed-off-by: Raghav Kaul <[email protected]> * Address PR comments Signed-off-by: Raghav Kaul <[email protected]> Signed-off-by: Raghav Kaul <[email protected]> Co-authored-by: Azeem Shaikh <[email protected]> Signed-off-by: nathaniel.wert <[email protected]>
* Group raw commits into changesets Signed-off-by: Raghav Kaul <[email protected]> * Add tests, fix golint Signed-off-by: Raghav Kaul <[email protected]> * Fix lint Signed-off-by: Raghav Kaul <[email protected]> * Address PR comments Signed-off-by: Raghav Kaul <[email protected]> * Fix test failures, remove unneeded fields from raw results Signed-off-by: Raghav Kaul <[email protected]> * Fix lint Signed-off-by: Raghav Kaul <[email protected]> * Fix tests * Handle randomized order * e2e Signed-off-by: Raghav Kaul <[email protected]> * Accept code reviews on any commit, not just HEAD Signed-off-by: Raghav Kaul <[email protected]> * Address PR comments Signed-off-by: Raghav Kaul <[email protected]> Signed-off-by: Raghav Kaul <[email protected]> Co-authored-by: Azeem Shaikh <[email protected]>
* Group raw commits into changesets Signed-off-by: Raghav Kaul <[email protected]> * Add tests, fix golint Signed-off-by: Raghav Kaul <[email protected]> * Fix lint Signed-off-by: Raghav Kaul <[email protected]> * Address PR comments Signed-off-by: Raghav Kaul <[email protected]> * Fix test failures, remove unneeded fields from raw results Signed-off-by: Raghav Kaul <[email protected]> * Fix lint Signed-off-by: Raghav Kaul <[email protected]> * Fix tests * Handle randomized order * e2e Signed-off-by: Raghav Kaul <[email protected]> * Accept code reviews on any commit, not just HEAD Signed-off-by: Raghav Kaul <[email protected]> * Address PR comments Signed-off-by: Raghav Kaul <[email protected]> Signed-off-by: Raghav Kaul <[email protected]> Co-authored-by: Azeem Shaikh <[email protected]> Signed-off-by: nathaniel.wert <[email protected]>
* Group raw commits into changesets Signed-off-by: Raghav Kaul <[email protected]> * Add tests, fix golint Signed-off-by: Raghav Kaul <[email protected]> * Fix lint Signed-off-by: Raghav Kaul <[email protected]> * Address PR comments Signed-off-by: Raghav Kaul <[email protected]> * Fix test failures, remove unneeded fields from raw results Signed-off-by: Raghav Kaul <[email protected]> * Fix lint Signed-off-by: Raghav Kaul <[email protected]> * Fix tests * Handle randomized order * e2e Signed-off-by: Raghav Kaul <[email protected]> * Accept code reviews on any commit, not just HEAD Signed-off-by: Raghav Kaul <[email protected]> * Address PR comments Signed-off-by: Raghav Kaul <[email protected]> Signed-off-by: Raghav Kaul <[email protected]> Co-authored-by: Azeem Shaikh <[email protected]> Signed-off-by: nathaniel.wert <[email protected]>
What kind of change does this PR introduce?
Introduce a
Changeset
construct, which contains several Commits that were reviewed as a unit, along with any associated review activity.What is the current behavior?
Today, scorecard inconsistently uses either Commits or Pull Requests. Commits are more universal than PRs, but evaluating each Commit in a vacuuum may lead to scoring incorrectly when there are multiple, unsquashed commits in a repo's history which all really were part of a singular "code review". This is also the case with CI test runs, where we look at tests run on individual commits, when tests are really run on all commits that are part of an unsquashed PR.
What is the new behavior (if this is a feature change)?**
Scorecard will batch all related commits that are part of a single GitHub Merge request or Phabricator differential revision into a single Changeset. If a commit is not linked to any external SCM or we can't find the associated code review, the commit is part of a standalone changeset.
Special notes for your reviewer
Does this PR introduce a user-facing change?