rails / solid_queue

Database-backed Active Job backend
MIT License
1.95k stars 130 forks source link

SolidQueue's tests Vs. my local environment #400

Open hms opened 2 weeks ago

hms commented 2 weeks ago

I'm about ready to push a PR to address resource constrained deployments.

As part of testing my PR I'm finding the tests have some issues and if they are known issues and not limited to my environment I'd like to include with the PR. What I'm seeing:

I'm running on a M series MacBookPro. PostgreSQL and MySQL are running in docker as configured via bin/setup. I have not made any other changes or adjustments to the environment.

Are these known issues that I should include in my PR or yet another case of "it's just me?"

hms commented 1 week ago

Adding to my confusion is .ruby-version is set at: 3.3.1, but the GitHub actions use ruby: 3.3.5.

What is the development standard for SolidQueue so I can match the expected requirements?

rosa commented 1 week ago

Oops, so sorry I haven't responded yet to this, I missed the notification last week!

There are several tests generate a "RuntimeError: everything is broken", although the tests report as passing.

Yes! This is expected, the error is raised on purpose. Setting Thread.report_on_exception = false prevents these from showing up at all in some cases but not all.

There are several tests generate various broken pipe errors in Interruptible.rb.

Huh, I haven't encountered those, but perhaps it's been by chance. I'm very curious to know what are the fixes.

Adding to my confusion is .ruby-version is set at: 3.3.1, but the GitHub actions use ruby: 3.3.5.

Ah, this is an oversight. Any of them should work, feel free to change .ruby-version to match GitHub actions if you want.