-
Notifications
You must be signed in to change notification settings - Fork 170
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: meltano config <plugin> test
false-negative on Windows
#8213
fix: meltano config <plugin> test
false-negative on Windows
#8213
Conversation
✅ Deploy Preview for meltano ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
…ignal number (`15`)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8213 +/- ##
=======================================
Coverage 91.68% 91.68%
=======================================
Files 245 245
Lines 19294 19299 +5
Branches 2148 2148
=======================================
+ Hits 17690 17695 +5
Misses 1329 1329
Partials 275 275 ☔ View full report in Codecov by Sentry. |
@ReubenFrankel Let me know if I can help with that 👆 |
@edgarrmondragon Yeah, I would appreciate some help if you have any ideas. Might unblock meltano/edk#75 (comment) too if there is good pattern to follow. |
@ReubenFrankel So, I don't have a windows machine with me to test but we can probably set up a dummy fixture tap that fails with a certain config value and passes otherwise. Wdyt? |
The part I was struggling with was how a dummy process could be started and then properly terminated with respect to the host OS handling of One idea I had was to create test resources that contain tap output indicating success (e.g. {"type": "SCHEMA"}
{"type": "RECORD"}
{"type": "STATE"}
{"type": "SCHEMA"}
{"type": "RECORD"}
{"type": "STATE"}
{"type": "SCHEMA"}
{"type": "RECORD"}
{"type": "STATE"} and failure (e.g. {"type": "SCHEMA"}
{"type": "SCHEMA"}
{"type": "SCHEMA"} , and then mock the |
@ReubenFrankel do you think that's a hard blocker for merging this PR? |
@edgarrmondragon Not a hard blocker, no - I just haven't got an environment to manually test the fix with. I was thinking since CI is already setup with a Windows environment that it made sense to refactor the existing test as per above. |
I think I finally made some progress on this last night - I'll push a test POC later today and we can decide whether it's worth having or not. |
…ific process interactions - namely `SIGTERM`
Hmm... Working locally no problem, but looks like there is some kind of race condition in reading the emulated tap process output for |
The return code debug log seems to indicate that the process return code is |
… OS-specific process interactions - namely `SIGTERM`" This reverts commit 844b5f6.
Decided to just flag if we encounter a |
Yeah, that actually makes more sense 👍 |
Thanks @ReubenFrankel! |
Closes #8212
I'd like to refactor
TestExtractorTestService
andTestCliConfig.test_config_test
to spin up a real dummy process, rather than stub out return values through a mock. This means we could validate this fix on Windows through CI.