medic / cht-core

The CHT Core Framework makes it faster to build responsive, offline-first digital health apps that equip health workers to provide better care in their communities. It is a central resource of the Community Health Toolkit.
https://communityhealthtoolkit.org
GNU Affero General Public License v3.0
467 stars 217 forks source link

Use more github action runners for e2e. #6957

Closed newtewt closed 10 months ago

newtewt commented 3 years ago

Describe the performance issue Our build process takes around 35 minutes to execute. Majority of which is running e2e tests.

Describe the improvement you'd like A quick win would be to split the tests files up and run them across more runners. This could be done by using the matrix and the fromJSON() option within github actions. I think this would also be a good opportunity to clean up the e2e and group them based on functionality. There are a few that just sit in the root of e2e.

Describe alternatives you've considered Protractor allows you to shard and run multiple instances on one runner. I believe this effort to make our tests run against the same CHT instance would be higher because of the number of settings changes, resetting databases.

To Reproduce Steps to record the performance metrics:

  1. Go to '...'
  2. Click on '....'

Measurements Looking at the Successful runs the quick average is around 35 minutes.

Environment

Additional context Add any other context or screenshots about the feature request here.

dianabarsan commented 10 months ago

This is quite old and the build process and e2e tests have changed and improved over time. Closing as stale.