mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 08:20:31 +08:00
418c7db202
- davinci-manager-storage:FilePart 路径与基址按 V1 JAR(/portal/file、/part/*、GET /download) - 启动类:扫描 cn.cloudwalk.serial 与 cn.cloudwalk.cwos.client.resource,补 UUIDSerial 与 ApplicationService - deploy:v1/v2 application 中 cloudwalk.serial.enabled、Kafka 指向 192.168.3.12:9092;deploy/.gitignore 忽略日志 - cloudwalk-common-serial:补充 META-INF/spring.factories(Boot 自动配置) - 电梯:Session 配置、Davinci Bean、Feign 包、MQTT/Visitor/Zone Feign;部署脚本与 API parity 工具更新 - 文档与根脚本若干;未纳入大体积 jar/zip 与 v1 CFR 对比目录 Made-with: Cursor Former-commit-id: b76d142d13ebb5c0898de2d9d11bc583876829c2
35 lines
1.7 KiB
Bash
Executable File
35 lines
1.7 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# 本脚本位于 maven-cw-elevator-application/scripts/:先打新包,再跑对拍用例与报告
|
|
set -e
|
|
REPO="$(cd "$(dirname "$0")/.." && pwd)"
|
|
TOOL="${REPO}/tools/elevator_api_parity"
|
|
JAR_NEW="${REPO}/cw-elevator-application-starter/target/cw-elevator-application-2.0.0.jar"
|
|
JAR_LEGACY_DEFAULT="$(cd "$REPO/.." && pwd)/cw-elevator-application-V1.0.0.20211103/cw-elevator-application-V1.0.0.20211103.jar"
|
|
JAR_LEGACY="${ELEVATOR_JAR_LEGACY:-$JAR_LEGACY_DEFAULT}"
|
|
|
|
if [[ -z "${JAVA_8:-}" ]]; then
|
|
for d in /usr/lib/jvm/java-8-openjdk-amd64 /usr/lib/jvm/java-1.8.0-openjdk; do
|
|
if [[ -x "$d/bin/java" ]]; then
|
|
export JAVA_8="$d"
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
: "${JAVA_8:=/usr/lib/jvm/java-8-openjdk-amd64}"
|
|
export JAVA_HOME="$JAVA_8"
|
|
export PATH="$JAVA_HOME/bin:$PATH"
|
|
|
|
cd "$REPO"
|
|
echo "==> mvn package (skip tests)"
|
|
mvn -q -DskipTests clean package
|
|
echo "==> 新 JAR: $JAR_NEW [$(test -f "$JAR_NEW" && echo OK || echo 缺失)]"
|
|
echo "==> 基线 JAR(路径): $JAR_LEGACY [$(test -f "$JAR_LEGACY" && echo 存在 || echo 不存在,可设ELEVATOR_JAR_LEGACY)]"
|
|
echo " (对拍为 HTTP; 需另开终端分别 java -jar --server.port=18080/18081 与相同配置)"
|
|
(cd "$TOOL" && pip install -q -r requirements.txt 2>/dev/null || pip3 install -q -r requirements.txt 2>/dev/null || true)
|
|
echo "==> 单元(无联调): test_unit_compare"
|
|
export PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
|
(cd "$TOOL" && python3 -m pytest tests/test_unit_compare.py -q --tb=short)
|
|
echo "==> 对拍(无两实例时跳过 test_parity_endpoints);不含单机 smoke"
|
|
(cd "$TOOL" && python3 -m pytest tests/test_unit_compare.py tests/test_parity_endpoints.py -q --tb=line)
|
|
echo "报告: $TOOL/report/ (对拍有执行且成功时由 pytest 会话写出 parity-*.md)"
|