Skip to content

Add runtests option to gitdiff on the common ancestor - #6913

Merged
sklam merged 3 commits into
numba:masterfrom
sklam:enh/gitdiffancestor
Apr 13, 2021
Merged

sklam merged 3 commits into
numba:masterfrom
sklam:enh/gitdiffancestor

Conversation

@sklam

@sklam sklam commented Apr 9, 2021

Copy link
Copy Markdown
Member

Example:

python -m numba.runtests -g=ancestor

This allows us to test PR HEAD against its first splitting point from main branch. Useful for testing just the changes in the PR instead of including all new additions to the mainline.

@stuartarchibald stuartarchibald left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the patch, this will be useful. One minor comment to resolve else looks good. I've also tested this manually.

Comment thread numba/tests/test_runtests.py Outdated
Comment on lines +133 to +134
with self.assertRaises(subprocess.CalledProcessError):
self.get_testsuite_listing(['-g=ancest'])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This adds noise to the test output as the error streams aren't captured/redirected?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ok, i'll sink it to devnull

@stuartarchibald stuartarchibald added 4 - Waiting on author Waiting for author to respond to review Effort - short Short size effort needed and removed 3 - Ready for Review labels Apr 12, 2021
@stuartarchibald stuartarchibald added this to the Numba 0.54 RC milestone Apr 12, 2021

@stuartarchibald stuartarchibald left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the patch and fixes.

@stuartarchibald stuartarchibald added 5 - Ready to merge Review and testing done, is ready to merge and removed 4 - Waiting on author Waiting for author to respond to review labels Apr 13, 2021
@sklam
sklam merged commit 7c18f65 into numba:master Apr 13, 2021
@sklam
sklam deleted the enh/gitdiffancestor branch April 13, 2021 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5 - Ready to merge Review and testing done, is ready to merge Effort - short Short size effort needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants