[DRE-maint] Bug#996228: ruby-ffaker: FTBFS with ruby3.0: ERROR: Test "ruby3.0" failed: Error: test_ssn_with_from_to(TestSSNSE): ArgumentError: wrong number of arguments (given 4, expected 3)
Antonio Terceiro
terceiro at debian.org
Tue Oct 12 13:11:54 BST 2021
Source: ruby-ffaker
Version: 2.13.0-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-ffaker 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_ssn_with_from_to(TestSSNSE): ArgumentError: wrong number of arguments (given 4, expected 3)
> /<<PKGBUILDDIR>>/test/helper.rb:48:in `assert_between'
> /<<PKGBUILDDIR>>/test/helper.rb:62:in `block (3 levels) in <module:DeterministicHelper>'
> /<<PKGBUILDDIR>>/test/helper.rb:55:in `block in assert_random'
> /<<PKGBUILDDIR>>/test/helper.rb:54:in `times'
> /<<PKGBUILDDIR>>/test/helper.rb:54:in `assert_random'
> /<<PKGBUILDDIR>>/test/helper.rb:62:in `block (2 levels) in <module:DeterministicHelper>'
> /<<PKGBUILDDIR>>/test/test_ssn_se.rb:35:in `test_ssn_with_from_to'
> 32: from = Time.local(1980, 2, 28)
> 33: to = Time.local(2000, 2, 28)
> 34:
> => 35: assert_random_between(from, to, exclude_end: true) do
> 36: ssn = FFaker::SSNSE.ssn(from: from, to: to)
> 37: year = ssn[0..3].to_i
> 38: month = ssn[4..5].to_i
> ===============================================================================
> : (0.001016)
> test_ssn_with_gender: .: (0.000317)
> TestSemVer:
> test_next: .: (0.000199)
> test_next_is_deterministic: .: (0.016682)
> TestSkill:
> test_specialties: .: (0.000446)
> test_specialties_is_deterministic: .: (0.000236)
> test_specialty: .: (0.000087)
> test_specialty_is_deterministic: .: (0.000149)
> test_tech_skill: .: (0.000202)
> test_tech_skill_is_deterministic: .: (0.000144)
> test_tech_skills: .: (0.000087)
> test_tech_skills_is_deterministic: .: (0.000148)
> TestSportPL:
> test_name: .: (0.000176)
> test_name_is_deterministic: .: (0.000148)
> test_summer: .: (0.000087)
> test_summer_is_deterministic: .: (0.000130)
> test_winter: .: (0.000086)
> test_winter_is_deterministic: .: (0.000155)
> TestSportUS:
> test_name: .: (0.000324)
> test_name_is_deterministic: .: (0.000151)
> TestSports:
> test_name: [name] is deprecated. For US sports please use the SportUS module
> .: (0.000318)
> test_name_is_deterministic: [name] is deprecated. For US sports please use the SportUS module
> [name] is deprecated. For US sports please use the SportUS module
> [name] is deprecated. For US sports please use the SportUS module
> [name] is deprecated. For US sports please use the SportUS module
> [name] is deprecated. For US sports please use the SportUS module
> [name] is deprecated. For US sports please use the SportUS module
> [name] is deprecated. For US sports please use the SportUS module
> [name] is deprecated. For US sports please use the SportUS module
> [name] is deprecated. For US sports please use the SportUS module
> [name] is deprecated. For US sports please use the SportUS module
> .: (0.000196)
> TestString:
> test_atom_plus: .: (0.000383)
> test_atom_question: .: (0.000185)
> test_atom_sets: .: (0.000272)
> test_atom_star: .: (0.000268)
> test_atoms: .: (0.000221)
> test_braces: .: (0.009756)
> test_dash_character: .: (0.000608)
> test_digits: .: (0.000347)
> test_escaped_characters: .: (0.000420)
> test_set_plus: .: (0.000324)
> test_set_question: .: (0.000250)
> test_set_star: .: (0.000295)
> test_spaces: .: (0.000250)
> test_special_plus: .: (0.000366)
> test_special_question: .: (0.000236)
> test_special_sets: .: (0.000271)
> test_special_star: .: (0.000233)
> test_word_characters: .: (0.000244)
> test_word_range_character: .: (0.000293)
> TestTweet:
> test_2_tags: .: (0.000288)
> test_3_tags: .: (0.000318)
> test_body: .: (0.000150)
> test_body_is_deterministic: .: (0.000413)
> test_mention: .: (0.000106)
> test_mention_is_deterministic: .: (0.000177)
> test_mentions_three: .: (0.000289)
> test_oversize_body_length: .: (0.000140)
> test_short_body: .: (0.000110)
> test_shortish_body: .: (0.000092)
> test_tags_is_deterministic: .: (0.000159)
> test_tweet: .: (0.118259)
> test_tweet_is_deterministic: .: (0.000502)
> test_tweet_with_reply: .: (0.000645)
> test_undersize_body_length: .: (0.000114)
> TestUniqueUtils:
> test_clears_unique_values: .: (0.040864)
> test_generates_unique_values: .: (0.000168)
> test_returns_error_when_retries_exceeded: .: (0.000325)
> TestUnits:
> test_temperature_abbr: .: (0.000598)
> test_temperature_abbr_is_deterministic: .: (0.000402)
> test_temperature_name: .: (0.000190)
> test_temperature_name_is_deterministic: .: (0.000336)
> test_time_abbr: .: (0.000192)
> test_time_abbr_is_deterministic: .: (0.000329)
> test_time_name: .: (0.000180)
> test_time_name_is_deterministic: .: (0.000320)
> TestUnitsEnglish:
> test_area_abbr: .: (0.000435)
> test_area_abbr_is_deterministic: .: (0.012700)
> test_area_name: .: (0.000323)
> test_area_name_is_deterministic: .: (0.000474)
> test_length_abbr_is_deterministic: .: (0.000464)
> test_length_abbrev: .: (0.000309)
> test_length_name: .: (0.000310)
> test_length_name_is_deterministic: .: (0.000453)
> test_liquid_abbr: .: (0.000320)
> test_liquid_abbr_is_deterministic: .: (0.000443)
> test_liquid_name: .: (0.000318)
> test_liquid_name_is_deterministic: .: (0.000454)
> test_mass_abbr: .: (0.000345)
> test_mass_abbr_is_deterministic: .: (0.000449)
> test_mass_name: .: (0.000315)
> test_mass_name_is_deterministic: .: (0.000444)
> test_volume_abbr: .: (0.000311)
> test_volume_abbr_is_deterministic: .: (0.000438)
> test_volume_name: .: (0.000312)
> test_volume_name_is_deterministic: .: (0.008611)
> TestUnitsMetric:
> test_area_abbr: .: (0.000359)
> test_area_abbr_is_deterministic: .: (0.000421)
> test_area_name: .: (0.000238)
> test_area_name_is_deterministic: .: (0.000384)
> test_length_abbr_is_deterministic: .: (0.000387)
> test_length_abbrev: .: (0.000237)
> test_length_name: .: (0.000237)
> test_length_name_is_deterministic: .: (0.000381)
> test_liquid_abbr: .: (0.000239)
> test_liquid_abbr_is_deterministic: .: (0.000373)
> test_liquid_name: .: (0.000235)
> test_liquid_name_is_deterministic: .: (0.000383)
> test_mass_abbr: .: (0.000239)
> test_mass_abbr_is_deterministic: .: (0.000400)
> test_mass_name: .: (0.000235)
> test_mass_name_is_deterministic: .: (0.000378)
> test_volume_abbr: .: (0.000242)
> test_volume_abbr_is_deterministic: .: (0.000370)
> test_volume_name: .: (0.000237)
> test_volume_name_is_deterministic: .: (0.000379)
> TestVehicle:
> test_base_color: .: (0.000180)
> test_base_color_is_deterministic: .: (0.000150)
> test_drivetrain: .: (0.000086)
> test_drivetrain_is_deterministic: .: (0.000130)
> test_engine_cylinders: .: (0.000109)
> test_engine_cylinders_is_deterministic: .: (0.000135)
> test_engine_displacement: .: (0.000261)
> test_engine_displacement_is_deterministic: .: (0.000147)
> test_fuel_type: .: (0.000182)
> test_fuel_type_is_deterministic: .: (0.000144)
> test_interior_upholstery: .: (0.000178)
> test_interior_upholstery_is_deterministic: .: (0.000142)
> test_make: .: (0.000202)
> test_make_is_deterministic: .: (0.000142)
> test_manufacturer_color: .: (0.000192)
> test_manufacturer_color_is_deterministic: .: (0.000168)
> test_mfg_color: .: (0.000087)
> test_mfg_color_is_deterministic: .: (0.000157)
> test_model: .: (0.000213)
> test_model_is_deterministic: .: (0.000143)
> test_transmission: .: (0.000181)
> test_transmission_abbr: .: (0.000087)
> test_transmission_abbr_is_deterministic: .: (0.000137)
> test_transmission_is_deterministic: .: (0.000128)
> test_trim: .: (0.000183)
> test_trim_is_deterministic: .: (0.000144)
> test_vin: .: (0.000127)
> test_vin_is_deterministic: .: (0.000378)
> test_year: .: (0.000084)
> test_year_is_deterministic: .: (0.000131)
> TestVenue:
> test_name: .: (0.000294)
> test_name_is_deterministic: .: (0.000153)
> YoutubeTest:
> test_embed_url: .: (0.000284)
> test_embed_url_is_deterministic: .: (0.000158)
> test_share_url: .: (0.000078)
> test_share_url_is_deterministic: .: (0.000134)
> test_url: .: (0.000084)
> test_url_is_deterministic: .: (0.000134)
> test_video_id: .: (0.000074)
> test_video_id_is_deterministic: .: (0.000127)
>
> Finished in 2.619883731 seconds.
> -------------------------------------------------------------------------------
> 1755 tests, 14770 assertions, 0 failures, 1 errors, 0 pendings, 0 omissions, 0 notifications
> 99.943% passed
> -------------------------------------------------------------------------------
> 669.88 tests/s, 5637.65 assertions/s
> 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_address.rb" "test/test_address_au.rb" "test/test_address_br.rb" "test/test_address_ca.rb" "test/test_address_ch.rb" "test/test_address_ch_de.rb" "test/test_address_ch_fr.rb" "test/test_address_ch_it.rb" "test/test_address_da.rb" "test/test_address_de.rb" "test/test_address_fi.rb" "test/test_address_fr.rb" "test/test_address_gr.rb" "test/test_address_id.rb" "test/test_address_in.rb" "test/test_address_ja.rb" "test/test_address_kr.rb" "test/test_address_mx.rb" "test/test_address_nl.rb" "test/test_address_pl.rb" "test/test_address_ru.rb" "test/test_address_se.rb" "test/test_address_sn.rb" "test/test_address_ua.rb" "test/test_address_uk.rb" "test/test_address_us.rb" "test/test_airline.rb" "test/test_animal.rb" "test/test_animal_cn.rb" "test/test_animal_pl.rb" "test/test_animal_us.rb" "test/test_array_utils.rb" "test/test_avatar.rb" "test/test_aws.rb" "test/test_bacon_ipsum.rb" "test/test_bank.rb" "test/test_book.rb" "test/test_boolean.rb" "test/test_cheesy_lingo.rb" "test/test_code.rb" "test/test_color.rb" "test/test_color_pl.rb" "test/test_color_ua.rb" "test/test_company.rb" "test/test_company_cn.rb" "test/test_company_it.rb" "test/test_company_se.rb" "test/test_conference.rb" "test/test_course_mathematiques.rb" "test/test_course_philosophie.rb" "test/test_currency.rb" "test/test_dizzle_ipsum.rb" "test/test_education.rb" "test/test_education_cn.rb" "test/test_faker.rb" "test/test_filesystem.rb" "test/test_food.rb" "test/test_gender.rb" "test/test_gender_br.rb" "test/test_gender_cn.rb" "test/test_gender_id.rb" "test/test_gender_ja.rb" "test/test_gender_jp.rb" "test/test_gender_kr.rb" "test/test_gender_pl.rb" "test/test_geolocation.rb" "test/test_guid.rb" "test/test_healthcare_ipsum.rb" "test/test_healthcare_ru.rb" "test/test_hipster_ipsum.rb" "test/test_html_ipsum.rb" "test/test_identification.rb" "test/test_identification_br.rb" "test/test_identification_co.rb" "test/test_identification_es.rb" "test/test_identification_es_cl.rb" "test/test_identification_es_mx.rb" "test/test_identification_kr.rb" "test/test_identification_pl.rb" "test/test_image.rb" "test/test_internet.rb" "test/test_internet_se.rb" "test/test_job.rb" "test/test_job_br.rb" "test/test_job_cn.rb" "test/test_job_fr.rb" "test/test_job_ja.rb" "test/test_job_kr.rb" "test/test_job_vn.rb" "test/test_locale.rb" "test/test_lorem.rb" "test/test_lorem_ar.rb" "test/test_lorem_cn.rb" "test/test_lorem_fr.rb" "test/test_lorem_ie.rb" "test/test_lorem_ja.rb" "test/test_lorem_kr.rb" "test/test_lorem_pl.rb" "test/test_lorem_ru.rb" "test/test_lorem_ua.rb" "test/test_module_utils.rb" "test/test_movie.rb" "test/test_music.rb" "test/test_name.rb" "test/test_name_ar.rb" "test/test_name_br.rb" "test/test_name_cn.rb" "test/test_name_cs.rb" "test/test_name_da.rb" "test/test_name_de.rb" "test/test_name_es.rb" "test/test_name_fr.rb" "test/test_name_ga.rb" "test/test_name_gr.rb" "test/test_name_id.rb" "test/test_name_it.rb" "test/test_name_ja.rb" "test/test_name_kh.rb" "test/test_name_kr.rb" "test/test_name_mx.rb" "test/test_name_nb.rb" "test/test_name_nl.rb" "test/test_name_ph.rb" "test/test_name_pl.rb" "test/test_name_ru.rb" "test/test_name_se.rb" "test/test_name_sn.rb" "test/test_name_th.rb" "test/test_name_th_en.rb" "test/test_name_tw.rb" "test/test_name_ua.rb" "test/test_name_vn.rb" "test/test_nato_alphabet.rb" "test/test_phone_number.rb" "test/test_phone_number_au.rb" "test/test_phone_number_br.rb" "test/test_phone_number_cu.rb" "test/test_phone_number_da.rb" "test/test_phone_number_de.rb" "test/test_phone_number_fr.rb" "test/test_phone_number_id.rb" "test/test_phone_number_kr.rb" "test/test_phone_number_mx.rb" "test/test_phone_number_nl.rb" "test/test_phone_number_pl.rb" "test/test_phone_number_ru.rb" "test/test_phone_number_se.rb" "test/test_phone_number_sg.rb" "test/test_phone_number_sn.rb" "test/test_phone_number_tw.rb" "test/test_phone_number_ua.rb" "test/test_products.rb" "test/test_sem_ver.rb" "test/test_skill.rb" "test/test_sport_pl.rb" "test/test_sport_us.rb" "test/test_sports.rb" "test/test_ssn.rb" "test/test_ssn_mx.rb" "test/test_ssn_se.rb" "test/test_string.rb" "test/test_time.rb" "test/test_tweet.rb" "test/test_unique_utils.rb" "test/test_units.rb" "test/test_units_english.rb" "test/test_units_metric.rb" "test/test_vehicle.rb" "test/test_venue.rb" "test/test_youtube.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-ffaker/ruby-ffaker_2.13.0-2+rebuild1633379752_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/03dc1ebe/attachment.sig>
More information about the Pkg-ruby-extras-maintainers
mailing list