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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 3.1.2 (2025-05-22)

### Fix

- add missing mac signed_artifacts

## 3.1.1 (2025-05-22)

### Fix
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "mozilla-taskgraph"
version = "3.1.1"
version = "3.1.2"
description = "Mozilla specific transforms and utilities for Taskgraph"
readme = "README.md"
authors = [
Expand Down
2 changes: 2 additions & 0 deletions src/mozilla_taskgraph/util/signed_artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ def get_signed_artifacts(input, formats, behavior=None):
artifacts = set()
if input.endswith(".dmg"):
artifacts.add(input.replace(".dmg", ".tar.gz"))
if behavior and behavior != "mac_sign":
artifacts.add(input.replace(".dmg", ".pkg"))
else:
artifacts.add(input)

Expand Down
22 changes: 22 additions & 0 deletions test/util/test_signed_artifacts.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import pytest

from mozilla_taskgraph.util.signed_artifacts import get_signed_artifacts


@pytest.mark.parametrize(
"input_file, formats, behavior, expected",
[
("example.dmg", [], None, {"example.tar.gz": True, "example.pkg": False}),
("example.dmg", [], "mac_sign", {"example.tar.gz": True, "example.pkg": False}),
("example.dmg", [], "other", {"example.tar.gz": True, "example.pkg": True}),
("example.zip", [], None, {"example.zip": True}),
("example.zip", ["gcp_prod_autograph_gpg"], None, {"example.zip.asc": True}),
],
)
def test_get_signed_artifacts(input_file, formats, behavior, expected):
result = get_signed_artifacts(input_file, formats, behavior=behavior)
for artifact, exists in expected.items():
if exists:
assert artifact in result
else:
assert artifact not in result
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.