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

Use git diff instead of git log for --changedSince #10155

Merged
merged 11 commits into from Jul 3, 2020

Conversation

finn-orsini
Copy link
Contributor

Summary

Addresses issue described in #9602, where files with no difference are marked as changed by using git log instead of git diff for the --changedSince flag option.

Test plan

Note: Seeing failures on local master branch with message abort: empty revision range for jestChangedFiles: gets changed files for hg and onlyChanged: gets changed files for hg specs after running brew install hg successfully.

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

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

I think this makes sense (as discussed in the issue). Thanks for sending a PR!

/cc @jeysal @thymikee @cpojer any final thoughts?


Regarding the Mercurial tests, I haven't had them pass for at least a year (and they're skipped on CI) so feel free to ignore them

CHANGELOG.md Outdated Show resolved Hide resolved
finn-orsini and others added 2 commits June 24, 2020 12:04
@matthew-hallsworth
Copy link

Can we get an update as to when this might be merged and released? I have a few things in our company test pipeline that rely upon this change :)

Thanks!

Copy link
Contributor

@alsuren alsuren left a comment

Choose a reason for hiding this comment

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

This looks like it will do the right thing in all of the cases that I care about (including when branches diverge). Thanks for taking this on.

@SimenB
Copy link
Member

SimenB commented Jul 3, 2020

Good enough for me. Thanks @finn-orsini!

@SimenB SimenB merged commit e936da2 into jestjs:master Jul 3, 2020
@finn-orsini finn-orsini deleted the sorsini_9602_changed_since branch July 3, 2020 11:09
@pelotom
Copy link

pelotom commented Jul 8, 2020

Any chance this could get released soon? This is a major blocker for us since we can't practically run all of our tests in CI on every PR.

@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants