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

Avoid highlighting diffs in pathological logs. #9066

Merged
merged 1 commit into from
Aug 16, 2018

Conversation

Katharine
Copy link
Member

@Katharine Katharine commented Aug 15, 2018

Extremely long logs with many, many mismatches are going to result in the creation of a ridiculous number of DOM nodes. Browsers generally do not respond well to hundreds of thousands of DOM nodes suddenly appearing, and so hang for a while:

hanging on style recalculation

Limit the number of mismatch spans to 1,000 (several times the observed number on any reasonable test case) before we just show the unhighlighted log.

Fixes #9025, which you can reproduce by viewing this specific failure (warning: clicking this link will hang your browser)

/area triage
/assign @BenTheElder

Extremely long logs with many, many mismatches are going to result
in the creation of a ridiculous number of DOM nodes. Browsers generally
do not respond well to hundreds of thousands of DOM nodes suddenly
appearing, and so hang.

Limit the number of mismatch spans to 1,000 (several times the observed
number on any reasonable test case) before we just show the
unhighlighted log.
@k8s-ci-robot k8s-ci-robot added area/triage cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Aug 15, 2018
@BenTheElder
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Aug 16, 2018
Copy link
Member

@BenTheElder BenTheElder left a comment

Choose a reason for hiding this comment

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

/lgtm
thank you! 😄

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: BenTheElder, Katharine

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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 16, 2018
@k8s-ci-robot k8s-ci-robot merged commit ea66d20 into kubernetes:master Aug 16, 2018
@BenTheElder
Copy link
Member

Deployed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/triage cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants