+ set -e + set -o pipefail ++ dirname ./run.sh + cd . + echo 1079 + echo '1.68.2 70c246ce3' 1.68.2 70c246ce3 + date Tue Apr 30 08:02:01 CEST 2019 + uptime 08:02:01 up 135 days, 21:32, 0 users, load average: 6.04, 5.75, 5.62 + ff=default + image=ammaratef45/flutter:v3 + rebase=false + head_branch=master + pull_title='#48 added api method and tests' + author=ammaratef45 + directory= + head=git@github.com:ammaratef45/Attendance.git + pull_id=68 + fork=git@github.com:ammaratef45/Attendance.git + fork_branch=48 + squash=false + vars=('--env=head=git@github.com:ammaratef45/Attendance.git' '--env=pull_id=68' '--env=fork=git@github.com:ammaratef45/Attendance.git' '--env=fork_branch=48' '--env=head_branch=master' '--env=pull_title=#48 added api method and tests' '--env=author=ammaratef45' '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:ammaratef45/Attendance.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_id=68'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork=git@github.com:ammaratef45/Attendance.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork_branch=48'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_title=#48 added api method and tests'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=ammaratef45'\''\'\'''\'''\'' '\'';'\'' '\''flutter doctor'\'' '\'';'\'' '\''cd attendance'\'' '\'';'\'' '\''chmod +x cleanENV.sh && ./cleanENV.sh'\'' '\'';'\'' '\''flutter packages get'\'' '\'';'\'' '\''flutter test'\'' '\'';'\'' '\''flutter -v build apk'\'' '\'';'\'' '\''. /etc/profile.d/rvm.sh'\'' '\'';'\'' '\''pdd -f /dev/null -v'\'' '\'';'\'' )') + scripts=('export '\''head=git@github.com:ammaratef45/Attendance.git'\''' ';' 'export '\''pull_id=68'\''' ';' 'export '\''fork=git@github.com:ammaratef45/Attendance.git'\''' ';' 'export '\''fork_branch=48'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''pull_title=#48 added api method and tests'\''' ';' 'export '\''author=ammaratef45'\''' ';' 'flutter doctor' ';' 'cd attendance' ';' 'chmod +x cleanENV.sh && ./cleanENV.sh' ';' 'flutter packages get' ';' 'flutter test' ';' 'flutter -v build apk' ';' '. /etc/profile.d/rvm.sh' ';' 'pdd -f /dev/null -v' ';') + container=ammaratef45_attendance_68 + as_root=true + 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:ammaratef45/Attendance.git repo Cloning into 'repo'... + cd repo + git config user.email me@rultor.com + git config user.name rultor + '[' -z 'export '\''head=git@github.com:ammaratef45/Attendance.git'\''' ']' + cd .. + cat + '[' true = true ']' + cat + chmod a+x entry.sh + cat + echo 'export '\''head=git@github.com:ammaratef45/Attendance.git'\''' ';' 'export '\''pull_id=68'\''' ';' 'export '\''fork=git@github.com:ammaratef45/Attendance.git'\''' ';' 'export '\''fork_branch=48'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''pull_title=#48 added api method and tests'\''' ';' 'export '\''author=ammaratef45'\''' ';' 'flutter doctor' ';' 'cd attendance' ';' 'chmod +x cleanENV.sh && ./cleanENV.sh' ';' 'flutter packages get' ';' 'flutter test' ';' 'flutter -v build apk' ';' '. /etc/profile.d/rvm.sh' ';' 'pdd -f /dev/null -v' ';' + gpgconf --reload gpg-agent + gpg --keyserver hkp://pool.sks-keyservers.net --verbose --recv-keys 9AF0FA4C gpg: requesting key 9AF0FA4C from hkp server pool.sks-keyservers.net gpg: armor header: Version: SKS 1.1.6 gpg: armor header: Comment: Hostname: keys.andreas-puls.de gpg: pub 2048R/9AF0FA4C 2014-08-17 Rultor.com <gpg@rultor.com> gpg: key 9AF0FA4C: "Rultor.com <gpg@rultor.com>" not changed gpg: Total number processed: 1 gpg: unchanged: 1 + gpg --version gpg (GnuPG) 1.4.20 Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Home: ~/.gnupg Supported algorithms: Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128, CAMELLIA192, CAMELLIA256 Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224 Compression: Uncompressed, ZIP, ZLIB, BZIP2 ++ pwd ++ pwd + gpg --verbose --keyring=/tmp/rultor-rZvX/.gpg/pubring.gpg --secret-keyring=/tmp/rultor-rZvX/.gpg/secring.gpg --decrypt repo/attendance/android/api-project.json.asc gpg: public key is 9A839C3A gpg: using subkey 9A839C3A instead of primary key 9AF0FA4C gpg: using subkey 9A839C3A instead of primary key 9AF0FA4C gpg: encrypted with 2048-bit RSA key, ID 9A839C3A, created 2014-08-17 "Rultor.com <gpg@rultor.com>" gpg: AES256 encrypted data gpg: original file name='api-project.json.enc' + gpg --no-tty --batch --verbose --decrypt --passphrase rultor-key:ammaratef45/Attendance repo/attendance/android/api-project.json.enc gpg: AES encrypted data gpg: gpg-agent is not available in this session gpg: encrypted with 1 passphrase gpg: original file name='api-project.json' + rm -rf repo/attendance/android/api-project.json.enc ++ pwd ++ pwd + gpg --verbose --keyring=/tmp/rultor-rZvX/.gpg/pubring.gpg --secret-keyring=/tmp/rultor-rZvX/.gpg/secring.gpg --decrypt repo/attendance/android/key.properties.asc gpg: public key is 9A839C3A gpg: using subkey 9A839C3A instead of primary key 9AF0FA4C gpg: using subkey 9A839C3A instead of primary key 9AF0FA4C gpg: encrypted with 2048-bit RSA key, ID 9A839C3A, created 2014-08-17 "Rultor.com <gpg@rultor.com>" gpg: AES256 encrypted data gpg: original file name='key.properties.enc' + gpg --no-tty --batch --verbose --decrypt --passphrase rultor-key:ammaratef45/Attendance repo/attendance/android/key.properties.enc gpg: AES encrypted data gpg: gpg-agent is not available in this session gpg: encrypted with 1 passphrase gpg: original file name='key.properties' + rm -rf repo/attendance/android/key.properties.enc ++ pwd ++ pwd + gpg --verbose --keyring=/tmp/rultor-rZvX/.gpg/pubring.gpg --secret-keyring=/tmp/rultor-rZvX/.gpg/secring.gpg --decrypt repo/attendance/exportEnvVars.sh.asc gpg: public key is 9A839C3A gpg: using subkey 9A839C3A instead of primary key 9AF0FA4C gpg: using subkey 9A839C3A instead of primary key 9AF0FA4C gpg: encrypted with 2048-bit RSA key, ID 9A839C3A, created 2014-08-17 "Rultor.com <gpg@rultor.com>" gpg: AES256 encrypted data gpg: original file name='rultor-XXXX.ioqQDwgu' + gpg --no-tty --batch --verbose --decrypt --passphrase rultor-key:ammaratef45/Attendance repo/attendance/exportEnvVars.sh.enc gpg: AES encrypted data gpg: gpg-agent is not available in this session gpg: encrypted with 1 passphrase gpg: original file name='exportEnvVars.sh' + rm -rf repo/attendance/exportEnvVars.sh.enc + rm -rf .gpg + cd repo + git remote add fork git@github.com:ammaratef45/Attendance.git + git remote update Fetching origin Fetching fork From github.com:ammaratef45/Attendance * [new branch] 48 -> fork/48 * [new branch] 9 -> fork/9 * [new branch] circlecifix -> fork/circlecifix * [new branch] master -> fork/master + 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/48 Switched to a new branch '__rultor' Branch __rultor set up to track remote branch 48 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 ff60563..2f45c21 Fast-forward attendance/lib/backend/api.dart | 16 +++++++++ attendance/lib/backend/session.dart | 20 +++++++++++ attendance/lib/homePage/home_page_viewmodel.dart | 2 +- attendance/test/api_test.dart | 46 ++++++++++++++++++++++++ 4 files changed, 83 insertions(+), 1 deletion(-) + docker_when_possible + true ++ uptime ++ sed 's/ /\n/g' ++ tail -n 1 + load=5.61 ++ echo 5.61 '>' 30 ++ bc + '[' 0 -eq 1 ']' + echo 'load average is 5.61, low enough to run a new Docker container' load average is 5.61, low enough to run a new Docker container + break + cd .. + '[' -n '' ']' + use_image=ammaratef45/flutter:v3 + docker pull ammaratef45/flutter:v3 v3: Pulling from ammaratef45/flutter f476d66f5408: Pulling fs layer 8882c27f669e: Pulling fs layer d9af21273955: Pulling fs layer f5029279ec12: Pulling fs layer c487195e5092: Pulling fs layer f7c83c193d4f: Pulling fs layer f78f74caf008: Pulling fs layer 20fbdadc0552: Pulling fs layer 318ac072c1ea: Pulling fs layer 96e807c460df: Pulling fs layer 6c71c370d1a8: Pulling fs layer 77f9f4fceb2f: Pulling fs layer 591597618f56: Pulling fs layer ea05dbfec393: Pulling fs layer 613574f96d71: Pulling fs layer 318ac072c1ea: Waiting 96e807c460df: Waiting 6c71c370d1a8: Waiting 77f9f4fceb2f: Waiting 591597618f56: Waiting f5029279ec12: Waiting ea05dbfec393: Waiting 613574f96d71: Waiting c487195e5092: Waiting f7c83c193d4f: Waiting 20fbdadc0552: Waiting f78f74caf008: Waiting 8882c27f669e: Download complete d9af21273955: Verifying Checksum d9af21273955: Download complete f5029279ec12: Verifying Checksum f5029279ec12: Download complete f476d66f5408: Verifying Checksum f476d66f5408: Download complete f476d66f5408: Pull complete 8882c27f669e: Pull complete d9af21273955: Pull complete f5029279ec12: Pull complete f7c83c193d4f: Verifying Checksum f7c83c193d4f: Download complete c487195e5092: Verifying Checksum c487195e5092: Download complete c487195e5092: Pull complete f7c83c193d4f: Pull complete f78f74caf008: Verifying Checksum f78f74caf008: Download complete 96e807c460df: Verifying Checksum 96e807c460df: Download complete 6c71c370d1a8: Download complete 318ac072c1ea: Verifying Checksum 318ac072c1ea: Download complete 77f9f4fceb2f: Verifying Checksum 77f9f4fceb2f: Download complete f78f74caf008: Pull complete ea05dbfec393: Verifying Checksum ea05dbfec393: Download complete 613574f96d71: Verifying Checksum 613574f96d71: Download complete 591597618f56: Download complete 20fbdadc0552: Download complete 20fbdadc0552: Pull complete 318ac072c1ea: Pull complete 96e807c460df: Pull complete 6c71c370d1a8: Pull complete 77f9f4fceb2f: Pull complete 591597618f56: Pull complete ea05dbfec393: Pull complete 613574f96d71: Pull complete Digest: sha256:dba0641f28ff8cf78a1f798de558301282427f699001a518a3def8164c68ab45 Status: Downloaded newer image for ammaratef45/flutter:v3 + docker ps --filter=status=exited + grep --quiet '\sammaratef45_attendance_68\s*$' + ls -al . total 716 drwx--x--x 3 rultor rultor 4096 Apr 30 08:02 . drwxrwxrwt 14 root root 684032 Apr 30 08:05 .. -rw-rw-r-- 1 rultor rultor 444 Apr 30 08:04 end.sh -rwxrwxr-x 1 rultor rultor 162 Apr 30 08:02 entry.sh -rw-rw-r-- 1 rultor rultor 5 Apr 30 08:02 pid drwxrwxr-x 5 rultor rultor 4096 Apr 30 08:02 repo -rwxrwxr-x 1 rultor rultor 7303 Apr 30 08:01 run.sh -rw-rw-r-- 1 rultor rultor 580 Apr 30 08:02 script.sh -rw-rw-r-- 1 rultor rultor 10782 Apr 30 08:05 stdout ++ pwd ++ pwd + docker run -t --rm -v /tmp/rultor-rZvX:/main --env=head=git@github.com:ammaratef45/Attendance.git --env=pull_id=68 --env=fork=git@github.com:ammaratef45/Attendance.git --env=fork_branch=48 --env=head_branch=master '--env=pull_title=#48 added api method and tests' --env=author=ammaratef45 '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:ammaratef45/Attendance.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_id=68'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork=git@github.com:ammaratef45/Attendance.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork_branch=48'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_title=#48 added api method and tests'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=ammaratef45'\''\'\'''\'''\'' '\'';'\'' '\''flutter doctor'\'' '\'';'\'' '\''cd attendance'\'' '\'';'\'' '\''chmod +x cleanENV.sh && ./cleanENV.sh'\'' '\'';'\'' '\''flutter packages get'\'' '\'';'\'' '\''flutter test'\'' '\'';'\'' '\''flutter -v build apk'\'' '\'';'\'' '\''. /etc/profile.d/rvm.sh'\'' '\'';'\'' '\''pdd -f /dev/null -v'\'' '\'';'\'' )' --hostname=docker --privileged --memory=6g --memory-swap=16g --oom-kill-disable --cidfile=/tmp/rultor-rZvX/cid -w=/main -v /var/run/docker.sock:/var/run/docker.sock --name=ammaratef45_attendance_68 ammaratef45/flutter:v3 /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 + mkdir /home/r + cp -R ./cid ./end.sh ./entry.sh ./pid ./repo ./run.sh ./script.sh ./stdout /home/r + rm -rf repo + chmod a+x /home/r/script.sh + /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 head=git@github.com:ammaratef45/Attendance.git + head=git@github.com:ammaratef45/Attendance.git + export pull_id=68 + pull_id=68 + export fork=git@github.com:ammaratef45/Attendance.git + fork=git@github.com:ammaratef45/Attendance.git + export fork_branch=48 + fork_branch=48 + export head_branch=master + head_branch=master + export 'pull_title=#48 added api method and tests' + pull_title='#48 added api method and tests' + export author=ammaratef45 + author=ammaratef45 + flutter doctor 1m ╔════════════════════════════════════════════════════════════════════════════╗22m 1m ║ Welcome to Flutter! - https://flutter.dev ║22m 1m ║ ║22m 1m ║ The Flutter tool anonymously reports feature usage statistics and crash ║22m 1m ║ reports to Google in order to help Google contribute improvements to ║22m 1m ║ Flutter over time. ║22m 1m ║ ║22m 1m ║ Read about data we send with crash reports: ║22m 1m ║ https://github.com/flutter/flutter/wiki/Flutter-CLI-crash-reporting ║22m 1m ║ ║22m 1m ║ See Google's privacy policy: ║22m 1m ║ https://www.google.com/intl/en/policies/privacy/ ║22m 1m ║ ║22m 1m ║ Use "flutter config --no-analytics" to disable analytics and crash ║22m 1m ║ reporting. ║22m 1m ╚════════════════════════════════════════════════════════════════════════════╝22m 1m22m Doctor summary (to see all details, run flutter doctor -v): 32m[✓]39m Flutter (Channel master, v1.5.9-pre.43, on Linux, locale en_US) ⣽ 32m[✓]39mAAndroidltoolchains-tdevelopnforeAndroidldevicest(Android SDK version 28.0.3) 33m[!]39m Android Studio (not installed) 33m[!]39m Connected device 1m 33m!39m No devices available22m 33m!39m Doctor found issues in 2 categories. + cd attendance + chmod +x cleanENV.sh + ./cleanENV.sh + flutter packages get Running "flutter packages get" in attendance... 16.6s + flutter test 00:08 32m+00m: 1m1;30mloadingt/home/r/repo/attendance/test/api_test.dart0m0malidminfo0m Traceback (most recent call last): File "firebase_token_generator.py", line 16, in <module> API_KEY = os.environ['FIREBASE_API_KEY'] File "/usr/lib/python2.7/UserDict.py", line 40, in __getitem__ raise KeyError(key) KeyError: 'FIREBASE_API_KEY' Traceback (most recent call last): File "firebase_token_generator.py", line 16, in <module> API_KEY = os.environ['FIREBASE_API_KEY'] File "/usr/lib/python2.7/UserDict.py", line 40, in __getitem__ raise KeyError(key) KeyError: 'FIREBASE_API_KEY' Traceback (most recent call last): File "firebase_token_generator.py", line 16, in <module> API_KEY = os.environ['FIREBASE_API_KEY'] File "/usr/lib/python2.7/UserDict.py", line 40, in __getitem__ raise KeyError(key) KeyError: 'FIREBASE_API_KEY' 00:21 32m+190m33m~~50m31mh-10m://home/r/repo/attendance/test/api_test.dart:IsetUserInfoisetnvalid info 1m31m[E]0m0m Exception: status code is not 200 {"success":"false","message":"Token is not provided in x-token header","data":null} package:attendance/backend/api.dart 46:5 API.setUserInfo ===== asynchronous gap =========================== dart:async _AsyncAwaitCompleter.completeError package:attendance/backend/api.dart API.setUserInfo ===== asynchronous gap =========================== dart:async _asyncThenWrapperHelper package:attendance/backend/api.dart API.setUserInfo api_test.dart 31:36 main.<fn>.<fn> ===== asynchronous gap =========================== dart:async _asyncThenWrapperHelper api_test.dart main.<fn>.<fn> 00:21 32m+190m33m ~80m31m -20m: /home/r/repo/attendance/test/api_test.dart: testiaddinglsession testsaddedtsession01m31m[E]0m0m Exception: status code is not 200 {"success":"false","message":"Token is not provided in x-token header","data":null} package:attendance/backend/api.dart 76:5 API.addSession ===== asynchronous gap =========================== dart:async _AsyncAwaitCompleter.completeError package:attendance/backend/api.dart API.addSession ===== asynchronous gap =========================== dart:async _asyncThenWrapperHelper package:attendance/backend/api.dart API.addSession api_test.dart 86:36 main.<fn>.<fn> ===== asynchronous gap =========================== dart:async _asyncThenWrapperHelper api_test.dart main.<fn>.<fn> 00:21 32m+210m33m ~80m31m -20m: 31mSome/testsafailed.0m/test/api_test.dart: test adding session leave fails due to wrongttoken0mken0m container 213d11ba275f22bac83b54141da3dac84fa252a444839d1c91d7ad5ce79414c6 is dead Tue Apr 30 08:07:13 CEST 2019