Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 1.64 KB

README.md

File metadata and controls

23 lines (14 loc) · 1.64 KB

About tests

The tests focus on e2e (end-to-end) tests, and then specific tests that focus on particularly important areas of the code.

End-to-end

Some tests of note:

Code-specific tests

Highlighting a few that might be relevant for those wanting to use the simulator:

  • test_SimulatedInfraScaler.py: A test of the simulated infra scaler, which is the part of VASim that simulates K8s functionality (for example) of actually resizing the pods. The recovery_time parameter can be adusted to mimic the actual time of doing the pod scaling in the physical system.
  • test_config_params.py: This test is a work in progress and needs more tests added. Currently it tests the lag parameter, which defines the number of minutes to wait before making a prediction, essentially how long to wait for more data before reruning the autoscaling decision algorithm.

Notes

  • For our tests data, we use a trace from the Alibaba dataset.
  • Tests use pytest-xdist to run in parallel by default. To run tests serially, use pytest -n 0.