@axinom/mosaic-testing 0.7.15 → 0.7.16-rc.3

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.
Files changed (141) hide show
  1. package/dist/cjs/index.d.ts +2 -0
  2. package/dist/{index.d.ts.map → cjs/index.d.ts.map} +1 -1
  3. package/dist/{index.js → cjs/index.js} +1 -1
  4. package/dist/cjs/index.js.map +1 -0
  5. package/dist/cjs/package.json +1 -0
  6. package/dist/cjs/performance/index.d.ts +3 -0
  7. package/dist/cjs/performance/index.d.ts.map +1 -0
  8. package/dist/{performance → cjs/performance}/index.js +2 -2
  9. package/dist/cjs/performance/index.js.map +1 -0
  10. package/dist/{performance → cjs/performance}/plugins/inbox-outbox-report-endpoint-plugin.d.ts +2 -2
  11. package/dist/cjs/performance/plugins/inbox-outbox-report-endpoint-plugin.d.ts.map +1 -0
  12. package/dist/{performance → cjs/performance}/plugins/inbox-outbox-report-endpoint-plugin.js +9 -8
  13. package/dist/cjs/performance/plugins/inbox-outbox-report-endpoint-plugin.js.map +1 -0
  14. package/dist/{performance → cjs/performance}/plugins/inbox-outbox-state-endpoint-plugin.d.ts +2 -2
  15. package/dist/cjs/performance/plugins/inbox-outbox-state-endpoint-plugin.d.ts.map +1 -0
  16. package/dist/{performance → cjs/performance}/plugins/inbox-outbox-state-endpoint-plugin.js +4 -3
  17. package/dist/cjs/performance/plugins/inbox-outbox-state-endpoint-plugin.js.map +1 -0
  18. package/dist/cjs/performance/plugins/index.d.ts +3 -0
  19. package/dist/cjs/performance/plugins/index.d.ts.map +1 -0
  20. package/dist/{performance → cjs/performance}/plugins/index.js +4 -4
  21. package/dist/cjs/performance/plugins/index.js.map +1 -0
  22. package/dist/cjs/performance/scripts/index.d.ts +4 -0
  23. package/dist/cjs/performance/scripts/index.d.ts.map +1 -0
  24. package/dist/{performance → cjs/performance}/scripts/index.js +3 -3
  25. package/dist/cjs/performance/scripts/index.js.map +1 -0
  26. package/dist/{performance → cjs/performance}/scripts/make-graphql-request.d.ts +2 -2
  27. package/dist/cjs/performance/scripts/make-graphql-request.d.ts.map +1 -0
  28. package/dist/{performance → cjs/performance}/scripts/make-graphql-request.js +2 -2
  29. package/dist/cjs/performance/scripts/make-graphql-request.js.map +1 -0
  30. package/dist/{performance → cjs/performance}/scripts/run-inbox-outbox-scenario.d.ts +3 -3
  31. package/dist/cjs/performance/scripts/run-inbox-outbox-scenario.d.ts.map +1 -0
  32. package/dist/{performance → cjs/performance}/scripts/run-inbox-outbox-scenario.js +9 -30
  33. package/dist/cjs/performance/scripts/run-inbox-outbox-scenario.js.map +1 -0
  34. package/dist/cjs/performance/scripts/run-scenario.d.ts.map +1 -0
  35. package/dist/{performance → cjs/performance}/scripts/run-scenario.js +3 -3
  36. package/dist/cjs/performance/scripts/run-scenario.js.map +1 -0
  37. package/dist/cjs/performance/utils/colorize-text.d.ts.map +1 -0
  38. package/dist/cjs/performance/utils/colorize-text.js.map +1 -0
  39. package/dist/cjs/performance/utils/index.d.ts +3 -0
  40. package/dist/cjs/performance/utils/index.d.ts.map +1 -0
  41. package/dist/{performance → cjs/performance}/utils/index.js +2 -2
  42. package/dist/cjs/performance/utils/index.js.map +1 -0
  43. package/dist/{performance → cjs/performance}/utils/report-generation.d.ts +1 -1
  44. package/dist/cjs/performance/utils/report-generation.d.ts.map +1 -0
  45. package/dist/{performance → cjs/performance}/utils/report-generation.js +12 -15
  46. package/dist/cjs/performance/utils/report-generation.js.map +1 -0
  47. package/dist/esm/index.d.ts +2 -0
  48. package/dist/esm/index.d.ts.map +1 -0
  49. package/dist/esm/index.js +2 -0
  50. package/dist/esm/index.js.map +1 -0
  51. package/dist/esm/package.json +1 -0
  52. package/dist/esm/performance/index.d.ts +3 -0
  53. package/dist/esm/performance/index.d.ts.map +1 -0
  54. package/dist/esm/performance/index.js +3 -0
  55. package/dist/esm/performance/index.js.map +1 -0
  56. package/dist/esm/performance/plugins/inbox-outbox-report-endpoint-plugin.d.ts +22 -0
  57. package/dist/esm/performance/plugins/inbox-outbox-report-endpoint-plugin.d.ts.map +1 -0
  58. package/dist/esm/performance/plugins/inbox-outbox-report-endpoint-plugin.js +68 -0
  59. package/dist/esm/performance/plugins/inbox-outbox-report-endpoint-plugin.js.map +1 -0
  60. package/dist/esm/performance/plugins/inbox-outbox-state-endpoint-plugin.d.ts +23 -0
  61. package/dist/esm/performance/plugins/inbox-outbox-state-endpoint-plugin.d.ts.map +1 -0
  62. package/dist/esm/performance/plugins/inbox-outbox-state-endpoint-plugin.js +78 -0
  63. package/dist/esm/performance/plugins/inbox-outbox-state-endpoint-plugin.js.map +1 -0
  64. package/dist/esm/performance/plugins/index.d.ts +3 -0
  65. package/dist/esm/performance/plugins/index.d.ts.map +1 -0
  66. package/dist/{performance/plugins/index.d.ts → esm/performance/plugins/index.js} +3 -3
  67. package/dist/esm/performance/plugins/index.js.map +1 -0
  68. package/dist/esm/performance/scripts/index.d.ts +4 -0
  69. package/dist/esm/performance/scripts/index.d.ts.map +1 -0
  70. package/dist/esm/performance/scripts/index.js +4 -0
  71. package/dist/esm/performance/scripts/index.js.map +1 -0
  72. package/dist/esm/performance/scripts/make-graphql-request.d.ts +29 -0
  73. package/dist/esm/performance/scripts/make-graphql-request.d.ts.map +1 -0
  74. package/dist/esm/performance/scripts/make-graphql-request.js +16 -0
  75. package/dist/esm/performance/scripts/make-graphql-request.js.map +1 -0
  76. package/dist/esm/performance/scripts/run-inbox-outbox-scenario.d.ts +97 -0
  77. package/dist/esm/performance/scripts/run-inbox-outbox-scenario.d.ts.map +1 -0
  78. package/dist/esm/performance/scripts/run-inbox-outbox-scenario.js +141 -0
  79. package/dist/esm/performance/scripts/run-inbox-outbox-scenario.js.map +1 -0
  80. package/dist/esm/performance/scripts/run-scenario.d.ts +54 -0
  81. package/dist/esm/performance/scripts/run-scenario.d.ts.map +1 -0
  82. package/dist/esm/performance/scripts/run-scenario.js +33 -0
  83. package/dist/esm/performance/scripts/run-scenario.js.map +1 -0
  84. package/dist/esm/performance/utils/colorize-text.d.ts +3 -0
  85. package/dist/esm/performance/utils/colorize-text.d.ts.map +1 -0
  86. package/dist/esm/performance/utils/colorize-text.js +3 -0
  87. package/dist/esm/performance/utils/colorize-text.js.map +1 -0
  88. package/dist/esm/performance/utils/index.d.ts +3 -0
  89. package/dist/esm/performance/utils/index.d.ts.map +1 -0
  90. package/dist/esm/performance/utils/index.js +3 -0
  91. package/dist/esm/performance/utils/index.js.map +1 -0
  92. package/dist/esm/performance/utils/report-generation.d.ts +14 -0
  93. package/dist/esm/performance/utils/report-generation.d.ts.map +1 -0
  94. package/dist/esm/performance/utils/report-generation.js +235 -0
  95. package/dist/esm/performance/utils/report-generation.js.map +1 -0
  96. package/package.json +21 -11
  97. package/src/index.ts +1 -1
  98. package/src/performance/index.ts +2 -2
  99. package/src/performance/plugins/inbox-outbox-report-endpoint-plugin.spec.ts +6 -3
  100. package/src/performance/plugins/inbox-outbox-report-endpoint-plugin.ts +3 -3
  101. package/src/performance/plugins/inbox-outbox-state-endpoint-plugin.spec.ts +6 -3
  102. package/src/performance/plugins/inbox-outbox-state-endpoint-plugin.ts +2 -2
  103. package/src/performance/plugins/index.ts +2 -2
  104. package/src/performance/scripts/index.ts +3 -3
  105. package/src/performance/scripts/make-graphql-request.ts +4 -3
  106. package/src/performance/scripts/run-inbox-outbox-scenario.ts +8 -8
  107. package/src/performance/scripts/run-scenario.ts +1 -1
  108. package/src/performance/utils/index.ts +2 -2
  109. package/src/performance/utils/report-generation.ts +2 -2
  110. package/src/tests/utils/index.ts +1 -1
  111. package/src/tests/utils/stub-helpers.ts +2 -2
  112. package/dist/index.d.ts +0 -2
  113. package/dist/index.js.map +0 -1
  114. package/dist/performance/index.d.ts +0 -3
  115. package/dist/performance/index.d.ts.map +0 -1
  116. package/dist/performance/index.js.map +0 -1
  117. package/dist/performance/plugins/inbox-outbox-report-endpoint-plugin.d.ts.map +0 -1
  118. package/dist/performance/plugins/inbox-outbox-report-endpoint-plugin.js.map +0 -1
  119. package/dist/performance/plugins/inbox-outbox-state-endpoint-plugin.d.ts.map +0 -1
  120. package/dist/performance/plugins/inbox-outbox-state-endpoint-plugin.js.map +0 -1
  121. package/dist/performance/plugins/index.d.ts.map +0 -1
  122. package/dist/performance/plugins/index.js.map +0 -1
  123. package/dist/performance/scripts/index.d.ts +0 -4
  124. package/dist/performance/scripts/index.d.ts.map +0 -1
  125. package/dist/performance/scripts/index.js.map +0 -1
  126. package/dist/performance/scripts/make-graphql-request.d.ts.map +0 -1
  127. package/dist/performance/scripts/make-graphql-request.js.map +0 -1
  128. package/dist/performance/scripts/run-inbox-outbox-scenario.d.ts.map +0 -1
  129. package/dist/performance/scripts/run-inbox-outbox-scenario.js.map +0 -1
  130. package/dist/performance/scripts/run-scenario.d.ts.map +0 -1
  131. package/dist/performance/scripts/run-scenario.js.map +0 -1
  132. package/dist/performance/utils/colorize-text.d.ts.map +0 -1
  133. package/dist/performance/utils/colorize-text.js.map +0 -1
  134. package/dist/performance/utils/index.d.ts +0 -3
  135. package/dist/performance/utils/index.d.ts.map +0 -1
  136. package/dist/performance/utils/index.js.map +0 -1
  137. package/dist/performance/utils/report-generation.d.ts.map +0 -1
  138. package/dist/performance/utils/report-generation.js.map +0 -1
  139. /package/dist/{performance → cjs/performance}/scripts/run-scenario.d.ts +0 -0
  140. /package/dist/{performance → cjs/performance}/utils/colorize-text.d.ts +0 -0
  141. /package/dist/{performance → cjs/performance}/utils/colorize-text.js +0 -0
