-
Notifications
You must be signed in to change notification settings - Fork 156
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
Rultor Uses the Target Branch's .rultor.yml on Merges #1039
Comments
@alex-palevsky this is a bug. |
@original-brownbear I tagged this as "bug" |
@original-brownbear since the ticket has no milestone I set it to 2.0 |
@original-brownbear many thanks, 30 mins added to your acc for reporting this bug, pmt ID |
@alex-palevsky this is urgent. |
@original-brownbear right, I added "urgent" label |
@vkuchyn you may proceed, it's yours |
@original-brownbear I have a question: |
@vkuchyn no, check last line in the issue description, made it clearer :) |
@original-brownbear thanks. I have another questions about implementation.
|
@vkuchyn phew :) tricky questions, but actually I think you got pretty far with this already, let me say this: => Take a good look at the linked PR here: https://github.com/yegor256/rultor/pull/1038/files What I see - current design is not supporting new requirements and we need to change it. |
@original-brownbear seems, I found a place where the problem is.
UPD: The problem is in
|
@vkuchyn you have to admit you're giving me very little to go by in making the choice between one and two :) |
@original-brownbear thanks for quick reaction. I didn't expect such speed ) Please, see my comment above - I updated it |
Well, if you can't find one, make one :) Again, keep those puzzles in mind, don't try to do anything big here. Just add something + Puzzle(s) that move us towards the solution if you think this requires a very tricky integration test to reproduce.
|
@original-brownbear we don't have unit tests describing the behavior. It is only "looks ok" superficially. |
@original-brownbear I'd like to skip this issue according to no-obligation principle. |
@vkuchyn sure no problem, I'm the wrong person to talk to about that though. |
@alex-palevsky I'd like to skip this issue according to no-obligation principle. Please, find some one else for this issue |
@vkuchyn -30 points to your rating |
@vkuchyn OK, I will try to assign someone else |
@xupyprmv this is your task,please go ahead |
@xupyprmv any progress here so far ? |
@original-brownbear I didn't start yet. But issue looks clear. I will try to resolve it. |
@alex-palevsky I need more time here, please. |
@xupyprmv right, take your time and thanks for informing |
@alex-palevsky PR #1070 was merged. This ticket is closed. |
@xupyprmv thank you! |
@original-brownbear once |
@original-brownbear last puzzled solved |
Currently we have a situation where pull requests like e.g. #1038 can get stuck in a manner Rultor users cannot resolve without manually intervening in their master branch.
The problem is this:
We are currently reading the
.rultor.yml
from the master branch, not the fork branch.This means that whatever changes a user makes to the
.rultor.yml
will not affect the run to merge those changes, but only the next run.Reading the
.rultor.yml
frommaster
is obviously correct for authentication purposes, but it is also obviously wrong for the dependency parts (merge
,install
,docker
etc.) parts of the.rultor.yml
.Same as with a
.travis.yml
these parts need to come from the same branch as the source code, otherwise any change in dependencies becomes impossible when strictly allowing only Rultor on themaster
branch.This is especially bad since the opposite is also possible, the merge with changes in the
.rultor.yml
could work, even when those changes break the build. Hence merging a broken.rultor.yml
would cause development to become stuck in any case.Example
You want to upgrade your project from Java 7 to Java 8 and change the
image:
section in the.rultor.yml
from JDK7 to JDK8, as well as some code in a way that is not Java 7 compatible anymore.Merging this is impossible, because the run will still use the JDK7 from
master
. Only after the merge would JDK8 be used for subsequent merges.Fix must include:
.rultor.yml
from the merge result when building, not from master.rultor.yml
for authentication purposes from master still1039-d8a49c64
/Profiles.java:108-115: Add integration test to be... #1072 (by )The text was updated successfully, but these errors were encountered: