Skip to content

RFC: New default output for Kani #1690

Open
Open

Description

@tedinski

This issue is a task to write/propose an RFC for a new default output format for Kani.

There are a number of needs here:

  1. Cleanup Kani's output #1194
  2. Feature Request: Vast cargo kani output simplification #1653 (closed but has good discussion)
  3. Organize the output from Kani to make it more user friendly #598
  4. Report memory usage for verification step #1675
  5. Kani should not print warnings about concurrency primitives (as long as it's single-threaded) #1460
  6. We should give better output for unbounded unwinding that the raw CBMC output.
  7. Support --output-format=terse kani-github-action#10
  8. Print out current task and timestamp for better user experience #1713
  9. UI unclear: reported results need to be clearer about the harness #1711
  10. Add user friendly Kani driver messages #1899
  11. Remove terse output requirement for parallel jobs  #3357

The RFC should address how the output changes with the parallel runner kani -j.

The goal should be (I think:)

  1. Default output
  2. Verbose output
  3. Quiet output (probably nothing: just exit status)
  4. Plus: possible differences for being interactive (terminal) versus batch (redirected to file / CI). (Colors + live status info as considerations)

I think I will designate as out-of-scope:

  1. Design Machine Readable Output - RFC #942
  2. Add Report, YAML Display Options to Output #681

There are likely a lot of decisions to be made here. I'm not even going to start the list of questions yet.

Activity

  1. self-assigned this
    on Sep 16, 2022
  2. tedinski commented on Sep 28, 2022

    @tedinski
    ContributorAuthor

    Some notes on inspiration for a new default output:

    cargo test looks like this:

    running 28 tests
    test args::tests::check_abs_type ... ok
    test args_toml::tests::check_merge_args_with_only_config_kani_args ... ok
    [..snip..]
    test call_cbmc::tests::check_resolve_unwind_value ... ok
    
    test result: ok. 28 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
    

    cargo build gives a status like this:

       Compiling indexmap v1.9.1
       Compiling rayon v1.5.3
       [..snip..]
       Compiling object v0.29.0
        Building [===================>     ] 132/165: clap, object, regex, num-bigint, syn, rayon
    

    This nicely shows parallelism (clap, object, regex, num-bigint, syn, rayon) on just one line. Meanwhile, you can scroll the output above it.

    I think a hybrid might be nice, augmented with more statistics

       Compiling crate v0.0.0
        Finished dev [unoptimized + debuginfo] target(s) in 0.08s
        Verified crate::harness ... ok, 0.95s, 355 props
        Verified crate::other_harness ... ok, 3.42s, 1660 props 
       Verifying [===================>     ] 2/4: crate::mod::harness, crate::mod::more_harness
    
  3. tedinski commented on Oct 5, 2022

    @tedinski
    ContributorAuthor

    Just looked at cargo-nextest's output, here's an excerpt (of batch output, not interactive terminal):

        Starting 119 tests across 11 binaries
    ...
            LEAK [   0.107s]                      nextest-tests::basic test_subprocess_doesnt_exit
            PASS [   0.008s]          nextest-tests::bin/nextest-tests tests::bin_success
            PASS [   0.004s]                  nextest-tests::bin/other tests::other_bin_success
            PASS [   0.014s]                      nextest-tests::other other_test_success
            PASS [   0.007s]      nextest-tests::example/nextest-tests tests::example_success
            PASS [   0.005s]              nextest-tests::example/other tests::other_example_success
         SIGSEGV [   0.552s]                   nextest-tests::segfault test_segfault
    [..SNIP failure output..]
    ------------
         Summary [  73.845s] 119 tests run: 115 passed, 4 failed, 0 skipped
            FAIL [   7.640s]               cargo-nextest tests_integration::test_relocated_run
            FAIL [   6.782s]               cargo-nextest tests_integration::test_run
            FAIL [   6.881s]               cargo-nextest tests_integration::test_run_after_build
            FAIL [   6.953s]               cargo-nextest tests_integration::test_run_from_archive
    
  4. tedinski commented on Oct 26, 2022

    @tedinski
    ContributorAuthor

    When a run fails, we should ensure we conclude with a command that would re-run just the failing harnesses. This allows both a tighter loop locally, and would allow people to go from a CI failure to reproducing that failure locally easily.

  5. added
    T-RFC
    on Nov 14, 2022
  6. celinval commented on Nov 15, 2022

    @celinval
    Contributor

    I created #1899 to track consistent info / warn /error messages which I believe is related to this.

  7. self-assigned this
    on Jan 24, 2023
  8. removed their assignment
    on Feb 10, 2023
  9. moved this from Todo to In Progress in Kani 2023-03-27on Mar 28, 2023
  10. moved this to In Progress in Kani 2023-04-17on Mar 28, 2023
  11. moved this to In Progress in Kani 2023-05-08on Apr 18, 2023
  12. moved this to In Progress in Kani 2023-07-10on Jun 20, 2023
  13. added
    [E] User Experience
    on May 29, 2025
  14. self-assigned this
    on Nov 5, 2026
  15. added theissue type on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

T-RFC[E] User Experience

Type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions