forked from consected/restructure
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
performanceidentifies issue with performanceidentifies issue with performance
Description
How to: bundle exec rspec ./spec/models/z_performance_spec.rb
The following test returns inconsistent results. It appears to be testing performance of tracker history creation.
Test Fails
Exists test_file_field_recs? > true
2023-02-14 13:12:51 -0500 Fixtures
Clear delayed_job
2023-02-14 13:12:51 -0500 Setup apps
2023-02-14 13:12:51 -0500 Setup ActivityLogPlayerContactPhone
2023-02-14 13:12:51 -0500 setup_al_player_contact_emails
2023-02-14 13:12:51 -0500 Setup ext_identifier
2023-02-14 13:12:51 -0500 setup_test_app
3
BHS Tracker
bhs_assignment
2023-02-14 13:12:55 -0500 setup_ref_data_app
/usr/bin/unzip
2023-02-14 13:12:56 -0500 Handle zeus_bulk_message
2023-02-14 13:12:56 -0500 load_tasks
2023-02-14 13:12:56 -0500 Precompile assets
yarn install v1.22.19
[1/4] 🔍 Resolving packages...
success Already up-to-date.
✨ Done in 0.18s.
2023-02-14 13:12:57 -0500 Done before suite
Tracker time: 0.0031129999551922083
Tracker time: 0.018642000039108098
Tracker length: 10
Trackers JSON time: 0.3921870000194758
.TrackerHistory time: 0.08014099998399615
TrackerHistory time: 0.06691000005230308
TrackerHistory length: 1000
TrackerHistory JSON time: 0.003911999985575676
.Creating tracker items for Masters
Benchmarking tracker items for Masters
Masters JSON time: 3.2738409999292344
F.
Failures:
1) Performance Creates tracker history items for each master and checks the performance encode the 100 masters
Failure/Error: expect(t).to be < 3.0
expected: < 3.0
got: 3.2738409999292344
# ./spec/models/z_performance_spec.rb:188:in `block (2 levels) in <top (required)>'
Finished in 5 minutes 38 seconds (files took 5.92 seconds to load)
4 examples, 1 failure
Test Succeeds (by a smidgen)
Exists test_file_field_recs? > true
2023-02-15 08:50:09 -0500 Fixtures
Clear delayed_job
2023-02-15 08:50:09 -0500 Setup apps
2023-02-15 08:50:09 -0500 Setup ActivityLogPlayerContactPhone
2023-02-15 08:50:10 -0500 setup_al_player_contact_emails
2023-02-15 08:50:10 -0500 Setup ext_identifier
2023-02-15 08:50:10 -0500 setup_test_app
3
BHS Tracker
bhs_assignment
2023-02-15 08:50:13 -0500 setup_ref_data_app
/usr/bin/unzip
2023-02-15 08:50:15 -0500 Handle zeus_bulk_message
2023-02-15 08:50:15 -0500 load_tasks
2023-02-15 08:50:15 -0500 Precompile assets
yarn install v1.22.19
[1/4] 🔍 Resolving packages...
success Already up-to-date.
✨ Done in 0.20s.
2023-02-15 08:50:18 -0500 Done before suite
Tracker time: 0.004110999987460673
Tracker time: 0.03544500004500151
Tracker length: 10
Trackers JSON time: 0.7353649999713525
.TrackerHistory time: 0.07097600004635751
TrackerHistory time: 0.0708030000096187
TrackerHistory length: 1000
TrackerHistory JSON time: 0.0032839999767020345
.Creating tracker items for Masters
Benchmarking tracker items for Masters
Masters JSON time: 2.9881440000608563
..
Finished in 7 minutes 15 seconds (files took 5.83 seconds to load)
4 examples, 0 failures
Metadata
Metadata
Assignees
Labels
performanceidentifies issue with performanceidentifies issue with performance