# Run sent to worker: doanac-reckless == 2023-01-27 17:35:40.642604: Setting up runner on worker == 2023-01-27 17:35:43.074101: Steps to recreate inside simulator wget -O simulate.sh https://api.gavelci.us/projects/jobserv/builds/335/runs/flake8//.simulate.sh # wget'ing the file may require the --header flag if the # jobserv API requires authentication. sh ./simulate.sh == 2023-01-27 17:35:44.605539: Pulling container: python:3.9-alpine 3.9-alpine: Pulling from library/python Digest: sha256:b0a0738ccbb0f49f1fe6818ae13e7777d46050e64b3a9d743f4f0da6c289d85b Status: Image is up to date for python:3.9-alpine docker.io/library/python:3.9-alpine == 2023-01-27 17:35:48.267814: Preparing bind mounts 2023-01-27 17:35:48.641233: INFO Creating secret: githubtok 2023-01-27 17:35:48.907532: INFO Creating secret: webhook-key 2023-01-27 17:35:49.246083: INFO Creating secret: milosz == 2023-01-27 17:35:50.261825: Creating container .netrc file 2023-01-27 17:35:50.665861: INFO Creating token for jobserv run access 2023-01-27 17:35:51.074747: INFO Creating a github token entry == 2023-01-27 17:35:51.933177: Preparing script == 2023-01-27 17:35:52.823522: Cloning git repository 2023-01-27 17:35:53.269578: INFO Clone_url: https://github.com/doanac/jobserv.git 2023-01-27 17:35:53.749850: INFO Checking to see if https://github.com/doanac/jobserv.git requires authentication. 2023-01-27 17:35:54.600725: INFO Server does not appear to need credentials for cloning 2023-01-27 17:35:54.967950: INFO Adding githubtok to .gitconfig 2023-01-27 17:35:55.258977: INFO Git install supports submodules Cloning into '/srv/gavelci-worker/runs/tmp_6k6ccsw/repo'... 2023-01-27 17:35:57.790898: INFO Checking out: 80008cead36872d749e291e4259fe5c327b72d27 Switched to branch 'jobserv-run' == 2023-01-27 17:35:59.334412: Setting up container environment 2023-01-27 17:35:59.971169: INFO Container environment variables: GH_PRNUM=79 GH_OWNER=foundriesio GH_REPO=jobserv GH_STATUS_URL=https://api.github.com/repos/foundriesio/jobserv/statuses/80008cead36872d749e291e4259fe5c327b72d27 GH_TARGET_REPO=https://github.com/foundriesio/jobserv.git GIT_URL=https://github.com/doanac/jobserv.git GIT_SHA_BASE=e66b43a1c42e196017a138f7bbb1fec5c3ddfa48 GIT_OLD_SHA=e66b43a1c42e196017a138f7bbb1fec5c3ddfa48 GIT_SHA=80008cead36872d749e291e4259fe5c327b72d27 H_PROJECT=jobserv H_BUILD=335 H_RUN=flake8 H_WORKER=doanac-reckless == 2023-01-27 17:36:00.644689: Running script inside container 2023-01-27 17:36:00.973694: 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.17/main/x86_64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz (1/11) Installing libgcc (12.2.1_git20220924-r4) (2/11) Installing libstdc++ (12.2.1_git20220924-r4) (3/11) Installing binutils (2.39-r2) (4/11) Installing libgomp (12.2.1_git20220924-r4) (5/11) Installing libatomic (12.2.1_git20220924-r4) (6/11) Installing gmp (6.2.1-r2) (7/11) Installing isl25 (0.25-r0) (8/11) Installing mpfr4 (4.1.0-r0) (9/11) Installing mpc1 (1.2.1-r1) (10/11) Installing gcc (12.2.1_git20220924-r4) (11/11) Installing musl-dev (1.2.3-r4) Executing busybox-1.35.0-r29.trigger OK: 160 MiB in 48 packages + pip3 install flake8 'flake8-junit-report==2.1.0' 'black==21.7b0' 'click==7.1.2' Collecting flake8 Downloading flake8-6.0.0-py2.py3-none-any.whl (57 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.8/57.8 KB 431.5 kB/s eta 0:00:00 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.0 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 1.2 MB/s eta 0:00:00 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 pathspec<1,>=0.8.1 Downloading pathspec-0.11.0-py3-none-any.whl (29 kB) Collecting appdirs Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB) Collecting regex>=2020.1.8 Downloading regex-2022.10.31-cp39-cp39-musllinux_1_1_x86_64.whl (741 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 741.6/741.6 KB 2.9 MB/s eta 0:00:00 Collecting pyflakes<3.1.0,>=3.0.0 Downloading pyflakes-3.0.1-py2.py3-none-any.whl (62 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.8/62.8 KB 1.0 MB/s eta 0:00:00 Collecting pycodestyle<2.11.0,>=2.10.0 Downloading pycodestyle-2.10.0-py2.py3-none-any.whl (41 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.3/41.3 KB 647.1 kB/s eta 0:00:00 Collecting mccabe<0.8.0,>=0.7.0 Downloading mccabe-0.7.0-py2.py3-none-any.whl (7.3 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=3752 sha256=23232cd037c888b04c5ce5be71f73a7caa02a8d85fe45e4325a56ac88b685876 Stored in directory: /root/.cache/pip/wheels/cf/f4/a2/215f2d41b7ea39ec29290157276313e311195cd929daf91fc4 Successfully built flake8-junit-report Installing collected packages: mypy-extensions, flake8-junit-report, appdirs, tomli, regex, pyflakes, pycodestyle, pathspec, mccabe, click, flake8, black Successfully installed appdirs-1.4.4 black-21.7b0 click-7.1.2 flake8-6.0.0 flake8-junit-report-2.1.0 mccabe-0.7.0 mypy-extensions-0.4.3 pathspec-0.11.0 pycodestyle-2.10.0 pyflakes-3.0.1 regex-2022.10.31 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 22.0.4; however, version 22.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 --- jobserv/api/github.py 2023-01-27 17:35:58.228324 +0000 +++ jobserv/api/github.py 2023-01-27 17:36:28.048648 +0000 @@ -264,11 +264,15 @@ def _register_github_hook(project, url, api_token, hook_token): data = { "name": "web", "active": True, - "events": ["pull_request", "pull_request_review_comment", "issue_comment",], + "events": [ + "pull_request", + "pull_request_review_comment", + "issue_comment", + ], "config": { "url": url_for("api_github.on_webhook", proj=project.name, _external=True), "content_type": "json", "secret": hook_token, }, would reformat jobserv/api/github.py --- jobserv/app.py 2023-01-27 17:35:58.228324 +0000 +++ jobserv/app.py 2023-01-27 17:36:28.236285 +0000 @@ -114,11 +114,15 @@ def _register_github_hook(project, url, api_token, hook_token, server_name): data = { "name": "web", "active": True, - "events": ["pull_request", "pull_request_review_comment", "issue_comment",], + "events": [ + "pull_request", + "pull_request_review_comment", + "issue_comment", + ], "config": { "url": "https://%s/github/%s/" % (server_name, project), "content_type": "json", "secret": hook_token, }, would reformat jobserv/app.py Oh no! 💥 💔 💥 2 files would be reformatted, 61 files would be left unchanged. Script completed with error(s) == 2023-01-27 17:36:32.028710: Finding artifacts to upload Uploading 0 items 0 bytes == 2023-01-27 17:36:32.398552: Runner has completed ________ | o o| Thumbs Down |___/\_|________ | _____|__| | | || |______| | | | | | | | | |_| |_|