Skip to content
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

Closed
wants to merge 12 commits into from

Conversation

sebing
Copy link

@sebing sebing commented Mar 7, 2016

The start and end bash scripts are modified to accommodate the changes.

Fixing(#1018)

@alex-palevsky
Copy link
Contributor

@sebing I will find a reviewer for your pull requests shortly, thanks for contribution!

@original-brownbear
Copy link
Contributor

@sebing seems this does not pass tests :(, while a reviewer is looked, for can you fix that ? :)

@alex-palevsky
Copy link
Contributor

@mkordas review this pull request please

@mkordas
Copy link

mkordas commented Mar 7, 2016

@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
Copy link

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?

Copy link
Author

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 and com.rultor.agents.daemons.StartsDaemon I need the image. I cannot find the flow.

Copy link

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?

Copy link
Contributor

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 ? :)

Copy link
Author

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?

Copy link
Contributor

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 :)

@mkordas
Copy link

mkordas commented Mar 7, 2016

@sebing see my review above

@mkordas
Copy link

mkordas commented Mar 7, 2016

@sebing are these test failures related?

  StartsRequestTest.runsAsRootIfRequested:357->exec:386 » IllegalArgument Non-ze...
  StartsRequestTest.startsDeployRequest:138->exec:386 » IllegalArgument Non-zero...
  StartsRequestTest.startsMergeRequest:229->exec:386 » IllegalArgument Non-zero ...
  StartsRequestTest.startsReleaseRequest:196->exec:386 » IllegalArgument Non-zer...

@mkordas
Copy link

mkordas commented Mar 8, 2016

@sebing will you work on this today?

@sebing
Copy link
Author

sebing commented Mar 8, 2016

@mkordas I am trying to convert the code into java. But I have difficulty in doing so.
I have difficulty in understanding the basic stuffs, What is an image? :)

@sebing
Copy link
Author

sebing commented Mar 8, 2016

@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");
Copy link

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

@mkordas
Copy link

mkordas commented Mar 10, 2016

@original-brownbear any idea why PR is urgent and postponed at the same time?

@mkordas
Copy link

mkordas commented Mar 10, 2016

@alex-palevsky why this PR has both urgent and postponed labels?

@original-brownbear
Copy link
Contributor

@mkordas no idea how postponed got added, only urgent is correct. Let's see what @alex-palevsky has to say :)

@mkordas
Copy link

mkordas commented Mar 10, 2016

@sebing OK, I think it is good enough, you've really put a lot of effort into this PR

@mkordas
Copy link

mkordas commented Mar 10, 2016

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Mar 10, 2016

@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)) {
Copy link
Contributor

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 :)

Copy link
Author

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?

Copy link
Contributor

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!

Copy link
Author

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?

@original-brownbear
Copy link
Contributor

@sebing just one really trivial comment, can you add a condition for the actual Rultor repo please ?:)
Rest looks really nice! Thanks guys!

@sebing
Copy link
Author

sebing commented Mar 11, 2016

@mkordas I added a puzzle, can you review them.

@mkordas
Copy link

mkordas commented Mar 11, 2016

@sebing looks good!

@mkordas
Copy link

mkordas commented Mar 11, 2016

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Mar 11, 2016

@rultor merge

@mkordas Thanks for your request. @original-brownbear Please confirm this.

@original-brownbear
Copy link
Contributor

@rultor merge :)

@rultor
Copy link
Collaborator

rultor commented Mar 11, 2016

@rultor merge :)

@original-brownbear OK, I'll try to merge now. You can check the progress of the merge here

@rultor
Copy link
Collaborator

rultor commented Mar 11, 2016

@rultor merge :)

@original-brownbear Done! FYI, the full log is here (took me 14min)

@mkordas
Copy link

mkordas commented Mar 11, 2016

@sebing merged, please close PR

@sebing
Copy link
Author

sebing commented Mar 11, 2016

@mkordas merged the code, so closing the PR. Thanks for your help.

@sebing sebing closed this Mar 11, 2016
@mkordas
Copy link

mkordas commented Mar 11, 2016

@sebing thank you too!

@mkordas
Copy link

mkordas commented Mar 11, 2016

@rultor deploy

@rultor
Copy link
Collaborator

rultor commented Mar 11, 2016

@rultor deploy

@mkordas Thanks for your request. @original-brownbear Please confirm this.

@original-brownbear
Copy link
Contributor

@rultor deploy.

@rultor
Copy link
Collaborator

rultor commented Mar 11, 2016

@rultor deploy.

@original-brownbear OK, I'll try to deploy now. You can check the progress here

@rultor
Copy link
Collaborator

rultor commented Mar 11, 2016

@rultor deploy.

@original-brownbear Done! FYI, the full log is here (took me 5min)

@alex-palevsky
Copy link
Contributor

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants