-
-
Notifications
You must be signed in to change notification settings - Fork 329
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
Better runner tests #416
Better runner tests #416
Conversation
03996da
to
df44612
Compare
Well, I was banging my head against the wall becuase I couldn't get anywhere with this. Then I looked at the test results. As mentioned, I use trunk (my ruby-loco build). It is the only windows build that has both rb-readline and a compiled readline.so file. By default, rb-readline is enabled. I switched over to the compiled version. Running
I had one failure; it looked encoding related, which isn't unheard of on windows. Running with rb-readline, it freezes. This will require some thought. I think I need a break. Thanks, Greg EDIT: Just ran the whole set, as opposed to the above file, output below:
|
Nice find, although I'm not sure what's best now... 🤔 Maybe this is a bug in Regarding the failure, funny enough, I started extracting changes in here to separate PR's and the failure you're getting was due to an unrelated change. It should be fixed by #419, I hope. |
I know there's more. I've been avoiding it. I hacked the |
6a3039a
to
49d5628
Compare
It'd be nice to confirm if this is a real problem in I rebased this and I think it should now pass against the compiled readline? |
I tried running tests a few times, something is amiss... Start the run - tests are running, then dots stop appearing, and I see 'Coverage report generated for MiniTest, ', following by several test method names. No summary, etc. I think saw this once before today. Have tried with and without -v. Tomorrow I'll try file by file, as there aren't that many... It's shutdown time... Thanks, Greg |
49d5628
to
00eacf9
Compare
Note that simplecov is being launched several times now (one per process). Those method names are there to prevent reports to overwrite reports from other processes. It's weird that you see that output though since it should be captured by Also, have a look at https://github.com/deivid-rodriguez/byebug/blob/master/CONTRIBUTING.md#running-the-test-suite. There are several filters that can be applied to test runs, maybe it's useful to you (although I'm not sure it works on Windows...). Also, make sure you update your fork, I extracted and merged in to master a lot of stuff out of this branch. Finally, thanks for the effort, I plan to release |
No pressure. Just kidding... This morning I'll just start checking tests. I just ran the commands folder, So, I'll keep testing until I find the issue. Hopefully, I can then fix it. Otherwise, I'll look for your help. Aside - A long time ago, the only reason I tried the compiled readline version is that I knew it probably had been quite a while since anyone tried it with windows builds, and I also wondered if tests would pass with it. |
Thanks, Greg |
@MSP-Greg Thanks for your tests! Current CI is passing on Windows so that, in addition to your tests, makes me confident that things work reasonably well there. I'll leave this PR out of 10.0.0 and leave it open until we know more about the Regarding the |
9e08fdb
to
4abd716
Compare
9fe528b
to
c03662c
Compare
Sorry, been busy with some things. I've got my simple case working, but it's bypassing quite a bit of Thanks, Greg |
d889711
to
735023f
Compare
I might have
Using that, all passed with trunk except for Don't know where to go from here. I could push my changes to my rb-readline fork and you could load them into a branch on your fork, or... Thanks, Greg |
I'm not sure your fix will work with a windows ui, as I added a require for
STDOUT.winsize seems to always raise an error if rb-readline is connected to pipes. At some point, rb-readline needs to be changed for other encodings, so I used I did check the above with byebug and a regular console window... Thanks, Greg |
@MSP-Greg So my fix doesn't seem correct indeed since it the PR passes using a childprocess based implementation but hangs using I say push your changes into your fork, and I'll link this PR to it after that (or you can do it yourself, see how I'm doing it against my fork right now!). |
Well, I did add some checks inside |
Maybe it's time to take a break. Appveyor testing on my fork failed. But, starting fresh with the repo (so it used my git rb-readline), it passes locally as below:
So, nothing's changed on Appevor (it still locks), but I'm okay locally.... |
Stop everything (related to Byebug). Locally, I have symlinks for the few rb-readline files from my ruby install folders to my repo. The files are in |
All passing. See Appveyor build here. |
1a44941
to
342383f
Compare
Thanks for the effort @MSP-Greg. Could you reduce you |
Yes, I can do that. |
ec314c2
to
204ce1b
Compare
I'm not sure whether to patch myself or let you, the issue is with appveyor.yml. Ruby load path for rb files is normally (using trunk example):
Originally, I copied the rb-readline files into
Make sense? |
Yeah, I realized that. So if you specify |
By the way, now it's too late since it's already sorted out, but feel free to share your work directly here, otherwise we have a mess of duplicated branches and repositories for no reason. That's the whole point of giving you contributor access! :) |
5a705d0
to
1865620
Compare
After setting them and getting the output to be checked, we no longer need them.
1865620
to
76c151b
Compare
I'm going to merge this as soon as the build passes and move on! We can tweak the Thanks so much @MSP-Greg for the efforts! |
This is the first time I've needed to override files in
Sorry. I was busy, and I saw a lot of changes. Given that these were windows issues, I thought I'd try and get everything right in my fork, then push. Regardless, the goal has been reached... Thanks, Greg |
Descoping #334 a bit by focusing only on runner tests.