You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_____________ ERROR at setup of TestSignWithTSA.test_sign_artifact _____________
self = <unit.test_sign.TestSignWithTSA object at 0x7f8097f814f0>
asset = <function asset.<locals>._asset at 0x7f8097bdd550>
tsa_url = 'http://localhost:3000/api/v1/timestamp'
@pytest.fixture
def sig_ctx(self, asset, tsa_url) -> SigningContext:
> trust_config = ClientTrustConfig.from_json(
asset("tsa/trust_config.json").read_text()
)
test/unit/test_sign.py:182:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sigstore/_internal/trust.py:575: in from_json
inner = _ClientTrustConfig().from_json(raw)
env/lib/python3.9/site-packages/betterproto/__init__.py:1690: in from_json
return self.from_dict(json.loads(value))
env/lib/python3.9/site-packages/betterproto/__init__.py:1630: in from_dict
for field, value in self._from_dict_init(value).items():
env/lib/python3.9/site-packages/betterproto/__init__.py:1560: in _from_dict_init
else sub_cls.from_dict(value)
env/lib/python3.9/site-packages/betterproto/__init__.py:1609: in from_dict
self = cls(**cls._from_dict_init(value))
env/lib/python3.9/site-packages/betterproto/__init__.py:1558: in _from_dict_init
[sub_cls.from_dict(item) for item in value]
env/lib/python3.9/site-packages/betterproto/__init__.py:1558: in <listcomp>
[sub_cls.from_dict(item) for item in value]
env/lib/python3.9/site-packages/betterproto/__init__.py:1609: in from_dict
self = cls(**cls._from_dict_init(value))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'sigstore_protobuf_specs.dev.sigstore.trustroot.v1.Service'>
mapping = 'placeholder-value'
@classmethod
def _from_dict_init(cls, mapping: Mapping[str, Any]) -> Mapping[str, Any]:
init_kwargs: Dict[str, Any] = {}
> for key, value in mapping.items():
E AttributeError: 'str' object has no attribute 'items'
env/lib/python3.9/site-packages/betterproto/__init__.py:1533: AttributeError
This test usually won't trigger locally, unless following extra steps that that workflow does, like providing a TSA url, and specially invoking pytest -m timestamp_authority.
Uh oh!
There was an error while loading. Please reload this page.
Client support for Rekor V2: sigstore-python
Description
Now that we are using anew version of signing config, some of the existing tests we have still use the old format
sigstore-python/test/unit/test_sign.py
Lines 178 to 184 in d4295dc
sigstore-python/test/assets/tsa/trust_config.json
Lines 115 to 124 in d4295dc
and are now silently failing in CI because a pipe hides the exit status.
sigstore-python/.github/workflows/ci.yml
Lines 77 to 81 in d4295dc
https://github.com/sigstore/sigstore-python/actions/runs/15146481891/job/42583296463#step:7:1072
This test usually won't trigger locally, unless following extra steps that that workflow does, like providing a TSA url, and specially invoking
pytest -m timestamp_authority
.Version
@main d4295dc
The text was updated successfully, but these errors were encountered: