Skip to content

CI: staging fixture not working #1408

Closed
@ramonpetgrave64

Description

@ramonpetgrave64

Client support for Rekor V2: sigstore-python

Description

The staging fixture needs updating, after merging #1363. It's strange that the tests didn't fail within the PR's checks, only after merging. Tests also fail locally.

https://github.com/sigstore/sigstore-python/actions/runs/15190933113/job/42723267534#step:6:217

==================================== ERRORS ====================================
_________ ERROR at setup of test_sign_rekor_entry_consistent[staging] __________

pytestconfig = <_pytest.config.Config object at 0x7f69195a64d0>, env = 'staging'

    @pytest.fixture
    def sign_ctx_and_ident_for_env(
        pytestconfig,
        env: str,
    ) -> tuple[type[SigningContext], type[IdentityToken]]:
        if env == "staging":
>           ctx_cls = SigningContext.staging
E           AttributeError: type object 'SigningContext' has no attribute 'staging'

env        = 'staging'
pytestconfig = <_pytest.config.Config object at 0x7f69195a64d0>

test/unit/conftest.py:192: AttributeError

Version

@main 916c2c5

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions