-
Notifications
You must be signed in to change notification settings - Fork 157
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 site target by running jekyll in bundle context, see #1001 #1002
Conversation
@original-brownbear Thanks, I will find someone to review this PR soon |
@mkordas review this please |
@original-brownbear I'm on it |
@original-brownbear please update comment #1002 (comment) to start with name tag |
@original-brownbear can you put link to issue in the PR description? |
@mkordas done :) |
@original-brownbear code looks ok, but it would be great if you could update PR description with:
|
@original-brownbear there's one more thing, just for future. According to http://at.teamed.io/qa.html
|
@mkordas sorry I was not aware of this rule :) Added the requested PR description now though. |
@original-brownbear description is impressive, thanks. I just need to trust you, as I'm not an expert in gems :) Yegor will confirm, but looks good to me. |
@rultor merge |
@yegor256 ping, this PR may solve merging issue in Rultor |
@rultor try to merge |
@original-brownbear many thanks, excellent investigation and fix! |
@original-brownbear @yegor256 Oops, I failed. You can see the full log here (spent 10min)
|
@rultor try to merge again |
@original-brownbear nice, thank you! |
@rultor deploy |
@rultor deploy |
@original-brownbear @yegor256 any idea why this PR was not moved to merged state? From logs:
|
@mkordas I think Github is not able to recognise the push by Rultor as having merged the branch, because Rultor rebased before merging. |
@original-brownbear now I see, Rultor here is configured to do rebases before merge as ff: https://github.com/yegor256/rultor/blame/master/.rultor.yml#L26 |
@yegor256 do we want to keep
|
@mkordas that |
@yegor256 yes, I'm sure. GitHub closes pull requests only when commits from PR are transferred to master branch in unchanged way. This could be done either by merge commit or by fast-forward merge. If rebase is done, then master receives commit with different hash (committer and committer date are updated) and PR is not closed.
|
@mkordas I like the second option. rultor should do this, if |
@yegor256 sure, makes sense, especially with message. Should I raise ticket for that? |
@original-brownbear can you close this PR? |
@mkordas jup all done here : ) |
@mkordas yes, go ahead pls |
@mkordas I think you never created the ticket about the rebase/merge/close situation here right ? |
@original-brownbear you are right, thanks! |
@mkordas 10 mins added to @original-brownbear account (our architect), payment ID is |
This PR addresses Issue #1001 reproduced and then tested via:
Deployments Started Failing because:
From what I can see the problem was caused by ba0d145, which added the est gem before running bundler.
est according to https://rubygems.org/gems/est/versions/0.3.1 requires a specific Nokogiri version ( 1.6.6.4).
The current Gemfile though installs nokogiri (1.6.7.2) causing a conflict shown in #994 (comment) and breaking est initially.
This conflict was then resolved in 8eaf7e2 by installing not in the system scope, now making est load fine from the system gems. The system gem context though does not load jekyll-sass now, since bundler was not run in the sudo context as per 8eaf7e2.
Also c08600f then set the Jekyll version to 2.4.0 as per the bundle. The currently available Docker Image rev. 43b7ceed592c though shows Jekyll 3.1.1 install in the system context coming Jekyll being install in the Dockerfile currently:
https://github.com/yegor256/rultor/blob/master/src/docker/Dockerfile#L106
Hence running outside the bundle context will cause the wrong Jekyll version to be used even if it were to not conflict with est.
Fixed by:
This situation can be fixed by simply running Jekyll in the context of the bundle and hence not having to deal with the system nokogiri version required by est.
This is what the second command added to the pre-site execution does. In order to make the build one off in this spot I also added the bundle install to this build step.