-
Notifications
You must be signed in to change notification settings - Fork 24
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
chore: explicitly git init with the master
branch in tests requiring it
#589
Conversation
Signed-off-by: Nathan Nguyen <nathan.nguyen@oracle.com>
This is an interesting failure case. However, reliance on branch information in the commit finder (and tests) will be removed in PR #586. When that is merged (without major changes), I think this PR can be closed. |
Given the changes in #586, I will close this PR for now. |
I still get this error on my side. I don't think the change made in #586 solved the issue. The result of the test case:
Here is the line causing the issue:
To reproduce:
As I have mentioned in the initial PR description, this is not an uncommon config, especially since it is in line with GitHub's default branch naming practice. On the other hand, I don't see why we don't want to explicitly initiate the test repo under the exact condition that the test relies on. |
I had a look at the |
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.
Thanks for the changes. I have requested some changes on the documentation of the initiate_repo
method.
Signed-off-by: Nathan Nguyen <nathan.nguyen@oracle.com>
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.
Thanks for the changes. LGTM.
master
branch in tests requiring itmaster
branch in tests requiring it
…g it (#589) Signed-off-by: Nathan Nguyen <nathan.nguyen@oracle.com>
Improves a unit test that fails on my machine.
The test fails due to the assumption that
git init
always initializes a repo with the branchmaster
. Meanwhile, the gitdefaultBranch
configured on my machine is notmaster
. I think this git config is quite common since GitHub now defaults tomain
as the main branch.I also reckon if the test is based on the precondition of "the repo should have a
master
branch", then it'd better be stated explicitly. This fix tries to achieve that.