airbyte-faros-destination 0.9.59 → 0.9.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/converters/circleci/tests.d.ts +2 -2
- package/lib/converters/circleci/tests.js +58 -44
- package/lib/converters/circleci/tests.js.map +1 -1
- package/lib/converters/jira/faros_sprint_reports.js +3 -2
- package/lib/converters/jira/faros_sprint_reports.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -6,9 +6,9 @@ export declare class Tests extends CircleCIConverter {
|
|
|
6
6
|
private skipWritingTestCases;
|
|
7
7
|
private readonly testCases;
|
|
8
8
|
private readonly testSuites;
|
|
9
|
-
private readonly testExecutionCommits;
|
|
10
|
-
private readonly testExecutions;
|
|
11
9
|
private readonly testCaseResults;
|
|
10
|
+
private currentTestExecution?;
|
|
11
|
+
private currentTestExecutionCommit?;
|
|
12
12
|
convert(record: AirbyteRecord, ctx: StreamContext): Promise<ReadonlyArray<DestinationRecord>>;
|
|
13
13
|
onProcessingComplete(ctx: StreamContext): Promise<ReadonlyArray<DestinationRecord>>;
|
|
14
14
|
convertTestStatus(testResult: string): {
|
|
@@ -17,12 +17,12 @@ class Tests extends common_1.CircleCIConverter {
|
|
|
17
17
|
this.skipWritingTestCases = undefined;
|
|
18
18
|
this.testCases = new Set();
|
|
19
19
|
this.testSuites = new Set();
|
|
20
|
-
this.testExecutionCommits = new Set();
|
|
21
|
-
this.testExecutions = {};
|
|
22
20
|
this.testCaseResults = new Set();
|
|
21
|
+
this.currentTestExecution = undefined;
|
|
22
|
+
this.currentTestExecutionCommit = undefined;
|
|
23
23
|
}
|
|
24
24
|
async convert(record, ctx) {
|
|
25
|
-
var _a, _b;
|
|
25
|
+
var _a, _b, _c;
|
|
26
26
|
if (this.skipWritingTestCases === undefined) {
|
|
27
27
|
const skipWritingTestCases = (_a = this.circleCIConfig(ctx)) === null || _a === void 0 ? void 0 : _a.skip_writing_test_cases;
|
|
28
28
|
this.skipWritingTestCases =
|
|
@@ -63,20 +63,6 @@ class Tests extends common_1.CircleCIConverter {
|
|
|
63
63
|
});
|
|
64
64
|
this.testCases.add(testCaseUid);
|
|
65
65
|
}
|
|
66
|
-
// Write the test case result on every test outcome
|
|
67
|
-
const testCaseResultStatus = this.convertTestStatus(test.result);
|
|
68
|
-
if (!this.skipWritingTestCases) {
|
|
69
|
-
res.push({
|
|
70
|
-
model: 'qa_TestCaseResult',
|
|
71
|
-
record: {
|
|
72
|
-
uid: testCaseResultUid,
|
|
73
|
-
description: (_b = test.message) === null || _b === void 0 ? void 0 : _b.substring(0, 256),
|
|
74
|
-
status: testCaseResultStatus,
|
|
75
|
-
testCase: { uid: testCaseUid, source },
|
|
76
|
-
testExecution: { uid: testExecutionUid, source },
|
|
77
|
-
},
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
66
|
// Write the test suite only once
|
|
81
67
|
if (!this.testSuites.has(testSuiteUid)) {
|
|
82
68
|
res.push({
|
|
@@ -90,19 +76,35 @@ class Tests extends common_1.CircleCIConverter {
|
|
|
90
76
|
});
|
|
91
77
|
this.testSuites.add(testSuiteUid);
|
|
92
78
|
}
|
|
93
|
-
// Write the
|
|
94
|
-
|
|
79
|
+
// Write the test case result on every test outcome
|
|
80
|
+
const testCaseResultStatus = this.convertTestStatus(test.result);
|
|
81
|
+
if (!this.skipWritingTestCases) {
|
|
95
82
|
res.push({
|
|
96
|
-
model: '
|
|
83
|
+
model: 'qa_TestCaseResult',
|
|
97
84
|
record: {
|
|
85
|
+
uid: testCaseResultUid,
|
|
86
|
+
description: (_b = test.message) === null || _b === void 0 ? void 0 : _b.substring(0, 256),
|
|
87
|
+
status: testCaseResultStatus,
|
|
88
|
+
testCase: { uid: testCaseUid, source },
|
|
98
89
|
testExecution: { uid: testExecutionUid, source },
|
|
99
|
-
commit: common_1.CircleCICommon.getCommitKey(test.pipeline_vcs, test.project_slug),
|
|
100
90
|
},
|
|
101
91
|
});
|
|
102
|
-
this.testExecutionCommits.add(testExecutionUid);
|
|
103
92
|
}
|
|
104
|
-
|
|
105
|
-
|
|
93
|
+
// Aggragate info about a single test execution until a new one is detected
|
|
94
|
+
// then write the aggragated info and start fresh with new test execution
|
|
95
|
+
// Note: Assumes records are processed in order
|
|
96
|
+
if (((_c = this.currentTestExecution) === null || _c === void 0 ? void 0 : _c.uid) !== testExecutionUid) {
|
|
97
|
+
if (this.currentTestExecution && this.currentTestExecutionCommit) {
|
|
98
|
+
res.push({
|
|
99
|
+
model: 'qa_TestExecution',
|
|
100
|
+
record: this.currentTestExecution,
|
|
101
|
+
});
|
|
102
|
+
res.push({
|
|
103
|
+
model: 'qa_TestExecutionCommitAssociation',
|
|
104
|
+
record: this.currentTestExecutionCommit,
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
this.currentTestExecution = {
|
|
106
108
|
uid: testExecutionUid,
|
|
107
109
|
name: `${test.workflow_name} - ${test.job_number}`,
|
|
108
110
|
source,
|
|
@@ -120,34 +122,46 @@ class Tests extends common_1.CircleCIConverter {
|
|
|
120
122
|
suite: { uid: testSuiteUid, source },
|
|
121
123
|
build: common_1.CircleCICommon.getBuildKey(test.workflow_id, test.pipeline_id, test.project_slug, source),
|
|
122
124
|
};
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
130
|
-
else if (testCaseResultStatus.category === 'Success') {
|
|
131
|
-
te.testCaseResultsStats.success += 1;
|
|
132
|
-
}
|
|
133
|
-
else if (testCaseResultStatus.category === 'Skipped') {
|
|
134
|
-
te.testCaseResultsStats.skipped += 1;
|
|
135
|
-
}
|
|
136
|
-
else if (testCaseResultStatus.category === 'Custom') {
|
|
137
|
-
te.testCaseResultsStats.custom += 1;
|
|
125
|
+
this.currentTestExecutionCommit = {
|
|
126
|
+
testExecution: { uid: testExecutionUid, source },
|
|
127
|
+
commit: common_1.CircleCICommon.getCommitKey(test.pipeline_vcs, test.project_slug),
|
|
128
|
+
};
|
|
129
|
+
// Reset test case results set
|
|
130
|
+
this.testCaseResults.clear();
|
|
138
131
|
}
|
|
139
132
|
else {
|
|
140
|
-
|
|
133
|
+
if (testCaseResultStatus.category === 'Failure') {
|
|
134
|
+
this.currentTestExecution.status = { category: 'Failure', detail: null };
|
|
135
|
+
this.currentTestExecution.testCaseResultsStats.failure += 1;
|
|
136
|
+
}
|
|
137
|
+
else if (testCaseResultStatus.category === 'Success') {
|
|
138
|
+
this.currentTestExecution.testCaseResultsStats.success += 1;
|
|
139
|
+
}
|
|
140
|
+
else if (testCaseResultStatus.category === 'Skipped') {
|
|
141
|
+
this.currentTestExecution.testCaseResultsStats.skipped += 1;
|
|
142
|
+
}
|
|
143
|
+
else if (testCaseResultStatus.category === 'Custom') {
|
|
144
|
+
this.currentTestExecution.testCaseResultsStats.custom += 1;
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
this.currentTestExecution.testCaseResultsStats.unknown += 1;
|
|
148
|
+
}
|
|
149
|
+
this.currentTestExecution.testCaseResultsStats.total += 1;
|
|
141
150
|
}
|
|
142
|
-
te.testCaseResultsStats.total += 1;
|
|
143
151
|
return res;
|
|
144
152
|
}
|
|
145
153
|
async onProcessingComplete(ctx) {
|
|
146
154
|
ctx.logger.info('tests - onProcessingComplete');
|
|
155
|
+
ctx.logger.info('writing final test execution and commit association');
|
|
147
156
|
const res = [];
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
157
|
+
res.push({
|
|
158
|
+
model: 'qa_TestExecution',
|
|
159
|
+
record: this.currentTestExecution,
|
|
160
|
+
});
|
|
161
|
+
res.push({
|
|
162
|
+
model: 'qa_TestExecutionCommitAssociation',
|
|
163
|
+
record: this.currentTestExecutionCommit,
|
|
164
|
+
});
|
|
151
165
|
return res;
|
|
152
166
|
}
|
|
153
167
|
convertTestStatus(testResult) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tests.js","sourceRoot":"","sources":["../../../src/converters/circleci/tests.ts"],"names":[],"mappings":";;;AACA,qDAAsC;AAItC,qCAA2D;AAG3D,MAAa,KAAM,SAAQ,0BAAiB;IAA5C;;QACW,sBAAiB,GAAoC;YAC5D,cAAc;YACd,iCAAiC;YACjC,aAAa;YACb,kBAAkB;YAClB,mBAAmB;YACnB,mCAAmC;SACpC,CAAC;QAEM,yBAAoB,GAAwB,SAAS,CAAC;QAC7C,cAAS,GAAgB,IAAI,GAAG,EAAU,CAAC;QAC3C,eAAU,GAAgB,IAAI,GAAG,EAAU,CAAC;QAC5C,
|
|
1
|
+
{"version":3,"file":"tests.js","sourceRoot":"","sources":["../../../src/converters/circleci/tests.ts"],"names":[],"mappings":";;;AACA,qDAAsC;AAItC,qCAA2D;AAG3D,MAAa,KAAM,SAAQ,0BAAiB;IAA5C;;QACW,sBAAiB,GAAoC;YAC5D,cAAc;YACd,iCAAiC;YACjC,aAAa;YACb,kBAAkB;YAClB,mBAAmB;YACnB,mCAAmC;SACpC,CAAC;QAEM,yBAAoB,GAAwB,SAAS,CAAC;QAC7C,cAAS,GAAgB,IAAI,GAAG,EAAU,CAAC;QAC3C,eAAU,GAAgB,IAAI,GAAG,EAAU,CAAC;QAC5C,oBAAe,GAAgB,IAAI,GAAG,EAAU,CAAC;QAE1D,yBAAoB,GAAqB,SAAS,CAAC;QACnD,+BAA0B,GAAqB,SAAS,CAAC;IAiMnE,CAAC;IA/LC,KAAK,CAAC,OAAO,CACX,MAAqB,EACrB,GAAkB;;QAElB,IAAI,IAAI,CAAC,oBAAoB,KAAK,SAAS,EAAE,CAAC;YAC5C,MAAM,oBAAoB,GACxB,MAAA,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,0CAAE,uBAAuB,CAAC;YACpD,IAAI,CAAC,oBAAoB;gBACvB,oBAAoB,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,oBAAoB,CAAC;QACrE,CAAC;QAED,MAAM,MAAM,GAAG,IA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,OAAO,EAAC,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAC,CAAC;YACvC;gBACE,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAC,CAAC;QACxC,CAAC;IACH,CAAC;CACF;AAjND,sBAiNC"}
|
|
@@ -11,12 +11,13 @@ class FarosSprintReports extends common_1.JiraConverter {
|
|
|
11
11
|
const sprintReport = record.record.data;
|
|
12
12
|
const uid = (0, lodash_1.toString)(sprintReport.sprintId);
|
|
13
13
|
const results = [];
|
|
14
|
+
const source = this.streamName.source;
|
|
14
15
|
for (const issue of sprintReport.issues || []) {
|
|
15
16
|
results.push({
|
|
16
17
|
model: 'tms_SprintHistory',
|
|
17
18
|
record: {
|
|
18
|
-
sprint: { uid, source
|
|
19
|
-
|
|
19
|
+
sprint: { uid, source },
|
|
20
|
+
task: { uid: issue.key, source },
|
|
20
21
|
points: issue.points,
|
|
21
22
|
status: { category: issue.status },
|
|
22
23
|
addedDuringSprint: issue.addedDuringSprint,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"faros_sprint_reports.js","sourceRoot":"","sources":["../../../src/converters/jira/faros_sprint_reports.ts"],"names":[],"mappings":";;;AAEA,mCAAgC;AAGhC,qCAAuC;AAEvC,MAAa,kBAAmB,SAAQ,sBAAa;IACnD,IAAI,iBAAiB;QACnB,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC/B,CAAC;IACD,KAAK,CAAC,OAAO,CACX,MAAqB,EACrB,GAAkB;QAElB,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAoB,CAAC;QACxD,MAAM,GAAG,GAAG,IAAA,iBAAQ,EAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAwB,EAAE,CAAC;QACxC,KAAK,MAAM,KAAK,IAAI,YAAY,CAAC,MAAM,IAAI,EAAE,EAAE,CAAC;YAC9C,OAAO,CAAC,IAAI,CAAC;gBACX,KAAK,EAAE,mBAA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