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

Test history refactoring and improvements #625

Merged
merged 85 commits into from
Jul 24, 2024

Commits on Mar 3, 2023

  1. Allow disabling test name mangling (keepTestNames).

    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    3dfeb90 View commit details
    Browse the repository at this point in the history
  2. Fix tests.

    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    589bcc1 View commit details
    Browse the repository at this point in the history
  3. Improve comment.

    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    5deff15 View commit details
    Browse the repository at this point in the history
  4. Assume history always available.

    More logging.
    Parallel history stream.
    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    84367f8 View commit details
    Browse the repository at this point in the history
  5. Paralellize test history handling to unbreak it with large amounts of…

    … tests.
    
    Add timeout and build count limit.
    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    b11b825 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c29f0cc View commit details
    Browse the repository at this point in the history
  7. Make test history dynamic and increase table size.

    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    379ef56 View commit details
    Browse the repository at this point in the history
  8. Fix trend charts not shown after carousel slide.

    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    8ba78e7 View commit details
    Browse the repository at this point in the history
  9. Fix carousel not redrawing.

    Reduce trend chart loading times.
    Display same count of builds in trend chart as in table.
    Workaround for jQuery issue.
    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    0bba408 View commit details
    Browse the repository at this point in the history
  10. Show same range as table in test result trend charts.

    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    165207c View commit details
    Browse the repository at this point in the history
  11. Show test status in duration chart.

    Support decimal duration.
    Increase builds in view to 100.
    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    3cb7ab3 View commit details
    Browse the repository at this point in the history
  12. Remove the other test history chart.

    Round maximum up if over 0.5.
    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    e2d7b54 View commit details
    Browse the repository at this point in the history
  13. Support 'count' parameter in history URLs.

    Reuse the retrieved history for chart generator to avoid multiple requests.
    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    6a7f600 View commit details
    Browse the repository at this point in the history
  14. Improve test history appearance.

    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    7f2a9e7 View commit details
    Browse the repository at this point in the history
  15. Improve test history appearance.

    Fix click on chart.
    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    673397a View commit details
    Browse the repository at this point in the history
  16. Remove carousel as charts are no longer async (and because it was a b…

    …it goofy).
    
    Improve chart appearance.
    Show both charts.
    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    60d9ef8 View commit details
    Browse the repository at this point in the history
  17. Make it compatible to XUnit plugin.

    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    fae3c33 View commit details
    Browse the repository at this point in the history
  18. Improve test history appearance.

    Add history size links.
    Improve history page load time.
    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    d195628 View commit details
    Browse the repository at this point in the history
  19. Put both charts into one.

    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    0142b86 View commit details
    Browse the repository at this point in the history
  20. Support Dark Reader to some extent.

    Add Total line.
    More distinct line colors.
    Improve overall appearance.
    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    d68d1c9 View commit details
    Browse the repository at this point in the history
  21. Improve test history appearance.

    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    8a682dc View commit details
    Browse the repository at this point in the history
  22. Improve chart appearance.

    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    21e7a9c View commit details
    Browse the repository at this point in the history
  23. Fix history URL.

    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    80f2727 View commit details
    Browse the repository at this point in the history
  24. Implement cache for TestResult.

    Increase age computation window to 25 to skip over builds without results.
    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    03f950b View commit details
    Browse the repository at this point in the history
  25. Less sorting on test result freeze.

    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    955443b View commit details
    Browse the repository at this point in the history
  26. Improve test history chart appearance.

    Fix test compilation error.
    Update POM.
    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    65db008 View commit details
    Browse the repository at this point in the history
  27. Update POM.

    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    ad7ec09 View commit details
    Browse the repository at this point in the history
  28. Fix JUnit test result writes not updated in cache.

    Fix history chart layout with only few results.
    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    81205f6 View commit details
    Browse the repository at this point in the history
  29. Update POM.

    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    72589da View commit details
    Browse the repository at this point in the history
  30. Fix build.

    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    81c21f5 View commit details
    Browse the repository at this point in the history
  31. Fix test.

    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    bbb187c View commit details
    Browse the repository at this point in the history
  32. Fix test.

    Edgars Batna committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    9230862 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2023

  1. Fix test history alignment.

    Edgars Batna committed Mar 6, 2023
    Configuration menu
    Copy the full SHA
    f04f1b6 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2023

  1. Clamp test case duration between 0 and 1 weeks.

    Edgars Batna committed Jul 9, 2023
    Configuration menu
    Copy the full SHA
    88c6771 View commit details
    Browse the repository at this point in the history
  2. Clamp test case duration between 0 and reasonable limits for cases an…

    …d suites.
    
    Fix potential crash in history chart.
    Edgars Batna committed Jul 9, 2023
    Configuration menu
    Copy the full SHA
    d246a04 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2024

  1. Merge branch 'keep-testnames-1177' of https://github.com/mdealer/juni…

    …t-plugin into test-history-refactor-1265
    Edgars Batna committed Jun 28, 2024
    Configuration menu
    Copy the full SHA
    a692bbb View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. Fix history charts.

    Edgars Batna committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    a6cc2a4 View commit details
    Browse the repository at this point in the history
  2. Less logging.

    Edgars Batna committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    747c9a7 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2024

  1. Fix doc comments.

    Edgars Batna committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    84fbe3f View commit details
    Browse the repository at this point in the history
  2. Fix spotBugs warnings.

    Edgars Batna committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    f3d05bd View commit details
    Browse the repository at this point in the history
  3. Fix spotBugs warnings.

    Edgars Batna committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    110f12d View commit details
    Browse the repository at this point in the history
  4. Unbreak test.

    Edgars Batna committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    28fb187 View commit details
    Browse the repository at this point in the history
  5. Unbreak test.

    Edgars Batna committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    05b3346 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2024

  1. Update src/main/java/hudson/tasks/junit/CaseResult.java

    Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
    mdealer and timja authored Jul 11, 2024
    Configuration menu
    Copy the full SHA
    eeea84b View commit details
    Browse the repository at this point in the history
  2. Revert version and convert tab to space in POM.

    Edgars Batna committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    b58eedc View commit details
    Browse the repository at this point in the history
  3. Apply suggestions from code review

    Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
    mdealer and timja authored Jul 11, 2024
    Configuration menu
    Copy the full SHA
    dddb963 View commit details
    Browse the repository at this point in the history
  4. Remove commented code.

    Tabs to spaces.
    Add deprecated constructor.
    Add property hudson.tasks.junit.HistoryTableResult.MAX_TIME_ELAPSED_RETRIEVING_HISTORY_MS=15000.
    Edgars Batna committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    6a2808b View commit details
    Browse the repository at this point in the history
  5. Merge branch 'test-history-refactor-1265' of https://github.com/mdeal…

    …er/junit-plugin into test-history-refactor-1265
    Edgars Batna committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    52df2ee View commit details
    Browse the repository at this point in the history
  6. Remove unused code.

    Edgars Batna committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    03b23bd View commit details
    Browse the repository at this point in the history
  7. Update based on code review.

    Edgars Batna committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    c67d580 View commit details
    Browse the repository at this point in the history
  8. Update based on code review.

    Edgars Batna committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    3b9b1da View commit details
    Browse the repository at this point in the history
  9. Fix build.

    Edgars Batna committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    dee1923 View commit details
    Browse the repository at this point in the history
  10. Remove commented code and add an actual comment.

    Edgars Batna committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    0f7a91a View commit details
    Browse the repository at this point in the history
  11. Remove commented code.

    Edgars Batna committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    2d873b2 View commit details
    Browse the repository at this point in the history
  12. Improve file name when saving image.

    Fix tooltip shifted too much left.
    Edgars Batna committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    553a073 View commit details
    Browse the repository at this point in the history
  13. Shorten duration axes values.

    Edgars Batna committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    6190782 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2024

  1. Shorten trend, smooth graph values and duration distribution axes val…

    …ues.
    Edgars Batna committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    d7df185 View commit details
    Browse the repository at this point in the history
  2. Use Jenkins styles and move elements slightly.

    Fix exception on click in history charts outside graph area.
    Improve chart download file name.
    Unbreak changing test result table background color depending on test result.
    Disable HTML card header as it is not used.
    Edgars Batna committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    8e41d6b View commit details
    Browse the repository at this point in the history
  3. Switch to linear regression comp from ssj.

    Edgars Batna committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    c28ea2b View commit details
    Browse the repository at this point in the history
  4. Fix alignment.

    Edgars Batna committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    e19a7e9 View commit details
    Browse the repository at this point in the history
  5. Tabs to spaces.

    Fix missing margin.
    Edgars Batna committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    1e73c69 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2024

  1. Replace XMLEventReader with XMLStreamReader.

    Less logging.
    Add escape hatches:
    - hudson.tasks.junit.TestResultAction.LARGE_RESULT_CACHE_CLEANUP_INTERVAL_MS: 500
    - hudson.tasks.junit.TestResultAction.LARGE_RESULT_CACHE_THRESHOLD: 1000
    - hudson.tasks.junit.TestResultAction.RESULT_CACHE_ENABLED: true
    - hudson.tasks.junit.TestResult.USE_SAFE_XML_FACTORY: true
    - hudson.tasks.junit.History.EXTRA_GRAPH_MATH_ENABLED: true
    - hudson.tasks.junit.History.MAX_TIME_ELAPSED_RETRIEVING_HISTORY_MS: 15000
    - hudson.tasks.junit.History.MAX_THREADS_RETRIEVING_HISTORY: -1
    - hudson.tasks.junit.CaseResult.PREVIOUS_TEST_RESULT_BACKTRACK_BUILDS_MAX: 25
    Edgars Batna committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    43e0f04 View commit details
    Browse the repository at this point in the history
  2. Update parallel-collectors to 2.6.1.

    Add necessary code from ca.umontreal.iro.simul instead of import, reduce HPI size by 80%, avoid outdated GSON lib.
    Edgars Batna committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    9ed5c0d View commit details
    Browse the repository at this point in the history
  3. Add necessary code from ca.umontreal.iro.simul instead of import, red…

    …uce HPI size by 80%, avoid outdated GSON lib.
    Edgars Batna committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    21b8a10 View commit details
    Browse the repository at this point in the history
  4. Less math doc comments.

    Edgars Batna committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    8221ed1 View commit details
    Browse the repository at this point in the history
  5. Less math doc comments.

    Edgars Batna committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    173f4ad View commit details
    Browse the repository at this point in the history
  6. Less math doc comments and less unused code.

    Edgars Batna committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    eec4876 View commit details
    Browse the repository at this point in the history
  7. Less math doc comments and less unused code.

    Edgars Batna committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    0b39f76 View commit details
    Browse the repository at this point in the history
  8. Less math doc comments and less unused code.

    Edgars Batna committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    b242758 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2024

  1. Improve safe XML factory handling.

    Edgars Batna committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    fe58ec4 View commit details
    Browse the repository at this point in the history
  2. Improve safe XML factory handling.

    Edgars Batna committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    9c67afe View commit details
    Browse the repository at this point in the history
  3. Add missing check for EXTRA_GRAPH_MATH_ENABLED.

    Edgars Batna committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    2554629 View commit details
    Browse the repository at this point in the history
  4. Apply some colors from CSS to history charts.

    Edgars Batna committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    7247f43 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2024

  1. Switch back to ssj dependency but exclude gson due to CVEs.

    Remove unused code.
    Edgars Batna committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    610a648 View commit details
    Browse the repository at this point in the history
  2. Switch build window size links to a drop down box.

    Improve HTML layout.
    Show how many test results are displayed.
    Send some extra info to JavaScript side about history processing.
    Limit the build count that are being iterated when navigating back and forth in history.
    Fix history table rows all in bold on some browsers.
    Edgars Batna committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    331b009 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d293576 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2024

  1. Configuration menu
    Copy the full SHA
    682a161 View commit details
    Browse the repository at this point in the history
  2. Implement sample size to speed up navigating huge results greatly.

    Cache history request responses for Jelly.
    Move data-* attribute to a <script> tag to avoid being processed by the browser.
    Edgars Batna committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    1df4241 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2024

  1. Hide smooth and trend graphs on narrow screens.

    Remove JS logging.
    Edgars Batna committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    2764ca3 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2024

  1. Improve backward compatibility.

    Edgars Batna committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    f22740f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    45afd2f View commit details
    Browse the repository at this point in the history
  3. Merge branch 'test-history-refactor-1265' of github.com:mdealer/junit…

    …-plugin into test-history-refactor-1265
    timja committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    4ca39a7 View commit details
    Browse the repository at this point in the history
  4. Fix properties not loaded.

    Edgars Batna committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    6cb42d1 View commit details
    Browse the repository at this point in the history
  5. Merge branch 'test-history-refactor-1265' of https://github.com/mdeal…

    …er/junit-plugin into test-history-refactor-1265
    Edgars Batna committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    d958cd6 View commit details
    Browse the repository at this point in the history
  6. Implement XML parsing for more fields (including properties).

    Implement related test.
    Edgars Batna committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    31b862c View commit details
    Browse the repository at this point in the history