Skip to content

Tests failure when using generate_and_write_ed25519_keypair() on develop branch #1204

Closed

Description

@MVrachev

Description of issue or feature request:
When running the tests on the latest commit on the develop branch 201e07d
I receive this error:

======================================================================
ERROR: test_import_ed25519_privatekey_from_file (test_repository_lib.TestRepositoryToolFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mvrachev/src/tuf/tests/test_repository_lib.py", line 146, in test_import_ed25519_privatekey_from_file
    ed25519_keypath, password='pw')
TypeError: generate_and_write_ed25519_keypair() got multiple values for argument 'password'

======================================================================
ERROR: test_tutorial (test_tutorial.TestTutorial)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mvrachev/src/tuf/tests/test_tutorial.py", line 78, in test_tutorial
    generate_and_write_rsa_keypair('root_key', bits=2048, password='password')
TypeError: generate_and_write_rsa_keypair() got multiple values for argument 'password'

----------------------------------------------------------------------

Interestingly those tests fail on python 3.6+, but not on Python 2.7.
I don't have python 3.5 locally.

Current behavior:
Two unit tests are failing.

Expected behavior:
No unit tests failures on the develop branch.

Activity

  1. MVrachev commented on Nov 10, 2020

    @MVrachev
    CollaboratorAuthor
  2. jku commented on Nov 11, 2020

    @jku
    Member

    appveyor build uses pip install -e . which installs newest securesystemslib (currently 0.18 which changed API) instead of the pinned version

  3. MVrachev commented on Nov 11, 2020

    @MVrachev
    CollaboratorAuthor

    Well, I have the same issue locally and I have the latest version of securesystemlib
    I even recreated my venv just to try if that was the reason
    Here is what I get with pip list in my latest venv:
    image

    Here are the results when testing test_repository_lib.py and test_tutorial:
    image
    image

  4. lukpueh commented on Nov 11, 2020

    @lukpueh
    Member

    0.18.0 had some breaking changes. I'm in the process of adopting them in: #1191

  5. jku commented on Nov 11, 2020

    @jku
    Member

    Well, I have the same issue locally and I have the latest version of securesystemlib
    I even recreated my venv just to try if that was the reason

    Sure, that's what I'm saying: pinned requirements work (as shown by travis), newest securesystemslib does not.

    0.18.0 had some breaking changes. I'm in the process of adopting them in: #1191

    The issue still seems valid: the appveyor build result is unexpected -- especially compared to travis that is explicitly setup to be green in this situation.

    Maybe it's not worth spending time on if we're moving CI to github though.

  6. lukpueh commented on Nov 11, 2020

    @lukpueh
    Member

    Maybe it's not worth spending time on if we're moving CI to github though.

    I agree. I think the AppVeyor config has been somewhat neglected compared to Travis Ci. Which is one more argument for unifying CI/CD for all platforms (#1195).

  7. lukpueh commented on Nov 11, 2020

    @lukpueh
    Member

    Interestingly those tests fail on python 3.6+, but not on Python 2.7.

    @MVrachev, have you figured out why tests don't fail on 2.7? That seems odd to me.

  8. MVrachev commented on Nov 11, 2020

    @MVrachev
    CollaboratorAuthor

    Now, after I have updated to the latest securesystemslib it seems python2.7 fails too.
    It seems I hadn't updated securesystemslib to the latest version on my python2.7 venv.

  9. lukpueh commented on Nov 11, 2020

    @lukpueh
    Member

    Just merged #1204. @MVrachev, if you rebase on the latest develop your tests should pass.

  10. lukpueh commented on Nov 11, 2020

    @lukpueh
    Member

    I also referenced the comment about non-matching Travis/Appveyor test setup in #1195 (comment). I think we can close here. @jku, @MVrachev, you agree?

  11. MVrachev commented on Nov 11, 2020

    @MVrachev
    CollaboratorAuthor

    Yes, checked on python 3.8 and python 2.7 and this issue is solved for me and we can continue the discussion about the CI systems on the issue you have already opened about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions