Skip to content

#279 print judges and fbe versions at startup - #279

Open
VasilevNStas wants to merge 1 commit into
zerocracy:masterfrom
VasilevNStas:279-version-check
Open

#279 print judges and fbe versions at startup#279
VasilevNStas wants to merge 1 commit into
zerocracy:masterfrom
VasilevNStas:279-version-check

Conversation

@VasilevNStas

Copy link
Copy Markdown
Contributor

When diagnosing CI or job failures it's often unclear which version of judges or fbe was used. This is especially important now that fbe and judges have broad version constraints (~>0).

What this PR does

Prints both gem versions to stdout before judges update runs:

judges: 0.60.4
fbe: 0.48.5

baza.rb (or any operator reading job logs) can now see the exact versions without checking Gemfile.lock or the Docker image.

For judges — uses judges --version (CLI flag).
For fbe — uses Ruby's Gem::Specification since fbe has no standalone CLI.

Checklist

  • bundle exec rubocop — 0 offences
  • bundle exec rake — all tasks pass
  • HoC ≤ 133

@yegor256 please review

When diagnosing CI failures it's often unclear which version of
judges or fbe was used. Print both versions to stdout before
running judges update, so baza.rb (or any operator reading logs)
can see the exact gem versions in the job output.

Use `gem specification` for fbe since it's not a standalone CLI.
@VasilevNStas
VasilevNStas requested a review from yegor256 as a code owner June 29, 2026 17:18
@VasilevNStas

Copy link
Copy Markdown
Contributor Author

Why this matters

When a job fails in CI or on a production host, the first question is always "which version ran?" Without this, debugging means:

  1. Check which Docker tag was deployed
  2. Look up its Gemfile.lock
  3. Guess whether bundle update changed things

After this PR, every job log starts with:

judges: 0.60.4
fbe: 0.48.5

One line, zero guesswork. Saves 5–10 minutes per debugging session, which adds up fast when chasing regressions across 50+ judges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant