[DRE-maint] Bug#996224: ruby-faker: FTBFS with ruby3.0: ERROR: Test "ruby3.0" failed: Error: test_ch_methods(TestZhLocale): ArgumentError: wrong number of arguments (given 2, expected 0..1)

Antonio Terceiro terceiro at debian.org
Tue Oct 12 13:06:26 BST 2021


Source: ruby-faker
Version: 1.9.1-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby3.0

Hi,

We are about to enable building against ruby3.0 on unstable. During a test
rebuild, ruby-faker was found to fail to build in that situation.

To reproduce this locally, you need to install ruby-all-dev from experimental
on an unstable system or build chroot.

Relevant part (hopefully):
> Error: test_ch_methods(TestZhLocale): ArgumentError: wrong number of arguments (given 2, expected 0..1)
> /usr/share/rubygems-integration/all/gems/i18n-1.8.10/lib/i18n.rb:196:in `translate'
> /<<PKGBUILDDIR>>/debian/ruby-faker/usr/share/rubygems-integration/all/gems/faker-1.9.1/lib/faker.rb:153:in `translate'
> /<<PKGBUILDDIR>>/debian/ruby-faker/usr/share/rubygems-integration/all/gems/faker-1.9.1/lib/faker.rb:96:in `fetch'
> /<<PKGBUILDDIR>>/debian/ruby-faker/usr/share/rubygems-integration/all/gems/faker-1.9.1/lib/faker/address.rb:32:in `zip_code'
> /<<PKGBUILDDIR>>/test/test_zh_locale.rb:13:in `test_ch_methods'
>      10:   end
>      11: 
>      12:   def test_ch_methods
>   => 13:     assert Faker::Address.postcode.is_a? String
>      14:     assert Faker::Address.state.is_a? String
>      15:     assert Faker::Address.state_abbr.is_a? String
>      16:     assert Faker::Address.city_prefix.is_a? String
> ===============================================================================
> : (0.000842)
> 
> Finished in 18.822407534 seconds.
> -------------------------------------------------------------------------------
> 1073 tests, 43272 assertions, 4 failures, 807 errors, 0 pendings, 1 omissions, 0 notifications
> 24.347% passed
> -------------------------------------------------------------------------------
> 57.01 tests/s, 2298.96 assertions/sStopped processing SimpleCov as a previous error not related to SimpleCov has been detected
> 
> Coverage report generated for Unit Tests to /<<PKGBUILDDIR>>/coverage. 2375 / 2660 LOC (89.29%) covered.
> rake aborted!
> Command failed with status (1): [ruby -w -I"test" /usr/lib/ruby/gems/3.0.0/gems/rake-13.0.3/lib/rake/rake_test_loader.rb "test/test_array_sample_method_compat.rb" "test/test_avatar.rb" "test/test_bg_locale.rb" "test/test_ca_cat_locale.rb" "test/test_ca_locale.rb" "test/test_country_code.rb" "test/test_da_dk_locale.rb" "test/test_de_at_locale.rb" "test/test_de_ch_locale.rb" "test/test_de_locale.rb" "test/test_determinism.rb" "test/test_ee_locale.rb" "test/test_en_au_locale.rb" "test/test_en_au_ocker_locale.rb" "test/test_en_ca_locale.rb" "test/test_en_gb_locale.rb" "test/test_en_ind_locale.rb" "test/test_en_locale.rb" "test/test_en_ms_locale.rb" "test/test_en_nep_locale.rb" "test/test_en_ng_locale.rb" "test/test_en_nz_locale.rb" "test/test_en_pak_locale.rb" "test/test_en_sg_locale.rb" "test/test_en_ug_locale.rb" "test/test_en_us_locale.rb" "test/test_es_locale.rb" "test/test_es_mx_locale.rb" "test/test_fa_locale.rb" "test/test_faker.rb" "test/test_faker_address.rb" "test/test_faker_ancient.rb" "test/test_faker_app.rb" "test/test_faker_appliance.rb" "test/test_faker_aqua_teen_hunger_force.rb" "test/test_faker_artist.rb" "test/test_faker_back_to_the_future.rb" "test/test_faker_bank.rb" "test/test_faker_beer.rb" "test/test_faker_birthday_in_leap_year.rb" "test/test_faker_bitcoin.rb" "test/test_faker_bojack_horseman.rb" "test/test_faker_book.rb" "test/test_faker_boolean.rb" "test/test_faker_bossa_nova.rb" "test/test_faker_breaking_bad.rb" "test/test_faker_business.rb" "test/test_faker_cannabis.rb" "test/test_faker_cat.rb" "test/test_faker_char.rb" "test/test_faker_chuck_norris.rb" "test/test_faker_city.rb" "test/test_faker_code.rb" "test/test_faker_coffee.rb" "test/test_faker_color.rb" "test/test_faker_commerce.rb" "test/test_faker_community.rb" "test/test_faker_company.rb" "test/test_faker_compass.rb" "test/test_faker_crypto.rb" "test/test_faker_currency.rb" "test/test_faker_date.rb" "test/test_faker_demographic.rb" "test/test_faker_dessert.rb" "test/test_faker_device.rb" "test/test_faker_dog.rb" "test/test_faker_dota.rb" "test/test_faker_dr_who.rb" "test/test_faker_dragon_ball.rb" "test/test_faker_dumb_and_dumber.rb" "test/test_faker_dune.rb" "test/test_faker_educator.rb" "test/test_faker_elder_scrolls.rb" "test/test_faker_electrical_components.rb" "test/test_faker_esport.rb" "test/test_faker_ethereum.rb" "test/test_faker_fallout.rb" "test/test_faker_family_guy.rb" "test/test_faker_famous_last_words.rb" "test/test_faker_file.rb" "test/test_faker_fillmurray.rb" "test/test_faker_food.rb" "test/test_faker_football.rb" "test/test_faker_friends.rb" "test/test_faker_funny_name.rb" "test/test_faker_game_of_thrones.rb" "test/test_faker_gender.rb" "test/test_faker_greek_philosophers.rb" "test/test_faker_hacker_talk.rb" "test/test_faker_harry_potter.rb" "test/test_faker_hey_arnold.rb" "test/test_faker_hipster.rb" "test/test_faker_hitchhikers_guide_to_the_galaxy.rb" "test/test_faker_how_i_met_your_mother.rb" "test/test_faker_id_number.rb" "test/test_faker_internet.rb" "test/test_faker_job.rb" "test/test_faker_job_locale.rb" "test/test_faker_kpop.rb" "test/test_faker_league_of_legends.rb" "test/test_faker_lebowski.rb" "test/test_faker_lord_of_the_rings.rb" "test/test_faker_lorem.rb" "test/test_faker_lorem_flickr.rb" "test/test_faker_lovecraft.rb" "test/test_faker_markdown.rb" "test/test_faker_matz.rb" "test/test_faker_measurement.rb" "test/test_faker_michael_scott.rb" "test/test_faker_military.rb" "test/test_faker_movie.rb" "test/test_faker_music.rb" "test/test_faker_myst.rb" "test/test_faker_name.rb" "test/test_faker_nation.rb" "test/test_faker_new_girl.rb" "test/test_faker_number.rb" "test/test_faker_omniauth.rb" "test/test_faker_one_piece.rb" "test/test_faker_overwatch.rb" "test/test_faker_parks_and_rec.rb" "test/test_faker_pokemon.rb" "test/test_faker_princess_bride.rb" "test/test_faker_programming_language.rb" "test/test_faker_rick_and_morty.rb" "test/test_faker_robin.rb" "test/test_faker_rock_band.rb" "test/test_faker_rupaul.rb" "test/test_faker_science.rb" "test/test_faker_seinfeld.rb" "test/test_faker_shakespeare.rb" "test/test_faker_silicon_valley.rb" "test/test_faker_simpsons.rb" "test/test_faker_singular_siegler.rb" "test/test_faker_slack_emoji.rb" "test/test_faker_source.rb" "test/test_faker_space.rb" "test/test_faker_star_trek.rb" "test/test_faker_star_wars.rb" "test/test_faker_stargate.rb" "test/test_faker_street.rb" "test/test_faker_string.rb" "test/test_faker_stripe.rb" "test/test_faker_superhero.rb" "test/test_faker_sword_art_online.rb" "test/test_faker_team.rb" "test/test_faker_the_fresh_prince_of_bel_air.rb" "test/test_faker_the_it_crowd.rb" "test/test_faker_time.rb" "test/test_faker_twin_peaks.rb" "test/test_faker_types.rb" "test/test_faker_umphreys_mcgee.rb" "test/test_faker_unique_generator.rb" "test/test_faker_university.rb" "test/test_faker_v_for_vendetta.rb" "test/test_faker_vehicle.rb" "test/test_faker_venture_bros.rb" "test/test_faker_verb.rb" "test/test_faker_witcher.rb" "test/test_faker_world_cup.rb" "test/test_faker_yoda.rb" "test/test_faker_zelda.rb" "test/test_faker_zip_code.rb" "test/test_fi_locale.rb" "test/test_flexible.rb" "test/test_fr_ca_locale.rb" "test/test_fr_ch_locale.rb" "test/test_fr_locale.rb" "test/test_he_locale.rb" "test/test_helper.rb" "test/test_hobbit.rb" "test/test_id_locale.rb" "test/test_invoice.rb" "test/test_it_locale.rb" "test/test_ja_locale.rb" "test/test_ko_locale.rb" "test/test_locale.rb" "test/test_lorem_pixel.rb" "test/test_lv_locale.rb" "test/test_michael_scott.rb" "test/test_most_interesting_man_in_the_world.rb" "test/test_nato_phonetic_alphabet.rb" "test/test_nb_no_locale.rb" "test/test_nl_locale.rb" "test/test_no-NO_locale.rb" "test/test_pl_locale.rb" "test/test_placeholdit.rb" "test/test_pt_locale.rb" "test/test_ru_locale.rb" "test/test_seeding.rb" "test/test_sk_locale.rb" "test/test_stranger_thing.rb" "test/test_sv_locale.rb" "test/test_tr_locale.rb" "test/test_twitter.rb" "test/test_uk_locale.rb" "test/test_world_of_warcraft.rb" "test/test_zh_cn_locale.rb" "test/test_zh_locale.rb" -v]
> 
> Tasks: TOP => default
> (See full trace by running task with --trace)
> ERROR: Test "ruby3.0" failed: 


The full build log is available at
https://people.debian.org/~kanashiro/ruby3.0/round2/builds/3/ruby-faker/ruby-faker_1.9.1-2+rebuild1633379447_amd64.build.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20211012/5be7b9dd/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list