记录Wave2公网部署验证(05-26-oa-seven-day-trial-live-ops)
这个提交包含在:
@@ -31,6 +31,17 @@ function optionalValue(value) {
|
||||
return value?.trim() || null;
|
||||
}
|
||||
|
||||
function reportRef(file) {
|
||||
const absolute = path.resolve(file);
|
||||
const relative = path.relative(rootDir, absolute);
|
||||
if (relative && !relative.startsWith("..") && !path.isAbsolute(relative)) {
|
||||
return relative;
|
||||
}
|
||||
return path.basename(absolute);
|
||||
}
|
||||
|
||||
const reportDirRef = reportRef(reportDir);
|
||||
|
||||
const summary = {
|
||||
issueId: optionalValue(process.env.QA_ISSUE_ID),
|
||||
baseURL: optionalValue(process.env.QA_BASE_URL) ||
|
||||
@@ -40,11 +51,12 @@ const summary = {
|
||||
checkedAt: new Date().toISOString(),
|
||||
status: optionalValue(process.env.QA_STATUS) || "UNKNOWN",
|
||||
mode: optionalValue(process.env.QA_MODE),
|
||||
reportDir: path.resolve(reportDir),
|
||||
reportDir: reportDirRef,
|
||||
reportRef: reportDirRef,
|
||||
groups: optionalValue(process.env.BUSINESS_FLOW_GROUPS),
|
||||
notes: optionalValue(process.env.QA_SUMMARY_NOTES),
|
||||
};
|
||||
|
||||
mkdirSync(reportDir, { recursive: true });
|
||||
writeFileSync(path.join(reportDir, "summary.json"), JSON.stringify(summary, null, 2), "utf8");
|
||||
console.log(`[qa-summary] ${summary.status} ${path.join(reportDir, "summary.json")}`);
|
||||
console.log(`[qa-summary] ${summary.status} ${reportRef(path.join(reportDir, "summary.json"))}`);
|
||||
|
||||
在新工单中引用
屏蔽一个用户