[FSSDK-10642] Refactor batch event processor #872
Triggered via pull request
November 20, 2024 16:47
Status
Failure
Total duration
6h 0m 28s
Artifacts
–
javascript.yml
on: pull_request
Matrix: unit_tests
lint_markdown_files
/
lint
52s
lint
55s
integration_tests
/
test
8s
fullstack_production_suite
/
test
7s
crossbrowser_and_umd_unit_tests
6h 0m
Coveralls coverage
0s
Annotations
29 errors and 15 warnings
lint:
lib/event_processor/event_processor_factory.react_native.ts#L34
Require statement not part of import statement
|
lint
Process completed with exit code 1.
|
unit_tests (22)
Process completed with exit code 1.
|
unit_tests (20)
The job was canceled because "_22" failed.
|
lib/event_processor/event_processor_factory.browser.spec.ts > createBatchEventProcessor > uses localStorageCache and SyncPrefixCache to create eventStore:
lib/event_processor/event_processor_factory.browser.ts#L41
Error: [vitest] No "EVENT_STORE_PREFIX" export is defined on the "./event_processor_factory" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("./event_processor_factory", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.createBatchEventProcessor lib/event_processor/event_processor_factory.browser.ts:41:24
❯ lib/event_processor/event_processor_factory.browser.spec.ts:101:23
|
lib/event_processor/event_processor_factory.browser.spec.ts > createBatchEventProcessor > uses the provided eventDispatcher:
lib/event_processor/event_processor_factory.browser.ts#L41
Error: [vitest] No "EVENT_STORE_PREFIX" export is defined on the "./event_processor_factory" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("./event_processor_factory", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.createBatchEventProcessor lib/event_processor/event_processor_factory.browser.ts:41:24
❯ lib/event_processor/event_processor_factory.browser.spec.ts:120:23
|
lib/event_processor/event_processor_factory.browser.spec.ts > createBatchEventProcessor > uses the default broser event dispatcher if none is provided:
lib/event_processor/event_processor_factory.browser.ts#L41
Error: [vitest] No "EVENT_STORE_PREFIX" export is defined on the "./event_processor_factory" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("./event_processor_factory", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.createBatchEventProcessor lib/event_processor/event_processor_factory.browser.ts:41:24
❯ lib/event_processor/event_processor_factory.browser.spec.ts:126:23
|
lib/event_processor/event_processor_factory.browser.spec.ts > createBatchEventProcessor > uses the provided closingEventDispatcher:
lib/event_processor/event_processor_factory.browser.ts#L41
Error: [vitest] No "EVENT_STORE_PREFIX" export is defined on the "./event_processor_factory" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("./event_processor_factory", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.createBatchEventProcessor lib/event_processor/event_processor_factory.browser.ts:41:24
❯ lib/event_processor/event_processor_factory.browser.spec.ts:136:23
|
lib/event_processor/event_processor_factory.browser.spec.ts > createBatchEventProcessor > does not use any closingEventDispatcher if eventDispatcher is provided but closingEventDispatcher is not:
lib/event_processor/event_processor_factory.browser.ts#L41
Error: [vitest] No "EVENT_STORE_PREFIX" export is defined on the "./event_processor_factory" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("./event_processor_factory", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.createBatchEventProcessor lib/event_processor/event_processor_factory.browser.ts:41:24
❯ lib/event_processor/event_processor_factory.browser.spec.ts:146:23
|
lib/event_processor/event_processor_factory.browser.spec.ts > createBatchEventProcessor > uses the default sendBeacon event dispatcher if neither eventDispatcher nor closingEventDispatcher is provided:
lib/event_processor/event_processor_factory.browser.ts#L41
Error: [vitest] No "EVENT_STORE_PREFIX" export is defined on the "./event_processor_factory" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("./event_processor_factory", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.createBatchEventProcessor lib/event_processor/event_processor_factory.browser.ts:41:24
❯ lib/event_processor/event_processor_factory.browser.spec.ts:152:23
|
lib/event_processor/event_processor_factory.browser.spec.ts > createBatchEventProcessor > uses the provided flushInterval:
lib/event_processor/event_processor_factory.browser.ts#L41
Error: [vitest] No "EVENT_STORE_PREFIX" export is defined on the "./event_processor_factory" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("./event_processor_factory", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.createBatchEventProcessor lib/event_processor/event_processor_factory.browser.ts:41:24
❯ lib/event_processor/event_processor_factory.browser.spec.ts:158:24
|
lib/event_processor/event_processor_factory.browser.spec.ts > createBatchEventProcessor > uses the provided batchSize:
lib/event_processor/event_processor_factory.browser.ts#L41
Error: [vitest] No "EVENT_STORE_PREFIX" export is defined on the "./event_processor_factory" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("./event_processor_factory", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.createBatchEventProcessor lib/event_processor/event_processor_factory.browser.ts:41:24
❯ lib/event_processor/event_processor_factory.browser.spec.ts:168:24
|
lib/event_processor/event_processor_factory.browser.spec.ts > createBatchEventProcessor > uses maxRetries value of 5:
lib/event_processor/event_processor_factory.browser.ts#L41
Error: [vitest] No "EVENT_STORE_PREFIX" export is defined on the "./event_processor_factory" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("./event_processor_factory", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.createBatchEventProcessor lib/event_processor/event_processor_factory.browser.ts:41:24
❯ lib/event_processor/event_processor_factory.browser.spec.ts:178:23
|
lib/event_processor/event_processor_factory.browser.spec.ts > createBatchEventProcessor > uses the default failedEventRetryInterval:
lib/event_processor/event_processor_factory.browser.ts#L41
Error: [vitest] No "EVENT_STORE_PREFIX" export is defined on the "./event_processor_factory" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("./event_processor_factory", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.createBatchEventProcessor lib/event_processor/event_processor_factory.browser.ts:41:24
❯ lib/event_processor/event_processor_factory.browser.spec.ts:184:23
|
unit_tests (18)
The job was canceled because "_22" failed.
|
lib/event_processor/event_processor_factory.browser.spec.ts > createBatchEventProcessor > uses localStorageCache and SyncPrefixCache to create eventStore:
lib/event_processor/event_processor_factory.browser.ts#L41
Error: [vitest] No "EVENT_STORE_PREFIX" export is defined on the "./event_processor_factory" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("./event_processor_factory", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.createBatchEventProcessor lib/event_processor/event_processor_factory.browser.ts:41:24
❯ lib/event_processor/event_processor_factory.browser.spec.ts:101:23
|
lib/event_processor/event_processor_factory.browser.spec.ts > createBatchEventProcessor > uses the provided eventDispatcher:
lib/event_processor/event_processor_factory.browser.ts#L41
Error: [vitest] No "EVENT_STORE_PREFIX" export is defined on the "./event_processor_factory" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("./event_processor_factory", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.createBatchEventProcessor lib/event_processor/event_processor_factory.browser.ts:41:24
❯ lib/event_processor/event_processor_factory.browser.spec.ts:120:23
|
lib/event_processor/event_processor_factory.browser.spec.ts > createBatchEventProcessor > uses the default broser event dispatcher if none is provided:
lib/event_processor/event_processor_factory.browser.ts#L41
Error: [vitest] No "EVENT_STORE_PREFIX" export is defined on the "./event_processor_factory" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("./event_processor_factory", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.createBatchEventProcessor lib/event_processor/event_processor_factory.browser.ts:41:24
❯ lib/event_processor/event_processor_factory.browser.spec.ts:126:23
|
lib/event_processor/event_processor_factory.browser.spec.ts > createBatchEventProcessor > uses the provided closingEventDispatcher:
lib/event_processor/event_processor_factory.browser.ts#L41
Error: [vitest] No "EVENT_STORE_PREFIX" export is defined on the "./event_processor_factory" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("./event_processor_factory", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.createBatchEventProcessor lib/event_processor/event_processor_factory.browser.ts:41:24
❯ lib/event_processor/event_processor_factory.browser.spec.ts:136:23
|
lib/event_processor/event_processor_factory.browser.spec.ts > createBatchEventProcessor > does not use any closingEventDispatcher if eventDispatcher is provided but closingEventDispatcher is not:
lib/event_processor/event_processor_factory.browser.ts#L41
Error: [vitest] No "EVENT_STORE_PREFIX" export is defined on the "./event_processor_factory" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("./event_processor_factory", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.createBatchEventProcessor lib/event_processor/event_processor_factory.browser.ts:41:24
❯ lib/event_processor/event_processor_factory.browser.spec.ts:146:23
|
lib/event_processor/event_processor_factory.browser.spec.ts > createBatchEventProcessor > uses the default sendBeacon event dispatcher if neither eventDispatcher nor closingEventDispatcher is provided:
lib/event_processor/event_processor_factory.browser.ts#L41
Error: [vitest] No "EVENT_STORE_PREFIX" export is defined on the "./event_processor_factory" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("./event_processor_factory", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.createBatchEventProcessor lib/event_processor/event_processor_factory.browser.ts:41:24
❯ lib/event_processor/event_processor_factory.browser.spec.ts:152:23
|
lib/event_processor/event_processor_factory.browser.spec.ts > createBatchEventProcessor > uses the provided flushInterval:
lib/event_processor/event_processor_factory.browser.ts#L41
Error: [vitest] No "EVENT_STORE_PREFIX" export is defined on the "./event_processor_factory" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("./event_processor_factory", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.createBatchEventProcessor lib/event_processor/event_processor_factory.browser.ts:41:24
❯ lib/event_processor/event_processor_factory.browser.spec.ts:158:24
|
lib/event_processor/event_processor_factory.browser.spec.ts > createBatchEventProcessor > uses the provided batchSize:
lib/event_processor/event_processor_factory.browser.ts#L41
Error: [vitest] No "EVENT_STORE_PREFIX" export is defined on the "./event_processor_factory" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("./event_processor_factory", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.createBatchEventProcessor lib/event_processor/event_processor_factory.browser.ts:41:24
❯ lib/event_processor/event_processor_factory.browser.spec.ts:168:24
|
lib/event_processor/event_processor_factory.browser.spec.ts > createBatchEventProcessor > uses maxRetries value of 5:
lib/event_processor/event_processor_factory.browser.ts#L41
Error: [vitest] No "EVENT_STORE_PREFIX" export is defined on the "./event_processor_factory" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("./event_processor_factory", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.createBatchEventProcessor lib/event_processor/event_processor_factory.browser.ts:41:24
❯ lib/event_processor/event_processor_factory.browser.spec.ts:178:23
|
lib/event_processor/event_processor_factory.browser.spec.ts > createBatchEventProcessor > uses the default failedEventRetryInterval:
lib/event_processor/event_processor_factory.browser.ts#L41
Error: [vitest] No "EVENT_STORE_PREFIX" export is defined on the "./event_processor_factory" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("./event_processor_factory", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.createBatchEventProcessor lib/event_processor/event_processor_factory.browser.ts:41:24
❯ lib/event_processor/event_processor_factory.browser.spec.ts:184:23
|
unit_tests (16)
The job was canceled because "_22" failed.
|
unit_tests (16)
The operation was canceled.
|
crossbrowser_and_umd_unit_tests
The job running on runner GitHub Actions 147 has exceeded the maximum execution time of 360 minutes.
|
crossbrowser_and_umd_unit_tests
The operation was canceled.
|
integration_tests / test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
fullstack_production_suite / test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint_markdown_files / lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint:
lib/core/audience_evaluator/index.ts#L112
Unexpected any. Specify a different type
|
lint:
lib/core/bucketer/index.ts#L237
Unexpected any. Specify a different type
|
lint:
lib/core/custom_attribute_condition_evaluator/index.ts#L244
Forbidden non-null assertion
|
lint:
lib/core/custom_attribute_condition_evaluator/index.ts#L265
Forbidden non-null assertion
|
lint:
lib/core/custom_attribute_condition_evaluator/index.ts#L286
Forbidden non-null assertion
|
lint:
lib/core/custom_attribute_condition_evaluator/index.ts#L307
Forbidden non-null assertion
|
lint:
lib/core/decision_service/index.ts#L487
Unexpected any. Specify a different type
|
lint:
lib/core/decision_service/index.ts#L535
Unexpected any. Specify a different type
|
lint:
lib/core/decision_service/index.ts#L975
Unexpected any. Specify a different type
|
lint:
lib/core/decision_service/index.ts#L1068
Unexpected any. Specify a different type
|
unit_tests (22)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|