@@ -0,0 +1,3 @@
1
+ export const blue = (text) => `\u001b[34m${text}\u001b[39m`;
2
+ export const red = (text) => `\u001b[31m${text}\u001b[39m`;
3
+ //# sourceMappingURL=colorize-text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorize-text.js","sourceRoot":"","sources":["../../../../src/performance/utils/colorize-text.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,IAAqB,EAAU,EAAE,CACpD,aAAa,IAAI,YAAY,CAAC;AAChC,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,IAAqB,EAAU,EAAE,CACnD,aAAa,IAAI,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './colorize-text.js';
2
+ export * from './report-generation.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/performance/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './colorize-text.js';
2
+ export * from './report-generation.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/performance/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { Pool } from 'pg';
2
+ interface InboxOutboxRow {
3
+ created_at: string;
4
+ processed_at: string | null;
5
+ abandoned_at: string | null;
6
+ sent_at: string | null;
7
+ started_attempts: number;
8
+ }
9
+ export declare const getGeneralReport: (entries: InboxOutboxRow[], testId: string) => string;
10
+ export declare const getStoredReport: (entries: InboxOutboxRow[], table: "inbox" | "outbox") => string;
11
+ export declare const getProcessedReport: (entries: InboxOutboxRow[], table: "inbox" | "outbox") => string;
12
+ export declare const getReportRows: (table: "inbox" | "outbox", testId: string, ownerPool: Pool) => Promise<InboxOutboxRow[]>;
13
+ export {};
14
+ //# sourceMappingURL=report-generation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report-generation.d.ts","sourceRoot":"","sources":["../../../../src/performance/utils/report-generation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAK/B,UAAU,cAAc;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAgQD,eAAO,MAAM,gBAAgB,GAC3B,SAAS,cAAc,EAAE,EACzB,QAAQ,MAAM,KACb,MAeF,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,SAAS,cAAc,EAAE,EACzB,OAAO,OAAO,GAAG,QAAQ,KACxB,MAqCF,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC7B,SAAS,cAAc,EAAE,EACzB,OAAO,OAAO,GAAG,QAAQ,KACxB,MAmDF,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,OAAO,OAAO,GAAG,QAAQ,EACzB,QAAQ,MAAM,EACd,WAAW,IAAI,KACd,OAAO,CAAC,cAAc,EAAE,CAiB1B,CAAC"}
@@ -0,0 +1,235 @@
1
+ import { group } from '@axinom/mosaic-service-common';
2
+ import { blue, red } from './colorize-text.js';
3
+ const NA = 'N/A';
4
+ const quartile = (arr, q) => {
5
+ if (!arr.length) {
6
+ return NA;
7
+ }
8
+ const sorted = [...arr].sort((a, b) => a - b);
9
+ // Turn p into a decimal (e.g. 95 becomes 0.95)
10
+ q = q / 100;
11
+ // Work out the position in the array of the percentile point
12
+ const p = (sorted.length - 1) * q;
13
+ const b = Math.floor(p);
14
+ // Work out what we rounded off (if anything)
15
+ const remainder = p - b;
16
+ // See whether that data exists directly
17
+ if (sorted[b + 1] !== undefined) {
18
+ return sorted[b] + remainder * (sorted[b + 1] - sorted[b]);
19
+ }
20
+ else {
21
+ return sorted[b];
22
+ }
23
+ };
24
+ const millisecondsToStr = (milliseconds) => {
25
+ if (typeof milliseconds === 'string') {
26
+ return milliseconds;
27
+ }
28
+ if (milliseconds === undefined) {
29
+ return NA;
30
+ }
31
+ const seconds = milliseconds / 1000;
32
+ const minutes = seconds / 60;
33
+ const hours = minutes / 60;
34
+ if (hours >= 1) {
35
+ return hours.toFixed(2) + 'h';
36
+ }
37
+ if (minutes >= 1) {
38
+ return minutes.toFixed(2) + 'm';
39
+ }
40
+ if (seconds >= 1) {
41
+ return seconds.toFixed(2) + 's';
42
+ }
43
+ return milliseconds.toFixed(2) + 'ms';
44
+ };
45
+ const format = (value) => value === NA
46
+ ? red(NA)
47
+ : typeof value === 'number'
48
+ ? blue(millisecondsToStr(value))
49
+ : blue(value);
50
+ const getMetrics = (source) => {
51
+ const avg = source.length > 0 ? source.reduce((p, c) => p + c, 0) / source.length : NA;
52
+ const min = source.length > 0 ? Math.min(...source) : NA;
53
+ const max = source.length > 0 ? Math.max(...source) : NA;
54
+ const med = source.length > 0 ? quartile(source, 50) : NA;
55
+ const p90 = source.length > 0 ? quartile(source, 90) : NA;
56
+ const p95 = source.length > 0 ? quartile(source, 95) : NA;
57
+ return {
58
+ avg,
59
+ min,
60
+ med,
61
+ max,
62
+ p90,
63
+ p95,
64
+ };
65
+ };
66
+ const getGeneralStats = (entries) => {
67
+ const retriesGroups = group(entries.map((x) => x.started_attempts - 1));
68
+ const retriesCounts = Object.keys(retriesGroups).reduce((accumulator, key) => {
69
+ accumulator[key] = retriesGroups[key].length;
70
+ return accumulator;
71
+ }, {});
72
+ const processedCount = entries.filter((x) => !!x.processed_at).length;
73
+ const abandonedCount = entries.filter((x) => !!x.abandoned_at).length;
74
+ return {
75
+ messagesCount: entries.length,
76
+ processedCount,
77
+ abandonedCount,
78
+ retriesCounts,
79
+ };
80
+ };
81
+ const getStoredStats = (entries) => {
82
+ const sorted = entries.sort((a, b) => a.created_at.localeCompare(b.created_at));
83
+ const firstMessageStored = sorted[0].created_at;
84
+ const lastMessageStored = sorted[sorted.length - 1].created_at;
85
+ const totalTimeToStore = lastMessageStored !== firstMessageStored
86
+ ? new Date(lastMessageStored).getTime() -
87
+ new Date(firstMessageStored).getTime()
88
+ : NA;
89
+ const storedMeasures = [];
90
+ sorted
91
+ .map((x) => x.created_at)
92
+ .reduce((previous, current) => {
93
+ if (previous) {
94
+ storedMeasures.push(new Date(current).getTime() - new Date(previous).getTime());
95
+ }
96
+ return current;
97
+ }, undefined);
98
+ const crossMessageStored = getMetrics(storedMeasures);
99
+ const transitMeasures = sorted
100
+ .filter((x) => !!x.sent_at)
101
+ .map((x) => new Date(x.created_at).getTime() - new Date(x.sent_at).getTime());
102
+ const perMessageTotal = getMetrics(transitMeasures);
103
+ return {
104
+ firstMessageStored,
105
+ lastMessageStored,
106
+ totalTimeToStore,
107
+ crossMessageStored,
108
+ perMessageTotal,
109
+ };
110
+ };
111
+ const getProcessedStats = (entries) => {
112
+ const processed = entries
113
+ .filter((x) => !!x.processed_at)
114
+ .sort((a, b) => a.processed_at.localeCompare(b.processed_at));
115
+ const processedExist = processed.length > 0;
116
+ const firstMessageProcessed = processedExist ? processed[0].processed_at : NA;
117
+ const lastMessageProcessed = processedExist
118
+ ? processed[processed.length - 1].processed_at
119
+ : NA;
120
+ const totalTimeToProcess = processedExist && firstMessageProcessed !== lastMessageProcessed
121
+ ? new Date(lastMessageProcessed).getTime() -
122
+ new Date(firstMessageProcessed).getTime()
123
+ : NA;
124
+ const processedMeasures = [];
125
+ processed
126
+ .map((x) => x.processed_at)
127
+ .filter((x) => !!x)
128
+ .reduce((previous, current) => {
129
+ if (previous) {
130
+ processedMeasures.push(new Date(current).getTime() - new Date(previous).getTime());
131
+ }
132
+ return current;
133
+ }, undefined);
134
+ const crossMessageProcessed = getMetrics(processedMeasures);
135
+ const perMessageProcessedMeasures = processed.map((x) => new Date(x.processed_at).getTime() - new Date(x.created_at).getTime());
136
+ const perMessageProcessed = getMetrics(perMessageProcessedMeasures);
137
+ const abandoned = entries
138
+ .filter((x) => !!x.abandoned_at)
139
+ .sort((a, b) => a.abandoned_at.localeCompare(b.abandoned_at));
140
+ const abandonedExist = abandoned.length > 0;
141
+ const lastMessageAbandoned = abandonedExist
142
+ ? abandoned[abandoned.length - 1].abandoned_at
143
+ : NA;
144
+ const sorted = entries.sort((a, b) => a.created_at.localeCompare(b.created_at));
145
+ const firstMessageStored = sorted[0].created_at;
146
+ const totalTimeToStoreAndFinish = processedExist || abandonedExist
147
+ ? new Date(lastMessageProcessed !== NA && lastMessageAbandoned !== NA
148
+ ? lastMessageProcessed > lastMessageAbandoned
149
+ ? lastMessageProcessed
150
+ : lastMessageAbandoned
151
+ : lastMessageProcessed !== NA
152
+ ? lastMessageProcessed
153
+ : lastMessageAbandoned).getTime() - new Date(firstMessageStored).getTime()
154
+ : NA;
155
+ const perMessageTotalTimeMeasures = entries
156
+ .filter((x) => !!x.sent_at && (!!x.processed_at || !!x.abandoned_at))
157
+ .map((x) => new Date(x.processed_at ?? x.abandoned_at).getTime() -
158
+ new Date(x.sent_at).getTime());
159
+ const perMessageTotal = getMetrics(perMessageTotalTimeMeasures);
160
+ return {
161
+ firstMessageProcessed,
162
+ lastMessageProcessed,
163
+ totalTimeToProcess,
164
+ crossMessageProcessed,
165
+ perMessageProcessed,
166
+ totalTimeToStoreAndFinish,
167
+ perMessageTotal,
168
+ };
169
+ };
170
+ export const getGeneralReport = (entries, testId) => {
171
+ const { messagesCount, processedCount, abandonedCount, retriesCounts } = getGeneralStats(entries);
172
+ return `- Test ID: ${blue(testId)}
173
+ - Messages count: ${blue(messagesCount)}
174
+ - Processed count: ${processedCount === messagesCount
175
+ ? blue(processedCount)
176
+ : red(processedCount)}
177
+ - Abandoned count: ${abandonedCount > 0 ? red(abandonedCount) : blue(0)}
178
+ - Retries count(s):
179
+ ${Object.keys(retriesCounts)
180
+ .map((key) => ` ${key}: ${blue(retriesCounts[key])} message(s)`)
181
+ .join('\n')}`;
182
+ };
183
+ export const getStoredReport = (entries, table) => {
184
+ const { firstMessageStored, lastMessageStored, totalTimeToStore, crossMessageStored, perMessageTotal, } = getStoredStats(entries);
185
+ // metrics related to sent_at are only relevant for inbox, since envelope
186
+ // timestamp is set only after outbox message is processed
187
+ const totalMetrics = table === 'inbox'
188
+ ? `
189
+
190
+ - Stats for time differences between message being sent out and when it was received and stored:
191
+ - avg=${format(perMessageTotal.avg)} min=${format(perMessageTotal.min)} med=${format(perMessageTotal.med)} max=${format(perMessageTotal.max)} p(90)=${format(perMessageTotal.p90)} p(95)=${format(perMessageTotal.p95)}`
192
+ : '';
193
+ return `- First message stored: ${format(firstMessageStored)}
194
+ - Last message stored: ${format(lastMessageStored)}
195
+ - Time to store all messages: ${format(totalTimeToStore)}
196
+
197
+ - Stats for time differences between one message stored and next message stored:
198
+ - avg=${format(crossMessageStored.avg)} min=${format(crossMessageStored.min)} med=${format(crossMessageStored.med)} max=${format(crossMessageStored.max)} p(90)=${format(crossMessageStored.p90)} p(95)=${format(crossMessageStored.p95)}${totalMetrics}`;
199
+ };
200
+ export const getProcessedReport = (entries, table) => {
201
+ const { firstMessageProcessed, lastMessageProcessed, totalTimeToProcess, crossMessageProcessed, perMessageProcessed, totalTimeToStoreAndFinish, perMessageTotal, } = getProcessedStats(entries);
202
+ // metrics related to sent_at are only relevant for inbox, since envelope
203
+ // timestamp is set only after outbox message is processed
204
+ const totalMetrics = table === 'inbox'
205
+ ? `
206
+
207
+ - Stats for time differences between message being sent out and when it finished processing or was abandoned:
208
+ - avg=${format(perMessageTotal.avg)} min=${format(perMessageTotal.min)} med=${format(perMessageTotal.med)} max=${format(perMessageTotal.max)} p(90)=${format(perMessageTotal.p90)} p(95)=${format(perMessageTotal.p95)}`
209
+ : '';
210
+ return `- First message processed: ${format(firstMessageProcessed)}
211
+ - Last message processed: ${format(lastMessageProcessed)}
212
+ - Time to process all messages: ${format(totalTimeToProcess)}
213
+ - Time to store and process or abandon all messages: ${format(totalTimeToStoreAndFinish)}
214
+
215
+ - Stats for time differences between one message finished processing and next message finished processing:
216
+ - avg=${format(crossMessageProcessed.avg)} min=${format(crossMessageProcessed.min)} med=${format(crossMessageProcessed.med)} max=${format(crossMessageProcessed.max)} p(90)=${format(crossMessageProcessed.p90)} p(95)=${format(crossMessageProcessed.p95)}
217
+
218
+ - Stats for time differences between message being stored and when it finished processing:
219
+ - avg=${format(perMessageProcessed.avg)} min=${format(perMessageProcessed.min)} med=${format(perMessageProcessed.med)} max=${format(perMessageProcessed.max)} p(90)=${format(perMessageProcessed.p90)} p(95)=${format(perMessageProcessed.p95)}${totalMetrics}`;
220
+ };
221
+ export const getReportRows = async (table, testId, ownerPool) => {
222
+ const client = await ownerPool.connect();
223
+ try {
224
+ const testIdPath = table === 'inbox'
225
+ ? `metadata->'messageContext'->>'testId'`
226
+ : `metadata->'envelopeOverrides'->'message_context'->>'testId'`;
227
+ const result = await client.query(`SELECT to_json(created_at)#>>'{}' as created_at, to_json(processed_at)#>>'{}' as processed_at, to_json(abandoned_at)#>>'{}' as abandoned_at, metadata->>'envelopeTimestamp' as sent_at, started_attempts FROM app_hidden.${table}
228
+ WHERE ${testIdPath} = $1;`, [testId]);
229
+ return result.rows;
230
+ }
231
+ finally {
232
+ client.release();
233
+ }
234
+ };
235
+ //# sourceMappingURL=report-generation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report-generation.js","sourceRoot":"","sources":["../../../../src/performance/utils/report-generation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAEtD,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAE/C,MAAM,EAAE,GAAG,KAAK,CAAC;AA+CjB,MAAM,QAAQ,GAAG,CAAC,GAAa,EAAE,CAAS,EAAsB,EAAE;IAChE,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC;QAChB,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,MAAM,MAAM,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9C,+CAA+C;IAC/C,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;IAEZ,6DAA6D;IAC7D,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM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AAG,CAAC,UAAU,MAAM,CAC1D,qBAAqB,CAAC,GAAG,CAC1B;;;UAGO,MAAM,CAAC,mBAAmB,CAAC,GAAG,CAAC,QAAQ,MAAM,CACnD,mBAAmB,CAAC,GAAG,CACxB,QAAQ,MAAM,CAAC,mBAAmB,CAAC,GAAG,CAAC,QAAQ,MAAM,CACpD,mBAAmB,CAAC,GAAG,CACxB,UAAU,MAAM,CAAC,mBAAmB,CAAC,GAAG,CAAC,UAAU,MAAM,CACxD,mBAAmB,CAAC,GAAG,CACxB,GAAG,YAAY,EAAE,CAAC;AACrB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAChC,KAAyB,EACzB,MAAc,EACd,SAAe,EACY,EAAE;IAC7B,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,OAAO,EAAE,CAAC;IACzC,IAAI,CAAC;QACH,MAAM,UAAU,GACd,KAAK,KAAK,OAAO;YACf,CAAC,CAAC,uCAAuC;YACzC,CAAC,CAAC,6DAA6D,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAC/B,4NAA4N,KAAK;cACzN,UAAU,QAAQ,EAC1B,CAAC,MAAM,CAAC,CACT,CAAC;QAEF,OAAO,MAAM,CAAC,IAAI,CAAC;IACrB,CAAC;YAAS,CAAC;QACT,MAAM,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;AACH,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axinom/mosaic-testing",
3
- "version": "0.7.15",
3
+ "version": "0.7.16-rc.3",
4
4
  "description": "This library encapsulates testing-related functionality for Mosaic based services.",
5
5
  "author": "Axinom",
6
6
  "license": "PROPRIETARY",
@@ -13,28 +13,38 @@
13
13
  "dist",
14
14
  "src"
15
15
  ],
16
- "main": "dist/index.js",
17
- "types": "dist/index.d.ts",
16
+ "main": "dist/cjs/index.js",
17
+ "module": "dist/esm/index.js",
18
+ "types": "dist/cjs/index.d.ts",
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/cjs/index.d.ts",
22
+ "import": "./dist/esm/index.js",
23
+ "require": "./dist/cjs/index.js"
24
+ },
25
+ "./package.json": "./package.json"
26
+ },
18
27
  "scripts": {
19
28
  "clean": "rimraf dist",
20
- "build": "yarn clean && tsc --project tsconfig.build.json",
21
- "ts:validate": "tsc",
29
+ "build": "yarn clean && tsc --project tsconfig.build.json && tsc --project tsconfig.build.esm.json && node ../../scripts/write-esm-markers.js",
30
+ "ts:validate": "tsc && yarn build && yarn check:esm-interop",
22
31
  "build:ci": "yarn workspaces focus && yarn build",
23
32
  "dev": "tsc -w --project tsconfig.build.json",
24
33
  "test": "vitest run --silent",
25
34
  "test:watch": "vitest watch",
26
35
  "test:cov": "vitest run --coverage --silent && yarn posttest:cov",
27
36
  "posttest:cov": "ts-node ../../scripts/open-test-coverage.ts -- libs/testing",
37
+ "check:esm-interop": "node ./scripts/check-esm-interop.mjs",
28
38
  "test:debug": "vitest run --inspect-brk --no-file-parallelism",
29
39
  "test:ci": "vitest run --reporter=default --reporter=junit --coverage --coverage.reporter=cobertura --coverage.reporter=html",
30
40
  "test:ui": "vitest --ui",
31
41
  "lint": "eslint . --ext .ts,.tsx,.js --color --cache"
32
42
  },
