CI: turn off the Lua code coverage check in CI. (#2435)

We don't enable Lua code override now, its output is unstable and this is unacceptable.

Disabling the Lua code override first will make CI run faster.

* test: print more information when failed.
This commit is contained in:
YuanSheng Wang 2020-10-16 09:59:30 +08:00 committed by GitHub
parent b5fe9ced45
commit 78910d828b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -169,7 +169,8 @@ script() {
sudo bash ./utils/check-plugins-code.sh
make lint && make license-check || exit 1
APISIX_ENABLE_LUACOV=1 PERL5LIB=.:$PERL5LIB prove -Itest-nginx/lib -r t
# APISIX_ENABLE_LUACOV=1 PERL5LIB=.:$PERL5LIB prove -Itest-nginx/lib -r t
PERL5LIB=.:$PERL5LIB prove -Itest-nginx/lib -r t
}
after_success() {

View File

@ -32,6 +32,7 @@ __DATA__
--- config
location /test {
content_by_lua_block {
ngx.sleep(0.3)
local log_file = ngx.config.prefix() .. "logs/error.log"
local file = io.open(log_file, "r")
local log = file:read("*a")
@ -62,6 +63,10 @@ __DATA__
local pre = random_nums[i - 1]
local cur = random_nums[i]
ngx.say("random[", i - 1, "] == random[", i, "]: ", pre == cur)
if not pre == cur then
ngx.say("random info in log: ", table.concat(random_nums, ", "))
break
end
end
}
}