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

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

Closed
MVrachev opened this issue Nov 10, 2020 · 11 comments
Closed

Comments

@MVrachev
Copy link
Collaborator

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.

@MVrachev
Copy link
Collaborator Author

The AppVeyor run on my latest pr looks likes it shows the same issue:
https://ci.appveyor.com/project/theupdateframework/tuf/builds/36234615

@jku
Copy link
Member

jku commented Nov 11, 2020

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

@MVrachev
Copy link
Collaborator Author

MVrachev commented Nov 11, 2020

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

@lukpueh
Copy link
Member

lukpueh commented Nov 11, 2020

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

@jku
Copy link
Member

jku commented Nov 11, 2020

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.

@lukpueh
Copy link
Member

lukpueh commented Nov 11, 2020

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).

@lukpueh
Copy link
Member

lukpueh commented Nov 11, 2020

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.

@MVrachev
Copy link
Collaborator Author

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.

@lukpueh
Copy link
Member

lukpueh commented Nov 11, 2020

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

@lukpueh
Copy link
Member

lukpueh commented Nov 11, 2020

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?

@MVrachev
Copy link
Collaborator Author

MVrachev commented Nov 11, 2020

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants