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: Use current python interpreter for sub tests #1337

Merged

Conversation

rzr
Copy link
Contributor

@rzr rzr commented Apr 7, 2021

Can be useful to run tests using distro runtimes,
(like python3 on Debian).

Relate-to: #263
Signed-off-by: Philippe Coval rzr@users.sf.net

Please fill in the fields below to submit a pull request. The more information
that is provided, the better.

Fixes #

Description of the changes being introduced by the pull request:

Please verify and check that the pull request fulfills the following
requirements
:

  • The code follows the Code Style Guidelines
  • Tests have been added for the bug fix or new feature
  • Docs have been added for the bug fix or new feature

rzr added a commit to CrossStream/tuf that referenced this pull request Apr 7, 2021
Can be useful to run tests using distro runtimes,
(like python3 on Debian).

Relate-to: theupdateframework#263
Forwarded: theupdateframework#1337
Signed-off-by: Philippe Coval <rzr@users.sf.net>
@rzr rzr force-pushed the sandbox/rzr/review/master branch from c859411 to 752e9f2 Compare April 7, 2021 18:58
rzr added a commit to CrossStream/tuf that referenced this pull request Apr 8, 2021
Can be useful to run tests using distro runtimes,
(like python3 on Debian).

Relate-to: theupdateframework#263
Origin: https://salsa.debian.org/rzr/python-tuf/-/tree/debian/review/master
Forwarded: theupdateframework#1337
Signed-off-by: Philippe Coval <rzr@users.sf.net>
@rzr rzr force-pushed the sandbox/rzr/review/master branch from 752e9f2 to baf3aad Compare April 8, 2021 08:51
@jku
Copy link
Member

jku commented Apr 9, 2021

Looks correct to me.

The CI failures are some unrelated Windows BS as far as I can tell.

Copy link
Member

@jku jku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Windows test issue filed as #1344.

This PR is fine by me, thanks rzr!

@jku
Copy link
Member

jku commented Apr 9, 2021

Hmm, re-running the tests still gives multiple failures here but other PRs are green...

I don't think there's anything wrong with this PR but maybe this actually does end up changing the executable used on CI and this triggers the issues? we could wait until we can test this with some test fixes from #1344...

@rzr
Copy link
Contributor Author

rzr commented Apr 9, 2021

I assumed those were sporadic failures. Since it was on windows and I was unable to reproduce, I didn't look too much in details,
is it related to locks when runing executables ?

@jku
Copy link
Member

jku commented Apr 9, 2021

test processes still seem to have open files in the directory we try to remove on test cleanup. Windows is very picky about that -- but unfortunately not reliably so. This change seems to have made it more reliable, or alternatively something changed in github end in the last day.

The failure I looked at does look like a bug in our tests: I'll try fixing that on monday and we'll see how it affects this.

rzr added a commit to CrossStream/tuf that referenced this pull request Apr 10, 2021
Can be useful to run tests using distro runtimes,
(like python3 on Debian).

Relate-to: theupdateframework#263
Origin: https://salsa.debian.org/rzr/python-tuf/-/tree/debian/review/master
Forwarded: theupdateframework#1337
Signed-off-by: Philippe Coval <rzr@users.sf.net>
@rzr rzr force-pushed the sandbox/rzr/review/master branch from baf3aad to 79199ff Compare April 10, 2021 21:23
jku pushed a commit to jku/python-tuf that referenced this pull request Apr 12, 2021
Can be useful to run tests using distro runtimes,
(like python3 on Debian).

Relate-to: theupdateframework#263
Origin: https://salsa.debian.org/rzr/python-tuf/-/tree/debian/review/master
Forwarded: theupdateframework#1337
Signed-off-by: Philippe Coval <rzr@users.sf.net>
@jku
Copy link
Member

jku commented Apr 12, 2021

Would you mind rebasing this so we see test results with the hopefully fixed tests?

Can be useful to run tests using distro runtimes,
(like python3 on Debian).

Relate-to: theupdateframework#263
Origin: https://salsa.debian.org/rzr/python-tuf/-/tree/debian/review/master
Forwarded: theupdateframework#1337
Signed-off-by: Philippe Coval <rzr@users.sf.net>
@rzr rzr force-pushed the sandbox/rzr/review/master branch from 79199ff to f00f893 Compare April 12, 2021 21:35
@jku
Copy link
Member

jku commented Apr 13, 2021

Thanks!

@jku jku merged commit 7074d6a into theupdateframework:develop Apr 13, 2021
rzr added a commit to CrossStream/tuf that referenced this pull request Jun 16, 2021
rzr added a commit to CrossStream/tuf that referenced this pull request Feb 18, 2022
rzr added a commit to CrossStream/tuf that referenced this pull request Feb 18, 2022
rzr added a commit to CrossStream/tuf that referenced this pull request Feb 18, 2022
Applied-Upstream: theupdateframework#1337
Relate-to: theupdateframework#263
Signed-off-by: Philippe Coval <rzr@users.sf.net>
rzr added a commit to CrossStream/tuf that referenced this pull request Feb 18, 2022
Applied-Upstream: theupdateframework#1337
Relate-to: theupdateframework#263
Signed-off-by: Philippe Coval <rzr@users.sf.net>
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

Successfully merging this pull request may close these issues.

None yet

2 participants