Skip to content

Update rootstock 2019-08-02 - #196

Merged
agitter merged 11 commits into
Benjamin-Lee:masterfrom
agitter:rootstock-2019-08-02
Aug 2, 2019
Merged

agitter merged 11 commits into
Benjamin-Lee:masterfrom
agitter:rootstock-2019-08-02

Conversation

@agitter

@agitter agitter commented Aug 2, 2019

Copy link
Copy Markdown
Collaborator

This merges the latest rootstock changes and resolves merge conflicts. There were more conflicts than usual because of the conflicts introduced by d2298ee and fae4239 in addition to the deploy conflicts described in greenelab/meta-review#251. I manually resolved the merge conflicts in ci/README.md and ci/deploy.sh.

Here are the full local commands, will select output included:

$ git remote -v
agitter https://github.com/agitter/deep-rules.git (fetch)
agitter https://github.com/agitter/deep-rules.git (push)
origin  https://github.com/Benjamin-Lee/deep-rules.git (fetch)
origin  https://github.com/Benjamin-Lee/deep-rules.git (push)
rootstock       https://github.com/manubot/rootstock.git (fetch)
rootstock       https://github.com/manubot/rootstock.git (push)
$ git pull origin master
$ git checkout -b rootstock-$(date '+%Y-%m-%d')
Switched to a new branch 'rootstock-2019-08-02'
$ git pull --no-ff --no-commit rootstock master
remote: Enumerating objects: 27, done.
remote: Counting objects: 100% (27/27), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 54 (delta 23), reused 25 (delta 23), pack-reused 27
Unpacking objects: 100% (54/54), done.
From https://github.com/manubot/rootstock
 * branch            master     -> FETCH_HEAD
   9e6a00b..de83608  master     -> rootstock/master
Auto-merging content/manual-references.json
CONFLICT (modify/delete): content/02.delete-me.md deleted in HEAD and modified in de83608743fbe75c953cbd1c961eea64a80c0730. Version de83608743fbe75c953cbd1c961eea64a80c0730 of content/02.delete-me.md left in tree.
Auto-merging ci/deploy.sh
CONFLICT (content): Merge conflict in ci/deploy.sh
CONFLICT (modify/delete): ci/deploy.key.pub deleted in de83608743fbe75c953cbd1c961eea64a80c0730 and modified in HEAD. Version HEAD of ci/deploy.key.pub left in tree.
CONFLICT (modify/delete): ci/deploy.key.enc deleted in de83608743fbe75c953cbd1c961eea64a80c0730 and modified in HEAD. Version HEAD of ci/deploy.key.enc left in tree.
Auto-merging ci/README.md
CONFLICT (content): Merge conflict in ci/README.md
CONFLICT (modify/delete): SETUP.md deleted in HEAD and modified in de83608743fbe75c953cbd1c961eea64a80c0730. Version de83608743fbe75c953cbd1c961eea64a80c0730 of SETUP.md left in tree.
Auto-merging README.md
Automatic merge failed; fix conflicts and then commit the result.
$ git checkout --ours ci/deploy.key.*
Updated 2 paths from the index
$ git add ci/deploy.key.*
$ git rm SETUP.md
SETUP.md: needs merge
rm 'SETUP.md'
$ git rm content/02.delete-me.md
content/02.delete-me.md: needs merge
rm 'content/02.delete-me.md'
<manually resolve merge conflicts in ci/README.md and ci/deploy.sh>
$ git add ci/README.md
$ git add ci/deploy.sh
$ git commit -m "Merge rootstock"
$ git push agitter rootstock-2019-08-02

dhimmel and others added 11 commits June 5, 2019 14:05
Merges manubot/rootstock#227

* Upgrade dependencies on 2019-06-03
Keep python at 3.6 to avoid introducing collections.abc warnings
from jinja2. Keep cairo, pango, and weasyprint at previous versions
to avoid dealing with any difficulties.

* Upgrade manubot to include new citation infrastructure.
Includes support for multiple manual reference files of multiple formats.
Rewrite USAGE.md to document new functionality.

* environment.yml: remove `conda-forge::` prefix, which should not be
necessary since we specify conda-forge as the channel. This change
is meant to resolve conda warning:
> you have pip-installed dependencies in your environment file, but you
do not list pip itself as one of your conda dependencies
https://travis-ci.com/manubot/rootstock/builds/114188607#L507

* Update .gitignore with vscode directory
Merges manubot/rootstock#230
Closes manubot/rootstock#229

Previously, `command -v docker` returned a non-zero exit status when
docker did not exist. Because build.sh uses `set -o errexit`, this caused
the build script to exit. By appending `|| true`, the exit status will always
be zero.

Use recommended $() instead of backticks for command substitution.
https://stackoverflow.com/a/24592916/4651668
…ee#233)

Merges manubot/rootstock#233

Hat tip to Michael Hoffman (https://hoffmanlab.org/) for feedback.

* Apply shell best practices
References:
https://kvz.io/blog/2013/11/21/bash-best-practices/
https://www.davidpashley.com/articles/writing-robust-shell-scripts/
manubot/rootstock#233 (comment)

* Specify bash (not just sh). Other shellcheck suggestions
Properly use command substitution and parameter expansion in the
appropriate places.

* echo diagnostic messages to stderr
Previously echo defaulted to stdout
https://stackoverflow.com/a/41766832/4651668
Placement of stderr redirect to: "echo >&2"

* Update bash options: xtrace specified by calling command

* Quote variable names

* deploy.sh: use Travis env vars for CI build URLs
These environment variables were added to Travis in late 2018
travis-ci/travis-ci#8935 (comment)
* Improve documentation about build process

* Additional rephrasing

* Updates per dhimmel review
* Link to catalog

* Add formatting and CSL instructions

* Remove examples and add try-manubot
Merges manubot/rootstock#243
Closes manubot/rootstock#91
Closes manubot/rootstock#246

Switch to a Travis CI settings environment variable to store the
SSH private key for GitHub deployment. Setup no longer requires
the travis ruby gem, whose `travis encrypt` subcommand was 
incompatible with Windows. Setup is now supported on Windows
systems with a Unix/Linux/POSIX-compliant shell with the proper
dependencies, such as ssh-keygen & openssl.

The SSH private key is stored in MANUBOT_SSH_PRIVATE_KEY,
after being base64 encoded to remove newline characters.

Remove files for the legacy encrypted file method. Deprecate
the encrypted file decryption in deploy.sh. In the future, we may
only support private key specification via MANUBOT_SSH_PRIVATE_KEY.
Merges manubot/rootstock#258
Closes manubot/rootstock#257

Change corresponds to:
chmod a+x **/*.sh
@agitter
agitter requested a review from dhimmel August 2, 2019 15:03
@agitter agitter mentioned this pull request Aug 2, 2019
@dhimmel

dhimmel commented Aug 2, 2019

Copy link
Copy Markdown
Collaborator

Doesn't necessarily have to be done now (or ever), but you could at some point consider switching to Travis CI .com and using the environment variable deploy key.

@michaelmhoffman
michaelmhoffman self-requested a review August 2, 2019 16:31

@michaelmhoffman michaelmhoffman left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested agitter:rootstock-2019-08-02 locally and it generates HTML and PDF files as expected. WeasyPrint produced the following warnings:

Exporting PDF manuscript using WeasyPrint
WARNING: Failed to load local font "Open Sans Regular"
WARNING: Failed to load local font "OpenSans-Regular"
WARNING: Failed to load local font "Source Code Pro"
WARNING: Failed to load local font "SourceCodePro-Regular"
WARNING: Ignored `-webkit-text-size-adjust: none ` at 16:9, unknown property.
WARNING: Ignored `-moz-text-size-adjust: none ` at 17:9, unknown property.
WARNING: Ignored `-o-text-size-adjust: none ` at 18:9, unknown property.
WARNING: Ignored `text-size-adjust: none ` at 19:9, unknown property.
WARNING: Expected a media type, got only/**/screen
WARNING: Invalid media type " only screen " the whole @media rule was ignored at 22:5.
WARNING: Expected a media type, got only/**/screen/**/and/**/(max-width: 8.5in)
WARNING: Invalid media type " only screen and (max-width: 8.5in) " the whole @media rule was ignored at 40:5.
WARNING: Ignored `justify-content: left` at 135:9, unknown property.
WARNING: Ignored `justify-content: center` at 144:9, unknown property.
WARNING: Ignored `justify-content: right` at 153:9, unknown property.
WARNING: Ignored `word-break: break-all` at 228:9, unknown property.
WARNING: Ignored `word-break: break-word` at 229:9, unknown property.
WARNING: Ignored `display: inline-flex` at 416:9, invalid value.
WARNING: Ignored `justify-content: center` at 417:9, unknown property.
WARNING: Ignored `align-items: center` at 418:9, unknown property.
WARNING: Ignored `cursor: pointer` at 435:9, the property does not apply for the print media.
WARNING: Ignored `pointer-events: none` at 443:9, unknown property.
WARNING: Ignored `display: inline-flex` at 448:9, invalid value.
WARNING: Ignored `justify-content: center` at 449:9, unknown property.
WARNING: Ignored `align-items: center` at 450:9, unknown property.
WARNING: Ignored `display: flex` at 560:13, invalid value.
WARNING: Ignored `align-items: center` at 561:13, unknown property.
WARNING: Ignored `display: flex ` at 625:9, invalid value.
WARNING: Ignored `overflow-x: auto ` at 626:9, unknown property.
WARNING: Ignored `overflow-y: hidden ` at 627:9, unknown property.
WARNING: Ignored `justify-content: center` at 628:9, unknown property.
WARNING: Ignored `align-items: center` at 629:9, unknown property.
WARNING: Ignored `box-shadow: none ` at 637:9, unknown property.
WARNING: Expected a media type, got only/**/screen
WARNING: Invalid media type " only screen " the whole @media rule was ignored at 655:5.
WARNING: Expected a media type, got only/**/screen
WARNING: Invalid media type " only screen " the whole @media rule was ignored at 681:5.
WARNING: Expected a media type, got (hover: none)
WARNING: Invalid media type " (hover: none) " the whole @media rule was ignored at 707:5.
WARNING: Expected a media type, got only/**/print
WARNING: Invalid media type " only print " the whole @media rule was ignored at 714:5.
WARNING: Expected a media type, got only/**/screen
WARNING: Invalid media type " only screen " the whole @media rule was ignored at 724:5.
WARNING: Expected a media type, got only/**/print
WARNING: Invalid media type " only print " the whole @media rule was ignored at 749:5.
WARNING: Expected a media type, got only/**/screen
WARNING: Invalid media type " only screen " the whole @media rule was ignored at 759:5.
WARNING: Expected a media type, got only/**/print
WARNING: Invalid media type " only print " the whole @media rule was ignored at 817:5.
WARNING: Expected a media type, got only/**/screen
WARNING: Invalid media type " only screen " the whole @media rule was ignored at 827:5.
WARNING: Expected a media type, got only/**/print
WARNING: Invalid media type " only print " the whole @media rule was ignored at 837:5.
WARNING: Expected a media type, got only/**/screen
WARNING: Invalid media type " only screen " the whole @media rule was ignored at 847:5.
WARNING: Expected a media type, got only/**/screen
WARNING: Invalid media type " only screen " the whole @media rule was ignored at 881:5.
WARNING: Expected a media type, got only/**/screen/**/and/**/(max-width: 8.5in)
WARNING: Invalid media type " only screen and (max-width: 8.5in) " the whole @media rule was ignored at 1015:5.
WARNING: Expected a media type, got only/**/print
WARNING: Invalid media type " only print " the whole @media rule was ignored at 1028:5.
WARNING: Expected a media type, got only/**/screen
WARNING: Invalid media type " only screen " the whole @media rule was ignored at 1038:5.
WARNING: Expected a media type, got only/**/screen/**/and/**/(max-width: 480px)
WARNING: Invalid media type " only screen and (max-width: 480px) " the whole @media rule was ignored at 1152:5.
WARNING: Expected a media type, got only/**/print
WARNING: Invalid media type " only print " the whole @media rule was ignored at 1161:5.
WARNING: Expected a media type, got only/**/print
WARNING: Invalid media type " only print " the whole @media rule was ignored at 1193:5.

@agitter
agitter merged commit b142e6d into Benjamin-Lee:master Aug 2, 2019
@agitter
agitter deleted the rootstock-2019-08-02 branch August 2, 2019 18:20
Benjamin-Lee pushed a commit that referenced this pull request Aug 2, 2019
This build is based on
b142e6d.

This commit was created by the following Travis CI build and job:
https://travis-ci.org/Benjamin-Lee/deep-rules/builds/567069606
https://travis-ci.org/Benjamin-Lee/deep-rules/jobs/567069607

[ci skip]

The full commit message that triggered this build is copied below:

Merge pull request #196 from agitter/rootstock-2019-08-02

Update rootstock 2019-08-02
Benjamin-Lee pushed a commit that referenced this pull request Aug 2, 2019
This build is based on
b142e6d.

This commit was created by the following Travis CI build and job:
https://travis-ci.org/Benjamin-Lee/deep-rules/builds/567069606
https://travis-ci.org/Benjamin-Lee/deep-rules/jobs/567069607

[ci skip]

The full commit message that triggered this build is copied below:

Merge pull request #196 from agitter/rootstock-2019-08-02

Update rootstock 2019-08-02
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.

3 participants