Skip to content

Commit

Permalink
Follow-ups to #499 (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardopirovano committed Sep 4, 2024
2 parents f3281ad + bd49ecb commit 3537441
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions out/cloud-compute.entrypoint.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/actions/cloud-compute/cloud-compute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const runMeticulousTestsCloudComputeAction = async (): Promise<void> => {
projectTargets.length === 1 && projectTargets[0].name === "default";

// Log skipped targets, if any
if (skippedTargets) {
if (skippedTargets.length > 0) {
const skippedTargetNames = skippedTargets.map((target) => target.name);
logger.info(
`Skipping test runs for the following targets: ${skippedTargetNames.join(
Expand Down
5 changes: 3 additions & 2 deletions src/actions/cloud-compute/run-test-run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import {
IN_PROGRESS_TEST_RUN_STATUS,
TestRun,
} from "@alwaysmeticulous/client";
import { defer } from "@alwaysmeticulous/common";
import { defer, METICULOUS_LOGGER_NAME } from "@alwaysmeticulous/common";
import { executeRemoteTestRun } from "@alwaysmeticulous/remote-replay-launcher";
import log from "loglevel";
import { throwIfCannotConnectToOrigin } from "../../common/check-connection";
import { tryTriggerTestsWorkflowOnBase } from "../../common/ensure-base-exists.utils";
import { shortCommitSha } from "../../common/environment.utils";
Expand Down Expand Up @@ -44,7 +45,7 @@ export const runOneTestRun = async ({
const isDebugPRRun = isDebugPullRequestRun(event);
const octokit = getOctokitOrFail(githubToken);
const logger = isSingleTestRunExecution
? initLogger()
? log.getLogger(METICULOUS_LOGGER_NAME)
: getPrefixedLogger(`Test Run ${testRunId}`);
const apiClient = createClient({
apiToken,
Expand Down

0 comments on commit 3537441

Please sign in to comment.