Giter Club home page Giter Club logo

Comments (11)

mikepenz avatar mikepenz commented on May 31, 2024

@vitalyk-multinarity 35 minutes? That seems intense.

Which configuration do you use?


Given that annotateOnly has to iterate over all annotations, and uses the GitHub interface to annotate each and all of them: https://github.com/mikepenz/action-junit-report/blob/main/src/annotator.ts#L31-L45 (with annotateNotice) it wouldn't surprise me to take longer.
As far as I am aware there is no batch API for these available.

Ways to speed up in that case:

  • annotateNotice = false
  • use the checks instead of annotate only

I use this action with thousands of test-cases in different projects and it usually completes within seconds.
For these cases we do have annotateOnly = false and use the normal checks + summary.

from action-junit-report.

vitalyk-multinarity avatar vitalyk-multinarity commented on May 31, 2024

@mikepenz - thank you!
I re-read the Readme, but I'm still not sure what is effect of "annotate_notice = true/false".
My configuration is

uses: mikepenz/action-junit-report@v3
        if: always()
        with:
          report_paths: '/tmp/ctest-*-report.xml' 
          fail_on_failure: true
          detailed_summary: true    
          include_passed: true 

which converts to:

Run mikepenz/action-junit-report@v3
  with:
    report_paths: /tmp/ctest-*-report.xml
    fail_on_failure: true
    detailed_summary: true
    include_passed: true
    token: ***
    exclude_sources: /build/,/__pycache__/
    annotate_only: false
    update_check: false
    check_name: JUnit Test Report
    require_tests: false
    check_retries: false
    transformers: []
    job_summary: true
    annotate_notice: true

from action-junit-report.

mikepenz avatar mikepenz commented on May 31, 2024

@vitalyk-multinarity ok given the output you are not using annotate_only: true so that's not the source of the problem.

Given the other issue you had created I understand that you will want to use include_passed: true, but would it possible to compare speed with it disabled?

from action-junit-report.

vitalyk-multinarity avatar vitalyk-multinarity commented on May 31, 2024

Without "include_passed: true" it takes just 2 seconds :-)

from action-junit-report.

mikepenz avatar mikepenz commented on May 31, 2024

@vitalyk-multinarity if I remember correctly. you use include_passed mainly to get them also included in the summary. but you actually don't mind the annotations at the specific file locations. correct?

If so, I'll look into it and check optimisations we can apply to skip any file matching and similar.

from action-junit-report.

vitalyk-multinarity avatar vitalyk-multinarity commented on May 31, 2024

if I remember correctly. you use include_passed mainly to get them also included in the summary.
Right (to be precise, to see a list of passed tests with their status)!

If so, I'll look into it and check optimisations we can apply to skip any file matching and similar
Many thanks!

from action-junit-report.

mikepenz avatar mikepenz commented on May 31, 2024

Could you please test how it performs using f4441d735cac5cebc8f7c6dadf8eef97865b4d32?

See the related PR here: #658

  • ultimately disabling the resolving of the path on the filesystem unless annotation for passed tests is requested.

(still need to adjust tests for this PR due to the adjusted handling for the annotations)

from action-junit-report.

vitalyk-multinarity avatar vitalyk-multinarity commented on May 31, 2024

Many thanks - with this commit it takes just one second, as far as I added 'annotate_notice: false':

 uses: mikepenz/action-junit-report@f4441d735cac5cebc8f7c6dadf8eef97865b4d32
 if: always()
 with:
       report_paths: '/tmp/ctest-*-report.xml' 
       fail_on_failure: true
       detailed_summary: true    
       include_passed: true
       annotate_notice: false 

from action-junit-report.

mikepenz avatar mikepenz commented on May 31, 2024

Thank you for testing this.

from action-junit-report.

mikepenz avatar mikepenz commented on May 31, 2024

This will be in the next release, which will probably be released later this week.

You can use the git commit SHA pinned version until then

from action-junit-report.

vitalyk-multinarity avatar vitalyk-multinarity commented on May 31, 2024

Mike, many thanks!
Vitaly

from action-junit-report.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.