-
Notifications
You must be signed in to change notification settings - Fork 657
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
Optimized training_tool_spec #6151
Optimized training_tool_spec #6151
Conversation
Nice. Can you provide some data about which segments of this test file take how much time? 8 minutes for this is still really long, and I don't think it used to be nearly as long as this. |
Loading the data for the modules seems to take very long, when I ran it locally with my connection disconnected it seemed to pass and took about 2m, when when I reconnected to the internet it took this 8/10 min I have a question in the TrainingBase class which loads the modules and slides from either from the |
Is that training loading happening in Wiki Education mode, or Peony mode? WikiTrainingLoader is used in Peony mode, and takes much longer. Ideally, we should find a way to still test that loading from wiki works, process as few modules and slides as possible. |
Currently my local is set to the Wiki Education mode, so i guess it is loading in the Wiki Education mode. |
overall, the code at the top of config/environments/test.rb controls the mode for the test suite. individual tests sometimes override that, usually via |
Alright I see, but this test does not override this |
Hmm... maybe that can simply be changed. There are two places in |
Yeah switching does not seem to change anything much, I am currently adding some logs to each describe block to give the exact time each block takes |
Are you still working this one, or is it ready to merge? |
There are some logs I added I will need to remove that and ping you. |
… using a module with fewer slides
1397e48
to
77e067e
Compare
@ragesoss I think this is ready to be merged |
What this PR does
This PR Optimizes training_tool_spec runtime by removing unnecessary waits and using a module with fewer slides, to reduce the build time of this test group
As of the screenshot below it takes 2min: 25sec to run this test group it started
Test suite started at: 2025-01-24 07:54:19 UTC
and endedTest suite ended at: 2025-01-24 07:56:34 UTC
After Screen Shot
Notes
31min