33
43
  "dependencies": {
34
- "@axinom/mosaic-id-link-be": "^0.39.0",
35
- "@axinom/mosaic-message-bus": "^0.50.0",
36
- "@axinom/mosaic-message-bus-abstractions": "^0.24.3",
37
- "@axinom/mosaic-service-common": "^0.69.0",
44
+ "@axinom/mosaic-id-link-be": "^0.40.0-rc.3",
45
+ "@axinom/mosaic-message-bus": "^0.51.0-rc.3",
46
+ "@axinom/mosaic-message-bus-abstractions": "^0.24.4-rc.3",
47
+ "@axinom/mosaic-service-common": "^0.70.0-rc.3",
38
48
  "axios": "^1.8.3",
39
49
  "graphile-build": "^4.13.0",
40
50
  "graphile-build-pg": "^4.13.0",
@@ -44,7 +54,7 @@
44
54
  "pg": "^8.11.3"
45
55
  },
46
56
  "devDependencies": {
47
- "@axinom/mosaic-dev-be-common": "^0.18.0",
57
+ "@axinom/mosaic-dev-be-common": "^0.19.0-rc.3",
48
58
  "@types/node": "^22.0.0",
49
59
  "@types/pg": "^8.6.1",
50
60
  "@vitest/ui": "^4.0.18",
@@ -58,5 +68,5 @@
58
68
  "publishConfig": {
59
69
  "access": "public"
60
70
  },
61
- "gitHead": "75dcfd9bf92de1ef72a28f073e43a7dfaa7b430b"
71
+ "gitHead": "9c7831acd6fcced9a09f97ffd4c9d67ee1b3b640"
62
72
  }
