mozilla-taskgraph 3.1.0__tar.gz → 3.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/.pre-commit-config.yaml +4 -4
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/CHANGELOG.md +12 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/PKG-INFO +1 -1
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/pyproject.toml +1 -1
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/util/signed_artifacts.py +2 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/worker_types.py +0 -1
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/test/test_worker_types.py +0 -3
- mozilla_taskgraph-3.1.2/test/util/test_signed_artifacts.py +22 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/uv.lock +1 -1
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/.codespell-ignore-words.txt +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/.github/workflows/pre-commit-autoupdate.yml +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/.github/workflows/pre-commit.yml +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/.github/workflows/pypi-publish.yml +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/.gitignore +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/.readthedocs.yml +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/.taskcluster.yml +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/.yamllint +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/CODE_OF_CONDUCT.md +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/CONTRIBUTING.md +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/LICENSE +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/Makefile +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/README.md +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/docs/actions/index.rst +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/docs/actions/release-promotion.rst +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/docs/conf.py +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/docs/index.rst +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/docs/transforms/index.rst +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/docs/transforms/scriptworker/index.rst +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/docs/transforms/scriptworker/release_artifacts.rst +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/docs/transforms/scriptworker/ship-it.rst +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/__init__.py +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/actions/__init__.py +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/actions/release_promotion.py +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/config.py +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/transforms/__init__.py +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/transforms/scriptworker/__init__.py +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/transforms/scriptworker/release_artifacts.py +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/transforms/scriptworker/shipit/__init__.py +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/transforms/scriptworker/shipit/mark_as_shipped.py +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/version.py +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/config.yml +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/docker/fetch/Dockerfile +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/docker/fetch/REGISTRY +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/docker/python/Dockerfile +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/kinds/check/kind.yml +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/kinds/codecov/kind.yml +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/kinds/docker-image/kind.yml +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/kinds/fetch/kind.yml +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/kinds/release-promotion-dummy/kind.yml +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/kinds/test/kind.yml +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/mt_taskgraph/target_tasks.py +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/mt_taskgraph/transforms/test.py +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/scripts/codecov-upload.py +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/test/__init__.py +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/test/actions/__init__.py +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/test/actions/test_release_promotion.py +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/test/conftest.py +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/test/data/taskcluster/config.yml +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/test/data/testver.py +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/test/test_register.py +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/test/test_version.py +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/test/transforms/test_scriptworker_release_artifacts.py +0 -0
- {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/test/transforms/test_scriptworker_shipit.py +0 -0
|
@@ -13,11 +13,11 @@ repos:
|
|
|
13
13
|
exclude: template
|
|
14
14
|
- id: check-added-large-files
|
|
15
15
|
- repo: https://github.com/astral-sh/uv-pre-commit
|
|
16
|
-
rev: 0.
|
|
16
|
+
rev: 0.7.2
|
|
17
17
|
hooks:
|
|
18
18
|
- id: uv-lock
|
|
19
19
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
20
|
-
rev: 'v0.
|
|
20
|
+
rev: 'v0.11.7'
|
|
21
21
|
hooks:
|
|
22
22
|
- id: ruff
|
|
23
23
|
args: [--fix, --exit-non-zero-on-fix]
|
|
@@ -26,7 +26,7 @@ repos:
|
|
|
26
26
|
hooks:
|
|
27
27
|
- id: black
|
|
28
28
|
- repo: https://github.com/adrienverge/yamllint.git
|
|
29
|
-
rev: v1.
|
|
29
|
+
rev: v1.37.0
|
|
30
30
|
hooks:
|
|
31
31
|
- id: yamllint
|
|
32
32
|
exclude: template
|
|
@@ -40,7 +40,7 @@ repos:
|
|
|
40
40
|
test/test_util_path.py
|
|
41
41
|
)$
|
|
42
42
|
- repo: https://github.com/compilerla/conventional-pre-commit
|
|
43
|
-
rev: v4.
|
|
43
|
+
rev: v4.1.0
|
|
44
44
|
hooks:
|
|
45
45
|
- id: conventional-pre-commit
|
|
46
46
|
stages: [commit-msg]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mozilla-taskgraph
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.2
|
|
4
4
|
Summary: Mozilla specific transforms and utilities for Taskgraph
|
|
5
5
|
Project-URL: Repository, https://github.com/mozilla-releng/mozilla-taskgraph
|
|
6
6
|
Project-URL: Issues, https://github.com/mozilla-releng/mozilla-taskgraph/issues
|
{mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/util/signed_artifacts.py
RENAMED
|
@@ -10,6 +10,8 @@ def get_signed_artifacts(input, formats, behavior=None):
|
|
|
10
10
|
artifacts = set()
|
|
11
11
|
if input.endswith(".dmg"):
|
|
12
12
|
artifacts.add(input.replace(".dmg", ".tar.gz"))
|
|
13
|
+
if behavior and behavior != "mac_sign":
|
|
14
|
+
artifacts.add(input.replace(".dmg", ".pkg"))
|
|
13
15
|
else:
|
|
14
16
|
artifacts.add(input)
|
|
15
17
|
|
|
@@ -169,7 +169,6 @@ def build_signing_payload(config, task, task_def):
|
|
|
169
169
|
scope_prefix = config.graph_config["scriptworker"]["scope-prefix"]
|
|
170
170
|
scopes = set(task_def.get("scopes", []))
|
|
171
171
|
scopes.add(f"{scope_prefix}:signing:cert:{worker['signing-type']}")
|
|
172
|
-
scopes.update({f"{scope_prefix}:signing:format:{format}" for format in formats})
|
|
173
172
|
|
|
174
173
|
task_def["scopes"] = sorted(scopes)
|
|
175
174
|
|
|
@@ -382,7 +382,6 @@ def test_build_signing_payload_basic(build_payload):
|
|
|
382
382
|
},
|
|
383
383
|
"scopes": [
|
|
384
384
|
"foo:signing:cert:release",
|
|
385
|
-
"foo:signing:format:gpg",
|
|
386
385
|
],
|
|
387
386
|
"tags": {"worker-implementation": "scriptworker"},
|
|
388
387
|
}
|
|
@@ -421,7 +420,6 @@ def test_build_signing_payload_dmg(build_payload):
|
|
|
421
420
|
},
|
|
422
421
|
"scopes": [
|
|
423
422
|
"foo:signing:cert:release",
|
|
424
|
-
"foo:signing:format:gpg",
|
|
425
423
|
],
|
|
426
424
|
"tags": {"worker-implementation": "scriptworker"},
|
|
427
425
|
}
|
|
@@ -456,7 +454,6 @@ def test_build_signing_payload_gpg_asc(build_payload):
|
|
|
456
454
|
},
|
|
457
455
|
"scopes": [
|
|
458
456
|
"foo:signing:cert:release",
|
|
459
|
-
"foo:signing:format:gcp_prod_autograph_gpg",
|
|
460
457
|
],
|
|
461
458
|
"tags": {"worker-implementation": "scriptworker"},
|
|
462
459
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import pytest
|
|
2
|
+
|
|
3
|
+
from mozilla_taskgraph.util.signed_artifacts import get_signed_artifacts
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@pytest.mark.parametrize(
|
|
7
|
+
"input_file, formats, behavior, expected",
|
|
8
|
+
[
|
|
9
|
+
("example.dmg", [], None, {"example.tar.gz": True, "example.pkg": False}),
|
|
10
|
+
("example.dmg", [], "mac_sign", {"example.tar.gz": True, "example.pkg": False}),
|
|
11
|
+
("example.dmg", [], "other", {"example.tar.gz": True, "example.pkg": True}),
|
|
12
|
+
("example.zip", [], None, {"example.zip": True}),
|
|
13
|
+
("example.zip", ["gcp_prod_autograph_gpg"], None, {"example.zip.asc": True}),
|
|
14
|
+
],
|
|
15
|
+
)
|
|
16
|
+
def test_get_signed_artifacts(input_file, formats, behavior, expected):
|
|
17
|
+
result = get_signed_artifacts(input_file, formats, behavior=behavior)
|
|
18
|
+
for artifact, exists in expected.items():
|
|
19
|
+
if exists:
|
|
20
|
+
assert artifact in result
|
|
21
|
+
else:
|
|
22
|
+
assert artifact not in result
|
|
File without changes
|
{mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/.github/workflows/pre-commit-autoupdate.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/docs/transforms/scriptworker/ship-it.rst
RENAMED
|
File without changes
|
|
File without changes
|
{mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/actions/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/transforms/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/mt_taskgraph/target_tasks.py
RENAMED
|
File without changes
|
{mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/mt_taskgraph/transforms/test.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/test/transforms/test_scriptworker_shipit.py
RENAMED
|
File without changes
|