Skip to content

Commit

Permalink
Append summary row, sapporo version, wf engine name, wf engine version
Browse files Browse the repository at this point in the history
  • Loading branch information
suecharo committed Sep 18, 2022
1 parent 95de1ae commit 4a98750
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/compare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,12 @@ export function renderSummaryTable(
const headerKeys: [string, keyof crate.CrateSummary][] = [
["WF Name", "wfName"],
["WF ID", "wfId"],
["WF Version", "wfVersion"],
["WF Ver", "wfVersion"],
["WF Type", "wfType"],
["WF TypeVersion", "wfTypeVersion"],
["WF Type Ver", "wfTypeVersion"],
["WF Eng Name", "wfEngineName"],
["WF Eng Version", "wfEngineVersion"],
["Sapporo Ver", "sapporoVersion"],
["Run Name", "testId"],
["Run State", "state"],
["ExitCode", "exitCode"],
Expand Down
21 changes: 21 additions & 0 deletions src/crate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ export interface CrateSummary {
wfId: string;
wfType: string;
wfTypeVersion: string;
sapporoVersion: string;
wfEngineName: string;
wfEngineVersion: string;
testId: string;
startTime: Date;
endTime: Date;
Expand Down Expand Up @@ -117,6 +120,21 @@ export class Crate {
const testId = `${
this.getValRecursively(this.testDefinition, ["yevisTestId"])
}`;
const sapporoVersion = `${
this.getValRecursively(this.testInstance, ["version"])
}`;
const wfEngineName = `${
this.getValRecursively(this.testDefinition, [
"conformsTo",
"name",
])
}`;
const wfEngineVersion = `${
this.getValRecursively(this.testDefinition, [
"conformsTo",
"version",
])
}`;

// File IDs
let wfAttachments: string[] = [];
Expand Down Expand Up @@ -170,6 +188,9 @@ export class Crate {
wfId,
wfType,
wfTypeVersion,
sapporoVersion,
wfEngineName,
wfEngineVersion,
testId,
startTime,
endTime,
Expand Down

0 comments on commit 4a98750

Please sign in to comment.