package/src/index.ts CHANGED
@@ -1 +1 @@
1
- export * from './performance';
1
+ export * from './performance/index.js';
@@ -1,2 +1,2 @@
1
- export * from './plugins';
2
- export * from './scripts';
1
+ export * from './plugins/index.js';
2
+ export * from './scripts/index.js';
@@ -1,8 +1,11 @@
1
1
  import { removeAnsiColorEscapeCodes } from '@axinom/mosaic-service-common';
2
- import { GraphQLResolveInfo } from 'graphql';
2
+ import type { GraphQLResolveInfo } from 'graphql';
3
3
  import { afterEach, beforeAll, describe, expect, it } from 'vitest';
4
- import { getGraphQLResolveInfoStub, getPoolStub } from '../../tests/utils';
5
- import { getInboxOutboxReportFunction } from './inbox-outbox-report-endpoint-plugin';
4
+ import {
5
+ getGraphQLResolveInfoStub,
6
+ getPoolStub,
7
+ } from '../../tests/utils/index.js';
8
+ import { getInboxOutboxReportFunction } from './inbox-outbox-report-endpoint-plugin.js';
6
9
 
7
10
  const row = ({
8
11
  start_from = undefined,
@@ -1,12 +1,12 @@
1
1
  import { gql, makeExtendSchemaPlugin } from 'graphile-utils';
2
- import { FieldNode, GraphQLResolveInfo } from 'graphql';
3
- import { Pool } from 'pg';
2
+ import type { FieldNode, GraphQLResolveInfo } from 'graphql';
3
+ import type { Pool } from 'pg';
4
4
  import {
5
5
  getGeneralReport,
6
6
  getProcessedReport,
7
7
  getReportRows,
8
8
  getStoredReport,
9
- } from '../utils';
9
+ } from '../utils/index.js';
10
10
 
11
11
  const inboxReport = 'inboxReport';
12
12
  const outboxReport = 'outboxReport';
@@ -1,7 +1,10 @@
1
- import { GraphQLResolveInfo } from 'graphql';
1
+ import type { GraphQLResolveInfo } from 'graphql';
2
2
  import { afterEach, beforeAll, describe, expect, it } from 'vitest';
3
- import { getGraphQLResolveInfoStub, getPoolStub } from '../../tests/utils';
4
- import { getInboxOutboxStateFunction } from './inbox-outbox-state-endpoint-plugin';
3
+ import {
4
+ getGraphQLResolveInfoStub,
5
+ getPoolStub,
6
+ } from '../../tests/utils/index.js';
7
+ import { getInboxOutboxStateFunction } from './inbox-outbox-state-endpoint-plugin.js';
5
8
 
6
9
  describe('InboxOutboxStateEndpointPlugin', () => {
7
10
  let getInboxCount = () => 0;
@@ -1,6 +1,6 @@
1
1
  import { gql, makeExtendSchemaPlugin } from 'graphile-utils';
2
- import { FieldNode, GraphQLResolveInfo } from 'graphql';
3
- import { Pool } from 'pg';
2
+ import type { FieldNode, GraphQLResolveInfo } from 'graphql';
3
+ import type { Pool } from 'pg';
4
4
 
5
5
  const inboxActiveCount = 'inboxActiveCount';
6
6
  const outboxActiveCount = 'outboxActiveCount';
@@ -1,2 +1,2 @@
1
- export { InboxOutboxReportEndpointPlugin } from './inbox-outbox-report-endpoint-plugin';
2
- export { InboxOutboxStateEndpointPlugin } from './inbox-outbox-state-endpoint-plugin';
1
+ export { InboxOutboxReportEndpointPlugin } from './inbox-outbox-report-endpoint-plugin.js';
2
+ export { InboxOutboxStateEndpointPlugin } from './inbox-outbox-state-endpoint-plugin.js';
@@ -1,3 +1,3 @@
1
- export * from './make-graphql-request';
2
- export * from './run-inbox-outbox-scenario';
3
- export * from './run-scenario';
1
+ export * from './make-graphql-request.js';
2
+ export * from './run-inbox-outbox-scenario.js';
3
+ export * from './run-scenario.js';
@@ -1,6 +1,7 @@
1
- import axios, { AxiosResponse } from 'axios';
2
- import { DocumentNode } from 'graphql';
3
- import { print } from 'graphql/language/printer';
1
+ import type { AxiosResponse } from 'axios';
2
+ import axios from 'axios';
3
+ import type { DocumentNode } from 'graphql';
4
+ import { print } from 'graphql/language/printer.js';
4
5
 
5
6
  /**
6
7
  * Config to make a GraphQL request using `makeGraphQLRequest`
@@ -5,20 +5,20 @@ import {
5
5
  RascalConfigBuilder,
6
6
  setupMessagingBroker,
7
7
  } from '@axinom/mosaic-message-bus';
8
- import { MessagingSettings } from '@axinom/mosaic-message-bus-abstractions';
8
+ import { type MessagingSettings } from '@axinom/mosaic-message-bus-abstractions';
9
9
  import {
10
- BasicConfig,
11
- BasicCustomizableConfig,
12
- BasicManagedServiceConfig,
13
- BasicRMQConfig,
10
+ type BasicConfig,
11
+ type BasicCustomizableConfig,
12
+ type BasicManagedServiceConfig,
13
+ type BasicRMQConfig,
14
14
  Logger,
15
- ShutdownAction,
15
+ type ShutdownAction,
16
16
  ShutdownActionsMiddleware,
17
17
  } from '@axinom/mosaic-service-common';
18
18
  import gql from 'graphql-tag';
19
19
  import { randomUUID } from 'node:crypto';
20
- import { makeGraphQLRequest } from './make-graphql-request';
21
- import { RunnerConfig, runScenario } from './run-scenario';
20
+ import { makeGraphQLRequest } from './make-graphql-request.js';
21
+ import { type RunnerConfig, runScenario } from './run-scenario.js';
22
22
 
23
23
  /**
24
24
  * Configuration with all messaging-related environment variable values,
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable no-console */
2
2
  import { sleep } from '@axinom/mosaic-service-common';
3
- import { blue } from '../utils';
3
+ import { blue } from '../utils/index.js';
4
4
 
5
5
  /**
6
6
  * Configuration to fine-tune how scenario is executed.
@@ -1,2 +1,2 @@
1
- export * from './colorize-text';
2
- export * from './report-generation';
1
+ export * from './colorize-text.js';
2
+ export * from './report-generation.js';
@@ -1,6 +1,6 @@
1
1
  import { group } from '@axinom/mosaic-service-common';
2
- import { Pool } from 'pg';
3
- import { blue, red } from './colorize-text';
2
+ import type { Pool } from 'pg';
3
+ import { blue, red } from './colorize-text.js';
4
4
 
5
5
  const NA = 'N/A';
6
6
 
@@ -1 +1 @@
1
- export * from './stub-helpers';
1
+ export * from './stub-helpers.js';
@@ -1,6 +1,6 @@
1
1
  import { stub } from '@axinom/mosaic-dev-be-common/vitest';
2
- import { GraphQLResolveInfo, SelectionSetNode } from 'graphql';
3
- import { Pool } from 'pg';
2
+ import type { GraphQLResolveInfo, SelectionSetNode } from 'graphql';
3
+ import type { Pool } from 'pg';
4
4
 
5
5
  /**
6
6
  * A stub for a `GraphQLResolveInfo` to return minimal info for specific
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './performance';
2
- //# sourceMappingURL=index.d.ts.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
@@ -1,3 +0,0 @@
1
- export * from './plugins';
2
- export * from './scripts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/performance/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/performance/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,4CAA0B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"inbox-outbox-report-endpoint-plugin.d.ts","sourceRoot":"","sources":["../../../src/performance/plugins/inbox-outbox-report-endpoint-plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,kBAAkB,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AA2B1B;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,GAAI,WAAW,IAAI,MAExD,QAAQ,OAAO,EACf,uBAAuB;IAAE,KAAK,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,EACpD,UAAU,OAAO,EACjB,gBAAgB,kBAAkB,KACjC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAmBnC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,+BAA+B,iCAsB3C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"inbox-outbox-report-endpoint-plugin.js","sourceRoot":"","sources":["../../../src/performance/plugins/inbox-outbox-report-endpoint-plugin.ts"],"names":[],"mappings":";;;AAAA,mDAA6D;AAG7D,oCAKkB;AAElB,MAAM,WAAW,GAAG,aAAa,CAAC;AAClC,MAAM,YAAY,GAAG,cAAc,CAAC;AACpC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AAE9C,MAAM,SAAS,GAAG,KAAK,EACrB,KAAyB,EACzB,MAAc,EACd,SAAe,EACE,EAAE;IACnB,MAAM,OAAO,GAAG,MAAM,IAAA,qBAAa,EAAC,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;IAC9D,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,MAAM,KAAK,iBAAiB,CAAC;IACtC,CAAC;IACD,MAAM,aAAa,GAAG,IAAA,wBAAgB,EAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IACxD,MAAM,YAAY,GAAG,IAAA,uBAAe,EAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACrD,MAAM,eAAe,GAAG,IAAA,0BAAkB,EAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC3D,OAAO,GAAG,aAAa,OAAO,YAAY,OAAO,eAAe,EAAE,CAAC;AACrE,CAAC,CAAC;AAEF;;;;GAIG;AACI,MAAM,4BAA4B,GAAG,CAAC,SAAe,EAAE,EAAE;IAC9D,OAAO,KAAK,EACV,MAAe,EACf,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAiC,EACpD,QAAiB,EACjB,EAAE,UAAU,EAAsB,EACA,EAAE;;QACpC,MAAM,kBAAkB,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plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,kBAAkB,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAmC1B;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,GAAI,WAAW,IAAI,MAEvD,QAAQ,OAAO,EACf,uBAAuB;IAAE,KAAK,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,EACpD,UAAU,OAAO,EACjB,gBAAgB,kBAAkB,KACjC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAmBnC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,iCAsB1C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"inbox-outbox-state-endpoint-plugin.js","sourceRoot":"","sources":["../../../src/performance/plugins/inbox-outbox-state-endpoint-plugin.ts"],"names":[],"mappings":";;;AAAA,mDAA6D;AAI7D,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;AAC5C,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AAC9C,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;AAE5C;;;GAGG;AACH,MAAM,YAAY,GAAG,KAAK,EACxB,KAAyB,EACzB,MAAc,EACd,SAAe,EACE,EAAE;IACnB,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,OAAO,EAAE,CAAC;IACzC,IAAI,CAAC;QACH,MAAM,UAAU,GACd,KAAK,KAAK,OAAO;YACf,CAAC,CAAC,uCAAuC;YACzC,CAAC,CAAC,6DAA6D,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAC/B,oCAAoC,KAAK;cACjC,UAAU;;4BAEI,EACtB,CAAC,MAAM,CAAC,CACT,CAAC;QAEF,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC9B,CAAC;YAAS,CAAC;QACT,MAAM,CAAC,OAAO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gB;;KAErB;QACC,SAAS,EAAE;YACT,KAAK,EAAE;gBACL,CAAC,gBAAgB,CAAC,EAAE,IAAA,mCAA2B,EAAC,SAAS,CAAC;aAC3D;SACF;KACF,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/performance/plugins/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/performance/plugins/index.ts"],"names":[],"mappings":";;;AAAA,6FAAwF;AAA/E,sJAAA,+BAA+B,OAAA;AACxC,2FAAsF;AAA7E,oJAAA,8BAA8B,OAAA"}
@@ -1,4 +0,0 @@
1
- export * from './make-graphql-request';
2
- export * from './run-inbox-outbox-scenario';
3
- export * from './run-scenario';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/performance/scripts/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gBAAgB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/performance/scripts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,8DAA4C;AAC5C,iDAA+B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"make-graphql-request.d.ts","sourceRoot":"","sources":["../../../src/performance/scripts/make-graphql-request.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,EAAE,YAAY,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAU,2CAMzC,yBAAyB,KAAG,OAAO,CAAC,aAAa,CAAC,GAAG,EAAE,GAAG,CAAC,CAa1D,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"make-graphql-request.js","sourceRoot":"","sources":["../../../src/performance/scripts/make-graphql-request.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA6C;AAE7C,sDAAiD;AAyBjD;;GAEG;AACI,MAAM,kBAAkB,GAAG,KAAK,EAAE,EACvC,OAAO,EACP,SAAS,EACT,SAAS,EACT,KAAK,GAEkB,EAAoC,EAAE;IAC7D,OAAO,eAAK,CAAC,IAAI,CACf,IAAI,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,EAChC;QACE,KAAK,EAAE,IAAA,eAAK,EAAC,SAAS,CAAC;QACvB,SAAS;KACV,EACD;QACE,OAAO,EAAE;YACP,aAAa,EAAE,UAAU,KAAK,EAAE;SACjC;KACF,CACF,CAAC;AACJ,CAAC,CAAC;AAnBW,QAAA,kBAAkB,sBAmB7B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"run-inbox-outbox-scenario.d.ts","sourceRoot":"","sources":["../../../src/performance/scripts/run-inbox-outbox-scenario.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EAGP,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EACL,WAAW,EACX,uBAAuB,EACvB,yBAAyB,EACzB,cAAc,EAEd,cAAc,EAEf,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EAAE,YAAY,EAAe,MAAM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