# Run sent to worker: doanac-reckless == 2021-12-17 02:41:43.798059: Setting up runner on worker == 2021-12-17 02:41:50.189653: Steps to recreate inside simulator wget -O simulate.sh https://api.gavelci.us/projects/jobserv/builds/256/runs/flake8//.simulate.sh # wget'ing the file may require the --header flag if the # jobserv API requires authentication. sh ./simulate.sh == 2021-12-17 02:41:51.164551: Pulling container: python:3.9-alpine 3.9-alpine: Pulling from library/python Digest: sha256:091e589aa641a59b10cc764bfc959a91b70003643f2aac91fd4fc0353f09dddf Status: Image is up to date for python:3.9-alpine docker.io/library/python:3.9-alpine == 2021-12-17 02:41:55.956611: Preparing bind mounts 2021-12-17 02:41:55.957146: INFO Creating secret: githubtok 2021-12-17 02:41:55.957276: INFO Creating secret: webhook-key 2021-12-17 02:41:55.957388: INFO Creating secret: milosz == 2021-12-17 02:41:56.863660: Creating container .netrc file 2021-12-17 02:41:56.863768: INFO Creating token for jobserv run access 2021-12-17 02:41:56.863811: INFO Creating a github token entry == 2021-12-17 02:41:57.325146: Preparing script == 2021-12-17 02:41:58.885408: Cloning git repository 2021-12-17 02:41:58.885442: INFO Clone_url: https://github.com/doanac/jobserv.git 2021-12-17 02:41:58.885455: INFO Checking to see if https://github.com/doanac/jobserv.git requires authentication. 2021-12-17 02:42:00.112229: INFO Server does not appear to need credentials for cloning 2021-12-17 02:42:00.112501: INFO Adding githubtok to .gitconfig 2021-12-17 02:42:00.112625: INFO Git install supports submodules Cloning into '/srv/gavelci-worker/runs/tmp27ydzn56/repo'... 2021-12-17 02:42:07.644889: INFO Checking out: c8c83d444a0532051ef2ddfc76416810ebde5085 Switched to branch 'jobserv-run' == 2021-12-17 02:42:09.982285: Setting up container environment 2021-12-17 02:42:09.982356: INFO Container environment variables: GH_PRNUM=57 GH_OWNER=foundriesio GH_REPO=jobserv GH_STATUS_URL=https://api.github.com/repos/foundriesio/jobserv/statuses/c8c83d444a0532051ef2ddfc76416810ebde5085 GH_TARGET_REPO=https://github.com/foundriesio/jobserv.git GIT_URL=https://github.com/doanac/jobserv.git GIT_SHA_BASE=03b0e05f83d22735933579eb32a27ebd694916df GIT_OLD_SHA=03b0e05f83d22735933579eb32a27ebd694916df GIT_SHA=c8c83d444a0532051ef2ddfc76416810ebde5085 H_PROJECT=jobserv H_BUILD=256 H_RUN=flake8 H_WORKER=doanac-reckless == 2021-12-17 02:42:11.312707: Running script inside container + apk add musl-dev gcc fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz (1/12) Installing libgcc (10.3.1_git20211027-r0) (2/12) Installing libstdc++ (10.3.1_git20211027-r0) (3/12) Installing binutils (2.37-r3) (4/12) Installing libgomp (10.3.1_git20211027-r0) (5/12) Installing libatomic (10.3.1_git20211027-r0) (6/12) Installing libgphobos (10.3.1_git20211027-r0) (7/12) Installing gmp (6.2.1-r0) (8/12) Installing isl22 (0.22-r0) (9/12) Installing mpfr4 (4.1.0-r0) (10/12) Installing mpc1 (1.2.1-r0) (11/12) Installing gcc (10.3.1_git20211027-r0) (12/12) Installing musl-dev (1.2.2-r7) Executing busybox-1.34.1-r3.trigger OK: 135 MiB in 48 packages + pip3 install flake8 'flake8-junit-report==2.1.0' 'black==21.7b0' Collecting flake8 Downloading flake8-4.0.1-py2.py3-none-any.whl (64 kB) Collecting flake8-junit-report==2.1.0 Downloading flake8-junit-report-2.1.0.tar.gz (3.1 kB) Collecting black==21.7b0 Downloading black-21.7b0-py3-none-any.whl (141 kB) Collecting mypy-extensions>=0.4.3 Downloading mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB) Collecting tomli<2.0.0,>=0.2.6 Downloading tomli-1.2.3-py3-none-any.whl (12 kB) Collecting click>=7.1.2 Downloading click-8.0.3-py3-none-any.whl (97 kB) Collecting pathspec<1,>=0.8.1 Downloading pathspec-0.9.0-py2.py3-none-any.whl (31 kB) Collecting regex>=2020.1.8 Downloading regex-2021.11.10-cp39-cp39-musllinux_1_1_x86_64.whl (732 kB) Collecting appdirs Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB) Collecting mccabe<0.7.0,>=0.6.0 Downloading mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB) Collecting pycodestyle<2.9.0,>=2.8.0 Downloading pycodestyle-2.8.0-py2.py3-none-any.whl (42 kB) Collecting pyflakes<2.5.0,>=2.4.0 Downloading pyflakes-2.4.0-py2.py3-none-any.whl (69 kB) Building wheels for collected packages: flake8-junit-report Building wheel for flake8-junit-report (setup.py): started Building wheel for flake8-junit-report (setup.py): finished with status 'done' Created wheel for flake8-junit-report: filename=flake8_junit_report-2.1.0-py3-none-any.whl size=3754 sha256=3dce96898a547391a9cc263803f7a838db3f96375076ce4d100a60086c01cf01 Stored in directory: /root/.cache/pip/wheels/cf/f4/a2/215f2d41b7ea39ec29290157276313e311195cd929daf91fc4 Successfully built flake8-junit-report Installing collected packages: tomli, regex, pyflakes, pycodestyle, pathspec, mypy-extensions, mccabe, click, appdirs, flake8-junit-report, flake8, black Successfully installed appdirs-1.4.4 black-21.7b0 click-8.0.3 flake8-4.0.1 flake8-junit-report-2.1.0 mccabe-0.6.1 mypy-extensions-0.4.3 pathspec-0.9.0 pycodestyle-2.8.0 pyflakes-2.4.0 regex-2021.11.10 tomli-1.2.3 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available. You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command. + black --check --diff ./jobserv ./runner ./tests ./jobserv_worker.py --- tests/runner/test_handler_simple.py 2021-12-17 02:42:08.355244 +0000 +++ tests/runner/test_handler_simple.py 2021-12-17 02:42:33.016579 +0000 @@ -119,11 +119,11 @@ lines = self.output.decode().splitlines() self.assertIn("test-execzZZ", lines[0]) self.assertEqual("abcdefg", lines[1]) - @mock.patch('time.sleep') + @mock.patch("time.sleep") def test_exec_retriable(self, sleep): self.output = b"" def update_run(buf, retry=2): self.output += buf would reformat tests/runner/test_handler_simple.py Oh no! 💥 💔 💥 1 file would be reformatted, 60 files would be left unchanged. Script completed with error(s) == 2021-12-17 02:42:37.597601: Finding artifacts to upload Uploading 0 items 0 bytes == 2021-12-17 02:42:38.023985: Runner has completed ________ | o o| Thumbs Down |___/\_|________ | _____|__| | | || |______| | | | | | | | | |_| |_|