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

fix: wait longer after z_put #351

Merged
merged 6 commits into from
Oct 17, 2024

Conversation

diogomatsubara
Copy link
Contributor

@diogomatsubara diogomatsubara commented Oct 3, 2024

Attempt to fix racy behaviour in tests like: https://github.com/eclipse-zenoh/zenoh-python/actions/runs/11158739052/job/31015765836

This started as small fix to increase sleep times and ended up with a re-org of the examples test code.

Copy link
Contributor

github-actions bot commented Oct 3, 2024

PR missing one of the required labels: {'documentation', 'new feature', 'dependencies', 'breaking-change', 'internal', 'enhancement', 'bug'}

@diogomatsubara diogomatsubara added the internal Changes not included in the changelog label Oct 3, 2024
@diogomatsubara diogomatsubara marked this pull request as draft October 6, 2024 17:27
@diogomatsubara diogomatsubara force-pushed the wait-longer-examples branch 2 times, most recently from 06a4e53 to b567c3d Compare October 6, 2024 17:34
@diogomatsubara diogomatsubara marked this pull request as ready for review October 7, 2024 09:10
Copy link
Contributor

@wyfo wyfo left a comment

Choose a reason for hiding this comment

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

I'm not sure we need the fixture dependency for that, but it doesn't really matter. Otherwise, LGTM

run: pip3 install pytest pytest-xdist
run: pip3 install pytest pytest-xdist fixtures

- name: Run examples check
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you need another step for examples check? Isn't it also executed as part of next pytest command?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It looks like the pytest step doesn't auto detect the tests in examples

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I could change the name of tests/examples_check.py to tests/test_examples.py and it would be picked up by the pytest step. Should the same be done for stubs_check.py and have a single pytest call that calls all of them? Maybe having them in their own steps might be helpful for debugging. What do you think?

@Mallets Mallets merged commit f7631ae into eclipse-zenoh:main Oct 17, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Changes not included in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants