Fix check next key event check in kasp test

Prevent intermittent false positives on slow platforms by subtracting
the number of seconds which passed between key creation and invoking
'rndc dnssec -checkds'.

This particularly fails for the step3.csk-roll2.autosign zone because
the closest next key event is when the zone signatures become
omnipresent. Running 'rndc dnssec -checkds' some time later means
that the next key event is in fact closer than the calculated time
and thus we need to adjust the expected time by the time already
passed.
86 jobs for !3937 with matthijs-fix-kasp-test-next-key-event in 100 minutes and 32 seconds (queued for 8 seconds)
detached
Status Job ID Name Coverage
  Autoconf
passed #1076035
amd64 linux
autoreconf

00:00:16

 
  Precheck
passed #1076037
amd64 linux
clang-format

00:00:16

passed #1076038
amd64 linux
coccinelle

00:03:41

passed #1077369
linux amd64
danger

00:00:15

passed #1076036
amd64 linux
misc

00:00:20

passed #1076040
amd64 linux
tarball-create

00:01:12

passed #1076039
amd64 linux
danger

00:00:15

 
  Build
passed #1076053
amd64 linux
clang:asan

00:02:09

passed #1076057
amd64 linux
clang:buster:amd64

00:01:04

passed #1076060
amd64 libvirt
clang:freebsd11:amd64

00:01:08

passed #1076061
amd64 libvirt
clang:freebsd12:amd64

00:01:12

passed #1076062
amd64 libvirt
clang:openbsd:amd64

00:02:47

passed #1076055
amd64 linux
clang:tsan

00:01:11

passed #1076041
amd64 linux
gcc:alpine3.12:amd64

00:00:58

passed #1076052
amd64 linux
gcc:asan

00:01:52

passed #1076045
amd64 linux
gcc:buster:amd64

00:00:57

passed #1076042
amd64 linux
gcc:centos7:amd64

00:01:04

passed #1076043
amd64 linux
gcc:centos8:amd64

00:00:54

passed #1076051
amd64 linux
gcc:focal:amd64

00:00:57

passed #1076056
amd64 linux
gcc:mutexatomics

00:00:54

passed #1076047
amd64 linux
gcc:out-of-tree

00:00:57

passed #1076046
amd64 linux
gcc:sid:amd64

00:01:15

passed #1076048
i386 linux
gcc:sid:i386

00:00:52

passed #1076058
amd64 linux
gcc:softhsm2.4

00:00:56

passed #1076059
amd64 linux
gcc:softhsm2.6

00:00:53

passed #1076044
amd64 linux
gcc:stretch:amd64

00:01:03

passed #1076054
amd64 linux
gcc:tsan

00:01:13

passed #1076049
amd64 linux
gcc:tumbleweed:amd64

00:00:57

passed #1076050
amd64 linux
gcc:xenial:amd64

00:01:03

passed #1076063
amd64 windows
msvc:windows:amd64

00:00:42

 
  Unit
passed #1076075
amd64 linux
unit:clang:asan

00:01:18

passed #1076079
amd64 linux
unit:clang:buster:amd64

00:00:55

passed #1076082
amd64 libvirt
unit:clang:freebsd11:amd64

00:01:30

passed #1076083
amd64 libvirt
unit:clang:freebsd12:amd64

00:01:20

passed #1076077
amd64 linux
unit:clang:tsan

00:02:46

passed #1076064
amd64 linux
unit:gcc:alpine3.12:amd64

00:00:53

passed #1076074
amd64 linux
unit:gcc:asan

00:01:15

passed #1076068
amd64 linux
unit:gcc:buster:amd64

00:00:57

passed #1076065
amd64 linux
unit:gcc:centos7:amd64

00:00:57

passed #1076066
amd64 linux
unit:gcc:centos8:amd64

00:00:55

passed #1076073
amd64 linux
unit:gcc:focal:amd64

00:00:59

passed #1076078
amd64 linux
unit:gcc:mutexatomics

00:01:04

passed #1076069
amd64 linux
unit:gcc:sid:amd64

00:00:56

passed #1076070
i386 linux
unit:gcc:sid:i386

00:01:02

passed #1076080
amd64 linux
unit:gcc:softhsm2.4

00:01:02

passed #1076081
amd64 linux
unit:gcc:softhsm2.6

00:00:58

passed #1076067
amd64 linux
unit:gcc:stretch:amd64

00:00:57

passed #1076076
amd64 linux
unit:gcc:tsan

00:04:12

passed #1076071
amd64 linux
unit:gcc:tumbleweed:amd64

00:00:54

passed #1076072
amd64 linux
unit:gcc:xenial:amd64

00:00:55

 
  System
passed #1076095
amd64 linux
system:clang:asan

00:12:08

passed #1076099
amd64 linux
system:clang:buster:amd64

00:11:30

passed #1076443
libvirt amd64
system:clang:freebsd11:amd64

00:13:02

passed #1077471
libvirt amd64
system:clang:freebsd12:amd64

00:12:44

failed #1076097
amd64 linux allowed to fail
system:clang:tsan

01:00:00

passed #1076084
amd64 linux
system:gcc:alpine3.12:amd64

00:12:24

passed #1077368
amd64 linux
system:gcc:asan

00:12:18

passed #1076446
linux amd64
system:gcc:buster:amd64

00:11:19

passed #1076447
linux amd64
system:gcc:centos7:amd64

00:11:50

passed #1076086
amd64 linux
system:gcc:centos8:amd64

00:12:01

passed #1076093
amd64 linux
system:gcc:focal:amd64

00:11:34

passed #1076098
amd64 linux
system:gcc:mutexatomics

00:11:12

passed #1076448
linux amd64
system:gcc:sid:amd64

00:11:22

passed #1076450
linux i386
system:gcc:sid:i386

00:10:28

passed #1076100
amd64 linux
system:gcc:softhsm2.4

00:11:26

passed #1076101
amd64 linux
system:gcc:softhsm2.6

00:11:40

passed #1076087
amd64 linux
system:gcc:stretch:amd64

00:11:54

failed #1076096
amd64 linux allowed to fail
system:gcc:tsan

01:00:00

passed #1076091
amd64 linux
system:gcc:tumbleweed:amd64

00:11:24

passed #1076449
linux amd64
system:gcc:xenial:amd64

00:10:34

failed #1076102
amd64 libvirt
system:clang:freebsd11:amd64

00:13:00

failed #1076444
libvirt amd64
system:clang:freebsd12:amd64

00:12:39

failed #1077367
amd64 libvirt
system:clang:freebsd12:amd64

00:13:38

failed #1076103
amd64 libvirt
system:clang:freebsd12:amd64

00:13:49

failed #1076094
amd64 linux
system:gcc:asan

00:12:46

failed #1076445
linux amd64
system:gcc:asan

00:12:41

failed #1076088
amd64 linux
system:gcc:buster:amd64

00:11:26

failed #1076085
amd64 linux
system:gcc:centos7:amd64

00:12:14

failed #1076089
amd64 linux
system:gcc:sid:amd64

00:11:57

failed #1076090
i386 linux
system:gcc:sid:i386

00:12:26

failed #1076092
amd64 linux
system:gcc:xenial:amd64

00:13:38

 
  Docs
passed #1076104
amd64 linux
docs

00:00:42

 
  Postcheck
passed #1076108
amd64 linux
cppcheck

00:00:53

passed #1076105
amd64 linux
flake8

00:00:22

passed #1076106
amd64 linux
pylint

00:00:23

passed #1076107
amd64 linux
scan-build

00:04:56

 
Name Stage Failure
failed
system:clang:tsan System The script exceeded the maximum execution time set for the job
I:catz:failed
I:catz:checking that dom13.example. is served by secondary and that it's still the one from ns1 (158)
Running after_script
WARNING: Failed to inspect build container ce34af4e1955feb7552bad876bdb8f6df301db2043eaa7f3cdea1f9dc9ace1ba context deadline exceeded (docker_command.go:78:0s)
Authenticating with credentials from job payload (GitLab Registry)
Pulling docker image registry.gitlab.isc.org/isc-projects/images/bind9:debian-buster-amd64 ...
Uploading artifacts for failed job
Pulling docker image gitlab/gitlab-runner-helper:x86_64-a998cacd ...
ERROR: Job failed: execution took longer than 1h0m0s seconds
failed
system:gcc:tsan System The script exceeded the maximum execution time set for the job
I:catz:failed
I:catz:checking that dom15.example. is served by secondary (183)
Running after_script
WARNING: Failed to inspect build container 691c5852890a59f0148b195afc21f4316cfaf6d49b6d4ebc3f9e1f7af59f8c2d context deadline exceeded (docker_command.go:78:0s)
Authenticating with credentials from job payload (GitLab Registry)
Pulling docker image registry.gitlab.isc.org/isc-projects/images/bind9:debian-buster-amd64 ...
Uploading artifacts for failed job
Pulling docker image gitlab/gitlab-runner-helper:x86_64-a998cacd ...
ERROR: Job failed: execution took longer than 1h0m0s seconds