From 2e6cb83791c9d4ad36c6fd89541d6443a3fa3286 Mon Sep 17 00:00:00 2001 From: Matt Meigs Date: Tue, 31 Oct 2023 15:44:47 -0400 Subject: [PATCH] final clean --- src/job/jobHandler.ts | 2 -- src/repositories/docsetsRepository.ts | 1 - src/repositories/repoBranchesRepository.ts | 4 +++- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/job/jobHandler.ts b/src/job/jobHandler.ts index dd421660d..9d9823037 100644 --- a/src/job/jobHandler.ts +++ b/src/job/jobHandler.ts @@ -237,7 +237,6 @@ export abstract class JobHandler { @throwIfJobInterupted() private async prepNextGenBuild(): Promise { if (this.isbuildNextGen()) { - this._logger.save(this.currJob._id, `prepNextGenBuild.... MMM`); await this._validator.throwIfBranchNotConfigured(this.currJob); await this.constructPrefix(); // TODO: Look into moving the generation of manifestPrefix into the manifestJobHandler, @@ -252,7 +251,6 @@ export abstract class JobHandler { this.constructEnvVars(); this.currJob.payload.isNextGen = true; if (this._currJob.payload.jobType === 'productionDeploy') { - this._logger.save(this.currJob._id, `throwifnotpublishable.... MMM`); this._validator.throwIfNotPublishable(this._currJob); } } else { diff --git a/src/repositories/docsetsRepository.ts b/src/repositories/docsetsRepository.ts index 3a4d90c75..d93926216 100644 --- a/src/repositories/docsetsRepository.ts +++ b/src/repositories/docsetsRepository.ts @@ -74,7 +74,6 @@ export class DocsetsRepository extends BaseRepository { if (!res.length) { const msg = `DocsetsRepository.getRepo - Could not find repo by repoName: ${repoName}`; this._logger.info(this._repoName, msg); - } else if (res.length > 1 && repoName === MONOREPO_NAME) { } return res?.[0]; } diff --git a/src/repositories/repoBranchesRepository.ts b/src/repositories/repoBranchesRepository.ts index 800937a26..7e52b576c 100644 --- a/src/repositories/repoBranchesRepository.ts +++ b/src/repositories/repoBranchesRepository.ts @@ -13,7 +13,9 @@ export class RepoBranchesRepository extends BaseRepository { if (monorepoDirPath) query['directories.snooty_toml'] = `/${monorepoDirPath}`; const repo = await this.findOne( query, - `Mongo Timeout Error: Timedout while retrieving branches for ${repoName}${monorepoDirPath ? monorepoDirPath : ''}` + `Mongo Timeout Error: Timedout while retrieving branches for ${repoName}${ + monorepoDirPath ? `/${monorepoDirPath}` : '' + }` ); // if user has specific entitlements return repo?.['branches'] ?? [];