在 QA 虚拟机通过 Chromium 复跑和本地提交检查,并验证必填校验失效会触发失败。Gitea 将浏览器回归纳入必需检查。
This commit is contained in:
@@ -27,7 +27,22 @@ BUILD_TIME ?= $(shell date -u +%Y-%m-%dT%H:%M:%SZ)
|
||||
verify:
|
||||
$(PY) scripts/ci_checks.py
|
||||
|
||||
.PHONY: qa qa-doctor qa-self-test
|
||||
.PHONY: qa qa-doctor qa-self-test tests-e2e tests-e2e-ci test-changed test-tooling
|
||||
tests-e2e:
|
||||
npm --prefix web run test:e2e -- $(E2E)
|
||||
|
||||
# The hosted CI job container is disposable and starts without Chromium's system libraries.
|
||||
tests-e2e-ci: export PLAYWRIGHT_BROWSERS_PATH ?= /opt/citools-cache/playwright
|
||||
tests-e2e-ci:
|
||||
@test -f /.dockerenv || { printf '%s\n' 'tests-e2e-ci requires the disposable CI container. Use make tests-e2e here.' >&2; exit 1; }
|
||||
DEBIAN_FRONTEND=noninteractive PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT=90000 \
|
||||
timeout 360s npm --prefix web exec -- playwright install --with-deps --only-shell chromium
|
||||
$(MAKE) tests-e2e
|
||||
test-changed:
|
||||
$(PY) scripts/test_changed.py
|
||||
test-tooling: qa-self-test
|
||||
$(PY) -m unittest discover -s scripts -p test_test_changed.py -v
|
||||
|
||||
qa:
|
||||
$(PY) scripts/qa_env.py run
|
||||
qa-doctor:
|
||||
|
||||
Reference in New Issue
Block a user