Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ tasks:
['py39-cot', 'python:3.9', {
NO_CREDENTIALS_TESTS: '1',
}, ['secrets:get:repo:github.com/mozilla-releng/scriptworker:github']],
['lint', 'python:3.7', {}, []],
['check', 'python:3.7', {}, []],
['mypy', 'python:3.7', {}, []]]
each(py):
taskId: "${as_slugid(py[0])}"
Expand Down
10 changes: 10 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ Change Log
All notable changes to this project will be documented in this file.
This project adheres to `Semantic Versioning <http://semver.org/>`__.

[39.0.0] - 2021-08-05
---------------------
Changed
~~~~~~~
- Removed old CoT keys
- ``lint`` tox target renamed to ``check`` to match other releng repos
- Tests now use ``coveralls`` instead of ``pytest-coveralls``
- fixed ``fenix`` prod cot index; old one hadn't been updated in a year
- added ``adhoc-signing`` and ``xpi-manifest`` cot index tests

[38.2.0] - 2021-07-14
---------------------
Changed
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ immutabledict>=1.3.0
jsonschema
json-e>=2.5.0
PyYAML
taskcluster<41
taskcluster
3 changes: 0 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@

tests_require = [
"asyncio_extras",
# TODO Remove the condition on coverage once
# https://github.com/z4r/python-coveralls/issues/73 is fixed
"coverage<5",
"flake8",
"flake8_docstrings",
"mock",
Expand Down
6 changes: 3 additions & 3 deletions src/scriptworker/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@
"ed25519_private_key_path": "...",
"ed25519_public_keys": immutabledict(
{
"docker-worker": tuple(["tk/SjxY3mREARba6ODw7qReUoVWj0RgEIxBURkwcM4I=", "1cnK7Qc2wjL9Dl7XTBgNE9Ns+NWHraCE5qfxblEKg8A="]),
"generic-worker": tuple(["6UPrVTyw0EPQV7bCEMXo+5jNR4clbK55JWG74bBJHZQ=", "tHBwAdz8mK6Fnh7RwmfVh6Kzv1suwp+CFW2fvvTLpwE="]),
"scriptworker": tuple(["DaEKQ79ZC/X+7O8zwm8iyhwTlgyjRSi/TDd63fh2JG0=", "N2fb7t0z06GxeidHYDZ63cz2wE2aDA4Hjm7u+FKladc="]),
"docker-worker": tuple(["1cnK7Qc2wjL9Dl7XTBgNE9Ns+NWHraCE5qfxblEKg8A="]),
"generic-worker": tuple(["tHBwAdz8mK6Fnh7RwmfVh6Kzv1suwp+CFW2fvvTLpwE="]),
"scriptworker": tuple(["N2fb7t0z06GxeidHYDZ63cz2wE2aDA4Hjm7u+FKladc="]),
}
),
"project_configuration_url": "https://hg.mozilla.org/ci/ci-configuration/raw-file/default/projects.yml",
Expand Down
2 changes: 1 addition & 1 deletion src/scriptworker/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_version_string(version: Union[ShortVerType, LongVerType]) -> str:

# 1}}}
# Semantic versioning 2.0.0 http://semver.org/
__version__ = (38, 2, 0)
__version__ = (39, 0, 0)
__version_string__ = get_version_string(__version__)


Expand Down
16 changes: 15 additions & 1 deletion tests/test_production.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ async def get_context(config_override=None):
{
"name": "fenix beta",
"taskcluster_root_url": "https://firefox-ci-tc.services.mozilla.com/",
"index": "mobile.v2.fenix.fennec-beta.latest.arm64-v8a",
"index": "mobile.v2.fenix.beta.latest.arm64-v8a",
"task_type": "signing",
"cot_product": "mobile",
},
Expand All @@ -158,6 +158,20 @@ async def get_context(config_override=None):
"cot_product": "mobile",
"check_task": False, # These tasks run on level t workers.
},
{
"name": "adhoc-signing",
"taskcluster_root_url": "https://firefox-ci-tc.services.mozilla.com/",
"index": "adhoc.v2.adhoc-signing.2021-07-28-vpn-2.4.1-msi-2.release-signing.latest",
"task_type": "signing",
"cot_product": "adhoc",
},
{
"name": "xpi-manifest reset-search-default",
"taskcluster_root_url": "https://firefox-ci-tc.services.mozilla.com/",
"index": "xpi.v2.xpi-manifest.reset-search-default-extension.release-signing.latest",
"task_type": "signing",
"cot_product": "xpi",
},
)


Expand Down
26 changes: 10 additions & 16 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = lint,mypy,py37,py37-cot,py38,py38-cot,py39,py39-cot
envlist = check,mypy,py37,py37-cot,py38,py38-cot,py39,py39-cot

[testenv]
depends = clean
Expand All @@ -12,56 +12,50 @@ passenv =
NO_TESTS_OVER_WIRE
NO_CREDENTIALS_TESTS
TASKCLUSTER_PROXY_URL
TRAVIS
TRAVIS_JOB_ID
TRAVIS_BRANCH

deps =
aiohttp>=3
asyncio_extras
# TODO Remove the condition on coverage once
# https://github.com/z4r/python-coveralls/issues/73 is fixed
coverage<5
coveralls
flake8
pydocstyle==3.0.0
flake8_docstrings
mock
pytest
# https://github.com/pytest-dev/pytest-asyncio/issues/209
pytest-asyncio<0.15
pytest-cov
pytest-mock
pytest-random-order
virtualenv

usedevelop = true

commands=
{posargs:py.test --cov-config=tox.ini --cov-append --cov=scriptworker --cov-report term-missing tests}
{posargs:coverage run --source=src/scriptworker --branch --rcfile tox.ini -m pytest tests}

[testenv:clean]
skip_install = true
commands = coverage erase
deps=
coveralls
depends =

[testenv:report]
skip_install = true
commands = coverage report -m
depends = py38
deps=
coveralls
parallel_show_output = true

[testenv:coveralls]
passenv =
COVERALLS_REPO_TOKEN
TRAVIS_JOB_ID
COVERALLS_SERVICE_NAME
deps=
python-coveralls
# TODO Remove the condition on coverage once
# https://github.com/z4r/python-coveralls/issues/73 is fixed
coverage<5
commands=
coveralls
commands=
coveralls --service=taskcluster

[testenv:py37-cot]
commands=
Expand All @@ -78,7 +72,7 @@ commands=
python setup.py develop
py.test -k test_verify_production_cot --random-order-bucket=none

[testenv:lint]
[testenv:check]
skip_install = true
deps =
black
Expand Down
6 changes: 3 additions & 3 deletions version.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"version":[
38,
2,
39,
0,
0
],
"version_string":"38.2.0"
"version_string":"39.0.0"
}