Package: src:golang-github-go-co-op-gocron
Version: 0.5.0-2
Severity: serious
Tags: ftbfs patch

Dear maintainer:

During a rebuild of all packages in bullseye, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules binary-indep
dh binary-indep --builddirectory=_build --buildsystem=golang --with=golang
   dh_update_autotools_config -i -O--builddirectory=_build 
-O--buildsystem=golang
   dh_autoreconf -i -O--builddirectory=_build -O--buildsystem=golang
   dh_auto_configure -i -O--builddirectory=_build -O--buildsystem=golang
   dh_auto_build -i -O--builddirectory=_build -O--buildsystem=golang
        cd _build && go install -trimpath -v -p 2 github.com/go-co-op/gocron
internal/unsafeheader
internal/cpu
runtime/internal/atomic
runtime/internal/sys
internal/bytealg
runtime/internal/math
internal/race
sync/atomic
math/bits
runtime
math
unicode/utf8
unicode
internal/testlog
internal/reflectlite
sync
errors
sort
io
strconv
hash
internal/oserror
syscall
crypto
reflect
internal/syscall/unix
time
encoding/binary
internal/fmtsort
internal/poll
crypto/sha256
internal/syscall/execenv
os
bytes
strings
fmt
regexp/syntax
regexp
github.com/go-co-op/gocron
   dh_auto_test -i -O--builddirectory=_build -O--buildsystem=golang
        cd _build && go test -vet=off -v -p 2 github.com/go-co-op/gocron
=== RUN   TestParseTime
=== RUN   TestParseTime/normal
=== RUN   TestParseTime/normal_-_no_leading_hour_zeros
=== RUN   TestParseTime/normal_with_second
=== RUN   TestParseTime/normal_with_second_-_no_leading_hour_zeros
=== RUN   TestParseTime/not_a_number
=== RUN   TestParseTime/out_of_range_hour
=== RUN   TestParseTime/out_of_range_minute
=== RUN   TestParseTime/wrong_format
=== RUN   TestParseTime/wrong_minute
=== RUN   TestParseTime/wrong_hour
--- PASS: TestParseTime (0.00s)
    --- PASS: TestParseTime/normal (0.00s)
    --- PASS: TestParseTime/normal_-_no_leading_hour_zeros (0.00s)
    --- PASS: TestParseTime/normal_with_second (0.00s)
    --- PASS: TestParseTime/normal_with_second_-_no_leading_hour_zeros (0.00s)
    --- PASS: TestParseTime/not_a_number (0.00s)
    --- PASS: TestParseTime/out_of_range_hour (0.00s)
    --- PASS: TestParseTime/out_of_range_minute (0.00s)
    --- PASS: TestParseTime/wrong_format (0.00s)
    --- PASS: TestParseTime/wrong_minute (0.00s)
    --- PASS: TestParseTime/wrong_hour (0.00s)
=== RUN   TestTags
--- PASS: TestTags (0.00s)
=== RUN   TestGetScheduledTime
--- PASS: TestGetScheduledTime (0.00s)
=== RUN   TestGetWeekday
=== RUN   TestGetWeekday/success
=== RUN   TestGetWeekday/fail_-_not_set_for_weekday
--- PASS: TestGetWeekday (0.00s)
    --- PASS: TestGetWeekday/success (0.00s)
    --- PASS: TestGetWeekday/fail_-_not_set_for_weekday (0.00s)
=== RUN   TestJob_shouldRunAgain
=== RUN   TestJob_shouldRunAgain/should_run_again_(infinite)
=== RUN   TestJob_shouldRunAgain/should_run_again_(finite)
=== RUN   TestJob_shouldRunAgain/shouldn't_run_again_#1
=== RUN   TestJob_shouldRunAgain/shouldn't_run_again_#2
--- PASS: TestJob_shouldRunAgain (0.00s)
    --- PASS: TestJob_shouldRunAgain/should_run_again_(infinite) (0.00s)
    --- PASS: TestJob_shouldRunAgain/should_run_again_(finite) (0.00s)
    --- PASS: TestJob_shouldRunAgain/shouldn't_run_again_#1 (0.00s)
    --- PASS: TestJob_shouldRunAgain/shouldn't_run_again_#2 (0.00s)
=== RUN   TestJob_LimitRunsTo
--- PASS: TestJob_LimitRunsTo (0.00s)
=== RUN   TestJob_CommonExports
--- PASS: TestJob_CommonExports (0.00s)
=== RUN   TestImmediateExecution
--- PASS: TestImmediateExecution (0.00s)
=== RUN   TestExecutionSeconds
--- PASS: TestExecutionSeconds (6.00s)
=== RUN   TestScheduled
--- PASS: TestScheduled (0.00s)
=== RUN   TestScheduledWithTag
--- PASS: TestScheduledWithTag (0.00s)
=== RUN   TestAtFuture
=== RUN   TestAtFuture/calls_to_.At()_should_parse_time_correctly
=== RUN   TestAtFuture/error_due_to_bad_time_format
--- PASS: TestAtFuture (0.00s)
    --- PASS: TestAtFuture/calls_to_.At()_should_parse_time_correctly (0.00s)
    --- PASS: TestAtFuture/error_due_to_bad_time_format (0.00s)
=== RUN   TestWeekdayBeforeToday
--- PASS: TestWeekdayBeforeToday (0.00s)
=== RUN   TestWeekdayAt
=== RUN   TestWeekdayAt/asserts_weekday_scheduling_starts_at_the_current_week
--- PASS: TestWeekdayAt (0.00s)
    --- PASS: 
TestWeekdayAt/asserts_weekday_scheduling_starts_at_the_current_week (0.00s)
=== RUN   TestRemove
--- PASS: TestRemove (0.00s)
=== RUN   TestRemoveByRef
--- PASS: TestRemoveByRef (0.00s)
=== RUN   TestRemoveByTag
--- PASS: TestRemoveByTag (0.00s)
=== RUN   TestJobs
--- PASS: TestJobs (0.00s)
=== RUN   TestLen
--- PASS: TestLen (0.00s)
=== RUN   TestSwap
--- PASS: TestSwap (0.00s)
=== RUN   TestLess
--- PASS: TestLess (0.00s)
=== RUN   TestSetLocation
--- PASS: TestSetLocation (0.00s)
=== RUN   TestClear
--- PASS: TestClear (0.00s)
=== RUN   TestSetUnit
=== RUN   TestSetUnit/seconds
=== RUN   TestSetUnit/minutes
=== RUN   TestSetUnit/hours
=== RUN   TestSetUnit/days
=== RUN   TestSetUnit/weeks
--- PASS: TestSetUnit (0.00s)
    --- PASS: TestSetUnit/seconds (0.00s)
    --- PASS: TestSetUnit/minutes (0.00s)
    --- PASS: TestSetUnit/hours (0.00s)
    --- PASS: TestSetUnit/days (0.00s)
    --- PASS: TestSetUnit/weeks (0.00s)
=== RUN   TestScheduler_Stop
=== RUN   TestScheduler_Stop/stops_a_running_scheduler
=== RUN   TestScheduler_Stop/stops_a_running_scheduler_through_StartAsync_chan
=== RUN   TestScheduler_Stop/noop_on_stopped_scheduler
--- PASS: TestScheduler_Stop (0.00s)
    --- PASS: TestScheduler_Stop/stops_a_running_scheduler (0.00s)
    --- PASS: 
TestScheduler_Stop/stops_a_running_scheduler_through_StartAsync_chan (0.00s)
    --- PASS: TestScheduler_Stop/noop_on_stopped_scheduler (0.00s)
=== RUN   TestScheduler_StartAt
--- PASS: TestScheduler_StartAt (0.00s)
=== RUN   TestScheduler_CalculateNextRun
=== RUN   TestScheduler_CalculateNextRun/every_second_test
=== RUN   TestScheduler_CalculateNextRun/every_62_seconds_test
=== RUN   TestScheduler_CalculateNextRun/every_minute_test
=== RUN   TestScheduler_CalculateNextRun/every_62_minutes_test
=== RUN   TestScheduler_CalculateNextRun/every_hour_test
=== RUN   TestScheduler_CalculateNextRun/every_25_hours_test
=== RUN   TestScheduler_CalculateNextRun/every_day_at_midnight
=== RUN   
TestScheduler_CalculateNextRun/every_day_at_09:30AM_with_scheduler_starting_before_09:30AM_should_run_at_same_day_at_time
=== RUN   
TestScheduler_CalculateNextRun/every_day_at_09:30AM_which_just_ran_should_run_tomorrow_at_09:30AM
=== RUN   
TestScheduler_CalculateNextRun/every_31_days_at_midnight_should_run_31_days_later
=== RUN   
TestScheduler_CalculateNextRun/daily_job_just_ran_at_8:30AM_and_should_be_scheduled_for_next_day's_8:30AM
=== RUN   
TestScheduler_CalculateNextRun/daily_job_just_ran_at_5:30AM_and_should_be_scheduled_for_today_at_8:30AM
=== RUN   
TestScheduler_CalculateNextRun/job_runs_every_2_days,_just_ran_at_5:30AM_and_should_be_scheduled_for_2_days_at_8:30AM
=== RUN   
TestScheduler_CalculateNextRun/job_runs_every_2_days,_just_ran_at_8:30AM_and_should_be_scheduled_for_2_days_at_8:30AM
=== RUN   TestScheduler_CalculateNextRun/every_week_should_run_in_7_days
=== RUN   
TestScheduler_CalculateNextRun/every_week_with_.At_time_rule_should_run_respect_.At_time_rule
=== RUN   
TestScheduler_CalculateNextRun/every_two_weeks_at_09:30AM_should_run_in_14_days_at_09:30AM
=== RUN   
TestScheduler_CalculateNextRun/every_31_weeks_ran_at_jan_1st_at_midnight_should_run_at_August_5,_2020
=== RUN   
TestScheduler_CalculateNextRun/every_month_in_a_31_days_month_should_be_scheduled_for_31_days_ahead
=== RUN   
TestScheduler_CalculateNextRun/every_month_in_a_30_days_month_should_be_scheduled_for_30_days_ahead
=== RUN   
TestScheduler_CalculateNextRun/every_month_at_february_on_leap_year_should_count_29_days
=== RUN   
TestScheduler_CalculateNextRun/every_month_at_february_on_non_leap_year_should_count_28_days
=== RUN   
TestScheduler_CalculateNextRun/every_month_at_first_day_at_time_should_run_next_month_+_at_time
=== RUN   
TestScheduler_CalculateNextRun/every_month_at_day_should_consider_at_days
=== RUN   
TestScheduler_CalculateNextRun/every_month_at_day_should_consider_at_hours
=== RUN   
TestScheduler_CalculateNextRun/every_month_on_the_first_day,_but_started_on_january_8th,_should_run_February_1st
=== RUN   
TestScheduler_CalculateNextRun/every_2_months_at_day_1,_starting_at_day_1,_should_run_in_2_months
=== RUN   
TestScheduler_CalculateNextRun/every_2_months_at_day_2,_starting_at_day_1,_should_run_in_2_months_+_1_day
=== RUN   
TestScheduler_CalculateNextRun/every_2_months_at_day_1,_starting_at_day_2,_should_run_in_2_months_-_1_day
=== RUN   
TestScheduler_CalculateNextRun/every_13_months_at_day_1,_starting_at_day_2_run_in_13_months_-_1_day
=== RUN   
TestScheduler_CalculateNextRun/every_weekday_starting_on_one_day_before_it_should_run_this_weekday
=== RUN   
TestScheduler_CalculateNextRun/every_weekday_starting_on_same_weekday_should_run_on_same_immediately
=== RUN   
TestScheduler_CalculateNextRun/every_2_weekdays_counting_this_week's_weekday_should_run_next_weekday
=== RUN   
TestScheduler_CalculateNextRun/every_weekday_starting_on_one_day_after_should_count_days_remaning
=== RUN   
TestScheduler_CalculateNextRun/every_weekday_starting_before_jobs_.At()_time_should_run_at_same_day_at_time
=== RUN   
TestScheduler_CalculateNextRun/every_weekday_starting_at_same_day_at_time_that_already_passed_should_run_at_next_week_at_time
--- PASS: TestScheduler_CalculateNextRun (0.00s)
    --- PASS: TestScheduler_CalculateNextRun/every_second_test (0.00s)
    --- PASS: TestScheduler_CalculateNextRun/every_62_seconds_test (0.00s)
    --- PASS: TestScheduler_CalculateNextRun/every_minute_test (0.00s)
    --- PASS: TestScheduler_CalculateNextRun/every_62_minutes_test (0.00s)
    --- PASS: TestScheduler_CalculateNextRun/every_hour_test (0.00s)
    --- PASS: TestScheduler_CalculateNextRun/every_25_hours_test (0.00s)
    --- PASS: TestScheduler_CalculateNextRun/every_day_at_midnight (0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/every_day_at_09:30AM_with_scheduler_starting_before_09:30AM_should_run_at_same_day_at_time
 (0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/every_day_at_09:30AM_which_just_ran_should_run_tomorrow_at_09:30AM
 (0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/every_31_days_at_midnight_should_run_31_days_later
 (0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/daily_job_just_ran_at_8:30AM_and_should_be_scheduled_for_next_day's_8:30AM
 (0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/daily_job_just_ran_at_5:30AM_and_should_be_scheduled_for_today_at_8:30AM
 (0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/job_runs_every_2_days,_just_ran_at_5:30AM_and_should_be_scheduled_for_2_days_at_8:30AM
 (0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/job_runs_every_2_days,_just_ran_at_8:30AM_and_should_be_scheduled_for_2_days_at_8:30AM
 (0.00s)
    --- PASS: TestScheduler_CalculateNextRun/every_week_should_run_in_7_days 
(0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/every_week_with_.At_time_rule_should_run_respect_.At_time_rule
 (0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/every_two_weeks_at_09:30AM_should_run_in_14_days_at_09:30AM
 (0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/every_31_weeks_ran_at_jan_1st_at_midnight_should_run_at_August_5,_2020
 (0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/every_month_in_a_31_days_month_should_be_scheduled_for_31_days_ahead
 (0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/every_month_in_a_30_days_month_should_be_scheduled_for_30_days_ahead
 (0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/every_month_at_february_on_leap_year_should_count_29_days
 (0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/every_month_at_february_on_non_leap_year_should_count_28_days
 (0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/every_month_at_first_day_at_time_should_run_next_month_+_at_time
 (0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/every_month_at_day_should_consider_at_days 
(0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/every_month_at_day_should_consider_at_hours 
(0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/every_month_on_the_first_day,_but_started_on_january_8th,_should_run_February_1st
 (0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/every_2_months_at_day_1,_starting_at_day_1,_should_run_in_2_months
 (0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/every_2_months_at_day_2,_starting_at_day_1,_should_run_in_2_months_+_1_day
 (0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/every_2_months_at_day_1,_starting_at_day_2,_should_run_in_2_months_-_1_day
 (0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/every_13_months_at_day_1,_starting_at_day_2_run_in_13_months_-_1_day
 (0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/every_weekday_starting_on_one_day_before_it_should_run_this_weekday
 (0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/every_weekday_starting_on_same_weekday_should_run_on_same_immediately
 (0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/every_2_weekdays_counting_this_week's_weekday_should_run_next_weekday
 (0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/every_weekday_starting_on_one_day_after_should_count_days_remaning
 (0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/every_weekday_starting_before_jobs_.At()_time_should_run_at_same_day_at_time
 (0.00s)
    --- PASS: 
TestScheduler_CalculateNextRun/every_weekday_starting_at_same_day_at_time_that_already_passed_should_run_at_next_week_at_time
 (0.00s)
=== RUN   TestScheduler_Do
=== RUN   
TestScheduler_Do/adding_a_new_job_before_scheduler_starts_does_not_schedule_job
=== RUN   
TestScheduler_Do/adding_a_new_job_when_scheduler_is_running_schedules_job
--- PASS: TestScheduler_Do (0.00s)
    --- PASS: 
TestScheduler_Do/adding_a_new_job_before_scheduler_starts_does_not_schedule_job 
(0.00s)
    --- PASS: 
TestScheduler_Do/adding_a_new_job_when_scheduler_is_running_schedules_job 
(0.00s)
=== RUN   TestRunJobsWithLimit
--- PASS: TestRunJobsWithLimit (3.00s)
=== RUN   TestDo
=== RUN   TestDo/error_due_to_the_arg_passed_to_Do()_not_being_a_function
=== RUN   TestDo/positive_case
--- PASS: TestDo (0.00s)
    --- PASS: TestDo/error_due_to_the_arg_passed_to_Do()_not_being_a_function 
(0.00s)
    --- PASS: TestDo/positive_case (0.00s)
=== RUN   TestRemoveAfterExec
--- PASS: TestRemoveAfterExec (2.00s)
=== RUN   ExampleScheduler_Location
--- PASS: ExampleScheduler_Location (0.00s)
=== RUN   ExampleScheduler_ChangeLocation
--- FAIL: ExampleScheduler_ChangeLocation (0.00s)
panic: unknown time zone America/Los_Angeles [recovered]
        panic: unknown time zone America/Los_Angeles

goroutine 1 [running]:
testing.(*InternalExample).processRunResult(0xc0000f5d28, 0xc000019560, 0x4, 
0x19b89, 0x5efbc0, 0xc000093cc0, 0xc0000f5a28)
        /usr/lib/go-1.15/src/testing/example.go:89 +0x648
testing.runExample.func2(0xc0ac7d387794b9b5, 0x2902bc639, 0x7a19a0, 
0xc0000a20e0, 0xc0000a2008, 0xc000083f20, 0xc0000f5d28, 0xc0000f5d58)
        /usr/lib/go-1.15/src/testing/run_example.go:58 +0x10d
panic(0x5efbc0, 0xc000093cc0)
        /usr/lib/go-1.15/src/runtime/panic.go:969 +0x1b9
github.com/go-co-op/gocron_test.ExampleScheduler_ChangeLocation()
        
/<<PKGBUILDDIR>>/_build/src/github.com/go-co-op/gocron/example_test.go:26 +0x25f
testing.runExample(0x6336d7, 0x1f, 0x63f6e8, 0x6313bf, 0x18, 0x0, 0x0)
        /usr/lib/go-1.15/src/testing/run_example.go:62 +0x209
testing.runExamples(0xc0000f5ed0, 0x79c0a0, 0x5, 0x5, 0xc0ac7dcbb71ba6e4)
        /usr/lib/go-1.15/src/testing/example.go:44 +0x1af
testing.(*M).Run(0xc000100200, 0x0)
        /usr/lib/go-1.15/src/testing/testing.go:1346 +0x273
main.main()
        _testmain.go:115 +0x138
FAIL    github.com/go-co-op/gocron      11.015s
FAIL
dh_auto_test: error: cd _build && go test -vet=off -v -p 2 
github.com/go-co-op/gocron returned exit code 1
make: *** [debian/rules:4: binary-indep] Error 25
dpkg-buildpackage: error: debian/rules binary-indep subprocess returned exit 
status 2
--------------------------------------------------------------------------------

(The above is just how the build ends and not necessarily the most relevant 
part)

Note: I'm using the "patch" tag because there is an obvious fix
(indicated in the subject).

About the archive rebuild: The build was made using virtual machines
from Hetzner, with enough memory, enough disk, and either one or two
CPUs, using a reduced chroot with only build-essential packages (plus
debhelper).

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.

Reply via email to