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

.github/workflows/unit_tests.yaml: run in path /teuthology_api #73

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

VallariAg
Copy link
Member

@VallariAg VallariAg commented Nov 21, 2024

This is because teuthology does not monkey patch threads if args have "teuthology_api": https://github.com/ceph/teuthology/blob/029bda193b1d38b67b279eb5c1037caa8408be24/teuthology/__init__.py#L29

The reason the unit test passed in container is because Dockerfile copies all files in /teuthology_api

COPY . /teuthology_api/

so teuthology package sees that in args and doesn't monkey patch threads. And locally, it sees "teuthology-api".

Contribution Guidelines

To sign and test your commits, please refer to Contibution guidelines.

Checklist

This is because teuthology does not monkey patch threads
if args have "teuthology_api"[1].

[1] https://github.com/ceph/teuthology/blob/029bda193b1d38b67b279eb5c1037caa8408be24/teuthology/__init__.py#L29

Signed-off-by: Vallari Agrawal <[email protected]>
@VallariAg VallariAg requested a review from kamoltat November 21, 2024 21:36
Copy link
Member

@kamoltat kamoltat left a comment

Choose a reason for hiding this comment

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

so in this PR, you basically is checking out the repo inside teuthology-api and running any commands inside teuthology-api in order for arg to pick-up teuthology-api which will hit the if condition. LGTM!

@kamoltat kamoltat merged commit c8d9d1b into ceph:main Nov 22, 2024
4 checks passed
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.

2 participants