Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Warnings #62

Merged
merged 25 commits into from Nov 15, 2021
Merged

Warnings #62

merged 25 commits into from Nov 15, 2021

Conversation

AlexanderMoiseev
Copy link
Contributor

@AlexanderMoiseev AlexanderMoiseev commented Sep 9, 2021

'reportWarnings' method support DevExpress/testcafe#6531

Sone notes:

  • testRunIdToTestIdMap used to map testRunId to TestId since new reportWarnings method does not provide testId in its args
  • although second warnings upload ( in reportTaskDone ) waits for all uploads to complete, the upload itself on aws side may be finished after we send reportTaskDone event to dashboard, resulting in the dashboard UI not updating reactively, we may need to attend to this problem later
  • for some warnings 'reportWarning' method called several times by testcafe, i've contacted Andrey Belym regarding this matter Fix multiple "Using t.debug in headless mode" warnings emitted via reportWarnings testcafe#6605

@AlexanderMoiseev AlexanderMoiseev removed the request for review from aleks-pro November 3, 2021 13:20
)
);

export type ReportWarningsArgs = t.TypeOf<typeof ReportWarningsSchema>;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export type ReportWarningsArgs = t.TypeOf<typeof ReportWarningsSchema>;
export type ReportWarningArgs = t.TypeOf<typeof ReportWarningsSchema>;

@@ -1,6 +1,7 @@
import { AggregateCommandType, AggregateNames } from './types/internal/';
import { TaskStartArgs, TestStartArgs, TestDoneArgs, TaskDoneArgs } from './types/';
import { TaskStartArgs, TestStartArgs, TaskDoneArgs, TestDoneArgs } from './types/';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import { TaskStartArgs, TestStartArgs, TaskDoneArgs, TestDoneArgs } from './types/';
import { TaskStartArgs, TestStartArgs, TaskDoneArgs, TestDoneArgs, ReportWarningsArgs } from './types';

import Transport from './transport';
import { ReportWarningsArgs } from './types/report-warnings-args';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import { ReportWarningsArgs } from './types/report-warnings-args';

src/texts.ts Outdated
@@ -18,6 +18,9 @@ export const createFileUploadError = (uploadId: string, filePath: string): strin
export const createTestUploadError = (uploadId: string, testName: string): string =>
`Failed to upload a test log. Upload ID: ${uploadId}, test name: ${testName}.`;

export const createWarningUploadError = (uploadId: string, uploadEntityId: string): string =>
`Failed to upload warnings. Upload ID: ${uploadId}, upload entity id: ${uploadEntityId}.`;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did @titerman check this text?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`Failed to upload warnings. Upload ID: ${uploadId}, upload entity id: ${uploadEntityId}.`;
`Failed to upload warning data. Upload ID: ${uploadId}, upload entity id: ${uploadEntityId}.`;

@@ -2,5 +2,6 @@ export * from './task-start-args';
export * from './test-done-args';
export * from './test-start-args';
export * from './task-done-args';
export * from './report-warnings-args';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export * from './report-warnings-args';
export * from './report-warning-args';

@aleks-pro aleks-pro merged commit d8a9e9f into DevExpress:master Nov 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants