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.
Files changed (63) hide show
  1. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/.pre-commit-config.yaml +4 -4
  2. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/CHANGELOG.md +12 -0
  3. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/PKG-INFO +1 -1
  4. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/pyproject.toml +1 -1
  5. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/util/signed_artifacts.py +2 -0
  6. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/worker_types.py +0 -1
  7. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/test/test_worker_types.py +0 -3
  8. mozilla_taskgraph-3.1.2/test/util/test_signed_artifacts.py +22 -0
  9. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/uv.lock +1 -1
  10. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/.codespell-ignore-words.txt +0 -0
  11. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/.github/workflows/pre-commit-autoupdate.yml +0 -0
  12. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/.github/workflows/pre-commit.yml +0 -0
  13. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/.github/workflows/pypi-publish.yml +0 -0
  14. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/.gitignore +0 -0
  15. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/.readthedocs.yml +0 -0
  16. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/.taskcluster.yml +0 -0
  17. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/.yamllint +0 -0
  18. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/CODE_OF_CONDUCT.md +0 -0
  19. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/CONTRIBUTING.md +0 -0
  20. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/LICENSE +0 -0
  21. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/Makefile +0 -0
  22. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/README.md +0 -0
  23. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/docs/actions/index.rst +0 -0
  24. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/docs/actions/release-promotion.rst +0 -0
  25. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/docs/conf.py +0 -0
  26. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/docs/index.rst +0 -0
  27. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/docs/transforms/index.rst +0 -0
  28. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/docs/transforms/scriptworker/index.rst +0 -0
  29. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/docs/transforms/scriptworker/release_artifacts.rst +0 -0
  30. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/docs/transforms/scriptworker/ship-it.rst +0 -0
  31. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/__init__.py +0 -0
  32. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/actions/__init__.py +0 -0
  33. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/actions/release_promotion.py +0 -0
  34. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/config.py +0 -0
  35. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/transforms/__init__.py +0 -0
  36. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/transforms/scriptworker/__init__.py +0 -0
  37. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/transforms/scriptworker/release_artifacts.py +0 -0
  38. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/transforms/scriptworker/shipit/__init__.py +0 -0
  39. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/transforms/scriptworker/shipit/mark_as_shipped.py +0 -0
  40. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/src/mozilla_taskgraph/version.py +0 -0
  41. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/config.yml +0 -0
  42. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/docker/fetch/Dockerfile +0 -0
  43. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/docker/fetch/REGISTRY +0 -0
  44. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/docker/python/Dockerfile +0 -0
  45. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/kinds/check/kind.yml +0 -0
  46. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/kinds/codecov/kind.yml +0 -0
  47. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/kinds/docker-image/kind.yml +0 -0
  48. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/kinds/fetch/kind.yml +0 -0
  49. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/kinds/release-promotion-dummy/kind.yml +0 -0
  50. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/kinds/test/kind.yml +0 -0
  51. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/mt_taskgraph/target_tasks.py +0 -0
  52. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/mt_taskgraph/transforms/test.py +0 -0
  53. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/taskcluster/scripts/codecov-upload.py +0 -0
  54. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/test/__init__.py +0 -0
  55. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/test/actions/__init__.py +0 -0
  56. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/test/actions/test_release_promotion.py +0 -0
  57. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/test/conftest.py +0 -0
  58. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/test/data/taskcluster/config.yml +0 -0
  59. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/test/data/testver.py +0 -0
  60. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/test/test_register.py +0 -0
  61. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/test/test_version.py +0 -0
  62. {mozilla_taskgraph-3.1.0 → mozilla_taskgraph-3.1.2}/test/transforms/test_scriptworker_release_artifacts.py +0 -0
  63. {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.6.3
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.9.9'
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.35.1
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.0.0
43
+ rev: v4.1.0
44
44
  hooks:
45
45
  - id: conventional-pre-commit
46
46
  stages: [commit-msg]
@@ -1,3 +1,15 @@
1
+ ## 3.1.2 (2025-05-22)
2
+
3
+ ### Fix
4
+
5
+ - add missing mac signed_artifacts
6
+
7
+ ## 3.1.1 (2025-05-22)
8
+
9
+ ### Fix
10
+
11
+ - stop adding format scopes in scriptworker-signing payload builder
12
+
1
13
  ## 3.1.0 (2025-04-25)
2
14
 
3
15
  ### Feat
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mozilla-taskgraph
3
- Version: 3.1.0
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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mozilla-taskgraph"
3
- version = "3.1.0"
3
+ version = "3.1.2"
4
4
  description = "Mozilla specific transforms and utilities for Taskgraph"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -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
@@ -567,7 +567,7 @@ wheels = [
567
567
 
568
568
  [[package]]
569
569
  name = "mozilla-taskgraph"
570
- version = "3.1.0"
570
+ version = "3.1.2"
571
571
  source = { editable = "." }
572
572
  dependencies = [
573
573
  { name = "taskcluster-taskgraph" },