Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scriptworker_client: properly handle signals in run_command #1030

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

scriptworker_client: properly handle signals in run_command

b7b4dd0
Select commit
Loading
Failed to load commit list.
Open

scriptworker_client: properly handle signals in run_command #1030

scriptworker_client: properly handle signals in run_command
b7b4dd0
Select commit
Loading
Failed to load commit list.
firefoxci-taskcluster / tox-githubscript-python39 succeeded Jun 20, 2024 in 2m 33s

FirefoxCI (pull_request)

githubscript tox-py39

Details

View task in Taskcluster
View logs in Taskcluster


[taskcluster 2024-06-20 08:22:04.636Z] Task ID: FEyGeUm4QtWMtSPPBJrKRg
[taskcluster 2024-06-20 08:22:04.637Z] Worker ID: 600932499805067398
[taskcluster 2024-06-20 08:22:04.637Z] Worker Group: us-central1-f
[taskcluster 2024-06-20 08:22:04.637Z] Worker Node Type: projects/887720501152/machineTypes/n2-standard-4
[taskcluster 2024-06-20 08:22:04.637Z] Worker Pool: scriptworker-1/b-linux-gcp
[taskcluster 2024-06-20 08:22:04.637Z] Worker Version: 38.0.5
[taskcluster 2024-06-20 08:22:04.637Z] Public IP: 34.67.221.9
[taskcluster 2024-06-20 08:22:04.637Z] Hostname: scriptworker-1-b-linux-gcp-qkcbbnkuriwizb1rtk58yq
[taskcluster 2024-06-20 08:22:04.637Z] using cache "scriptworker-level-1-checkouts-v3-7afeb851dd97df8f3607-O_KPDGy6SyWarmowR6oi2g" -> /builds/worker/checkouts

