Remove CFG_USERINPUTFD and use stdin replacement in affected tests.#2091
Remove CFG_USERINPUTFD and use stdin replacement in affected tests.#2091antonsviridenko wants to merge 2 commits intomainfrom
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.