Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unique signatures generation to general parse results #3

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Commits on Nov 20, 2024

  1. Use hash signatures to uniquely identify state results

    Extend the idea of error hash signatures and use it to identify the
    parse results of states as well. Each state may define a set of
    'signature fields' and, after the parsing is done and the data is
    collected, these fields will be used to identify the result set and
    generate a unique hash string for them.
    
    These signatures aren't necessarily related to errors, they simply
    represent a result.
    
    For now, the new states '_summary', '_signature_fields' and '_signature'
    are defined as hidden and are invisible unless the `--json-full` flag is
    used.
    
    This change also moves the hash generation to a common utility function.
    
    Signed-off-by: Ricardo Cañuelo <[email protected]>
    r-c-n committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    0086cc0 View commit details
    Browse the repository at this point in the history
  2. states/chromebook_boot: define summary messages and signature fields

    Signed-off-by: Ricardo Cañuelo <[email protected]>
    r-c-n committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    0dae9a0 View commit details
    Browse the repository at this point in the history
  3. states/generic_boot: define summary messages and signature fields

    Signed-off-by: Ricardo Cañuelo <[email protected]>
    r-c-n committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    7c0fcac View commit details
    Browse the repository at this point in the history
  4. states/linux_kernel: define summary messages and signature fields

    Signed-off-by: Ricardo Cañuelo <[email protected]>
    r-c-n committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    ace1a53 View commit details
    Browse the repository at this point in the history
  5. states/test_baseline: define summary messages and signature fields

    Signed-off-by: Ricardo Cañuelo <[email protected]>
    r-c-n committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    251642b View commit details
    Browse the repository at this point in the history
  6. Generate signatures for test_baseline errors

    Signed-off-by: Ricardo Cañuelo <[email protected]>
    r-c-n committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    5c0a2a6 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2024

  1. logspec/main: collect states summaries into data['_states_summary']

    Signed-off-by: Ricardo Cañuelo <[email protected]>
    r-c-n committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    9666569 View commit details
    Browse the repository at this point in the history
  2. states/linux_kernel: detect kernel load start

    Add a state data field: linux.boot.kernel_started that will be True if
    the parser detects at least one line of kernel log and False if it
    doesn't.
    
    Signed-off-by: Ricardo Cañuelo <[email protected]>
    r-c-n committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    e59e216 View commit details
    Browse the repository at this point in the history
  3. tests: sync to latest code changes (linux.boot.kernel_started)

    Signed-off-by: Ricardo Cañuelo <[email protected]>
    r-c-n committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    cdd0aa8 View commit details
    Browse the repository at this point in the history
  4. states/linux_kernel: summary msg for "kernel didn't start" scenario

    Add a summary message for the scenario where the parser can't detect any
    kernel output. With this into place, the possible result cases for this
    state are:
    
    1) Kernel booted ok and reached a prompt:
       _summary = Linux boot prompt found
    2) Kernel produced no output at all:
       _summary = Kernel didn't start
    3) Kernel started to load but didn't reach a prompt:
       _summary = Linux boot prompt not found
    
    Signed-off-by: Ricardo Cañuelo <[email protected]>
    r-c-n committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    6e2bdbb View commit details
    Browse the repository at this point in the history