Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Demote HsImport func-tests to unit-test #1591

Merged
merged 3 commits into from
Jan 23, 2020

Conversation

fendor
Copy link
Collaborator

@fendor fendor commented Jan 22, 2020

Previously, we had long running func-tests for HsImport.
However, after the first code-action tests, we actually are
testing the same functionality over and over again.
Moreover, we dont have to test that HsImport works as intended
since they have a huge set of tests, anyways.

Now, we only test that our implementation of the plugin
truly maps correctly to HsImport, accelerating execution time
of func-tests as a side-effect. Hooray!

Part of #1585

@fendor fendor requested review from lukel97, alanz and jneira January 22, 2020 17:45
@fendor fendor force-pushed the fendor/demote-hsimport-to-unit-tests branch 2 times, most recently from 1516a17 to 2c33e49 Compare January 22, 2020 22:47
@fendor
Copy link
Collaborator Author

fendor commented Jan 22, 2020

First results regarding test execution time:
Old: 19.10m (948e792)
New: 4.50m (2c33e49)
=> 4x speed up (or 25% of the previous time)

@fendor
Copy link
Collaborator Author

fendor commented Jan 22, 2020

The speedup is very relative, depending on how much needs to be rebuild, but there is a consistent speed up, at least it takes only 75% of the previous test-runs.
EDIT:
Workflow time improvements for circleci
Old: https://app.circleci.com/github/fendor/haskell-ide-engine/pipelines/e4f8704d-68a3-43aa-af70-ef7e2432f634/workflows/1adee6b0-18ed-4ccd-97e5-4f5090210cd1
New: https://app.circleci.com/github/fendor/haskell-ide-engine/pipelines/a06712ad-f0a4-4102-8047-e6c1f37a8021/workflows/e0d2eaf7-1d2e-4944-9b36-4ef6b6eead81

@fendor fendor mentioned this pull request Jan 23, 2020
Copy link
Member

@jneira jneira left a comment

Choose a reason for hiding this comment

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

Amazing improvement!

Previously, we had long running func-tests for HsImport.
However, after the first code-action tests, we actually are
testing the same functionality over and over again.
Moreover, we dont have to test that HsImport works as intended
since they have a huge set of tests, anyways.

Now, we only test that our implementation of the plugin
truly maps correctly to HsImport, accelerating execution time
of func-tests as a side-effect. Hooray!
@fendor fendor force-pushed the fendor/demote-hsimport-to-unit-tests branch from 149c0c7 to b27b5b9 Compare January 23, 2020 09:52
@fendor fendor merged commit 86ccb3d into haskell:master Jan 23, 2020
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.

4 participants