validator: trim TTLs by RRSIG's expiration and original TTL

A down-side is that validation can now modify the validated RRset
on success.  I checked all transitive call sites that it's OK.
The change is pretty simple; I just hand-tested it a bit with faketime.
29 jobs for validate-trim-ttls in 54 minutes and 39 seconds (queued for 8 seconds)
Status Job ID Name Coverage
  Build
passed #305000
amd64 linux docker
archive

00:00:38

passed #305001
amd64 linux docker
build

00:00:48

passed #305002
amd64 linux docker
build-asan

00:00:48

passed #305003
docker
kres-gen

00:00:44

 
  Test
passed #305004
docker delayed
build:darwin

00:00:54

passed #305005
amd64 linux docker
deckard

00:01:57

passed #305006
docker delayed
doc

00:00:58

passed #305007
dind
docker

00:02:41

passed #305008
docker delayed
lint:other

00:00:53

passed #305009
amd64 linux docker delayed
lint:pedantic

00:01:13

passed #305010
amd64 linux docker
lint:scan-build

00:02:25

passed #305011
amd64 linux docker
lint:tidy

00:02:59

passed #305012
privileged
pkg:epel-7

00:02:29

passed #305013
privileged
pkg:fedora-29

00:03:28

passed #305014
amd64 linux docker
respdiff:basic

00:02:22

passed #305015
amd64 linux docker delayed
test:valgrind

00:01:54

 
  Extended
failed #305017
respdiff
fwd-tls6-kresd.udp6

00:29:56

passed #305018
respdiff
fwd-udp6-kresd.udp6

00:23:55

passed #305022
respdiff
fwd-udp6-unbound.tcp6

00:24:54

passed #305023
respdiff
fwd-udp6-unbound.tls6

00:31:55

passed #305021
respdiff
fwd-udp6-unbound.udp6

00:25:55

passed #305706
respdiff
iter.tls6

00:16:13

passed #305707
respdiff
iter.udp6

00:17:43

passed #305016
amd64 linux docker
pytests

00:04:21

failed #305024
respdiff
resperf:fwd-tls6.udp-asan

00:14:49

passed #305025
respdiff
resperf:fwd-udp6.udp-asan

00:22:20

passed #305026
respdiff
resperf:iter.udp-asan

00:10:19

failed #305020
respdiff
iter.tls6

00:37:56

failed #305019
respdiff
iter.udp6

00:17:54

 
Name Stage Failure
failed
fwd-tls6-kresd.udp6 Extended
$ cp -t . respdiff_commitdir/*$RESPDIFF_TEST*.png ||:
$ cat respdiff_commitdir/$RESPDIFF_TEST/*histogram.tar.gz | tar -xf - -i ||:
Uploading artifacts...
Runtime platform arch=amd64 os=linux pid=148163 revision=a987417a version=12.2.0
./j*: found 18 matching files

./*.png: found 2 matching files

./*histogram/*: found 6 matching files

Uploading artifacts to coordinator... ok
id=305017 responseStatus=201 Created token=4aqL7TU6
ERROR: Job failed: exit status 1
failed
resperf:fwd-tls6.udp-asan Extended
kresd_fwd_target_1  | SUMMARY: AddressSanitizer: 737568 byte(s) leaked in 18 allocation(s).
$ exit $EXITCODE
Running after script...
$ cp -t . resperf_commitdir/$RESPERF_TEST/j* ||:
Uploading artifacts...
Runtime platform arch=amd64 os=linux pid=145735 revision=a987417a version=12.2.0
./j*: found 7 matching files

Uploading artifacts to coordinator... ok
id=305024 responseStatus=201 Created token=sCmM1yUo
ERROR: Job failed: exit status 1