Skip to content

[4.2][test] AnyHashable: Shorten class hierarchy tests #17769

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

Merged

Conversation

lorentey
Copy link
Member

@lorentey lorentey commented Jul 5, 2018

(Cherry-picked from #17676)

Explanation: Speeds up a particular test in the stdlib validation suite, which was by far the longest-running test in debug builds.
Scope: Limited to the test suite.
Issue: rdar://problem/41701421
Risk: Minimal.
Testing: Local runs of the test suite, including debug builds.
Reviewer: @milseman, @stephentyrone

AnyHashable.swift.gyb is by far the longest test in debug builds of the test suite. Cut it dramatically shorter by reducing the number of equivalence classes checked in “containing classes from the <foo> hierarchy” tests from 16 down to 3.

(It seems to me the extra test cases didn’t actually test any additional functionality.)

(cherry picked from commit f8e6c30)
Copy link
Member

@milseman milseman left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@stephentyrone stephentyrone left a comment

Choose a reason for hiding this comment

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

LGTM

@lorentey
Copy link
Member Author

lorentey commented Jul 5, 2018

@swift-ci please test

@lorentey
Copy link
Member Author

lorentey commented Jul 6, 2018

@swift-ci please nominate

@lorentey lorentey merged commit d9561d9 into swiftlang:swift-4.2-branch Jul 9, 2018
@lorentey lorentey deleted the shorten-anyhashable-tests-4.2 branch July 9, 2018 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants