yegor256/judges

Termination on timeout is too aggressive

Open

#289 opened on Sep 9, 2025

 (1 comment) (0 reactions) (0 assignees)Ruby (15 forks)github user discovery
bughelp wanted

Repository metrics

Stars
 (7 stars)
PR merge metrics
 (Avg merge 5d) (13 merged PRs in 30d)

Description

Found it here:

Found 137 (Integer) by '(agg (and (eq repository $repository) (gt issue $before) (empty (and (eq repository $repository) (eq issue $issue) (eq what 'pull-was-closed') (eq where $where))) (empty (and (eq repository $repository) (eq issue $issue) (eq what 'pull-was-merged') (eq where $where))) (or (eq what 'pull-was-reviewed') (eq what 'pull-was-opened') (eq what 'code-was-contributed') (eq what 'code-was-reviewed') (eq what 'code-contribution-was-rewarded') (eq what 'code-review-was-rewarded')) (absent stale) (absent tombstone) (absent done) (eq where 'github')) (min issue))' in 1s333ms (slow!)
Zero/25319 facts found by (and (eq repository $repository) (eq issue $issue) (eq what 'pull-was-merged') (eq where $where)) in 36μs (slow!)
Factbase exported to /github/workspace/objectionary.fb (8777657 bytes, 25319 facts) in 2s186ms
error: execution expired
bundler: failed to load command: judges (/usr/local/bundle/bin/judges)
/usr/local/bundle/gems/logger-1.7.0/lib/logger/log_device.rb:33:in 'IO#write': execution expired (Timeout::ExitException)
	from /usr/local/bundle/gems/logger-1.7.0/lib/logger/log_device.rb:33:in 'block (3 levels) in Logger::LogDevice#write'
	from /usr/local/bundle/gems/logger-1.7.0/lib/logger/log_device.rb:149:in 'Logger::LogDevice#handle_write_errors'
	from /usr/local/bundle/gems/logger-1.7.0/lib/logger/log_device.rb:33:in 'block (2 levels) in Logger::LogDevice#write'
	from /usr/local/lib/ruby/3.4.0/monitor.rb:201:in 'Monitor#synchronize'
	from /usr/local/lib/ruby/3.4.0/monitor.rb:201:in 'MonitorMixin#mon_synchronize'
	from /usr/local/bundle/gems/logger-1.7.0/lib/logger/log_device.rb:29:in 'block in Logger::LogDevice#write'
	from /usr/local/bundle/gems/logger-1.7.0/lib/logger/log_device.rb:149:in 'Logger::LogDevice#handle_write_errors'
	from /usr/local/bundle/gems/logger-1.7.0/lib/logger/log_device.rb:28:in 'Logger::LogDevice#write'
	from /usr/local/bundle/gems/logger-1.7.0/lib/logger.rb:691:in 'Logger#add'
	from /usr/local/bundle/gems/logger-1.7.0/lib/logger.rb:721:in 'Logger#info'
	from /usr/local/bundle/gems/judges-0.53.6/lib/judges/commands/update.rb:78:in 'Judges::Update#run'
	from /usr/local/bundle/gems/judges-0.53.6/bin/judges:30:in 'block in JudgesGLI.run_it'
	from /usr/local/bundle/gems/gli-2.22.2/lib/gli/command_support.rb:131:in 'GLI::CommandSupport#execute'
	from /usr/local/bundle/gems/gli-2.22.2/lib/gli/app_support.rb:298:in 'block in GLI::AppSupport#call_command'
	from /usr/local/bundle/gems/gli-2.22.2/lib/gli/app_support.rb:311:in 'GLI::AppSupport#call_command'
	from /usr/local/bundle/gems/gli-2.22.2/lib/gli/app_support.rb:85:in 'GLI::AppSupport#run'
	from /usr/local/bundle/gems/judges-0.53.6/bin/judges:283:in '<top (required)>'
	from /usr/local/bundle/bin/judges:25:in 'Kernel#load'
	from /usr/local/bundle/bin/judges:25:in '<top (required)>'
	from /usr/local/lib/ruby/3.4.0/bundler/cli/exec.rb:59:in 'Kernel.load'
	from /usr/local/lib/ruby/3.4.0/bundler/cli/exec.rb:59:in 'Bundler::CLI::Exec#kernel_load'
	from /usr/local/lib/ruby/3.4.0/bundler/cli/exec.rb:23:in 'Bundler::CLI::Exec#run'
	from /usr/local/lib/ruby/3.4.0/bundler/cli.rb:452:in 'Bundler::CLI#exec'
	from /usr/local/lib/ruby/3.4.0/bundler/vendor/thor/lib/thor/command.rb:28:in 'Bundler::Thor::Command#run'
	from /usr/local/lib/ruby/3.4.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in 'Bundler::Thor::Invocation#invoke_command'
	from /usr/local/lib/ruby/3.4.0/bundler/vendor/thor/lib/thor.rb:538:in 'Bundler::Thor.dispatch'
	from /usr/local/lib/ruby/3.4.0/bundler/cli.rb:35:in 'Bundler::CLI.dispatch'
	from /usr/local/lib/ruby/3.4.0/bundler/vendor/thor/lib/thor/base.rb:584:in 'Bundler::Thor::Base::ClassMethods#start'
	from /usr/local/lib/ruby/3.4.0/bundler/cli.rb:29:in 'Bundler::CLI.start'
	from /usr/local/lib/ruby/gems/3.4.0/gems/bundler-2.6.9/exe/bundle:28:in 'block in <top (required)>'
	from /usr/local/lib/ruby/3.4.0/bundler/friendly_errors.rb:117:in 'Bundler.with_friendly_errors'
	from /usr/local/lib/ruby/gems/3.4.0/gems/bundler-2.6.9/exe/bundle:20:in '<top (required)>'
	from /usr/local/bin/bundle:25:in 'Kernel#load'
	from /usr/local/bin/bundle:25:in '<main>'

We should only terminate judges, not the entire update command.

Contributor guide