Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure jest to hide noisy message about no coverage data on .d.ts files #2672

Merged
merged 1 commit into from
Nov 28, 2019

Conversation

Bobgy
Copy link
Contributor

@Bobgy Bobgy commented Nov 28, 2019

/area frontend
/kind bug

Fixes error messages like the following when running npm run test:coverage during presubmit tests

Failed to collect coverage from /home/prow/go/src/github.com/kubeflow/pipelines/frontend/src/generated/src/apis/metadata/metadata_store_service_pb_service.d.ts
ERROR: Debug Failure. Output generation failed
STACK: Error: Debug Failure. Output generation failed
    at Object.transpileModule (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/typescript/lib/typescript.js:112350:29)
    at Object.process (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/ts-jest/dist/preprocessor.js:20:28)
    at ScriptTransformer.transformSource (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/jest-runtime/build/script_transformer.js:247:35)
    at exports.default (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/jest/node_modules/jest-cli/build/generate_empty_coverage.js:16:105)
    at Object.worker (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/jest/node_modules/jest-cli/build/reporters/coverage_worker.js:48:84)
    at execMethod (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/jest-worker/build/child.js:83:29)
    at process.<anonymous> (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/jest-worker/build/child.js:40:7)
    at process.emit (events.js:210:5)
    at emit (internal/child_process.js:876:12)
    at processTicksAndRejections (internal/process/task_queues.js:81:21)
Failed to collect coverage from /home/prow/go/src/github.com/kubeflow/pipelines/frontend/src/assets.d.ts
ERROR: Debug Failure. Output generation failed
STACK: Error: Debug Failure. Output generation failed
    at Object.transpileModule (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/typescript/lib/typescript.js:112350:29)
    at Object.process (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/ts-jest/dist/preprocessor.js:20:28)
    at ScriptTransformer.transformSource (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/jest-runtime/build/script_transformer.js:247:35)
    at exports.default (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/jest/node_modules/jest-cli/build/generate_empty_coverage.js:16:105)
    at Object.worker (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/jest/node_modules/jest-cli/build/reporters/coverage_worker.js:48:84)
    at execMethod (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/jest-worker/build/child.js:83:29)
    at process.<anonymous> (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/jest-worker/build/child.js:40:7)
    at process.emit (events.js:210:5)
    at emit (internal/child_process.js:876:12)
    at processTicksAndRejections (internal/process/task_queues.js:81:21)
Failed to collect coverage from /home/prow/go/src/github.com/kubeflow/pipelines/frontend/src/generated/src/apis/metadata/metadata_store_pb_service.d.ts
ERROR: Debug Failure. Output generation failed
STACK: Error: Debug Failure. Output generation failed
    at Object.transpileModule (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/typescript/lib/typescript.js:112350:29)
    at Object.process (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/ts-jest/dist/preprocessor.js:20:28)
    at ScriptTransformer.transformSource (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/jest-runtime/build/script_transformer.js:247:35)
    at exports.default (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/jest/node_modules/jest-cli/build/generate_empty_coverage.js:16:105)
    at Object.worker (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/jest/node_modules/jest-cli/build/reporters/coverage_worker.js:48:84)
    at execMethod (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/jest-worker/build/child.js:83:29)
    at process.<anonymous> (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/jest-worker/build/child.js:40:7)
    at process.emit (events.js:210:5)
    at emit (internal/child_process.js:876:12)
    at processTicksAndRejections (internal/process/task_queues.js:81:21)
Failed to collect coverage from /home/prow/go/src/github.com/kubeflow/pipelines/frontend/src/generated/src/apis/metadata/metadata_store_pb.d.ts
ERROR: Debug Failure. Output generation failed
STACK: Error: Debug Failure. Output generation failed
    at Object.transpileModule (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/typescript/lib/typescript.js:112350:29)
    at Object.process (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/ts-jest/dist/preprocessor.js:20:28)
    at ScriptTransformer.transformSource (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/jest-runtime/build/script_transformer.js:247:35)
    at exports.default (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/jest/node_modules/jest-cli/build/generate_empty_coverage.js:16:105)
    at Object.worker (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/jest/node_modules/jest-cli/build/reporters/coverage_worker.js:48:84)
    at execMethod (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/jest-worker/build/child.js:83:29)
    at process.<anonymous> (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/jest-worker/build/child.js:40:7)
    at process.emit (events.js:210:5)
    at emit (internal/child_process.js:876:12)
    at processTicksAndRejections (internal/process/task_queues.js:81:21)
Failed to collect coverage from /home/prow/go/src/github.com/kubeflow/pipelines/frontend/src/generated/src/apis/metadata/metadata_store_service_pb.d.ts
ERROR: Debug Failure. Output generation failed
STACK: Error: Debug Failure. Output generation failed
    at Object.transpileModule (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/typescript/lib/typescript.js:112350:29)
    at Object.process (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/ts-jest/dist/preprocessor.js:20:28)
    at ScriptTransformer.transformSource (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/jest-runtime/build/script_transformer.js:247:35)
    at exports.default (/home/prow/go/src/github.com/kubeflow/pipelines/frontend/node_modules/jest/node_modules/jest-cli/build/generate_empty_coverage.js:16:105)

This change is Reviewable

@Bobgy
Copy link
Contributor Author

Bobgy commented Nov 28, 2019

/approve

@Bobgy
Copy link
Contributor Author

Bobgy commented Nov 28, 2019

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Bobgy

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 3a8b5c3 into kubeflow:master Nov 28, 2019
@Bobgy Bobgy deleted the fe_fix_noisy_error_msg branch November 28, 2019 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants