Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure: python312Packages.tpm2-pytss #368402

Closed
philiptaron opened this issue Dec 26, 2024 · 0 comments · Fixed by #368426
Closed

Build failure: python312Packages.tpm2-pytss #368402

philiptaron opened this issue Dec 26, 2024 · 0 comments · Fixed by #368426
Labels
0.kind: build failure A package fails to build

Comments

@philiptaron
Copy link
Contributor

Steps To Reproduce

nix-build -A python312Packages.tpm2-pytss

I'm trying to bisect this now.

Build log

nix-build -A python312Packages.tpm2-pytss
============================= test session starts ==============================
platform linux -- Python 3.12.8, pytest-8.3.3, pluggy-1.5.0
rootdir: /build/tpm2-pytss-2.3.0
configfile: pyproject.toml
collected 611 items

test/test_crypto.py ................................................     [  7%]
test/test_cryptography.py ...............................                [ 12%]
test/test_encoding.py .................................................. [ 21%]
..F...................                                                   [ 24%]
test/test_esapi.py .ss.................................................. [ 33%]
..s.................ss.s................................................ [ 45%]
..                                                                       [ 45%]
test/test_exception.py ......                                            [ 46%]
test/test_fapi.py ...................................................... [ 55%]
.................................................................        [ 65%]
test/test_import.py ...                                                  [ 66%]
test/test_internal.py .                                                  [ 66%]
test/test_policy.py ..............                                       [ 68%]
test/test_tcti.py s.s....s.....s..s...                                   [ 72%]
test/test_tcti_spi_helper.py ......                                      [ 73%]
test/test_tsskey.py .............                                        [ 75%]
test/test_types.py ..................................................... [ 83%]
........................................................................ [ 95%]
                                                                         [ 95%]
test/test_utils.py ...............ss.........                            [100%]

=================================== FAILURES ===================================
_____________ ToolsTest.test_tools_decode_tpml_tagged_tpm_property _____________

self = <test.test_encoding.ToolsTest testMethod=test_tools_decode_tpml_tagged_tpm_property>

    def test_tools_decode_tpml_tagged_tpm_property(self):
        if not self.has_tools:
            self.skipTest("tools not in path")
        elif not self.tpm.tcti_name_conf.startswith("swtpm"):
            self.skipTest("swtpm required")

        fixedyml = self.run_tool("getcap", "properties-fixed")
        fl = from_yaml(fixedyml, TPML_TAGGED_TPM_PROPERTY())
        self.assertEqual(fl[0].property, TPM2_PT.FAMILY_INDICATOR)
        self.assertEqual(fl[0].value, 0x322E3000)
        self.assertEqual(fl[1].property, TPM2_PT.LEVEL)
        self.assertEqual(fl[1].value, 0)
        self.assertEqual(fl[2].property, TPM2_PT.REVISION)
>       self.assertEqual(fl[2].value, 0xA4)
E       AssertionError: 183 != 164

test/test_encoding.py:1160: AssertionError

Additional context

This was definitely broken somewhere in the #361878 staging train.

Notify maintainers

@baloo


Note for maintainers: Please tag this issue in your PR.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant