Skip to content

Commit a76a2fe

Browse files
authored
Merge pull request #508 from escapewindow/rotate-cot-2021
remove old cot keys
2 parents 4a0609a + 0b1288d commit a76a2fe

File tree

9 files changed

+44
-29
lines changed

9 files changed

+44
-29
lines changed

.taskcluster.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ tasks:
4747
['py39-cot', 'python:3.9', {
4848
NO_CREDENTIALS_TESTS: '1',
4949
}, ['secrets:get:repo:github.com/mozilla-releng/scriptworker:github']],
50-
['lint', 'python:3.7', {}, []],
50+
['check', 'python:3.7', {}, []],
5151
['mypy', 'python:3.7', {}, []]]
5252
each(py):
5353
taskId: "${as_slugid(py[0])}"

HISTORY.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ Change Log
44
All notable changes to this project will be documented in this file.
55
This project adheres to `Semantic Versioning <http://semver.org/>`__.
66

7+
[39.0.0] - 2021-08-05
8+
---------------------
9+
Changed
10+
~~~~~~~
11+
- Removed old CoT keys
12+
- ``lint`` tox target renamed to ``check`` to match other releng repos
13+
- Tests now use ``coveralls`` instead of ``pytest-coveralls``
14+
- fixed ``fenix`` prod cot index; old one hadn't been updated in a year
15+
- added ``adhoc-signing`` and ``xpi-manifest`` cot index tests
16+
717
[38.2.0] - 2021-07-14
818
---------------------
919
Changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ immutabledict>=1.3.0
88
jsonschema
99
json-e>=2.5.0
1010
PyYAML
11-
taskcluster<41
11+
taskcluster

setup.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020

2121
tests_require = [
2222
"asyncio_extras",
23-
# TODO Remove the condition on coverage once
24-
# https://github.com/z4r/python-coveralls/issues/73 is fixed
25-
"coverage<5",
2623
"flake8",
2724
"flake8_docstrings",
2825
"mock",

src/scriptworker/constants.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@
8080
"ed25519_private_key_path": "...",
8181
"ed25519_public_keys": immutabledict(
8282
{
83-
"docker-worker": tuple(["tk/SjxY3mREARba6ODw7qReUoVWj0RgEIxBURkwcM4I=", "1cnK7Qc2wjL9Dl7XTBgNE9Ns+NWHraCE5qfxblEKg8A="]),
84-
"generic-worker": tuple(["6UPrVTyw0EPQV7bCEMXo+5jNR4clbK55JWG74bBJHZQ=", "tHBwAdz8mK6Fnh7RwmfVh6Kzv1suwp+CFW2fvvTLpwE="]),
85-
"scriptworker": tuple(["DaEKQ79ZC/X+7O8zwm8iyhwTlgyjRSi/TDd63fh2JG0=", "N2fb7t0z06GxeidHYDZ63cz2wE2aDA4Hjm7u+FKladc="]),
83+
"docker-worker": tuple(["1cnK7Qc2wjL9Dl7XTBgNE9Ns+NWHraCE5qfxblEKg8A="]),
84+
"generic-worker": tuple(["tHBwAdz8mK6Fnh7RwmfVh6Kzv1suwp+CFW2fvvTLpwE="]),
85+
"scriptworker": tuple(["N2fb7t0z06GxeidHYDZ63cz2wE2aDA4Hjm7u+FKladc="]),
8686
}
8787
),
8888
"project_configuration_url": "https://hg.mozilla.org/ci/ci-configuration/raw-file/default/projects.yml",

src/scriptworker/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def get_version_string(version: Union[ShortVerType, LongVerType]) -> str:
5454

5555
# 1}}}
5656
# Semantic versioning 2.0.0 http://semver.org/
57-
__version__ = (38, 2, 0)
57+
__version__ = (39, 0, 0)
5858
__version_string__ = get_version_string(__version__)
5959

6060

tests/test_production.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ async def get_context(config_override=None):
139139
{
140140
"name": "fenix beta",
141141
"taskcluster_root_url": "https://firefox-ci-tc.services.mozilla.com/",
142-
"index": "mobile.v2.fenix.fennec-beta.latest.arm64-v8a",
142+
"index": "mobile.v2.fenix.beta.latest.arm64-v8a",
143143
"task_type": "signing",
144144
"cot_product": "mobile",
145145
},
@@ -158,6 +158,20 @@ async def get_context(config_override=None):
158158
"cot_product": "mobile",
159159
"check_task": False, # These tasks run on level t workers.
160160
},
161+
{
162+
"name": "adhoc-signing",
163+
"taskcluster_root_url": "https://firefox-ci-tc.services.mozilla.com/",
164+
"index": "adhoc.v2.adhoc-signing.2021-07-28-vpn-2.4.1-msi-2.release-signing.latest",
165+
"task_type": "signing",
166+
"cot_product": "adhoc",
167+
},
168+
{
169+
"name": "xpi-manifest reset-search-default",
170+
"taskcluster_root_url": "https://firefox-ci-tc.services.mozilla.com/",
171+
"index": "xpi.v2.xpi-manifest.reset-search-default-extension.release-signing.latest",
172+
"task_type": "signing",
173+
"cot_product": "xpi",
174+
},
161175
)
162176

163177

tox.ini

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = lint,mypy,py37,py37-cot,py38,py38-cot,py39,py39-cot
2+
envlist = check,mypy,py37,py37-cot,py38,py38-cot,py39,py39-cot
33

44
[testenv]
55
depends = clean
@@ -12,56 +12,50 @@ passenv =
1212
NO_TESTS_OVER_WIRE
1313
NO_CREDENTIALS_TESTS
1414
TASKCLUSTER_PROXY_URL
15-
TRAVIS
16-
TRAVIS_JOB_ID
17-
TRAVIS_BRANCH
1815

1916
deps =
2017
aiohttp>=3
2118
asyncio_extras
22-
# TODO Remove the condition on coverage once
23-
# https://github.com/z4r/python-coveralls/issues/73 is fixed
24-
coverage<5
19+
coveralls
2520
flake8
2621
pydocstyle==3.0.0
2722
flake8_docstrings
2823
mock
2924
pytest
3025
# https://github.com/pytest-dev/pytest-asyncio/issues/209
3126
pytest-asyncio<0.15
32-
pytest-cov
3327
pytest-mock
3428
pytest-random-order
3529
virtualenv
3630

3731
usedevelop = true
3832

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

4236
[testenv:clean]
4337
skip_install = true
4438
commands = coverage erase
39+
deps=
40+
coveralls
4541
depends =
4642

4743
[testenv:report]
4844
skip_install = true
4945
commands = coverage report -m
5046
depends = py38
47+
deps=
48+
coveralls
5149
parallel_show_output = true
5250

5351
[testenv:coveralls]
5452
passenv =
5553
COVERALLS_REPO_TOKEN
56-
TRAVIS_JOB_ID
5754
COVERALLS_SERVICE_NAME
5855
deps=
59-
python-coveralls
60-
# TODO Remove the condition on coverage once
61-
# https://github.com/z4r/python-coveralls/issues/73 is fixed
62-
coverage<5
63-
commands=
6456
coveralls
57+
commands=
58+
coveralls --service=taskcluster
6559

6660
[testenv:py37-cot]
6761
commands=
@@ -78,7 +72,7 @@ commands=
7872
python setup.py develop
7973
py.test -k test_verify_production_cot --random-order-bucket=none
8074

81-
[testenv:lint]
75+
[testenv:check]
8276
skip_install = true
8377
deps =
8478
black

version.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"version":[
3-
38,
4-
2,
3+
39,
4+
0,
55
0
66
],
7-
"version_string":"38.2.0"
7+
"version_string":"39.0.0"
88
}

0 commit comments

Comments
 (0)