Skip to content
Snippets Groups Projects
Commit 4ee2015c authored by Tomas Krizek's avatar Tomas Krizek Committed by Vladimír Čunát
Browse files

ci: optimize respdiff

parent e4c7efef
Branches
Tags
No related merge requests found
......@@ -323,7 +323,7 @@ respdiff:iter:udp:linux:amd64:
- MAKEFLAGS="--jobs $(nproc)" test "${COVERAGE:-0}" -eq 1 && make coverage-c coverage-lua COVERAGE_STAGE=gcov-respdiff-iter-udp | grep -vE '(source file is newer than notes file)|(the message is displayed only once per source file)' || echo "code coverage skipped"
dependencies:
- build:linux:amd64
artifacts: &small_respdiff_artifacts
artifacts:
when: always
expire_in: '1 week'
paths:
......@@ -337,48 +337,6 @@ respdiff:iter:udp:linux:amd64:
- linux
- amd64
respdiff:iter:tcp:linux:amd64:
stage: test
except:
- master@knot/knot-resolver
script:
- source <(./scripts/coverage_env.sh "$(pwd)" "$(pwd)/coverage.stats/respdiff" "iter/tcp" --export)
- ./ci/respdiff/start-resolvers.sh
- ./ci/respdiff/run-respdiff-tests.sh tcp
- cat results/respdiff.txt
- echo 'test if mismatch rate < 1.0 %'
- grep -q '^target disagrees.*0\.[0-9][0-9] %' results/respdiff.txt
- killall --wait kresd
- MAKEFLAGS="--jobs $(nproc)" test "${COVERAGE:-0}" -eq 1 && make coverage-c coverage-lua COVERAGE_STAGE=gcov-respdiff-iter-tcp | grep -vE '(source file is newer than notes file)|(the message is displayed only once per source file)' || echo "code coverage skipped"
dependencies:
- build:linux:amd64
artifacts: *small_respdiff_artifacts
tags:
- docker
- linux
- amd64
respdiff:iter:tls:linux:amd64:
stage: test
except:
- master@knot/knot-resolver
script:
- source <(./scripts/coverage_env.sh "$(pwd)" "$(pwd)/coverage.stats/respdiff" "iter/tls" --export)
- ./ci/respdiff/start-resolvers.sh
- ./ci/respdiff/run-respdiff-tests.sh tls
- cat results/respdiff.txt
- echo 'test if mismatch rate < 1.0 %'
- grep -q '^target disagrees.*0\.[0-9][0-9] %' results/respdiff.txt
- killall --wait kresd
- MAKEFLAGS="--jobs $(nproc)" test "${COVERAGE:-0}" -eq 1 && make coverage-c coverage-lua COVERAGE_STAGE=gcov-respdiff-iter-tls | grep -vE '(source file is newer than notes file)|(the message is displayed only once per source file)' || echo "code coverage skipped"
dependencies:
- build:linux:amd64
artifacts: *small_respdiff_artifacts
tags:
- docker
- linux
- amd64
distro:fedora-27:
stage: test
......@@ -453,8 +411,6 @@ coverage:
- installcheck:linux:amd64
- deckard:linux:amd64
- respdiff:iter:udp:linux:amd64
- respdiff:iter:tcp:linux:amd64
- respdiff:iter:tls:linux:amd64
tags:
- docker
- linux
......
......@@ -5,7 +5,7 @@ set -o errexit -o nounset -o xtrace
NDIFFREPRO=3
wget https://gitlab.labs.nic.cz/knot/knot-resolver/snippets/69/raw?inline=false -O /tmp/queries.txt
wget -qO- https://gitlab.labs.nic.cz/knot/respdiff/snippets/238/raw?inline=false | head -n 5000 > /tmp/queries.txt
mkdir results
rm -rf respdiff.db
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment