Ruby Team: Ruby transition and packaging hints #2 - Gemfile.lock created by bundler/setup with Ruby 2.7 preventing successful test with Ruby 3.0
We currently face an issue in all packages requiring
or
Both bugs #996207 and
#996302 are incarnations of this issue. The
fix is as easy as making sure that the
In another case the Update
After talking to Antonio he added some code to
bunlder/setup and trying
to run the tests for Ruby 2.7 and 3.0. The problem is that the first tests will
create Gemfile.lock (or gemfile/gemfile-*.lock) using Ruby 2.7 and the next
run for Ruby 3 will report e.g.:
Failure/Error: require 'bundler/setup' # Set up gems listed in the Gemfile.
Bundler::GemNotFound:
Could not find racc-1.4.16 in any of the sources
/usr/share/rubygems-integration/all/gems/bundler-2.2.27/lib/bundler/definition.rb:496:in materialize':
Could not find rexml-3.2.3.1 in any of the sources (Bundler::GemNotFound)
.lock files are removed before each
run. This can be done in e.g. debian/ruby-tests.rake as very first task:
File.delete("Gemfile.lock") if File.exist?("Gemfile.lock")
.lock file is created
by the tests in gemfiles/. While the first examples could actually be solved
by gem2deb removing Gemfile.lock on its own, I m not quite sure how to
handle the last case using packaging tools.
The interesting part is that we will unlikely be confronted with this issue
anytime soon again. It seems very specific to the Ruby 3.0 transition.
Group photo of the Ruby Team in Brewberry Bar (Paris 2020)
Here's a description of how my monthly external backups are managed at a
technical level. I didn't realise I hadn't written this all down anywhere yet.
What

Blog post you re reading right now is privately hosted on Raspberry PI 4 Kubernetes cluster with its data coming from NFS share and MariaDB on...
The post 


This took me far too long to identify and debug, so I'm going to write
it up here for my own reference and to possibly help others.
Perl REGEX Problems courtesy of XKCD
Grafana console showing the use of the label_replace function
Made a graph for furusato nozei limits.
I wanted a prettier graph for
Should online communities require people to create accounts before participating?
This question has been a source of disagreement among people who start or manage online communities for decades. Requiring accounts makes some sense since users contributing without accounts are a common source of vandalism, harassment, and low quality content. In theory, creating an account can deter these kinds of attacks while still making it pretty quick and easy for newcomers to join. Also, an account requirement seems unlikely to affect contributors who already have accounts and are typically the source of most valuable contributions. Creating accounts might even help community members build deeper relationships and commitments to the group in ways that lead them to stick around longer and contribute more.
I was recently called upon by Origyn to audit the source code of some of their