yegor256 / mailanes

Smart E-mail Delivery System (helps me manage subscribers to my blog and send them monthly newsletters)
https://www.mailanes.com
MIT License
36 stars 9 forks source link

attachments #40

Closed yegor256 closed 6 years ago

yegor256 commented 6 years ago

Would be great to have an ability to add attachments to letters

yegor256 commented 6 years ago

@rultor release, tag is 0.16.0

rultor commented 6 years ago

@rultor release, tag is 0.16.0

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 6 years ago

@rultor release, tag is 0.16.0

@yegor256 Oops, I failed. You can see the full log here (spent 5min)

Caused by: org.apache.maven.plugin.MojoExecutionException: Error setting up or running Liquibase: Migration failed for change set 001-initial-schema.xml::018::yegor256:
     Reason: liquibase.exception.DatabaseException: Error executing SQL CREATE INDEX IF NOT EXISTS idx_1 ON delivery (created): ERROR: syntax error at or near "NOT"
  Position: 17
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.execute(AbstractLiquibaseMojo.java:371)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    ... 20 more
Caused by: liquibase.exception.MigrationFailedException: Migration failed for change set 001-initial-schema.xml::018::yegor256:
     Reason: liquibase.exception.DatabaseException: Error executing SQL CREATE INDEX IF NOT EXISTS idx_1 ON delivery (created): ERROR: syntax error at or near "NOT"
  Position: 17
    at liquibase.changelog.ChangeSet.execute(ChangeSet.java:564)
    at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:43)
    at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:70)
    at liquibase.Liquibase.update(Liquibase.java:195)
    at liquibase.Liquibase.update(Liquibase.java:174)
    at org.liquibase.maven.plugins.LiquibaseUpdate.doUpdate(LiquibaseUpdate.java:31)
    at org.liquibase.maven.plugins.AbstractLiquibaseUpdateMojo.performLiquibaseTask(AbstractLiquibaseUpdateMojo.java:24)
    at org.liquibase.maven.plugins.AbstractLiquibaseMojo.execute(AbstractLiquibaseMojo.java:367)
    ... 22 more
Caused by: liquibase.exception.DatabaseException: Error executing SQL CREATE INDEX IF NOT EXISTS idx_1 ON delivery (created): ERROR: syntax error at or near "NOT"
  Position: 17
    at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:62)
    at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:122)
    at liquibase.database.AbstractJdbcDatabase.execute(AbstractJdbcDatabase.java:1206)
    at liquibase.database.AbstractJdbcDatabase.executeStatements(AbstractJdbcDatabase.java:1189)
    at liquibase.changelog.ChangeSet.execute(ChangeSet.java:528)
    ... 29 more
Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at or near "NOT"
  Position: 17
    at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2455)
    at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2155)
    at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:288)
    at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:430)
    at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:356)
    at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:303)
    at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:289)
    at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:266)
    at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:262)
    at liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:310)
    at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)
    ... 33 more
[ERROR] 
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
rake aborted!

/home/r/repo/Rakefile:108:in `block in <top (required)>'
/usr/local/rvm/gems/ruby-2.3.3/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => default => test => liquibase
(See full trace by running task with --trace)
PostgreSQL killed in PID 22569
LOG:  received smart shutdown request
LOG:  autovacuum launcher shutting down
LOG:  shutting down
container 613dccae717040edd592d7ab40dcf62066272c9cec1352dda13cedb39c25fc46 is dead
Thu Sep 20 14:37:48 CEST 2018
yegor256 commented 6 years ago

@rultor release, tag is 0.16.0

rultor commented 6 years ago

@rultor release, tag is 0.16.0

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 6 years ago

@rultor release, tag is 0.16.0

@yegor256 Oops, I failed. You can see the full log here (spent 5min)

16958238735e: Pull complete
16d6dae712b1: Pull complete
556e1b359c0a: Pull complete
4081149c334d: Pull complete
fdb34e3bdb9c: Pull complete
Digest: sha256:7d710d086541168366e761da5fb87d42e0899b3931c8a79cd1eacfe362a95fba
Status: Downloaded newer image for yegor256/rultor:latest
+ docker ps --filter=status=exited
+ grep --quiet '\syegor256_mailanes_40\s*$'
+ ls -al .
total 76
drwx--x--x  3 rultor rultor  4096 Sep 30 20:51 .
drwxrwxrwt 11 root   root   20480 Sep 30 20:51 ..
-rw-rw-r--  1 rultor rultor   994 Sep 30 20:50 config.yml
-rw-rw-r--  1 rultor rultor   444 Sep 30 20:53 end.sh
-rwxrwxr-x  1 rultor rultor   338 Sep 30 20:51 entry.sh
-rw-rw-r--  1 rultor rultor  1679 Sep 30 20:50 id_rsa
-rw-rw-r--  1 rultor rultor   396 Sep 30 20:50 id_rsa.pub
-rw-rw-r--  1 rultor rultor     6 Sep 30 20:51 pid
drwxrwxr-x  8 rultor rultor  4096 Sep 30 20:51 repo
-rwxrwxr-x  1 rultor rultor  7459 Sep 30 20:50 run.sh
-rw-rw-r--  1 rultor rultor  1222 Sep 30 20:51 script.sh
-rw-rw-r--  1 rultor rultor 10945 Sep 30 20:55 stdout
++ pwd
++ pwd
+ docker run -t --rm -v /tmp/rultor-vMjF:/main --env=head=git@github.com:yegor256/mailanes.git --env=tag=0.16.0 '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:yegor256/mailanes.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.16.0'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=yegor256'\''\'\'''\'''\'' '\'';'\'' '\''export PATH=$PATH:/usr/lib/postgresql/9.3/bin'\'' '\'';'\'' '\''sudo gem install pdd'\'' '\'';'\'' '\''git config --global user.email "server@mailanes.com"'\'' '\'';'\'' '\''git config --global user.name "mailanes.com"'\'' '\'';'\'' '\''pdd -f /dev/null'\'' '\'';'\'' '\''bundle install'\'' '\'';'\'' '\''ruby -v'\'' '\'';'\'' '\''rake'\'' '\'';'\'' '\''git remote add heroku git@heroku.com:mailanes.git'\'' '\'';'\'' '\''rm -rf ~/.ssh'\'' '\'';'\'' '\''mkdir ~/.ssh'\'' '\'';'\'' '\''mv ../id_rsa ../id_rsa.pub ~/.ssh'\'' '\'';'\'' '\''chmod -R 600 ~/.ssh/*'\'' '\'';'\'' '\''echo -e "Host *\n  StrictHostKeyChecking no\n  UserKnownHostsFile=/dev/null" > ~/.ssh/config'\'' '\'';'\'' '\''sed -i -s '\''\'\'''\''s|Gemfile.lock||g'\''\'\'''\'' .gitignore'\'' '\'';'\'' '\''git add Gemfile.lock'\'' '\'';'\'' '\''git add .gitignore'\'' '\'';'\'' '\''git fetch'\'' '\'';'\'' '\''sed -i "s/0\.0\.0/${tag}/g" ./version.rb'\'' '\'';'\'' '\''git add ./version.rb'\'' '\'';'\'' '\''git commit -m '\''\'\'''\''build number set'\''\'\'''\'''\'' '\'';'\'' '\''cp ../config.yml config.yml'\'' '\'';'\'' '\''rake config'\'' '\'';'\'' '\''git add config.yml'\'' '\'';'\'' '\''git commit -m '\''\'\'''\''config.yml'\''\'\'''\'''\'' '\'';'\'' '\''git push -f heroku $(git symbolic-ref --short HEAD):master'\'' '\'';'\'' '\''git reset HEAD~1'\'' '\'';'\'' '\''rake liquibase'\'' '\'';'\'' '\''rm -rf config.yml'\'' '\'';'\'' '\''curl -f --connect-timeout 15 --retry 5 --retry-delay 30 http://www.mailanes.com > /dev/null'\'' '\'';'\'' )' --env=head_branch=master --env=author=yegor256 --hostname=docker --privileged --memory=6g --memory-swap=16g --oom-kill-disable --cidfile=/tmp/rultor-vMjF/cid -w=/main -v /var/run/docker.sock:/var/run/docker.sock --name=yegor256_mailanes_40 yegor256/rultor /main/entry.sh
WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
+ set -e
+ set -o pipefail
+ shopt -s dotglob
+ useradd -m -G sudo r
+ echo '%sudo ALL=(ALL) NOPASSWD:ALL'
+ cp -R /root/.bashrc /root/.composer /root/.gem /root/.gnupg /root/.m2 /root/.oracle_jre_usage /root/.profile /root/.wget-hsts /root/texmf /home/r
+ cp -R ./cid ./config.yml ./end.sh ./entry.sh ./id_rsa ./id_rsa.pub ./pid ./repo ./run.sh ./script.sh ./stdout /home/r
+ rm -rf repo
+ chown -R r:r /home/r
+ chmod a+x /home/r/script.sh
+ su --login r --command /home/r/script.sh
mesg: change /dev/pts/0 mode failed: Operation not permitted
+ set -e
+ set -o pipefail
+ shopt -s expand_aliases
+ alias 'sudo=sudo -i'
+ export HOME=/home/r
+ HOME=/home/r
+ cd /home/r/repo
+ export head=git@github.com:yegor256/mailanes.git
+ head=git@github.com:yegor256/mailanes.git
+ export tag=0.16.0
+ tag=0.16.0
+ export head_branch=master
+ head_branch=master
+ export author=yegor256
+ author=yegor256
+ export PATH=/usr/local/rvm/gems/ruby-2.3.3/bin:/usr/local/rvm/gems/ruby-2.3.3@global/bin:/usr/local/rvm/rubies/ruby-2.3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/usr/local/rvm/bin:/usr/lib/postgresql/9.3/bin
+ PATH=/usr/local/rvm/gems/ruby-2.3.3/bin:/usr/local/rvm/gems/ruby-2.3.3@global/bin:/usr/local/rvm/rubies/ruby-2.3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/usr/local/rvm/bin:/usr/lib/postgresql/9.3/bin
+ sudo -i gem install pdd
/home/r/script.sh: line 9: sudo: command not found
container eda8e90c407e8d07cdd74b1cd83abe5a2b4a8c6353407e6447be9bd33026474e is dead
Sun Sep 30 20:55:48 CEST 2018
yegor256 commented 6 years ago

@rultor release, tag is 0.16.0

rultor commented 6 years ago

@rultor release, tag is 0.16.0

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 6 years ago

@rultor release, tag is 0.16.0

@yegor256 Oops, I failed. You can see the full log here (spent 3min)

Reading views/not_found.haml...
Reading views/unsubscribed.haml...
Reading views/campaign.haml...
Reading views/api.haml...
Reading views/index.haml...
Reading views/already.haml...
Reading views/lanes.haml...
Reading views/subscribed.haml...
Reading views/add.haml...
Reading config.ru...
Reading Procfile...
Reading deploy.sh...
Reading liquibase/master.xml...
Reading liquibase/2018/018-more-indexes.xml...
Reading liquibase/2018/002-unique-constraints.xml...
Reading liquibase/2018/019-attachment.xml...
Reading liquibase/2018/011-some-indexes.xml...
Reading liquibase/2018/013-source.xml...
Reading liquibase/2018/014-source-index.xml...
Reading liquibase/2018/012-recipient-bounced.xml...
Reading liquibase/2018/010-letter-speed.xml...
Reading liquibase/2018/005-letter-place.xml...
Reading liquibase/2018/009-delivery-nullable.xml...
Reading liquibase/2018/016-bounced-timestamp.xml...
Reading liquibase/2018/004-delivery-relax.xml...
Reading liquibase/2018/007-list-stop.xml...
Reading liquibase/2018/001-initial-schema.xml...
Reading liquibase/2018/008-campaign-exhausted.xml...
Reading liquibase/2018/017-more-indexes.xml...
Reading liquibase/2018/015-more-indexes.xml...
Reading liquibase/2018/006-campaign-speed.xml...
Reading liquibase/2018/003-active-recipient.xml...
Reading liquibase/pom.xml...
Reading version.rb...
Reading .gitattributes...
+ bundle install
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Using rake 12.3.1
\u001b[32mFetching concurrent-ruby 1.0.5\u001b[0m
\u001b[32mInstalling concurrent-ruby 1.0.5\u001b[0m
\u001b[31mGem::FilePermissionError: You don't have write permissions for the
/usr/local/rvm/gems/ruby-2.3.3/wrappers directory.
\u001b[0m\u001b[0m\u001b[31mAn error occurred while installing concurrent-ruby (1.0.5), and
Bundler cannot continue.
Make sure that `gem install concurrent-ruby -v '1.0.5' --source
'https://rubygems.org/'` succeeds before bundling.\u001b[0m

In Gemfile:
  rspec-rails was resolved to 3.8.0, which depends on
    railties was resolved to 5.2.1, which depends on
      actionpack was resolved to 5.2.1, which depends on
        actionview was resolved to 5.2.1, which depends on
          rails-dom-testing was resolved to 2.0.3, which depends on
            activesupport was resolved to 5.2.1, which depends on
              i18n was resolved to 1.1.0, which depends on
                concurrent-ruby\u001b[0m
container 13fc00801e4af85eb90342d2f1d4b85656303a09c32b3b1db627eaa254767f24 is dead
Mon Oct  1 07:05:58 CEST 2018
yegor256 commented 6 years ago

@rultor release, tag is 0.16.0

rultor commented 6 years ago

@rultor release, tag is 0.16.0

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 6 years ago

@rultor release, tag is 0.16.0

@yegor256 Oops, I failed. You can see the full log here (spent 8min)

Reading views/not_found.haml...
Reading views/unsubscribed.haml...
Reading views/campaign.haml...
Reading views/api.haml...
Reading views/index.haml...
Reading views/already.haml...
Reading views/lanes.haml...
Reading views/subscribed.haml...
Reading views/add.haml...
Reading config.ru...
Reading Procfile...
Reading deploy.sh...
Reading liquibase/master.xml...
Reading liquibase/2018/018-more-indexes.xml...
Reading liquibase/2018/002-unique-constraints.xml...
Reading liquibase/2018/019-attachment.xml...
Reading liquibase/2018/011-some-indexes.xml...
Reading liquibase/2018/013-source.xml...
Reading liquibase/2018/014-source-index.xml...
Reading liquibase/2018/012-recipient-bounced.xml...
Reading liquibase/2018/010-letter-speed.xml...
Reading liquibase/2018/005-letter-place.xml...
Reading liquibase/2018/009-delivery-nullable.xml...
Reading liquibase/2018/016-bounced-timestamp.xml...
Reading liquibase/2018/004-delivery-relax.xml...
Reading liquibase/2018/007-list-stop.xml...
Reading liquibase/2018/001-initial-schema.xml...
Reading liquibase/2018/008-campaign-exhausted.xml...
Reading liquibase/2018/017-more-indexes.xml...
Reading liquibase/2018/015-more-indexes.xml...
Reading liquibase/2018/006-campaign-speed.xml...
Reading liquibase/2018/003-active-recipient.xml...
Reading liquibase/pom.xml...
Reading version.rb...
Reading .gitattributes...
+ bundle install
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies....
Using rake 12.3.1
\u001b[32mFetching concurrent-ruby 1.0.5\u001b[0m
\u001b[32mInstalling concurrent-ruby 1.0.5\u001b[0m
\u001b[31mGem::FilePermissionError: You don't have write permissions for the
/usr/local/rvm/gems/ruby-2.3.3/wrappers directory.
\u001b[0m\u001b[0m\u001b[31mAn error occurred while installing concurrent-ruby (1.0.5), and
Bundler cannot continue.
Make sure that `gem install concurrent-ruby -v '1.0.5' --source
'https://rubygems.org/'` succeeds before bundling.\u001b[0m

In Gemfile:
  rspec-rails was resolved to 3.8.0, which depends on
    railties was resolved to 5.2.1, which depends on
      actionpack was resolved to 5.2.1, which depends on
        actionview was resolved to 5.2.1, which depends on
          rails-dom-testing was resolved to 2.0.3, which depends on
            activesupport was resolved to 5.2.1, which depends on
              i18n was resolved to 1.1.0, which depends on
                concurrent-ruby\u001b[0m
container fddd59fb9cc58870dea5b90e66141d1c383db9832866a60b004e0f39d5e37dff is dead
Mon Oct  1 08:01:17 CEST 2018
yegor256 commented 6 years ago

@rultor release, tag is 0.16.0

rultor commented 6 years ago

@rultor release, tag is 0.16.0

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 6 years ago

@rultor release, tag is 0.16.0

@yegor256 Oops, I failed. You can see the full log here (spent 8min)

Reading views/not_found.haml...
Reading views/unsubscribed.haml...
Reading views/campaign.haml...
Reading views/api.haml...
Reading views/index.haml...
Reading views/already.haml...
Reading views/lanes.haml...
Reading views/subscribed.haml...
Reading views/add.haml...
Reading config.ru...
Reading Procfile...
Reading deploy.sh...
Reading liquibase/master.xml...
Reading liquibase/2018/018-more-indexes.xml...
Reading liquibase/2018/002-unique-constraints.xml...
Reading liquibase/2018/019-attachment.xml...
Reading liquibase/2018/011-some-indexes.xml...
Reading liquibase/2018/013-source.xml...
Reading liquibase/2018/014-source-index.xml...
Reading liquibase/2018/012-recipient-bounced.xml...
Reading liquibase/2018/010-letter-speed.xml...
Reading liquibase/2018/005-letter-place.xml...
Reading liquibase/2018/009-delivery-nullable.xml...
Reading liquibase/2018/016-bounced-timestamp.xml...
Reading liquibase/2018/004-delivery-relax.xml...
Reading liquibase/2018/007-list-stop.xml...
Reading liquibase/2018/001-initial-schema.xml...
Reading liquibase/2018/008-campaign-exhausted.xml...
Reading liquibase/2018/017-more-indexes.xml...
Reading liquibase/2018/015-more-indexes.xml...
Reading liquibase/2018/006-campaign-speed.xml...
Reading liquibase/2018/003-active-recipient.xml...
Reading liquibase/pom.xml...
Reading version.rb...
Reading .gitattributes...
+ bundle install
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Using rake 12.3.1
\u001b[32mFetching concurrent-ruby 1.0.5\u001b[0m
\u001b[32mInstalling concurrent-ruby 1.0.5\u001b[0m
\u001b[31mGem::FilePermissionError: You don't have write permissions for the
/usr/local/rvm/gems/ruby-2.3.3/wrappers directory.
\u001b[0m\u001b[0m\u001b[31mAn error occurred while installing concurrent-ruby (1.0.5), and
Bundler cannot continue.
Make sure that `gem install concurrent-ruby -v '1.0.5' --source
'https://rubygems.org/'` succeeds before bundling.\u001b[0m

In Gemfile:
  rspec-rails was resolved to 3.8.0, which depends on
    railties was resolved to 5.2.1, which depends on
      actionpack was resolved to 5.2.1, which depends on
        actionview was resolved to 5.2.1, which depends on
          rails-dom-testing was resolved to 2.0.3, which depends on
            activesupport was resolved to 5.2.1, which depends on
              i18n was resolved to 1.1.0, which depends on
                concurrent-ruby\u001b[0m
container 9e412dcae634c94bb3f9140c6f3e01b5bcbe661990432dc80f2f1501ada7945b is dead
Mon Oct  1 09:07:18 CEST 2018
yegor256 commented 6 years ago

@rultor release, tag is 0.16.0

rultor commented 6 years ago

@rultor release, tag is 0.16.0

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 6 years ago

@rultor release, tag is 0.16.0

@yegor256 Oops, I failed. You can see the full log here (spent 8min)

Reading views/not_found.haml...
Reading views/unsubscribed.haml...
Reading views/campaign.haml...
Reading views/api.haml...
Reading views/index.haml...
Reading views/already.haml...
Reading views/lanes.haml...
Reading views/subscribed.haml...
Reading views/add.haml...
Reading config.ru...
Reading Procfile...
Reading deploy.sh...
Reading liquibase/master.xml...
Reading liquibase/2018/018-more-indexes.xml...
Reading liquibase/2018/002-unique-constraints.xml...
Reading liquibase/2018/019-attachment.xml...
Reading liquibase/2018/011-some-indexes.xml...
Reading liquibase/2018/013-source.xml...
Reading liquibase/2018/014-source-index.xml...
Reading liquibase/2018/012-recipient-bounced.xml...
Reading liquibase/2018/010-letter-speed.xml...
Reading liquibase/2018/005-letter-place.xml...
Reading liquibase/2018/009-delivery-nullable.xml...
Reading liquibase/2018/016-bounced-timestamp.xml...
Reading liquibase/2018/004-delivery-relax.xml...
Reading liquibase/2018/007-list-stop.xml...
Reading liquibase/2018/001-initial-schema.xml...
Reading liquibase/2018/008-campaign-exhausted.xml...
Reading liquibase/2018/017-more-indexes.xml...
Reading liquibase/2018/015-more-indexes.xml...
Reading liquibase/2018/006-campaign-speed.xml...
Reading liquibase/2018/003-active-recipient.xml...
Reading liquibase/pom.xml...
Reading version.rb...
Reading .gitattributes...
+ bundle install
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Using rake 12.3.1
\u001b[32mFetching concurrent-ruby 1.0.5\u001b[0m
\u001b[32mInstalling concurrent-ruby 1.0.5\u001b[0m
\u001b[31mErrno::EACCES: Permission denied @ rb_sysopen -
/usr/local/rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks
\u001b[0m\u001b[0m\u001b[31mAn error occurred while installing concurrent-ruby (1.0.5), and
Bundler cannot continue.
Make sure that `gem install concurrent-ruby -v '1.0.5' --source
'https://rubygems.org/'` succeeds before bundling.\u001b[0m

In Gemfile:
  rspec-rails was resolved to 3.8.0, which depends on
    railties was resolved to 5.2.1, which depends on
      actionpack was resolved to 5.2.1, which depends on
        actionview was resolved to 5.2.1, which depends on
          rails-dom-testing was resolved to 2.0.3, which depends on
            activesupport was resolved to 5.2.1, which depends on
              i18n was resolved to 1.1.0, which depends on
                concurrent-ruby\u001b[0m
container 4f2a95b69e1aca97c9828cebd8770d1d0900c8422c9f14bd7f7f0bf158dbbef0 is dead
Mon Oct  1 14:13:07 CEST 2018
yegor256 commented 6 years ago

@rultor release, tag is 0.16.0

rultor commented 6 years ago

@rultor release, tag is 0.16.0

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 6 years ago

@rultor release, tag is 0.16.0

@yegor256 Oops, I failed. You can see the full log here (spent 3min)

checking for pg_config... yes
Using config values from /usr/bin/pg_config
You need to install postgresql-server-dev-X.Y for building a server-side
extension or libpq-dev for building a client-side application.
You need to install postgresql-server-dev-X.Y for building a server-side
extension or libpq-dev for building a client-side application.
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/usr/local/rvm/rubies/ruby-2.3.3/bin/$(RUBY_BASE_NAME)
    --with-pg
    --without-pg
    --enable-windows-cross
    --disable-windows-cross
    --with-pg-config
    --without-pg-config
    --with-pg_config
    --without-pg_config
    --with-pg-dir
    --without-pg-dir
    --with-pg-include
    --without-pg-include=${pg-dir}/include
    --with-pg-lib
    --without-pg-lib=${pg-dir}/lib

To see why this extension failed to compile, please check the mkmf.log which can
be found here:

  /home/r/.ruby/extensions/x86_64-linux/2.3.0/pg-1.1.3/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /home/r/.ruby/gems/pg-1.1.3 for inspection.
Results logged to
/home/r/.ruby/extensions/x86_64-linux/2.3.0/pg-1.1.3/gem_make.out

\u001b[0m\u001b[31mAn error occurred while installing pg (1.1.3), and Bundler cannot
continue.
Make sure that `gem install pg -v '1.1.3' --source 'https://rubygems.org/'`
succeeds before bundling.\u001b[0m

In Gemfile:
  pg\u001b[0m
container f34aebebc016fc2d8cf576b43b92abca2a94927f68a24df0a10b4f305be118de is dead
Mon Oct  1 15:25:58 CEST 2018
yegor256 commented 6 years ago

@rultor release, tag is 0.16.0

rultor commented 6 years ago

@rultor release, tag is 0.16.0

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 6 years ago

@rultor release, tag is 0.16.0

@yegor256 Oops, I failed. You can see the full log here (spent 3min)

\u001b[32mFetching ruby-progressbar 1.10.0\u001b[0m
\u001b[32mInstalling ruby-progressbar 1.10.0\u001b[0m
\u001b[32mFetching unicode-display_width 1.4.0\u001b[0m
\u001b[32mInstalling unicode-display_width 1.4.0\u001b[0m
\u001b[32mFetching rubocop 0.59.2\u001b[0m
\u001b[32mInstalling rubocop 0.59.2\u001b[0m
GemWrappers: Can not wrap missing file: rubocop
\u001b[32mFetching rubocop-rspec 1.29.1\u001b[0m
\u001b[32mInstalling rubocop-rspec 1.29.1\u001b[0m
Using sass-listen 4.0.0
Using sass 3.6.0
\u001b[32mFetching sentry-raven 2.7.4\u001b[0m
\u001b[32mInstalling sentry-raven 2.7.4\u001b[0m
GemWrappers: Can not wrap missing file: raven
\u001b[32mFetching sinatra 2.0.4\u001b[0m
\u001b[32mInstalling sinatra 2.0.4\u001b[0m
\u001b[32mFetching sinatra-contrib 2.0.4\u001b[0m
\u001b[32mInstalling sinatra-contrib 2.0.4\u001b[0m
\u001b[32mFetching slop 4.6.2\u001b[0m
\u001b[32mInstalling slop 4.6.2\u001b[0m
\u001b[32mFetching sprockets 3.7.2\u001b[0m
\u001b[32mInstalling sprockets 3.7.2\u001b[0m
GemWrappers: Can not wrap missing file: sprockets
\u001b[32mFetching virtus 1.0.5\u001b[0m
\u001b[32mInstalling virtus 1.0.5\u001b[0m
\u001b[32mFetching telebot 0.1.2\u001b[0m
\u001b[32mInstalling telebot 0.1.2\u001b[0m
\u001b[32mFetching time_difference 0.7.0\u001b[0m
\u001b[32mInstalling time_difference 0.7.0\u001b[0m
\u001b[32mFetching uuidtools 2.1.5\u001b[0m
\u001b[32mInstalling uuidtools 2.1.5\u001b[0m
\u001b[32mFetching xcop 0.6\u001b[0m
\u001b[32mInstalling xcop 0.6\u001b[0m
GemWrappers: Can not wrap missing file: xcop
\u001b[32mBundle complete! 28 Gemfile dependencies, 89 gems now installed.\u001b[0m
\u001b[32mUse `bundle info [gemname]` to see where a bundled gem is installed.\u001b[0m
\u001b[32mPost-install message from geocoder:\u001b[0m

NOTE: Geocoder's default IP address lookup has changed from FreeGeoIP.net to IPInfo.io. If you explicitly specify :freegeoip in your configuration you must choose a different IP lookup before FreeGeoIP is discontinued on July 1, 2018. If you do not explicitly specify :freegeoip you do not need to change anything.

+ ruby -v
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-linux]
+ rake
bundle outdated
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...

Bundle up to date!
rake aborted!

/home/r/repo/Rakefile:69:in `block in <top (required)>'
/usr/local/rvm/gems/ruby-2.3.3/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:24:in `eval'
/usr/local/rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:24:in `<main>'
Tasks: TOP => default => test => pgsql
(See full trace by running task with --trace)
container f86c57e83a634293a111b88464d33eabb3e0257dd2279f2f0d93954de4e3cd21 is dead
Mon Oct  1 15:34:19 CEST 2018
yegor256 commented 6 years ago

