-
Notifications
You must be signed in to change notification settings - Fork 46
Default branch to main instead of master
#172
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
Conversation
|
Hi @RSickenberg, Thanks a lot for this PR 👍 There is still an issue with the tests because they rely on a small embedded Git repo: https://github.com/liip/RMT/blob/master/test/Liip/RMT/Tests/Unit/VCS/gitRepo.zip where the branch is still named This is showing us, that changing the main branch name is a breaking change for existing RMT install (existing projects that are still using the I imagine something like this: To locally run the tests, there is a documentation here: https://github.com/liip/RMT/blob/master/README.md#tests Thanks again for your efforts! |
Sorry for this, didn't knew the existence of this file
|
Thanks, @jeanmonod for the input! Like I wrote on cd3b975, I didn't know about this small repo before so this answers the question I had about this. I indeed followed the documentation, but my tests are differing from the CI, I have ~6/7 failures VS 2 (one should be fixed now) on the CI. I would love to contribute more on a migration script, let me some time to do so 🙂 |
|
@RSickenberg Changing the repo is an option to fix the tests. But you are still leaving alone all the users working with a |
|
@jeanmonod Sure, I will find a way to take care of that! |
|
Hello @jeanmonod, could you run the tests? What do you think of the current approach? |
jeanmonod
left a comment
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 a lot @RSickenberg
I just did a first review! At this end, it's not an easy-pick at all. Sorry for that.
Can I ask you one more thing? To keep master branch name into the functional tests. Like this: 1) It's testing to use a different branch than main. So it's ensuring backward compat 2) We don't need to change the embedded Git repo?
| $this->initGit(); | ||
| $this->createConfig('simple', 'vcs-tag', ['vcs' => 'git']); | ||
| exec('git branch --show-current', $branch); | ||
| self::assertEquals('main', $branch[0]); |
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.
What are you testing here? To me this is not testing RMT...
|
Hey @jeanmonod, can you run the tests, please? I saw I checked your comments so you might want to look at it :) Regards |
|
Hi @RSickenberg, |
|
Hello @jeanmonod, no worries! Hope this was a good break 🤗 ! Sure, let me know if you need anything. |
|
any chance we can wrap this up? the documentation is still speaking of master, when most projects are using main nowadays. |
Co-authored-by: Romain Sickenberg <haux49@gmail.com>
|
i fixed a regression and merged this in #186 |
|
thanks a lot for the work @RSickenberg |
|
Anytime @dbu, thanks for the follow-up. This lasted for a long time :D |
Allow me to fix this:
#170
Note I couldn't run the
PHPUnitin a clean env like the CI.Greetings to everyone in Lausanne 👋🏼 💚