-
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
Fixing: Deprecate Using the yegor256/rultor Docker Image #1045
Conversation
@sebing I will find a reviewer for your pull requests shortly, thanks for contribution! |
@sebing seems this does not pass tests :(, while a reviewer is looked, for can you fix that ? :) |
@mkordas review this pull request please |
@sebing I'm on it |
@@ -1,4 +1,9 @@ | |||
#!/usr/bin/env bash | |||
#@todo #754:30min Remove the deprecation code from the shell. | |||
# Move the code to Java. May be |
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.
@sebing what stops you from moving it to Java in this PR?
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.
@mkordas May be the lack of my understanding of the project :)
- in the class
com.rultor.agents.daemons.EndsDaemon
andcom.rultor.agents.daemons.StartsDaemon
I need the image. I cannot find the flow.
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.
@original-brownbear can you propose some design solution here?
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.
@sebing @mkordas I don't think a design solution is even needed here fortunately :)
Look @sebing , just give this file a glance https://github.com/yegor256/rultor/blob/master/src/test/java/com/rultor/profiles/GithubProfileITCase.java.
It clearly shows how to extract the script
section from the Profile, this should give you all you need to figure out the image
on the Java end, shouldn't it ? :)
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.
@original-brownbear Now the next question :) Sorry for keep asking them. (May be the link give the guts to ask them.
I can create a profile image like the test you have given, and equate that. But how do I get the current profile?
How do i get the current Profile in com.rultor.agents.daemons.EndsDaemon
?
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.
@sebing why not just go by the xpath on the xml that is available in com.rultor.agents.daemons.EndsDaemon
, no need for instantiating a Profile
,
just work by analogy from the Profile logic and how it interprets the XML, other examples of how this looks are all over the codebase :)
@sebing see my review above |
@sebing are these test failures related?
|
@sebing will you work on this today? |
@mkordas I am trying to convert the code into java. But I have difficulty in doing so. |
@mkordas I have pushed the changes, I have not tested them as I have not in a linux machine. I will do that tomorrow. Please let me know your thoughts. |
.xpath("/talk/daemon[not(started)]") | ||
.strict(1) | ||
.strict(1); | ||
final XML node = xml.node("/p/entry[@key='assets']/entry"); |
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.
@sebing this line doesn't compile
@original-brownbear any idea why PR is urgent and postponed at the same time? |
@alex-palevsky why this PR has both urgent and postponed labels? |
@mkordas no idea how postponed got added, only urgent is correct. Let's see what @alex-palevsky has to say :) |
@sebing OK, I think it is good enough, you've really put a lot of effort into this PR |
@rultor merge |
@mkordas Thanks for your request. @original-brownbear Please confirm this. |
for (final String path | ||
: talk.read().xpath("/p/entry[@key='merge']/entry[@key='script']") | ||
) { | ||
if ("yegor256/rultor".equals(path)) { |
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.
@sebing We need this to not fire when the repo is the actual Rultor repo: https://github.com/yegor256/rultor :)
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.
@original-brownbear Sorry to ask again ;)
How do I get repo of the current run? Is that information available in the xml or somehow I have to create com.jcabi.github.Repo
?
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.
@sebing puzzle is fine too ;) really you did a lot here already!
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.
@original-brownbear I have added a puzzle. But for my curiosity, how do I know the repo?
@sebing just one really trivial comment, can you add a condition for the actual Rultor repo please ?:) |
@mkordas I added a puzzle, can you review them. |
@sebing looks good! |
@rultor merge |
@mkordas Thanks for your request. @original-brownbear Please confirm this. |
@rultor merge :) |
@original-brownbear OK, I'll try to merge now. You can check the progress of the merge here |
@original-brownbear Done! FYI, the full log is here (took me 14min) |
@sebing merged, please close PR |
@mkordas merged the code, so closing the PR. Thanks for your help. |
@sebing thank you too! |
@rultor deploy |
@mkordas Thanks for your request. @original-brownbear Please confirm this. |
@rultor deploy. |
@original-brownbear OK, I'll try to deploy now. You can check the progress here |
@original-brownbear Done! FYI, the full log is here (took me 5min) |
@mkordas quality is good here, 10 mins added to @original-brownbear (our architect) in transaction AP-3CA966592B191914W... Much obliged! I have added 1 hour and 25 mins to your account in payment "56e55953d1862d29ab000223", 97 hours and 22 mins spent... review comments (c=70) added as a bonus... +85 to your rating, your total score is +8798 |
The start and end bash scripts are modified to accommodate the changes.
Fixing(#1018)