Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

💚 ⚡️ Fix circleci test split #140

Merged
merged 8 commits into from
Jun 24, 2022
Merged

Conversation

tabaktoni
Copy link
Contributor

@tabaktoni tabaktoni commented Jun 24, 2022

Usage related changes

None

Development related changes

** 💚 CircleCi Split tasks hotfix**
devnet_in_background made junitxml each object file property represented as util.py but still contained classname based on original filename without extension and with . instead of path /
You can see repercussions in (prev. test metadata):
https://app.circleci.com/pipelines/github/Shard-Labs/starknet-devnet/881/workflows/d90dbd40-4fd9-4503-90db-40674e6d4fe3/jobs/1299/parallel-runs/0/steps/0-106
To satisfy CI same tech. for classname definition is used to feed Ci split algo
Then split can decide based on provided classnames and prev. test metadata how to time-based split that classes.
After the split is done regenerate the given classnames back to filenames and feed them to pytest.
With the new working split algo total test time is now reduced to ⚡️ ~13min

⚡️ parallelism: 2 -> 4
Now that split works we can use parallelism to further increase test speed
with double instances, the test time is reduced by 57.14% which is close to double to ⚡️ ~8min

Checklist:

  • Performed a self-review of the code
  • Rebased to the base branch
  • Documented the changes
  • Updated the tests
  • All tests are passing

@tabaktoni tabaktoni marked this pull request as draft June 24, 2022 14:35
@tabaktoni tabaktoni changed the title [DO_NOT_MERGE] Fix/circleci test split Fix/circleci test split Jun 24, 2022
@tabaktoni tabaktoni changed the title Fix/circleci test split 💚 ⚡️ Fix circleci test split Jun 24, 2022
@tabaktoni tabaktoni marked this pull request as ready for review June 24, 2022 15:43
.circleci/config.yml Outdated Show resolved Hide resolved
.circleci/config.yml Outdated Show resolved Hide resolved
.circleci/config.yml Show resolved Hide resolved
.circleci/config.yml Show resolved Hide resolved
@FabijanC FabijanC merged commit b2e4949 into master Jun 24, 2022
@FabijanC FabijanC deleted the fix/circleci-test-split branch June 24, 2022 17:48
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.

2 participants