-
Notifications
You must be signed in to change notification settings - Fork 57
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
Remove CFG_USERINPUTFD and use stdin replacement in affected tests. #2091
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2091 +/- ##
==========================================
+ Coverage 83.81% 84.45% +0.64%
==========================================
Files 161 143 -18
Lines 32395 29147 -3248
==========================================
- Hits 27151 24617 -2534
+ Misses 5244 4530 -714
☔ View full report in Codecov by Sentry. |
ac15f5c
to
25447cf
Compare
|
strange, all of the failing centos-and-fedora instances fail with the same |
@antonsviridenko It could be somehow related to the redirected stdin (and be thrown from GTest side), as other PRs work well. |
All failed instances use OpenSSL as a backend... |
Any ideas how to debug this?
Looks like it's something related to Python environment in Centos/Fedora. |
@antonsviridenko Did you try to revert you commits, related to stdio redirection, and see whether that helps? |
I assume that yes, reverting commits will remove CI failures. I think it could be related to duplicated STDIN not having CLOEXEC flags... And affected platforms run cli_tests through some python wrapper. |
Is there any possibility to recreate the same local environment as in failing centos-and-fedora machines? |
@antonsviridenko Wow, this one get lost somehow. Locally you may just use corresponding Docker container, install prerequisites, copy rnp sources there, build and run tests. Another option is https://github.com/nektos/act but I didn't try it yet and don't know in which way it works and is it possible to properly debug things. |
Closes #1609 and closes #1857
Affected tests now use stdin temporarily replaced with a pipe read end.