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

enable exec + watch tests with timeout #10384

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tatchi
Copy link
Contributor

@tatchi tatchi commented Apr 4, 2024

The exec-watch tests have been disabled in #7138 due to flakiness. This is a bit unfortunate, as these tests are useful for preventing regressions.

What I suggest in this PR is to add a timeout to the wait-for-file.sh script. So after e.g. 2 seconds the script will exit with an error if the file does not exist. This should prevent a test from hanging forever.

See for example b705448 (#10384), which is the result I got when I ran the tests on my MacOS machine. It helped me find the reason why the test was hanging forever (sed + symlink issue) and allowed me to fix it

Signed-off-by: Corentin Leruth <corentin.leruth@gmail.com>
Signed-off-by: Corentin Leruth <corentin.leruth@gmail.com>
@tatchi tatchi marked this pull request as ready for review April 4, 2024 09:37
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

1 participant