-
Notifications
You must be signed in to change notification settings - Fork 42
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
Report list of files from merge conflicts #307
Report list of files from merge conflicts #307
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #307 +/- ##
==========================================
+ Coverage 32.90% 32.99% +0.08%
==========================================
Files 71 71
Lines 3218 3222 +4
==========================================
+ Hits 1059 1063 +4
Misses 2159 2159
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Good one @ziegenberg . Only an issue that I can imagine (as commented in the patch), towards ensuring that the list of conflicting files is reported.
Regarding test coverage, I wasn't able come up with any non-stupid test to reasonably test this scenario. Any ideas? |
Let me check that (tomorrow). I think we have some other test checking for merge conflicts and it's based on existing branch elsewhere. Sure we can reuse it to get this patch covered. Will share once available. |
Hi @ziegenberg , as promised, I've sent one extra commit to your branch that covers the patch with unit tests. It's passing here. So, I'd suggest to just squash your 2 commits, prepare the final branch and I think this nice addition can safely land. Ciao :-) |
Signed-off-by: Daniel Ziegenberg <[email protected]>
487cc61
to
15599a4
Compare
Hi @stronk7, thank you for the extra unit test. I squashed and force-pushed. It's ready for merging. |
Hi @stronk7, what's up with this funky gherkin unit test? I'm pretty sure I did not touch anything there... |
Yeah, don't worry. There are a few random failures here and there (connectivity problems, ...). I simply reran the failed tests and now they passed. Ciao :-) |
When we experience merge conflicts in the CiBot Precheck it would be nice to have more information than just: "does not apply clean", e.g. https://integration.moodle.org/job/Precheck%20remote%20branch/160991/artifact/work/errors.txt/*view*/
This adds the output from
git diff --name-only --diff-filter=U
, which provides the list of files not merged because of a conflict.