-
Notifications
You must be signed in to change notification settings - Fork 227
show green check mark even if ruby-head fails #508
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
base: main
Are you sure you want to change the base?
Conversation
ae51afa
to
700a4dc
Compare
rubycritic.gemspec
Outdated
spec.add_development_dependency 'bundler', '>= 2.0.0' | ||
if RUBY_PLATFORM == 'java' | ||
spec.add_development_dependency 'pry-debugger-jruby' | ||
spec.add_development_dependency 'jar-dependencies', '~> 0.4.1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the comment about jar-dependencies in https://www.jruby.org/2025/02/11/jruby-9-4-12-0.html, "jar-dependencies upgraded to 0.5.4 to fix an issue parsing Maven output on Java versions 9 and higher," should we lock jar-dependencies to -> 0.5.4
, or even remove the version restriction so as to pick up whatever jruby wants to install?
This seems worth taking. |
I hope this will fix the failure we see in HEAD: cucumber/cucumber-ruby-core#292 |
@etagwerker Assuming you still want to make this change, how can we help? |
@faisal Yes, I'd still like to have this merged into I know it's a bit of OCD on my side, but I'd like the checks to be green for pull requests where only I thought this change was going to be enough:
But it is still not doing what I want. Any ideas? |
81e528a
to
78310f7
Compare
[...]
In cursory testing, I haven't been able to find a way to do this without changing runners. See actions/runner#2347. |
It appears the check mark is always red if anything failed, even if the thing that failed is not required. Beyond OCD, I find this user-hostile because there's no quick way to know which PRs are ready for merging if any tasks aren't required to succeed. As to how to address this. We could potentially have the experimental items always "succeed" but emit useful logging if they fail, then keep an eye on those logs in the experimental tasks. Note that this is independent of what failures block a merge. If you have a branch rule that blocks merges you can specify which specific jobs must pass. We could move the experimental tasks out to "experimental" jobs and only require the "supported" jobs pass before merging. I think this factoring is worth doing in either case, and will try to take a swing at it when I get a moment. |
Something like #517 sets up for having the branch rule block merges for the @etagwerker what do you think? Also if you want to keep considering this problem then is it worth putting the gemspec changes into a focussed PR? |
As an aside, https://github.com/faisal/rubycritic/tree/test_cucumber_should_work squashes the current Ruby 3.5 failure, at least. I think it's a bit 🤡 to check in, but it would get us back to green if that's the goal. |
Hey @faisal, thanks for the effort you have been putting into this PR. if you continue on it, I can help you get it to the final line; just ping me. Is this still valid, or is this the reason you opened the cucumber PR? |
The cucumber PR was just to update to something more recent and hopefully less fragile. I was working on this PR because (as @etagwerker points out) it would be nice to have failures in ruby-head (and perhaps other experimentally supported rubies) not show up as blocking failures. Cucumber example failures on ruby-head were a good case of this problem until I put in the workaround that #530 will undo, but now we see failures in jruby as well. |
As to "still working on it" ... I think so, in the sense that I think we have an open issue on how to proceed here. What is the desired behavior if ruby-head or a jruby CI test fails but everything else passes? Should that permutation show green, or red? |
As for what I understood, it should show green status, have tou thought on a solution on how to make it possible? |
Take a look at #533 |
Hi there,
I'd like to mark the
ruby-head
job as "green" even if it fails. It's adding unnecessary noise when it's red.Check list: