# Run sent to worker: doanac-reckless == 2023-08-29 22:21:16.953225: Setting up runner on worker == 2023-08-29 22:21:18.203508: Steps to recreate inside simulator wget -O simulate.sh https://api.gavelci.us/projects/jobserv/builds/373/runs/flake8//.simulate.sh # wget'ing the file may require the --header flag if the # jobserv API requires authentication. sh ./simulate.sh == 2023-08-29 22:21:19.628568: Pulling container: python:3.11-alpine 3.11-alpine: Pulling from library/python Digest: sha256:5d769f990397afbb2aca24b0655e404c0f2806d268f454b052e81e39d87abf42 Status: Image is up to date for python:3.11-alpine docker.io/library/python:3.11-alpine == 2023-08-29 22:21:23.072979: Preparing bind mounts 2023-08-29 22:21:23.402425: INFO Creating secret: githubtok 2023-08-29 22:21:23.734871: INFO Creating secret: webhook-key 2023-08-29 22:21:24.130079: INFO Creating secret: milosz == 2023-08-29 22:21:25.135707: Creating container .netrc file 2023-08-29 22:21:25.648215: INFO Creating token for jobserv run access 2023-08-29 22:21:26.134944: INFO Creating a github token entry == 2023-08-29 22:21:27.109656: Preparing script == 2023-08-29 22:21:28.098038: Cloning git repository 2023-08-29 22:21:28.604404: INFO Clone_url: https://github.com/doanac/jobserv.git 2023-08-29 22:21:29.009195: INFO Checking to see if https://github.com/doanac/jobserv.git requires authentication. 2023-08-29 22:21:29.888272: INFO Server does not appear to need credentials for cloning 2023-08-29 22:21:30.391733: INFO Adding githubtok to .gitconfig 2023-08-29 22:21:30.903955: INFO Git install supports submodules Cloning into '/srv/gavelci-worker/runs/tmptyo4xf5d/repo'... 2023-08-29 22:21:33.123657: INFO Checking out: 0029280f2de92783875c7699af9a14e69aa2c412 Switched to branch 'jobserv-run' == 2023-08-29 22:21:34.118778: Setting up container environment 2023-08-29 22:21:34.443222: INFO Container environment variables: GH_PRNUM=96 GH_OWNER=foundriesio GH_REPO=jobserv GH_STATUS_URL=https://api.github.com/repos/foundriesio/jobserv/statuses/0029280f2de92783875c7699af9a14e69aa2c412 GH_TARGET_REPO=https://github.com/foundriesio/jobserv.git GIT_URL=https://github.com/doanac/jobserv.git GIT_SHA_BASE=8323bd7723e85779bd340825a23f47aab33b93b5 GIT_OLD_SHA=8323bd7723e85779bd340825a23f47aab33b93b5 GIT_SHA=0029280f2de92783875c7699af9a14e69aa2c412 H_PROJECT=jobserv H_BUILD=373 H_RUN=flake8 H_RUN_URL=https://api.gavelci.us/projects/jobserv/builds/373/runs/flake8/ H_WORKER=doanac-reckless == 2023-08-29 22:21:35.101450: Running script inside container 2023-08-29 22:21:35.576285: INFO Running with --memory=14639596339 WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. + apk add musl-dev gcc fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz (1/12) Installing libgcc (12.2.1_git20220924-r10) (2/12) Installing libstdc++ (12.2.1_git20220924-r10) (3/12) Installing zstd-libs (1.5.5-r4) (4/12) Installing binutils (2.40-r7) (5/12) Installing libgomp (12.2.1_git20220924-r10) (6/12) Installing libatomic (12.2.1_git20220924-r10) (7/12) Installing gmp (6.2.1-r3) (8/12) Installing isl26 (0.26-r1) (9/12) Installing mpfr4 (4.2.0_p12-r0) (10/12) Installing mpc1 (1.3.1-r1) (11/12) Installing gcc (12.2.1_git20220924-r10) (12/12) Installing musl-dev (1.2.4-r1) Executing busybox-1.36.1-r2.trigger OK: 159 MiB in 50 packages + pip3 install flake8 'flake8-junit-report==2.1.0' 'black==21.7b0' 'click==7.1.2' Collecting flake8 Obtaining dependency information for flake8 from https://files.pythonhosted.org/packages/b0/24/bbf7175ffc47cb3d3e1eb523ddb23272968359dfcf2e1294707a2bf12fc4/flake8-6.1.0-py2.py3-none-any.whl.metadata Downloading flake8-6.1.0-py2.py3-none-any.whl.metadata (3.8 kB) Collecting flake8-junit-report==2.1.0 Downloading flake8-junit-report-2.1.0.tar.gz (3.1 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting black==21.7b0 Downloading black-21.7b0-py3-none-any.whl (141 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 141.2/141.2 kB 1.3 MB/s eta 0:00:00 Collecting click==7.1.2 Downloading click-7.1.2-py2.py3-none-any.whl (82 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 82.8/82.8 kB 889.4 kB/s eta 0:00:00 Collecting appdirs (from black==21.7b0) Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB) Collecting tomli<2.0.0,>=0.2.6 (from black==21.7b0) Downloading tomli-1.2.3-py3-none-any.whl (12 kB) Collecting regex>=2020.1.8 (from black==21.7b0) Obtaining dependency information for regex>=2020.1.8 from https://files.pythonhosted.org/packages/5c/8a/274b998260e01137ad83367a2a99d5e6ac7293360a8f871205ff576ff029/regex-2023.8.8-cp311-cp311-musllinux_1_1_x86_64.whl.metadata Downloading regex-2023.8.8-cp311-cp311-musllinux_1_1_x86_64.whl.metadata (40 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.9/40.9 kB 559.8 kB/s eta 0:00:00 Collecting pathspec<1,>=0.8.1 (from black==21.7b0) Obtaining dependency information for pathspec<1,>=0.8.1 from https://files.pythonhosted.org/packages/b4/2a/9b1be29146139ef459188f5e420a66e835dda921208db600b7037093891f/pathspec-0.11.2-py3-none-any.whl.metadata Downloading pathspec-0.11.2-py3-none-any.whl.metadata (19 kB) Collecting mypy-extensions>=0.4.3 (from black==21.7b0) Downloading mypy_extensions-1.0.0-py3-none-any.whl (4.7 kB) Collecting mccabe<0.8.0,>=0.7.0 (from flake8) Downloading mccabe-0.7.0-py2.py3-none-any.whl (7.3 kB) Collecting pycodestyle<2.12.0,>=2.11.0 (from flake8) Obtaining dependency information for pycodestyle<2.12.0,>=2.11.0 from https://files.pythonhosted.org/packages/31/c2/e1508ed4395793f69e40fd8c6b5a690e1d568e649aae9492076a7b6befb4/pycodestyle-2.11.0-py2.py3-none-any.whl.metadata Downloading pycodestyle-2.11.0-py2.py3-none-any.whl.metadata (4.5 kB) Collecting pyflakes<3.2.0,>=3.1.0 (from flake8) Obtaining dependency information for pyflakes<3.2.0,>=3.1.0 from https://files.pythonhosted.org/packages/00/e9/1e1fd7fae559bfd07704991e9a59dd1349b72423c904256c073ce88a9940/pyflakes-3.1.0-py2.py3-none-any.whl.metadata Downloading pyflakes-3.1.0-py2.py3-none-any.whl.metadata (3.5 kB) Downloading flake8-6.1.0-py2.py3-none-any.whl (58 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.3/58.3 kB 1.1 MB/s eta 0:00:00 Downloading pathspec-0.11.2-py3-none-any.whl (29 kB) Downloading pycodestyle-2.11.0-py2.py3-none-any.whl (31 kB) Downloading pyflakes-3.1.0-py2.py3-none-any.whl (62 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB 1.1 MB/s eta 0:00:00 Downloading regex-2023.8.8-cp311-cp311-musllinux_1_1_x86_64.whl (750 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 750.4/750.4 kB 5.3 MB/s eta 0:00:00 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=3737 sha256=4d4c622d2e9217c78fd807763846182f0c28ef4cfc8d53d1695507e7934db240 Stored in directory: /root/.cache/pip/wheels/61/49/33/d490b7f9a42bd5abfb880d2af6c9e97ab4c0e6eb3441a38c19 Successfully built flake8-junit-report Installing collected packages: flake8-junit-report, appdirs, tomli, regex, pyflakes, pycodestyle, pathspec, mypy-extensions, mccabe, click, flake8, black Successfully installed appdirs-1.4.4 black-21.7b0 click-7.1.2 flake8-6.1.0 flake8-junit-report-2.1.0 mccabe-0.7.0 mypy-extensions-1.0.0 pathspec-0.11.2 pycodestyle-2.11.0 pyflakes-3.1.0 regex-2023.8.8 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 + black --check --diff ./jobserv ./runner ./tests ./jobserv_worker.py --- jobserv/api/__init__.py 2023-08-29 22:21:33.435119 +0000 +++ jobserv/api/__init__.py 2023-08-29 22:22:17.885511 +0000 @@ -42,13 +42,11 @@ data = { "message": "An unexpected error occurred inserting data", "error_msg": str(e), "stack_trace": traceback.format_exc(), } - current_app.logger.exception( - "Unexpected DB error caught in BP error handler" - ) + current_app.logger.exception("Unexpected DB error caught in BP error handler") return jsendify(data, 400) @app.errorhandler(FileNotFoundError) def notfound_error(e): data = { would reformat jobserv/api/__init__.py --- runner/jobserv_runner/handlers/git_poller.py 2023-08-29 22:21:33.439119 +0000 +++ runner/jobserv_runner/handlers/git_poller.py 2023-08-29 22:22:18.474561 +0000 @@ -80,12 +80,10 @@ fd.write(" extraheader = Authorization: Basic %s\n" % tok) host = urlparse(server).netloc fd.write(f'[url "https://{user}:{token}@{host}/"]\n') fd.write(f' insteadOf = "git@{host}:"\n') - - def _create_bitbucket_content(self, log, fd, secrets, clone_url): tok = secrets.get("bitbuckettok") if not tok: return would reformat runner/jobserv_runner/handlers/git_poller.py Oh no! 💥 💔 💥 2 files would be reformatted, 62 files would be left unchanged. Script completed with error(s) == 2023-08-29 22:22:32.381245: Finding artifacts to upload Uploading 0 items 0 bytes == 2023-08-29 22:22:32.748579: Runner has completed ________ | o o| Thumbs Down |___/\_|________ | _____|__| | | || |______| | | | | | | | | |_| |_|