Skip to content

Skip test_executor with Python 3.11 as it is flaky#733

Open
vzhestkov wants to merge 1 commit into
openSUSE/release/3006.0from
openSUSE/fix/3006.0/python-3.11-flaky-executor-test
Open

Skip test_executor with Python 3.11 as it is flaky#733
vzhestkov wants to merge 1 commit into
openSUSE/release/3006.0from
openSUSE/fix/3006.0/python-3.11-flaky-executor-test

Conversation

@vzhestkov

@vzhestkov vzhestkov commented Oct 9, 2025

Copy link
Copy Markdown
Contributor

What does this PR do?

With Salt Shaker tests.integration.minion.test_executor.py::ExecutorTest::test_executor is always failing while running in CI, but not reproducible with manual runs. For some reason arg.py executor module used in the test environment couldn't be syncronised in time, but only in case of running the test with Salt Shaker using Python 3.11.

For some reason adding extra sleeps to wait for the sync to be fully completed doesn't really help and running it few times with marking as flaky also doesn't work and it's almost impossible to debug as it is reproducible only while triggering the job with CI.

It should be safe to skip it as there is another bit more complex test test_executor_with_multijob which works fine and not flaky.

What issues does this PR fix or reference?

Tracks: https://github.com/SUSE/spacewalk/issues/26171

Previous Behavior

tests.integration.minion.test_executor.py::ExecutorTest::test_executor fails each time on running with Python 3.11 inside Salt Shaker environment.

New Behavior

Flaky test skipped

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes/No

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@vzhestkov vzhestkov requested a review from meaksh October 9, 2025 11:24
self.run_function("saltutil.sync_all")

@pytest.mark.slow_test
@pytest.mark.skipif(sys.version_info.minor==11, reason="Flaky with Python 3.11")

@meaksh meaksh Oct 10, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hmmm, what about using:

Suggested change
@pytest.mark.skipif(sys.version_info.minor==11, reason="Flaky with Python 3.11")
@pytest.mark.flaky(max_runs=4)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Unfortunatelly it doesn't work, I tried it with 10 and it keeps failing, but as I mentioned only in case of running inside Salt Shaker environment.

@vzhestkov vzhestkov force-pushed the openSUSE/fix/3006.0/python-3.11-flaky-executor-test branch from a84405a to f1eed3a Compare October 14, 2025 07:27
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