+ set -e
+ set -o pipefail
++ dirname ./run.sh
+ cd .
+ echo 17292
+ echo '1.69.1 839260fab'
1.69.1 839260fab
+ date
Sun Jun 13 17:52:24 CEST 2021
+ uptime
17:52:24 up 259 days, 1:58, 0 users, load average: 4.50, 4.58, 4.56
+ ff=default
+ image=yegor256/rultor-image
+ rebase=false
+ head_branch=master
+ pull_title='Sakilla restore fix'
+ author=rocket-3
+ directory=
+ head=git@github.com:databasegit/dbgit.git
+ pull_id=16
+ fork=git@github.com:databasegit/dbgit.git
+ fork_branch=sakilla-restore-fix
+ tests='*IntegrationTest*#*CustomTypes*'
+ squash=false
+ vars=('--env=MAVEN_OPTS=-XX:MaxPermSize=256m -Xmx1g' '--env=head=git@github.com:databasegit/dbgit.git' '--env=pull_id=16' '--env=fork=git@github.com:databasegit/dbgit.git' '--env=fork_branch=sakilla-restore-fix' '--env=tests=*IntegrationTest*#*CustomTypes*' '--env=head_branch=master' '--env=pull_title=Sakilla restore fix' '--env=author=rocket-3' '--env=scripts=( '\''export '\''\'\'''\''MAVEN_OPTS=-XX:MaxPermSize=256m -Xmx1g'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head=git@github.com:databasegit/dbgit.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_id=16'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork=git@github.com:databasegit/dbgit.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork_branch=sakilla-restore-fix'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tests=*IntegrationTest*#*CustomTypes*'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_title=Sakilla restore fix'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=rocket-3'\''\'\'''\'''\'' '\'';'\'' '\''java -version --batch-mode'\'' '\'';'\'' '\''mvn -version --batch-mode'\'' '\'';'\'' '\''mvn clean install package appassembler:assemble -D skipTests --batch-mode --quiet'\'' '\'';'\'' '\''chmod u+r+x target/dbgit/bin/dbgit'\'' '\'';'\'' '\''mvn test -Dtest=${tests:-'\''\'\'''\''*selfTest,*DbGitIntegrationTestBasic*'\''\'\'''\''} --batch-mode'\'' '\'';'\'' )')
+ scripts=('export '\''MAVEN_OPTS=-XX:MaxPermSize=256m -Xmx1g'\''' ';' 'export '\''head=git@github.com:databasegit/dbgit.git'\''' ';' 'export '\''pull_id=16'\''' ';' 'export '\''fork=git@github.com:databasegit/dbgit.git'\''' ';' 'export '\''fork_branch=sakilla-restore-fix'\''' ';' 'export '\''tests=*IntegrationTest*#*CustomTypes*'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''pull_title=Sakilla restore fix'\''' ';' 'export '\''author=rocket-3'\''' ';' 'java -version --batch-mode' ';' 'mvn -version --batch-mode' ';' 'mvn clean install package appassembler:assemble -D skipTests --batch-mode --quiet' ';' 'chmod u+r+x target/dbgit/bin/dbgit' ';' 'mvn test -Dtest=${tests:-'\''*selfTest,*DbGitIntegrationTestBasic*'\''} --batch-mode' ';')
+ container=databasegit_dbgit_16
+ as_root=false
+ mkdir -p /home/rultor/.ssh
+ echo -e 'Host github.com\n\tStrictHostKeyChecking no\n'
+ chmod 600 /home/rultor/.ssh/config
+ git clone git@github.com:databasegit/dbgit.git repo
Cloning into 'repo'...
+ cd repo
+ git config user.email me@rultor.com
+ git config user.name rultor
+ '[' -z 'export '\''MAVEN_OPTS=-XX:MaxPermSize=256m -Xmx1g'\''' ']'
+ cd ..
+ cat
+ '[' false = true ']'
+ cat
+ chmod a+x entry.sh
+ cat
+ echo 'export '\''MAVEN_OPTS=-XX:MaxPermSize=256m -Xmx1g'\''' ';' 'export '\''head=git@github.com:databasegit/dbgit.git'\''' ';' 'export '\''pull_id=16'\''' ';' 'export '\''fork=git@github.com:databasegit/dbgit.git'\''' ';' 'export '\''fork_branch=sakilla-restore-fix'\''' ';' 'export '\''tests=*IntegrationTest*#*CustomTypes*'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''pull_title=Sakilla restore fix'\''' ';' 'export '\''author=rocket-3'\''' ';' 'java -version --batch-mode' ';' 'mvn -version --batch-mode' ';' 'mvn clean install package appassembler:assemble -D skipTests --batch-mode --quiet' ';' 'chmod u+r+x target/dbgit/bin/dbgit' ';' 'mvn test -Dtest=${tests:-'\''*selfTest,*DbGitIntegrationTestBasic*'\''} --batch-mode' ';'
+ rm -rf .gpg
+ cd repo
+ git remote add fork git@github.com:databasegit/dbgit.git
+ git remote update
Fetching origin
Fetching fork
From github.com:databasegit/dbgit
* [new branch] backup-fix -> fork/backup-fix
* [new branch] backup-test -> fork/backup-test
* [new branch] custom-types -> fork/custom-types
* [new branch] dependabot/maven/org.yaml-snakeyaml-1.26 -> fork/dependabot/maven/org.yaml-snakeyaml-1.26
* [new branch] dependency-aware -> fork/dependency-aware
* [new branch] fix-restore-tabledata -> fork/fix-restore-tabledata
* [new branch] master -> fork/master
* [new branch] mssql -> fork/mssql
* [new branch] rultor-setup -> fork/rultor-setup
* [new branch] rultor-support -> fork/rultor-support
* [new branch] sakilla-restore-fix -> fork/sakilla-restore-fix
* [new branch] task-4515 -> fork/task-4515
* [new branch] task-4646 -> fork/task-4646
+ args=
+ '[' default == default ']'
+ args=' --ff'
+ '[' default == no ']'
+ '[' default == only ']'
+ export BRANCH=__rultor
+ BRANCH=__rultor
++ git show-branch __rultor
++ wc -l
+ '[' 0 -gt 0 ']'
+ git checkout -B __rultor fork/sakilla-restore-fix
Switched to a new branch '__rultor'
Branch __rultor set up to track remote branch sakilla-restore-fix from fork.
+ git checkout -B master origin/master
Switched to and reset branch 'master'
Branch master set up to track remote branch master from origin.
Your branch is up-to-date with 'origin/master'.
+ '[' false == true ']'
+ '[' false == true ']'
+ git merge --ff __rultor
Updating 33e48a5..1b1aff1
Fast-forward
.../dbgit/meta/SortedListMetaObject.java | 45 ++++----
.../dbgit/postgres/DBAdapterPostgres.java | 122 +++++++++++----------
.../chars/specific/test/ReportOfTestGroupRun.java | 2 +-
.../chars/specific/test/ReportOfTestRun.java | 2 +-
4 files changed, 92 insertions(+), 79 deletions(-)
+ docker_when_possible
+ true
++ uptime
++ tail -n 1
++ sed 's/ /\n/g'
+ load=4.57
++ echo 4.57 '>' 30
++ bc
+ '[' 0 -eq 1 ']'
+ echo 'load average is 4.57, low enough to run a new Docker container'
load average is 4.57, low enough to run a new Docker container
+ break
+ cd ..
+ '[' -n '' ']'
+ use_image=yegor256/rultor-image
+ docker pull yegor256/rultor-image
Using default tag: latest
latest: Pulling from yegor256/rultor-image
Digest: sha256:5ce3943ea9a2a8dcfed29ce20a0939252c404e308b3a2fbb4cad1ea57abe4e08
Status: Image is up to date for yegor256/rultor-image:latest
+ docker ps --filter=status=exited
+ grep --quiet '\sdatabasegit_dbgit_16\s*$'
+ ls -al .
total 720
drwx--x--x 3 rultor rultor 4096 Jun 13 17:52 .
drwxrwxrwt 11 root root 684032 Jun 13 17:52 ..
-rw-rw-r-- 1 rultor rultor 444 Jun 13 17:52 end.sh
-rwxrwxr-x 1 rultor rultor 363 Jun 13 17:52 entry.sh
-rw-rw-r-- 1 rultor rultor 26 Jun 13 17:52 gitSecret.txt
-rw-rw-r-- 1 rultor rultor 34 Jun 13 17:52 pgSecret.txt
-rw-rw-r-- 1 rultor rultor 6 Jun 13 17:52 pid
drwxrwxr-x 5 rultor rultor 4096 Jun 13 17:52 repo
-rwxrwxr-x 1 rultor rultor 6476 Jun 13 17:52 run.sh
-rw-rw-r-- 1 rultor rultor 749 Jun 13 17:52 script.sh
-rw-rw-r-- 1 rultor rultor 6603 Jun 13 17:52 stdout
++ pwd
++ pwd
+ docker run -t --rm -v /tmp/rultor-rGZF:/main '--env=MAVEN_OPTS=-XX:MaxPermSize=256m -Xmx1g' --env=head=git@github.com:databasegit/dbgit.git --env=pull_id=16 --env=fork=git@github.com:databasegit/dbgit.git --env=fork_branch=sakilla-restore-fix '--env=tests=*IntegrationTest*#*CustomTypes*' --env=head_branch=master '--env=pull_title=Sakilla restore fix' --env=author=rocket-3 '--env=scripts=( '\''export '\''\'\'''\''MAVEN_OPTS=-XX:MaxPermSize=256m -Xmx1g'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head=git@github.com:databasegit/dbgit.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_id=16'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork=git@github.com:databasegit/dbgit.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork_branch=sakilla-restore-fix'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tests=*IntegrationTest*#*CustomTypes*'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_title=Sakilla restore fix'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=rocket-3'\''\'\'''\'''\'' '\'';'\'' '\''java -version --batch-mode'\'' '\'';'\'' '\''mvn -version --batch-mode'\'' '\'';'\'' '\''mvn clean install package appassembler:assemble -D skipTests --batch-mode --quiet'\'' '\'';'\'' '\''chmod u+r+x target/dbgit/bin/dbgit'\'' '\'';'\'' '\''mvn test -Dtest=${tests:-'\''\'\'''\''*selfTest,*DbGitIntegrationTestBasic*'\''\'\'''\''} --batch-mode'\'' '\'';'\'' )' --hostname=docker --privileged --memory=6g --memory-swap=16g --oom-kill-disable --cidfile=/tmp/rultor-rGZF/cid -w=/main -v /var/run/docker.sock:/var/run/docker.sock --name=databasegit_dbgit_16 yegor256/rultor-image /main/entry.sh
+ set -e
+ set -o pipefail
+ shopt -s dotglob
+ useradd -m -G sudo r
+ usermod -s /bin/bash r
+ echo '%sudo ALL=(ALL) NOPASSWD:ALL'
+ cp -R /root/.bashrc /root/.cache /root/.config /root/.gem /root/.gnupg /root/.m2 /root/.profile /root/texmf /home/r
+ cp -R ./cid ./end.sh ./entry.sh ./gitSecret.txt ./pgSecret.txt ./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
+ 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 'MAVEN_OPTS=-XX:MaxPermSize=256m -Xmx1g'
+ MAVEN_OPTS='-XX:MaxPermSize=256m -Xmx1g'
+ export head=git@github.com:databasegit/dbgit.git
+ head=git@github.com:databasegit/dbgit.git
+ export pull_id=16
+ pull_id=16
+ export fork=git@github.com:databasegit/dbgit.git
+ fork=git@github.com:databasegit/dbgit.git
+ export fork_branch=sakilla-restore-fix
+ fork_branch=sakilla-restore-fix
+ export 'tests=*IntegrationTest*#*CustomTypes*'
+ tests='*IntegrationTest*#*CustomTypes*'
+ export head_branch=master
+ head_branch=master
+ export 'pull_title=Sakilla restore fix'
+ pull_title='Sakilla restore fix'
+ export author=rocket-3
+ author=rocket-3
+ java -version --batch-mode
openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)
+ mvn -version --batch-mode
OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
1mApache Maven 3.6.3m
Maven home: /usr/share/maven
Java version: 11.0.11, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-78-generic", arch: "amd64", family: "unix"
+ mvn clean install package appassembler:assemble -D skipTests --batch-mode --quiet
OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
+ chmod u+r+x target/dbgit/bin/dbgit
+ mvn test '-Dtest=*IntegrationTest*#*CustomTypes*' --batch-mode
OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< ru.fusionsoft:dbgit >-------------------------
[INFO] Building dbgit 0.3.1
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons-io:commons-io:jar:1.3.2
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ dbgit ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 4 resources to /home/r/repo/target/dbgit
[INFO] Copying 4 resources to /home/r/repo/target/dbgit/bin
[INFO] Copying 2 resources to /home/r/repo/target/dbgit/lang
[INFO] Copying 1 resource to /home/r/repo/target/dbgit/example
[INFO] Copying 1 resource to /home/r/repo/target/dbgit/
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ dbgit ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ dbgit ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ dbgit ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ dbgit ---
[INFO] Downloading from Maven: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit-platform/2.22.2/surefire-junit-platform-2.22.2.pom
[INFO] Downloaded from Maven: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit-platform/2.22.2/surefire-junit-platform-2.22.2.pom (7.0 kB at 23 kB/s)
[INFO] Downloading from Maven: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-providers/2.22.2/surefire-providers-2.22.2.pom
[INFO] Downloaded from Maven: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-providers/2.22.2/surefire-providers-2.22.2.pom (2.5 kB at 104 kB/s)
[INFO] Downloading from Maven: https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-launcher/1.3.1/junit-platform-launcher-1.3.1.pom
[INFO] Downloaded from Maven: https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-launcher/1.3.1/junit-platform-launcher-1.3.1.pom (2.2 kB at 89 kB/s)
[INFO] Downloading from Maven: https://repo.maven.apache.org/maven2/org/apiguardian/apiguardian-api/1.0.0/apiguardian-api-1.0.0.pom
[INFO] Downloaded from Maven: https://repo.maven.apache.org/maven2/org/apiguardian/apiguardian-api/1.0.0/apiguardian-api-1.0.0.pom (1.2 kB at 51 kB/s)
[INFO] Downloading from Maven: https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-engine/1.3.1/junit-platform-engine-1.3.1.pom
[INFO] Downloaded from Maven: https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-engine/1.3.1/junit-platform-engine-1.3.1.pom (2.4 kB at 96 kB/s)
[INFO] Downloading from Maven: https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-commons/1.3.1/junit-platform-commons-1.3.1.pom
[INFO] Downloaded from Maven: https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-commons/1.3.1/junit-platform-commons-1.3.1.pom (2.0 kB at 81 kB/s)
[INFO] Downloading from Maven: https://repo.maven.apache.org/maven2/org/opentest4j/opentest4j/1.1.1/opentest4j-1.1.1.pom
[INFO] Downloaded from Maven: https://repo.maven.apache.org/maven2/org/opentest4j/opentest4j/1.1.1/opentest4j-1.1.1.pom (1.7 kB at 70 kB/s)
[INFO] Downloading from Maven: https://repo.maven.apache.org/maven2/org/apiguardian/apiguardian-api/1.0.0/apiguardian-api-1.0.0.jar
[INFO] Downloading from Maven: https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-commons/1.3.1/junit-platform-commons-1.3.1.jar
[INFO] Downloading from Maven: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit-platform/2.22.2/surefire-junit-platform-2.22.2.jar
[INFO] Downloading from Maven: https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-engine/1.3.1/junit-platform-engine-1.3.1.jar
[INFO] Downloading from Maven: https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-launcher/1.3.1/junit-platform-launcher-1.3.1.jar
[INFO] Downloaded from Maven: https://repo.maven.apache.org/maven2/org/apiguardian/apiguardian-api/1.0.0/apiguardian-api-1.0.0.jar (2.2 kB at 68 kB/s)
[INFO] Downloading from Maven: https://repo.maven.apache.org/maven2/org/opentest4j/opentest4j/1.1.1/opentest4j-1.1.1.jar
[INFO] Downloaded from Maven: https://repo.maven.apache.org/maven2/org/opentest4j/opentest4j/1.1.1/opentest4j-1.1.1.jar (7.1 kB at 297 kB/s)
[INFO] Downloaded from Maven: https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-commons/1.3.1/junit-platform-commons-1.3.1.jar (78 kB at 714 kB/s)
[INFO] Downloaded from Maven: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit-platform/2.22.2/surefire-junit-platform-2.22.2.jar (66 kB at 554 kB/s)
[INFO] Downloaded from Maven: https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-launcher/1.3.1/junit-platform-launcher-1.3.1.jar (95 kB at 722 kB/s)
[INFO] Downloaded from Maven: https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-engine/1.3.1/junit-platform-engine-1.3.1.jar (135 kB at 1.0 MB/s)
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running ru.fusionsoft.dbgit.integration.DbGitIntegrationTestBasic
[SUBJECT ACCESS ERROR] "Should not throw any exceptions"
| /home/r/repo/target/itoutput/05 # /home/r/repo/target/dbgit/bin/dbgit init
| >
| > Repository created
| /home/r/repo/target/itoutput/05 # /home/r/repo/target/dbgit/bin/dbgit link jdbc:postgresql://135.181.94.98:31007/dvdrental user=postgres password=****
| >
| > Testing connection OK... Connection established
| /home/r/repo/target/itoutput/05 # writing file .dbgit/.dbignore with content:
| > *
| > !public/*.ts
| > !public/*.sch
| > !public/*.seq
| > !public/*.tbl
| > !public/*.pkg
| > !public/*.trg
| > !public/*.prc
| > !public/*.fnc
| > !public/*.vw
| > !public/*.blob
| > !public/*.udt
| > !public/*.enum
| > !public/*.domain
| > !public/*.csv
| /home/r/repo/target/itoutput/05 # /home/r/repo/target/dbgit/bin/dbgit add "*" -v
| >
| > Processing object public/film_summary.udt
| > Saving to file... OK
| > Adding to git... OK Time... 88 ms
| > Processing object public/mpaa_rating.enum
| > Saving to file... OK
| > Adding to git... OK Time... 10 ms
| > Processing object public/year.domain
| > Saving to file... OK
| > Adding to git... OK Time... 9 ms
| > Processing object public/actor_actor_id_seq.seq
| > Saving to file... OK
| > Adding to git... OK Time... 10 ms
| > Processing object public/address_address_id_seq.seq
| > Saving to file... OK
| > Adding to git... OK Time... 7 ms
| > Processing object public/category_category_id_seq.seq
| > Saving to file... OK
| > Adding to git... OK Time... 7 ms
| > Processing object public/city_city_id_seq.seq
| > Saving to file... OK
| > Adding to git... OK Time... 7 ms
| > Processing object public/country_country_id_seq.seq
| > Saving to file... OK
| > Adding to git... OK Time... 7 ms
| > Processing object public/customer_customer_id_seq.seq
| > Saving to file... OK
| > Adding to git... OK Time... 5 ms
| > Processing object public/film_film_id_seq.seq
| > Saving to file... OK
| > Adding to git... OK Time... 6 ms
| > Processing object public/inventory_inventory_id_seq.seq
| > Saving to file... OK
| > Adding to git... OK Time... 5 ms
| > Processing object public/language_language_id_seq.seq
| > Saving to file... OK
| > Adding to git... OK Time... 6 ms
| > Processing object public/payment_payment_id_seq.seq
| > Saving to file... OK
| > Adding to git... OK Time... 6 ms
| > Processing object public/rental_rental_id_seq.seq
| > Saving to file... OK
| > Adding to git... OK Time... 5 ms
| > Processing object public/staff_staff_id_seq.seq
| > Saving to file... OK
| > Adding to git... OK Time... 4 ms
| > Processing object public/store_store_id_seq.seq
| > Saving to file... OK
| > Adding to git... OK Time... 8 ms
| > Processing object public/actor.tbl
| > Saving to file... OK
| > Adding to git... OK Time... 21 ms
| > Loading portion index 0,
| > portion size 200
| > There is no parameter CURRENT_PORTION
| > Writing portion...
| > Loading portion index 1,
| > portion size 0
| > There is no parameter CURRENT_PORTION
| > Processing object public/address.tbl
| > Saving to file... OK
| > Adding to git... OK Time... 19 ms
| > Loading portion index 0,
| > portion size 603
| > There is no parameter CURRENT_PORTION
| > Writing portion...
| > Loading portion index 1,
| > portion size 0
| > There is no parameter CURRENT_PORTION
| > Processing object public/category.tbl
| > Saving to file... OK
| > Adding to git... OK Time... 13 ms
| > Loading portion index 0,
| > portion size 16
| > There is no parameter CURRENT_PORTION
| > Writing portion...
| > Loading portion index 1,
| > portion size 0
| > There is no parameter CURRENT_PORTION
| > Processing object public/city.tbl
| > Saving to file... OK
| > Adding to git... OK Time... 16 ms
| > Loading portion index 0,
| > portion size 600
| > There is no parameter CURRENT_PORTION
| > Writing portion...
| > Loading portion index 1,
| > portion size 0
| > There is no parameter CURRENT_PORTION
| > Processing object public/country.tbl
| > Saving to file... OK
| > Adding to git... OK Time... 6 ms
| > Loading portion index 0,
| > portion size 109
| > There is no parameter CURRENT_PORTION
| > Writing portion...
| > Loading portion index 1,
| > portion size 0
| > There is no parameter CURRENT_PORTION
| > Processing object public/customer.tbl
| > Saving to file... OK
| > Adding to git... OK Time... 15 ms
| > Loading portion index 0,
| > portion size 599
| > There is no parameter CURRENT_PORTION
| > Writing portion...
| > Loading portion index 1,
| > portion size 0
| > There is no parameter CURRENT_PORTION
| > Processing object public/film.tbl
| > Saving to file... OK
| > Adding to git... OK Time... 11 ms
| > Loading portion index 0,
| > portion size 1000
| > There is no parameter CURRENT_PORTION
| > Writing portion...
| > Loading portion index 1,
| > portion size 0
| > There is no parameter CURRENT_PORTION
| > Processing object public/film_actor.tbl
| > Saving to file... OK
| > Adding to git... OK Time... 13 ms
| > Loading portion index 0,
| > portion size 5462
| > There is no parameter CURRENT_PORTION
| > Writing portion...
| > Loading portion index 1,
| > portion size 0
| > There is no parameter CURRENT_PORTION
| > Processing object public/film_category.tbl
| > Saving to file... OK
| > Adding to git... OK Time... 12 ms
| > Loading portion index 0,
| > portion size 1000
| > There is no parameter CURRENT_PORTION
| > Writing portion...
| > Loading portion index 1,
| > portion size 0
| > There is no parameter CURRENT_PORTION
| > Processing object public/inventory.tbl
| > Saving to file... OK
| > Adding to git... OK Time... 10 ms
| > Loading portion index 0,
| > portion size 4581
| > There is no parameter CURRENT_PORTION
| > Writing portion...
| > Loading portion index 1,
| > portion size 0
| > There is no parameter CURRENT_PORTION
| > Processing object public/language.tbl
| > Saving to file... OK
| > Adding to git... OK Time... 7 ms
| > Loading portion index 0,
| > portion size 6
| > There is no parameter CURRENT_PORTION
| > Writing portion...
| > Loading portion index 1,
| > portion size 0
| > There is no parameter CURRENT_PORTION
| > Processing object public/payment.tbl
| > Saving to file... OK
| > Adding to git... OK Time... 10 ms
| > Loading portion index 0,
| > Table public/payment.csv has more than 10000 records. dbgit can't save this table data.
| > Processing object public/rental.tbl
| > Saving to file... OK
| > Adding to git... OK Time... 6 ms
| > Loading portion index 0,
| > Table public/rental.csv has more than 10000 records. dbgit can't save this table data.
| > Processing object public/staff.tbl
| > Saving to file... OK
| > Adding to git... OK Time... 9 ms
| > Loading portion index 0,
| > portion size 2
| > There is no parameter CURRENT_PORTION
| > Writing portion...
| > Write file object public/staff/3464c9d77aa541f3bdc35067043e3cc33ed4176b2855ff5ea9bfea7a76ddc289.data
| > Loading portion index 1,
| > portion size 0
| > There is no parameter CURRENT_PORTION
| > Processing object public/store.tbl
| > Saving to file... OK
| > Adding to git... OK Time... 10 ms
| > Loading portion index 0,
| > portion size 2
| > There is no parameter CURRENT_PORTION
| > Writing portion...
| > Loading portion index 1,
| > portion size 0
| > There is no parameter CURRENT_PORTION
| > Processing object public/_group_concat.fnc
| > Saving to file... OK
| > Adding to git... OK Time... 11 ms
| > Processing object public/film_in_stock.fnc
| > Saving to file... OK
| > Adding to git... OK Time... 6 ms
| > Processing object public/film_not_in_stock.fnc
| > Saving to file... OK
| > Adding to git... OK Time... 7 ms
| > Processing object public/get_customer_balance.fnc
| > Saving to file... OK
| > Adding to git... OK Time... 8 ms
| > Processing object public/group_concat.fnc
| > Saving to file... OK
| > Adding to git... OK Time... 5 ms
| > Processing object public/inventory_held_by_customer.fnc
| > Saving to file... OK
| > Adding to git... OK Time... 6 ms
| > Processing object public/inventory_in_stock.fnc
| > Saving to file... OK
| > Adding to git... OK Time... 8 ms
| > Processing object public/last_day.fnc
| > Saving to file... OK
| > Adding to git... OK Time... 5 ms
| > Processing object public/last_updated.fnc
| > Saving to file... OK
| > Adding to git... OK Time... 7 ms
| > Processing object public/rewards_report.fnc
| > Saving to file... OK
| > Adding to git... OK Time... 6 ms
| > Processing object public/film_fulltext_trigger.trg
| > Saving to file... OK
| > Adding to git... OK Time... 7 ms
| > Processing object public/last_updated.trg
| > Saving to file... OK
| > Adding to git... OK Time... 6 ms
| > Processing object public/actor_info.vw
| > Saving to file... OK
| > Adding to git... OK Time... 7 ms
| > Processing object public/customer_list.vw
| > Saving to file... OK
| > Adding to git... OK Time... 6 ms
| > Processing object public/film_list.vw
| > Saving to file... OK
| > Adding to git... OK Time... 7 ms
| > Processing object public/nicer_but_slower_film_list.vw
| > Saving to file... OK
| > Adding to git... OK Time... 6 ms
| > Processing object public/sales_by_film_category.vw
| > Saving to file... OK
| > Adding to git... OK Time... 5 ms
| > Processing object public/sales_by_store.vw
| > Saving to file... OK
| > Adding to git... OK Time... 6 ms
| > Processing object public/staff_list.vw
| > Saving to file... OK
| > Adding to git... OK Time... 5 ms
| > Done!
| /home/r/repo/target/itoutput/05 # /home/r/repo/target/dbgit/bin/dbgit link jdbc:postgresql://135.181.94.98:31007/test#databasegit user=postgres password=****
| >
| > Testing connection OK... Connection established
| /home/r/repo/target/itoutput/05 # /home/r/repo/target/dbgit/bin/dbgit restore -r -v
| >
| > Do restore...
| > Loading files...
| > Loading file public/_group_concat_text_text.fnc...
| > Loading file public/actor.csv... loaded 201 rows
| > Loading file public/actor.tbl...
| > Loading file public/actor_actor_id_seq.seq...
| > Loading file public/actor_info.vw...
| > Loading file public/address.csv... loaded 604 rows
| > Loading file public/address.tbl...
| > Loading file public/address_address_id_seq.seq...
| > Loading file public/category.csv... loaded 17 rows
| > Loading file public/category.tbl...
| > Loading file public/category_category_id_seq.seq...
| > Loading file public/city.csv... loaded 601 rows
| > Loading file public/city.tbl...
| > Loading file public/city_city_id_seq.seq...
| > Loading file public/country.csv... loaded 110 rows
| > Loading file public/country.tbl...
| > Loading file public/country_country_id_seq.seq...
| > Loading file public/customer.csv... loaded 600 rows
| > Loading file public/customer.tbl...
| > Loading file public/customer_customer_id_seq.seq...
| > Loading file public/customer_list.vw...
| > Loading file public/film.csv... loaded 1001 rows
| > Loading file public/film.tbl...
| > Loading file public/film_actor.csv... loaded 5463 rows
| > Loading file public/film_actor.tbl...
| > Loading file public/film_category.csv... loaded 1001 rows
| > Loading file public/film_category.tbl...
| > Loading file public/film_film_id_seq.seq...
| > Loading file public/film_fulltext_trigger.trg...
| > Loading file public/film_in_stock_p_film_id_integer_p_store_id_integer_OUT_p_film_count_integer.fnc...
| > Loading file public/film_list.vw...
| > Loading file public/film_not_in_stock_p_film_id_integer_p_store_id_integer_OUT_p_film_count_integer.fnc...
| > Loading file public/film_summary.udt...
| > Loading file public/get_customer_balance_p_customer_id_integer_p_effective_date_timestamp_without_time_zone.fnc...
| > Loading file public/group_concat_text.fnc...
| > Loading file public/inventory.csv... loaded 4582 rows
| > Loading file public/inventory.tbl...
| > Loading file public/inventory_held_by_customer_p_inventory_id_integer.fnc...
| > Loading file public/inventory_in_stock_p_inventory_id_integer.fnc...
| > Loading file public/inventory_inventory_id_seq.seq...
| > Loading file public/language.csv... loaded 7 rows
| > Loading file public/language.tbl...
| > Loading file public/language_language_id_seq.seq...
| > Loading file public/last_day_timestamp_without_time_zone.fnc...
| > Loading file public/last_updated.fnc...
| > Loading file public/last_updated.trg...
| > Loading file public/mpaa_rating.enum...
| > Loading file public/nicer_but_slower_film_list.vw...
| > Loading file public/payment.csv... loaded 1 rows
| > Loading file public/payment.tbl...
| > Loading file public/payment_payment_id_seq.seq...
| > Loading file public/rental.csv... loaded 1 rows
| > Loading file public/rental.tbl...
| > Loading file public/rental_rental_id_seq.seq...
| > Loading file public/rewards_report_min_monthly_purchases_integer_min_dollar_amount_purchased_numeric.fnc...
| > Loading file public/sales_by_film_category.vw...
| > Loading file public/sales_by_store.vw...
| > Loading file public/staff.csv... loaded 3 rows
| > Loading file public/staff.tbl...
| > Loading file public/staff_list.vw...
| > Loading file public/staff_staff_id_seq.seq...
| > Loading file public/store.csv... loaded 3 rows
| > Loading file public/store.tbl...
| > Loading file public/store_store_id_seq.seq...
| > Loading file public/year.domain...
| > Backup option DISABLED, no objects will be backed up before making changes
| > Restore key specified, the operation will make changes to database
| > Seeking objects to remove...
| > No objects to remove
| > Seeking objects to restore...
| > public/film_summary.udt
| > public/actor.tbl
| > public/address.tbl
| > public/category.tbl
| > public/city.tbl
| > public/country.tbl
| > public/customer.tbl
| > public/film.tbl
| > public/film_actor.tbl
| > public/film_category.tbl
| > public/inventory.tbl
| > public/language.tbl
| > public/payment.tbl
| > public/rental.tbl
| > public/staff.tbl
| > public/store.tbl
| > Seeking additional dependant objects to restore...
| > No additional objects to restore
| > Restoring...
| > Dropping constraints for all updating tables...
| > Dropping constraints for table public/payment.tbl...
| > Dropping constraints for table public/rental.tbl...
| > Dropping constraints for table public/store.tbl...
| > Dropping constraints for table public/customer.tbl...
| > Dropping constraints for table public/staff.tbl...
| > Dropping constraints for table public/address.tbl...
| > Dropping constraints for table public/film_actor.tbl...
| > Dropping constraints for table public/film_category.tbl...
| > Dropping constraints for table public/inventory.tbl...
| > Dropping constraints for table public/city.tbl...
| > Dropping constraints for table public/film.tbl...
| > Dropping constraints for table public/actor.tbl...
| > Dropping constraints for table public/category.tbl...
| > Dropping constraints for table public/country.tbl...
| > Dropping constraints for table public/language.tbl...
| > Restoring user defined type public/film_summary.udt ... OK
| > Restoring table public/actor.tbl ... OK
| > Modifying columns...15:54 ERROR [App.java:41] : Error execute dbgit
| > ru.fusionsoft.dbgit.core.ExceptionDBGitRestore: Restore objects error
| > at ru.fusionsoft.dbgit.adapters.DBAdapter.restoreDataBase(DBAdapter.java:160)
| > at ru.fusionsoft.dbgit.core.GitMetaDataManager.restoreDataBase(GitMetaDataManager.java:384)
| > at ru.fusionsoft.dbgit.command.CmdRestore.execute(CmdRestore.java:183)
| > at ru.fusionsoft.dbgit.App.executeDbGitCommand(App.java:57)
| > at ru.fusionsoft.dbgit.App.main(App.java:29)
| > Caused by: ru.fusionsoft.dbgit.core.ExceptionDBGitRestore: Error restore public/actor.tbl
| > at ru.fusionsoft.dbgit.postgres.DBRestoreTablePostgres.restoreTablePostgres(DBRestoreTablePostgres.java:124)
| > at ru.fusionsoft.dbgit.postgres.DBRestoreTablePostgres.restoreMetaObject(DBRestoreTablePostgres.java:38)
| > at ru.fusionsoft.dbgit.adapters.DBAdapter.restoreDataBase(DBAdapter.java:140)
| > ... 4 common frames omitted
| > Caused by: ru.fusionsoft.dbgit.core.ExceptionDBGit: Error restore public/actor.tbl#last_name
| > at ru.fusionsoft.dbgit.postgres.DBRestoreTablePostgres.restoreTableFields(DBRestoreTablePostgres.java:357)
| > at ru.fusionsoft.dbgit.postgres.DBRestoreTablePostgres.restoreTablePostgres(DBRestoreTablePostgres.java:112)
| > ... 6 common frames omitted
| > Caused by: org.postgresql.util.PSQLException: ERROR: cannot alter type of a column used by a view or rule
| > Detail: rule _RETURN on view nicer_but_slower_film_list depends on column "last_name"
| > at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2440)
| > at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2183)
| > at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:308)
| > at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)
| > at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
| > at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:307)
| > at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:293)
| > at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:270)
| > at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:266)
| > at ru.fusionsoft.dbgit.statement.StatementLogging.execute(StatementLogging.java:178)
| > at ru.fusionsoft.dbgit.postgres.DBRestoreTablePostgres.alterTypeColumn(DBRestoreTablePostgres.java:561)
| > at ru.fusionsoft.dbgit.postgres.DBRestoreTablePostgres.restoreTableFields(DBRestoreTablePostgres.java:333)
| > ... 7 common frames omitted
| Process exited with error, code 1
| Errors:
| >
| > Error execute dbgit: ru.fusionsoft.dbgit.core.ExceptionDBGitRestore: Restore objects error
| > at ru.fusionsoft.dbgit.adapters.DBAdapter.restoreDataBase(DBAdapter.java:160)
| > at ru.fusionsoft.dbgit.core.GitMetaDataManager.restoreDataBase(GitMetaDataManager.java:384)
| > at ru.fusionsoft.dbgit.command.CmdRestore.execute(CmdRestore.java:183)
| > at ru.fusionsoft.dbgit.App.executeDbGitCommand(App.java:57)
| > at ru.fusionsoft.dbgit.App.main(App.java:29)
| > Caused by: ru.fusionsoft.dbgit.core.ExceptionDBGitRestore: Error restore public/actor.tbl
| > at ru.fusionsoft.dbgit.postgres.DBRestoreTablePostgres.restoreTablePostgres(DBRestoreTablePostgres.java:124)
| > at ru.fusionsoft.dbgit.postgres.DBRestoreTablePostgres.restoreMetaObject(DBRestoreTablePostgres.java:38)
| > at ru.fusionsoft.dbgit.adapters.DBAdapter.restoreDataBase(DBAdapter.java:140)
| > ... 4 more
| > Caused by: ru.fusionsoft.dbgit.core.ExceptionDBGit: Error restore public/actor.tbl#last_name
| > at ru.fusionsoft.dbgit.postgres.DBRestoreTablePostgres.restoreTableFields(DBRestoreTablePostgres.java:357)
| > at ru.fusionsoft.dbgit.postgres.DBRestoreTablePostgres.restoreTablePostgres(DBRestoreTablePostgres.java:112)
| > ... 6 more
| > Caused by: org.postgresql.util.PSQLException: ERROR: cannot alter type of a column used by a view or rule
| > Detail: rule _RETURN on view nicer_but_slower_film_list depends on column "last_name"
| > at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2440)
| > at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2183)
| > at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:308)
| > at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)
| > at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
| > at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:307)
| > at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:293)
| > at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:270)
| > at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:266)
| > at ru.fusionsoft.dbgit.statement.StatementLogging.execute(StatementLogging.java:178)
| > at ru.fusionsoft.dbgit.postgres.DBRestoreTablePostgres.alterTypeColumn(DBRestoreTablePostgres.java:561)
| > at ru.fusionsoft.dbgit.postgres.DBRestoreTablePostgres.restoreTableFields(DBRestoreTablePostgres.java:333)
| > ... 7 more
| >
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 107.985 s <<< FAILURE! - in ru.fusionsoft.dbgit.integration.DbGitIntegrationTestBasic
[ERROR] dbToDbRestoreWorksWithCustomTypes Time elapsed: 107.98 s <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
at ru.fusionsoft.dbgit.integration.DbGitIntegrationTestBasic.dbToDbRestoreWorksWithCustomTypes(DbGitIntegrationTestBasic.java:358)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] DbGitIntegrationTestBasic.dbToDbRestoreWorksWithCustomTypes:358 expected: <true> but was: <false>
[INFO]
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:51 min
[INFO] Finished at: 2021-06-13T15:54:48Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project dbgit: There are test failures.
[ERROR]
[ERROR] Please refer to /home/r/repo/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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/MojoFailureException
container 159ae381b7525f417de795a131ba5d18650d3455b827b9af4bb2e7dbbd70d10f is dead
Sun Jun 13 17:54:57 CEST 2021