gavel icon indicating copy to clipboard operation
gavel copied to clipboard

Running scheduler_tests.py

Open nayakajay opened this issue 2 years ago • 3 comments

I wanted to run the test scheduler_tests.py. I believe, for a given trace, this test will give me the schedule in a file /tmp/simple.output.

The traces used seems to be missing. I can use a different trace, but it does not have an "expected" output file for those. Also, the relevant file (run_scheduler_with_trace.py) is not prepared to take the arguments passed by the test.

nayakajay avatar May 23 '22 09:05 nayakajay

It looks like that test file is out-of-date :/ What arguments are not accepted by the driver?

deepakn94 avatar May 23 '22 18:05 deepakn94

There are 3 arguments that are not supported. --simulate --worker_types -l

The simulate argument can be handled as it can be read from command line and passed to the Scheduler's constructor. However, the other two are not expected arguments for the Scheduler class. I am not sure where they are to be passed or how to handle them.

nayakajay avatar May 24 '22 04:05 nayakajay

Actually, you want to use simulate_scheduler_with_trace.py: https://github.com/stanford-futuredata/gavel/blob/master/scheduler/scripts/drivers/simulate_scheduler_with_trace.py.

You can get rid of the --simulate argument then, simulate is set to True by default in this driver file. --worker_types is replaced by --cluster_spec. I'm not sure what -l did before, but you can probably omit it.

deepakn94 avatar Jun 01 '22 21:06 deepakn94