@rultor release, tag is 0.16.0

rultor commented 6 years ago

@rultor release, tag is 0.16.0

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 6 years ago

@rultor release, tag is 0.16.0

@yegor256 Oops, I failed. You can see the full log here (spent 3min)

\u001b[32mInstalling ruby-progressbar 1.10.0\u001b[0m
\u001b[32mFetching unicode-display_width 1.4.0\u001b[0m
\u001b[32mInstalling unicode-display_width 1.4.0\u001b[0m
\u001b[32mFetching rubocop 0.59.2\u001b[0m
\u001b[32mInstalling rubocop 0.59.2\u001b[0m
GemWrappers: Can not wrap missing file: rubocop
\u001b[32mFetching rubocop-rspec 1.29.1\u001b[0m
\u001b[32mInstalling rubocop-rspec 1.29.1\u001b[0m
Using sass-listen 4.0.0
Using sass 3.6.0
\u001b[32mFetching sentry-raven 2.7.4\u001b[0m
\u001b[32mInstalling sentry-raven 2.7.4\u001b[0m
GemWrappers: Can not wrap missing file: raven
\u001b[32mFetching sinatra 2.0.4\u001b[0m
\u001b[32mInstalling sinatra 2.0.4\u001b[0m
\u001b[32mFetching sinatra-contrib 2.0.4\u001b[0m
\u001b[32mInstalling sinatra-contrib 2.0.4\u001b[0m
\u001b[32mFetching slop 4.6.2\u001b[0m
\u001b[32mInstalling slop 4.6.2\u001b[0m
\u001b[32mFetching sprockets 3.7.2\u001b[0m
\u001b[32mInstalling sprockets 3.7.2\u001b[0m
GemWrappers: Can not wrap missing file: sprockets
\u001b[32mFetching virtus 1.0.5\u001b[0m
\u001b[32mInstalling virtus 1.0.5\u001b[0m
\u001b[32mFetching telebot 0.1.2\u001b[0m
\u001b[32mInstalling telebot 0.1.2\u001b[0m
\u001b[32mFetching time_difference 0.7.0\u001b[0m
\u001b[32mInstalling time_difference 0.7.0\u001b[0m
\u001b[32mFetching uuidtools 2.1.5\u001b[0m
\u001b[32mInstalling uuidtools 2.1.5\u001b[0m
\u001b[32mFetching xcop 0.6\u001b[0m
\u001b[32mInstalling xcop 0.6\u001b[0m
GemWrappers: Can not wrap missing file: xcop
\u001b[32mBundle complete! 28 Gemfile dependencies, 89 gems now installed.\u001b[0m
\u001b[32mUse `bundle info [gemname]` to see where a bundled gem is installed.\u001b[0m
\u001b[32mPost-install message from geocoder:\u001b[0m

NOTE: Geocoder's default IP address lookup has changed from FreeGeoIP.net to IPInfo.io. If you explicitly specify :freegeoip in your configuration you must choose a different IP lookup before FreeGeoIP is discontinued on July 1, 2018. If you do not explicitly specify :freegeoip you do not need to change anything.

+ ruby -v
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-linux]
+ rake
bundle outdated
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...

Bundle up to date!
sh: 1: initdb: not found
rake aborted!

/home/r/repo/Rakefile:69:in `block in <top (required)>'
/usr/local/rvm/gems/ruby-2.3.3/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:24:in `eval'
/usr/local/rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:24:in `<main>'
Tasks: TOP => default => test => pgsql
(See full trace by running task with --trace)
container 43c8ee2738175e2d2c48e65f82b57a5e99ee4a95eb63b71f6b251f97cc952896 is dead
Mon Oct  1 15:53:35 CEST 2018
yegor256 commented 6 years ago

@rultor release, tag is 0.16.0

rultor commented 6 years ago

@rultor release, tag is 0.16.0

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 6 years ago

@rultor release, tag is 0.16.0

@yegor256 Oops, I failed. You can see the full log here (spent 8min)

[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.319 s
[INFO] Finished at: 2018-10-01T14:10:13+00:00
[INFO] Final Memory: 21M/484M
[INFO] ------------------------------------------------------------------------
/usr/local/rvm/rubies/ruby-2.3.3/bin/ruby -I"lib:lib:test" -I"/home/r/.ruby/gems/rake-12.3.1/lib" "/home/r/.ruby/gems/rake-12.3.1/lib/rake/rake_test_loader.rb" "test/test__helper.rb" "test/test_ago.rb" "test/test_bounces.rb" "test/test_campaign.rb" "test/test_campaigns.rb" "test/test_deliveries.rb" "test/test_hex.rb" "test/test_lane.rb" "test/test_lanes.rb" "test/test_letter.rb" "test/test_letters.rb" "test/test_list.rb" "test/test_lists.rb" "test/test_mailanes.rb" "test/test_pgsql.rb" "test/test_pipeline.rb" "test/test_recipient.rb" "test/test_recipients.rb" "test/test_tbot.rb" 
Run options: --seed 64541

# Running:

Letter #1 SMTP-sent to test11@mailanes.com from "noname"
\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[31mF\u001b[0m

\u001b[31mFailure:
LetterTest#test_attach_and_detach [/home/r/repo/test/test_letter.rb:58]:
--- expected
+++ actual
@@ -1,2 +1 @@
-# encoding: UTF-8
 "hey \xAD"

\u001b[0m

bin/rails test home/r/repo/test/test_letter.rb:46

\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[31mF\u001b[0m

\u001b[31mFailure:
DeliveriesTest#test_closes_delivery [/home/r/repo/test/test_deliveries.rb:59]:
--- expected
+++ actual
@@ -1,2 +1,2 @@
-# encoding: UTF-8
-"DONE with it, \u0434\u0440\u0443\u0433"
+# encoding: ASCII-8BIT
+"DONE with it, \xD0\xB4\xD1\x80\xD1\x83\xD0\xB3"

\u001b[0m

bin/rails test home/r/repo/test/test_deliveries.rb:47

\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[33mS\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[33mS\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0mRecipient #35/test@mailanes.com from "noname" bounced :(
Message 1 processed and deleted
\u001b[32m.\u001b[0m\u001b[33mS\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m

Finished in 6.324368s, 11.7008 runs/s, 24.6665 assertions/s.
74 runs, 156 assertions, 2 failures, 0 errors, 3 skips

You have skipped tests. Run with --verbose for details.
Coverage report generated for Unit Tests to /home/r/repo/coverage. 910 / 1177 LOC (77.32%) covered.
rake aborted!
Command failed with status (1): [ruby -I"lib:lib:test" -I"/home/r/.ruby/gems/rake-12.3.1/lib" "/home/r/.ruby/gems/rake-12.3.1/lib/rake/rake_test_loader.rb" "test/test__helper.rb" "test/test_ago.rb" "test/test_bounces.rb" "test/test_campaign.rb" "test/test_campaigns.rb" "test/test_deliveries.rb" "test/test_hex.rb" "test/test_lane.rb" "test/test_lanes.rb" "test/test_letter.rb" "test/test_letters.rb" "test/test_list.rb" "test/test_lists.rb" "test/test_mailanes.rb" "test/test_pgsql.rb" "test/test_pipeline.rb" "test/test_recipient.rb" "test/test_recipients.rb" "test/test_tbot.rb" ]
/home/r/.ruby/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => default => test
(See full trace by running task with --trace)
2018-10-01 14:10:21.686 UTC [22936] LOG:  received smart shutdown request
PostgreSQL killed in PID 22936
container 2446d6081c0b9e562bca65399fbe21b70065de2ebc5e86532ae54764e21ad1dd is dead
Mon Oct  1 16:10:55 CEST 2018
yegor256 commented 6 years ago

@rultor release, tag is 0.16.0

rultor commented 6 years ago

@rultor release, tag is 0.16.0

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 6 years ago

@rultor release, tag is 0.16.0

@yegor256 Done! FYI, the full log is here (took me 6min)