From f1551410cd32a44eaff567b9d5eb8112fe9d81d2 Mon Sep 17 00:00:00 2001 From: zhangtao25 Date: Tue, 17 Dec 2024 15:48:32 +0800 Subject: [PATCH] chore: daily development --- .../collect/services/core/consumer-coverage.service.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/canyon-collect/src/apps/collect/services/core/consumer-coverage.service.ts b/packages/canyon-collect/src/apps/collect/services/core/consumer-coverage.service.ts index a4774875..de70d0f7 100644 --- a/packages/canyon-collect/src/apps/collect/services/core/consumer-coverage.service.ts +++ b/packages/canyon-collect/src/apps/collect/services/core/consumer-coverage.service.ts @@ -104,7 +104,7 @@ export class ConsumerCoverageService { reportID: covType === "agg" ? queueDataToBeConsumed.reportID : null, }), }); - const { map, instrumentCwd } = await this.prisma.coverage + const { map, instrumentCwd, rawMap } = await this.prisma.coverage .findFirst({ where: { // tripgl-1-autoxxx @@ -124,6 +124,7 @@ export class ConsumerCoverageService { return { map: map, instrumentCwd: res.instrumentCwd, + rawMap: res.map, }; }); const codechanges = []; @@ -216,7 +217,9 @@ export class ConsumerCoverageService { // instrumentCwd: queueDataToBeConsumed.instrumentCwd, reporter: String(queueDataToBeConsumed.reporter), reportID: queueDataToBeConsumed.reportID, - map: Buffer.from([]), + // 如果是auto的map,需要复制过来 + map: rawMap, + instrumentCwd: instrumentCwd, // tag: queueDataToBeConsumed.tag, // buildID: queueDataToBeConsumed.buildID, // buildProvider: queueDataToBeConsumed.buildProvider,