Skip to content

dashboard: Indicate if a test was rerun #8

@sprt

Description

@sprt

Context:
Sometimes a nightly/PR workflow is rerun manually (because some test may be flaky and a retry may succeed). In the dashboard we want to display this info, and not just show the latest run.

Challenges:

  • The API might not let us fetch that data, TBD.

Acceptance criteria:

  • Ideally, in the UI instead of showing one ✅ or ❌, we show as many icons as there were runs of that specific test
    • For example, 2 failures and 1 success = ❌❌✅
    • Note: it could be that the entire testsuite is rerun, or that only one or a few specific tests are rerun, make sure you handle all cases

Known limitations:

  • We're still only fetching the data every 24 hours, so the data may still be stale. This is OK, as long as we're capturing ALL previous runs whenever data fetching happens.

Activity

converted this from a draft issue on Oct 9, 2024
afinn12

afinn12 commented on Oct 23, 2024

@afinn12
Contributor

Code in: PR #22

Description

  • Rerun column added to table that counts the total number of times the job/check was reran

  • Tooltip menu that displays the results for each rerun on hover

  • Split fetch scripts for nightly/PR data

  • Added yaml for PR fetch script

  • Added triggers to both yamls on pushes to main (data pulled again if new data is needed in changes to files)

  • Also added authentication

    • To to use, put token in .env file
    • TODO: Make secret so fetch files still work in prod
  • TODO: Include rerun stats in column stats? (i.e. fails, skips)

    • TODO: Even if all tests fail/pass, not added to fails/skips (suggests a pass)
  • TODO: Also, given the nightly view picture, note that one job was rerun 5 times and one was rerun 4 times. Should the rerun count be 9 (5+4), or 7 (4+3), since runs = 9? Right now, sets reruns as 9 in this scenario.

  • TODO: Only get PRs with ok-to-test label (so keep pulling closed PRs until get 10 with that label)

Nightly View

image

PR View

image

sprt

sprt commented on Nov 13, 2024

@sprt
ContributorAuthor

Just dump PR into official repo

added 3 commits that reference this issue on Nov 18, 2024
d484689
8a3da7e
70fdee2
sprt

sprt commented on Nov 25, 2024

@sprt
ContributorAuthor
added 5 commits that reference this issue on Dec 6, 2024
27f0d58
362d9ab
a3207df
eac39fd
5f9bf61
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    P1

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      dashboard: Indicate if a test was rerun · Issue #8 · kata-containers/kata-containers.github.io