# Run sent to worker: doanac-reckless == 2022-12-15 09:49:32.159725: Setting up runner on worker == 2022-12-15 09:49:34.499353: Steps to recreate inside simulator wget -O simulate.sh https://api.gavelci.us/projects/jobserv/builds/318/runs/flake8//.simulate.sh # wget'ing the file may require the --header flag if the # jobserv API requires authentication. sh ./simulate.sh == 2022-12-15 09:49:35.954199: Pulling container: python:3.9-alpine 3.9-alpine: Pulling from library/python Digest: sha256:8ea03bf88df73d21c72b3a941d1337c54357ee6386c2824f90b39a007792d1bb Status: Image is up to date for python:3.9-alpine docker.io/library/python:3.9-alpine == 2022-12-15 09:49:39.397969: Preparing bind mounts 2022-12-15 09:49:39.767042: INFO Creating secret: githubtok 2022-12-15 09:49:39.999023: INFO Creating secret: webhook-key 2022-12-15 09:49:40.305141: INFO Creating secret: milosz == 2022-12-15 09:49:41.283666: Creating container .netrc file 2022-12-15 09:49:41.800163: INFO Creating token for jobserv run access 2022-12-15 09:49:42.310520: INFO Creating a github token entry == 2022-12-15 09:49:43.382728: Preparing script == 2022-12-15 09:49:44.474330: Cloning git repository 2022-12-15 09:49:44.935960: INFO Clone_url: https://github.com/foundriesio/jobserv.git 2022-12-15 09:49:45.381449: INFO Checking to see if https://github.com/foundriesio/jobserv.git requires authentication. 2022-12-15 09:49:45.918870: INFO Server does not appear to need credentials for cloning 2022-12-15 09:49:46.265503: INFO Adding githubtok to .gitconfig 2022-12-15 09:49:46.722242: INFO Git install supports submodules Cloning into '/srv/gavelci-worker/runs/tmparl03tbv/repo'... 2022-12-15 09:49:49.043322: INFO Checking out: bf11f11e19cd202f04efe4826cc4e1f84e20a7b9 Switched to branch 'jobserv-run' == 2022-12-15 09:49:50.265643: Setting up container environment 2022-12-15 09:49:50.675132: INFO Container environment variables: GH_PRNUM=73 GH_OWNER=foundriesio GH_REPO=jobserv GH_STATUS_URL=https://api.github.com/repos/foundriesio/jobserv/statuses/bf11f11e19cd202f04efe4826cc4e1f84e20a7b9 GH_TARGET_REPO=https://github.com/foundriesio/jobserv.git GIT_URL=https://github.com/foundriesio/jobserv.git GIT_SHA_BASE=8f2a1df6a4544a3b075855a99db1707c2610944b GIT_OLD_SHA=8f2a1df6a4544a3b075855a99db1707c2610944b GIT_SHA=bf11f11e19cd202f04efe4826cc4e1f84e20a7b9 H_PROJECT=jobserv H_BUILD=318 H_RUN=flake8 H_WORKER=doanac-reckless == 2022-12-15 09:49:51.364627: Running script inside container 2022-12-15 09:49:51.758609: 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 37.2 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.8 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.5 MB/s eta 0:00:00 Collecting tomli<2.0.0,>=0.2.6 Downloading tomli-1.2.3-py3-none-any.whl (12 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 5.8 MB/s eta 0:00:00 Collecting appdirs Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB) Collecting mypy-extensions>=0.4.3 Downloading mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB) Collecting pathspec<1,>=0.8.1 Downloading pathspec-0.10.3-py3-none-any.whl (29 kB) 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.2 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 605.6 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=f60b4dc2da4f0a34a96c7080cce2446b64dde63a2caf76bfde9fad341134ce84 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.10.3 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/build.py 2022-12-15 09:49:49.429143 +0000 +++ jobserv/api/build.py 2022-12-15 09:50:22.786335 +0000 @@ -98,13 +98,11 @@ """Return the most recent successful build""" status = BuildStatus.PASSED promoted = request.args.get("promoted") if promoted: status = BuildStatus.PROMOTED - qs = Build.query.join(Build.project).filter( - Project.name == proj - ) + qs = Build.query.join(Build.project).filter(Project.name == proj) all_builds = request.args.get("all") if not all_builds: qs = qs.filter(Build.status == status) trigger = request.args.get("trigger_name") would reformat jobserv/api/build.py Oh no! 💥 💔 💥 1 file would be reformatted, 62 files would be left unchanged. Script completed with error(s) == 2022-12-15 09:50:26.363784: Finding artifacts to upload Uploading 0 items 0 bytes == 2022-12-15 09:50:26.722809: Runner has completed ________ | o o| Thumbs Down |___/\_|________ | _____|__| | | || |______| | | | | | | | | |_| |_|