mikepenz/action-junit-report

Question - works with newer gradle?

Closed this issue ยท 5 comments

I am still working to confirm it, but - is it possible that with newer gradle versions (8.9 in my case) annotations do not work?

With 8.9:

Run mikepenz/action-junit-report@v4
๐Ÿ“˜ Reading input values
๐Ÿ“ฆ Process test results
๐Ÿš€ Publish results
โ„น๏ธ - JUnit Test Report - 203 tests run, 141 passed, 61 skipped, 1 failed.
๐Ÿงช - storage-server-standalone/src/test/java/com/mycompany/storage/server/amazon/AmazonSimpleTest.java | array lengths differed, expected.length=423535 actual.length=0; arrays first differed at element [0]; expected:<-1> but was:
โ„น๏ธ - JUnit Test Report - Creating check (Annotations: 1)

and I don't get any test report

image

With 8.8

Run mikepenz/action-junit-report@v4
๐Ÿ“˜ Reading input values
๐Ÿ“ฆ Process test results
๐Ÿš€ Publish results
โ„น๏ธ - JUnit Test Report - 203 tests run, 141 passed, 61 skipped, 1 failed.
๐Ÿงช - storage-server-standalone/src/test/java/com/mycompany/storage/server/amazon/AmazonSimpleTest.java | array lengths differed, expected.length=2280121 actual.length=0; arrays first differed at element [0]; expected:<-1> but was:
โ„น๏ธ - JUnit Test Report - Creating check (Annotations: 1)

and I do get the JUnit test report:

image

I cannot reproduce in an isolated project (https://github.com/flozano/test-github-actions-junit-report)

from the code:

    try {
      for (const testResult of testResults) {
        await annotateTestResult(
          testResult,
          token,
          headSha,
          checkAnnotations,
          annotateOnly,
          updateCheck,
          annotateNotice,
          jobName
        )
      }
    } catch (error) {
      core.error(`โŒ Failed to create checks using the provided token. (${error})`)
      core.warning(
        `โš ๏ธ This usually indicates insufficient permissions. More details: https://github.com/mikepenz/action-junit-report/issues/23`
      )
    }

there should be a log I understand - but the check is not created and I'm getting no error anywhere in the action.

@flozano there should theoretically not be a difference from gradle versions for this action. as it isn't using gradle.

However the output might make a difference.

Have you compared the junit xml output if it might have any difference?

Closing due to inactivity. Please report back if still applicable