ibex icon indicating copy to clipboard operation
ibex copied to clipboard

Command for sanity regression in CI

Open imphil opened this issue 6 years ago • 5 comments

We'd like to run a sanity regression in CI, with a runtime of 5-15 min.

@udinator what command should we use for this run?

imphil avatar Mar 12 '20 22:03 imphil

Hi @imphil , for a basic sanity regression that runs one iteration of every test in the testlist, the command is make ITERATIONS=1. Is this okay, or would you rather just run one iteration of a single test, since this is intended for CI?

udinator avatar Mar 12 '20 22:03 udinator

make -C dv/uvm/core_ibex ITERATIONS=1 ISS=spike SEED=1 gives me a runtime of ~ 20 min on my machine. Probably good enough for a start, but we should try to not increase that time much more.

imphil avatar Mar 13 '20 11:03 imphil

On CI, I get a runtime of ~42 minutes, which is rather on the long side.

@udinator do you have ideas to cut this time down?

imphil avatar Aug 20 '20 18:08 imphil

Yep, one idea would be to not run a full sanity regression, but just run a few select tests from the testlist that exercise some major features of the design. For example, we could have the CI command be

make -C dv/uvm/core_ibex ITERATIONS=1 TEST=riscv_rand_instr_test,riscv_multiple_interrupt_test,riscv_debug_basic_test

This would run three specific tests to just make sure that the normal execution pipeline works correctly, as well as basic interrupt and debug handling capabilities are still up and running.

udinator avatar Aug 20 '20 19:08 udinator

Thanks @udinator. With make -C dv/uvm/core_ibex ITERATIONS=1 TEST=riscv_rand_instr_test,riscv_multiple_interrupt_test,riscv_debug_basic_test ISS=spike we now get a runtime of ~7 minutes, which is good enough for a pull request. Let's run with that for a while and see how many issues we catch and miss.

imphil avatar Aug 21 '20 09:08 imphil