[taskcluster 2024-06-20 08:22:08.539Z] Downloading artifact "public/image.tar.zst" from task ID: O_KPDGy6SyWarmowR6oi2g.
[taskcluster 2024-06-20 08:22:11.277Z] Downloaded artifact successfully.
[taskcluster 2024-06-20 08:22:11.278Z] Downloaded 260.956 mb
[taskcluster 2024-06-20 08:22:11.279Z] Decompressing downloaded image
[taskcluster 2024-06-20 08:22:12.971Z] Loading docker image from downloaded archive.
[taskcluster 2024-06-20 08:22:30.822Z] Image 'public/image.tar.zst' from task 'O_KPDGy6SyWarmowR6oi2g' loaded.  Using image ID sha256:2f9c0ad45b6b75e58251341f5dbdb16eb7d02b5581fbcd617bc5adc9cc26b120.
[taskcluster 2024-06-20 08:22:30.965Z] === Task Starting ===
[setup 2024-06-20T08:22:31.481Z] run-task started in /
[setup 2024-06-20T08:22:31.481Z] Invoked by command: --scriptworker-checkout=/builds/worker/checkouts/vcs/ --task-cwd /builds/worker/checkouts/vcs -- sh -lxce tox -e githubscript-py39
[setup 2024-06-20T08:22:31.481Z] Python version: 3.9.7
[cache 2024-06-20T08:22:31.483Z] cache /builds/worker/checkouts is empty; writing requirements: gid=1000 uid=1000 version=1
[volume 2024-06-20T08:22:31.483Z] changing ownership of volume /builds/worker/.cache to 1000:1000
[volume 2024-06-20T08:22:31.483Z] volume /builds/worker/checkouts is a cache
[setup 2024-06-20T08:22:31.483Z] running as worker:worker
[vcs 2024-06-20T08:22:31.483Z] executing ['git', 'config', '--global', '--add', 'safe.directory', '/builds/worker/checkouts/vcs']
[vcs 2024-06-20T08:22:31.486Z] executing ['git', 'clone', 'https://github.com/mozilla-releng/scriptworker-scripts', '/builds/worker/checkouts/vcs']
[vcs 2024-06-20T08:22:31.488Z] Cloning into '/builds/worker/checkouts/vcs'...
[vcs 2024-06-20T08:22:35.634Z] executing ['git', 'fetch', '--no-tags', 'https://github.com/jcristau/scriptworker-scripts', 'run_command-signals']
[vcs 2024-06-20T08:22:35.897Z] From https://github.com/jcristau/scriptworker-scripts
[vcs 2024-06-20T08:22:35.897Z]  * branch              run_command-signals -> FETCH_HEAD
[vcs 2024-06-20T08:22:35.898Z] executing ['git', 'checkout', '-f', '-B', 'run_command-signals', 'b7b4dd093472168dc4caf77c65abfd556813afa0']
[vcs 2024-06-20T08:22:36.978Z] Switched to a new branch 'run_command-signals'
[vcs 2024-06-20T08:22:36.979Z] cleaning git checkout...
[vcs 2024-06-20T08:22:36.979Z] executing ['git', 'clean', '-nxdff']
[vcs 2024-06-20T08:22:36.989Z] removing []
[vcs 2024-06-20T08:22:36.989Z] successfully cleaned git checkout!
[vcs 2024-06-20T08:22:36.991Z] TinderboxPrint:<a href='https://github.com/jcristau/scriptworker-scripts/commit/b7b4dd093472168dc4caf77c65abfd556813afa0' title='Built from scriptworker-scripts commit b7b4dd093472168dc4caf77c65abfd556813afa0'>b7b4dd093472168dc4caf77c65abfd556813afa0</a>
[task 2024-06-20T08:22:36.991Z] executing ['sh', '-lxce', 'tox -e githubscript-py39']
[task 2024-06-20T08:22:36.992Z] + id -u
[task 2024-06-20T08:22:36.993Z] + [ 1000 -eq 0 ]
[task 2024-06-20T08:22:36.994Z] + PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
[task 2024-06-20T08:22:36.994Z] + export PATH
[task 2024-06-20T08:22:36.994Z] + [ $  ]
[task 2024-06-20T08:22:36.994Z] + [  ]
[task 2024-06-20T08:22:36.994Z] + id -u
[task 2024-06-20T08:22:36.994Z] + [ 1000 -eq 0 ]
[task 2024-06-20T08:22:36.994Z] + PS1=$ 
[task 2024-06-20T08:22:36.994Z] + [ -d /etc/profile.d ]
[task 2024-06-20T08:22:36.994Z] + [ -r /etc/profile.d/*.sh ]
[task 2024-06-20T08:22:36.995Z] + unset i
[task 2024-06-20T08:22:36.995Z] + [ -n  ]
[task 2024-06-20T08:22:36.995Z] + [ -d /builds/worker/bin ]
[task 2024-06-20T08:22:36.995Z] + [ -d /builds/worker/.local/bin ]
[task 2024-06-20T08:22:36.995Z] + tox -e githubscript-py39
[task 2024-06-20T08:22:37.793Z] githubscript-py39: install_deps> python -I -m pip install pyparsing tox
[task 2024-06-20T08:22:42.050Z] githubscript-py39: commands[0] /builds/worker/checkouts/vcs/githubscript> tox -e py39
[task 2024-06-20T08:22:42.806Z] py39: install_deps> python -I -m pip install -e /builds/worker/checkouts/vcs/scriptworker_client -r requirements/test.in
[task 2024-06-20T08:22:57.352Z] .pkg: install_requires> python -I -m pip install 'setuptools>=40.8.0' wheel
[task 2024-06-20T08:22:58.351Z] .pkg: _optional_hooks> python /builds/worker/checkouts/vcs/.tox/githubscript-py39/lib/python3.9/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
[task 2024-06-20T08:22:58.633Z] .pkg: get_requires_for_build_editable> python /builds/worker/checkouts/vcs/.tox/githubscript-py39/lib/python3.9/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
[task 2024-06-20T08:22:58.870Z] .pkg: install_requires_for_build_editable> python -I -m pip install wheel
[task 2024-06-20T08:22:59.302Z] .pkg: build_editable> python /builds/worker/checkouts/vcs/.tox/githubscript-py39/lib/python3.9/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
[task 2024-06-20T08:22:59.601Z] py39: install_package_deps> python -I -m pip install 'aiohttp-retry>=2.3' github3.py scriptworker scriptworker-client taskcluster
[task 2024-06-20T08:23:00.477Z] py39: install_package> python -I -m pip install --force-reinstall --no-deps /builds/worker/checkouts/vcs/.tox/.tmp/package/1/githubscript-0.1.0-0.editable-py3-none-any.whl
[task 2024-06-20T08:23:00.899Z] py39: commands[0]> py.test --cov-config=tox.ini --cov-append --cov=/builds/worker/checkouts/vcs/githubscript/src/githubscript --cov-report term-missing tests
[task 2024-06-20T08:23:01.724Z] ============================= test session starts ==============================
[task 2024-06-20T08:23:01.724Z] platform linux -- Python 3.9.7, pytest-8.2.2, pluggy-1.5.0
[task 2024-06-20T08:23:01.724Z] cachedir: /builds/worker/checkouts/vcs/.tox/py39/.pytest_cache
[task 2024-06-20T08:23:01.724Z] rootdir: /builds/worker/checkouts/vcs/githubscript
[task 2024-06-20T08:23:01.724Z] configfile: tox.ini
[task 2024-06-20T08:23:01.724Z] plugins: cov-5.0.0, asyncio-0.23.7
[task 2024-06-20T08:23:01.724Z] asyncio: mode=strict
[task 2024-06-20T08:23:01.724Z] collected 81 items
[task 2024-06-20T08:23:01.724Z] 
[task 2024-06-20T08:23:01.822Z] tests/test_github.py ...................................                 [ 43%]
[task 2024-06-20T08:23:01.865Z] tests/test_integration.py ..                                             [ 45%]
[task 2024-06-20T08:23:01.884Z] tests/test_release_config.py ............                                [ 60%]
[task 2024-06-20T08:23:01.902Z] tests/test_script.py ........                                            [ 70%]
[task 2024-06-20T08:23:02.011Z] tests/test_task.py ........................                              [100%]
[task 2024-06-20T08:23:02.011Z] 
[task 2024-06-20T08:23:02.011Z] ----------- coverage: platform linux, python 3.9.7-final-0 -----------
[task 2024-06-20T08:23:02.011Z] Name                                 Stmts   Miss Branch BrPart  Cover   Missing
[task 2024-06-20T08:23:02.011Z] --------------------------------------------------------------------------------
[task 2024-06-20T08:23:02.011Z] src/githubscript/__init__.py             0      0      0      0   100%
[task 2024-06-20T08:23:02.011Z] src/githubscript/github.py             128      0     28      0   100%
[task 2024-06-20T08:23:02.011Z] src/githubscript/release_config.py      42      2     24      2    94%   17, 25
[task 2024-06-20T08:23:02.011Z] src/githubscript/script.py              42      2     14      3    91%   27, 29->25, 31
[task 2024-06-20T08:23:02.011Z] src/githubscript/task.py                23      0     10      0   100%
[task 2024-06-20T08:23:02.011Z] --------------------------------------------------------------------------------
[task 2024-06-20T08:23:02.011Z] TOTAL                                  235      4     76      5    97%
[task 2024-06-20T08:23:02.011Z] 
[task 2024-06-20T08:23:02.011Z] 
[task 2024-06-20T08:23:02.011Z] ============================== 81 passed in 0.76s ==============================
[task 2024-06-20T08:23:02.084Z]   py39: OK (19.53=setup[18.35]+cmd[1.18] seconds)
[task 2024-06-20T08:23:02.084Z]   congratulations :) (19.88 seconds)
[task 2024-06-20T08:23:02.122Z] githubscript-py39: commands[1] /builds/worker/checkouts/vcs/githubscript> tox -e coveralls
[task 2024-06-20T08:23:02.574Z] coveralls: install_deps> python -I -m pip install coverage coveralls -e /builds/worker/checkouts/vcs/scriptworker_client
[task 2024-06-20T08:23:08.862Z] .pkg: _optional_hooks> python /builds/worker/checkouts/vcs/.tox/githubscript-py39/lib/python3.9/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
[task 2024-06-20T08:23:09.034Z] .pkg: get_requires_for_build_editable> python /builds/worker/checkouts/vcs/.tox/githubscript-py39/lib/python3.9/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
[task 2024-06-20T08:23:09.242Z] .pkg: build_editable> python /builds/worker/checkouts/vcs/.tox/githubscript-py39/lib/python3.9/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
[task 2024-06-20T08:23:09.495Z] coveralls: install_package_deps> python -I -m pip install 'aiohttp-retry>=2.3' github3.py scriptworker scriptworker-client taskcluster
[task 2024-06-20T08:23:12.439Z] coveralls: install_package> python -I -m pip install --force-reinstall --no-deps /builds/worker/checkouts/vcs/.tox/.tmp/package/2/githubscript-0.1.0-0.editable-py3-none-any.whl
[task 2024-06-20T08:23:12.882Z] coveralls: commands[0]> coveralls
[task 2024-06-20T08:23:13.057Z] Error running coveralls: Not on TravisCI. You have to provide either repo_token in .coveralls.yml or set the COVERALLS_REPO_TOKEN env var.
[task 2024-06-20T08:23:13.057Z] Traceback (most recent call last):
[task 2024-06-20T08:23:13.057Z]   File "/builds/worker/checkouts/vcs/.tox/coveralls/lib/python3.9/site-packages/coveralls/cli.py", line 65, in main
[task 2024-06-20T08:23:13.057Z]     coverallz = Coveralls(
[task 2024-06-20T08:23:13.057Z]   File "/builds/worker/checkouts/vcs/.tox/coveralls/lib/python3.9/site-packages/coveralls/api.py", line 47, in __init__
[task 2024-06-20T08:23:13.057Z]     self.ensure_token()
[task 2024-06-20T08:23:13.057Z]   File "/builds/worker/checkouts/vcs/.tox/coveralls/lib/python3.9/site-packages/coveralls/api.py", line 60, in ensure_token
[task 2024-06-20T08:23:13.057Z]     raise CoverallsException(
[task 2024-06-20T08:23:13.057Z] coveralls.exception.CoverallsException: Not on TravisCI. You have to provide either repo_token in .coveralls.yml or set the COVERALLS_REPO_TOKEN env var.
[task 2024-06-20T08:23:13.077Z] coveralls: exit 1 (0.19 seconds) /builds/worker/checkouts/vcs/githubscript> coveralls pid=313
[task 2024-06-20T08:23:13.079Z]   coveralls: FAIL code 1 (10.62=setup[10.43]+cmd[0.19] seconds)
[task 2024-06-20T08:23:13.079Z]   evaluation failed :( (10.80 seconds)
[task 2024-06-20T08:23:13.120Z] githubscript-py39: exit 1 (11.00 seconds) /builds/worker/checkouts/vcs/githubscript> tox -e coveralls pid=264
[task 2024-06-20T08:23:13.120Z] githubscript-py39: command failed but is marked ignore outcome so handling it as success
[task 2024-06-20T08:23:13.121Z]   githubscript-py39: OK (35.65=setup[4.58]+cmd[20.07,11.00] seconds)
[task 2024-06-20T08:23:13.121Z]   congratulations :) (35.80 seconds)
[taskcluster 2024-06-20 08:23:13.499Z] === Task Finished ===
[taskcluster 2024-06-20 08:23:13.500Z] Successful task run with exit code: 0 completed in 68.864 seconds