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

Error reported despite successfully parsing the result #1255

Open
worc4021 opened this issue Dec 1, 2024 · 4 comments
Open

Error reported despite successfully parsing the result #1255

worc4021 opened this issue Dec 1, 2024 · 4 comments
Assignees

Comments

@worc4021
Copy link

worc4021 commented Dec 1, 2024

Hello,

I have some ctest results in junit format on windows (the exact same tests on ubuntu don't have this) and when I point the action at the xml it recognises it but reports

📘 Reading input values
📦 Process test results
  Preparing 1 report as configured.
  Error: ⚠️ Failed to retrieve root test suite
  Error: ⚠️ Failed to retrieve root test suite
  Error: ⚠️ Failed to retrieve root test suite
  ℹ️ Posting with conclusion 'success' to refs/heads/feature/ci (sha: 9aed7ff9e6a058c93609e31e9a61beb8563f9656)
🚀 Publish results
  ℹ️ - JUnit Test Report - 7 tests run, 7 passed, 0 skipped, 0 failed.
  ℹ️ - JUnit Test Report - Creating check (Annotations: 0)
  ⚠️ No annotations found for JUnit Test Report. If you want to include passed results in this table please configure 'include_passed' as 'true'

Not sure how to get the reproducability for this since the file is generated by ctest --output-junit and without any changes this works on the ubuntu build. But somehow annoying that the test all show green and there are issues for the upload :'(

Any ideas?

@mikepenz
Copy link
Owner

mikepenz commented Dec 2, 2024

can you please provide the output test report file which results in the error?

@worc4021
Copy link
Author

worc4021 commented Dec 3, 2024

We don’t support that file type.

Try again with GIF, JPEG, JPG, MOV, MP4, PNG, SVG, WEBM, CPUPROFILE, CSV, DMP, DOCX, FODG, FODP, FODS, FODT, GZ, JSON, JSONC, LOG, MD, ODF, ODG, ODP, ODS, ODT, PATCH, PDF, PPTX, TGZ, TXT, XLS, XLSX or ZIP.

Github being very useful here.. :/

The content of the file is here:

<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="Win32-ninja"
	tests="7"
	failures="0"
	disabled="0"
	skipped="0"
	hostname="fv-az671-718"
	time="0"
	timestamp="2024-12-03T06:23:51"
	>
	<testcase name="avgas_dense" classname="avgas_dense" time="0.010883" status="run">
		<properties/>
		<system-out>lower bounds
    -0.10000E+04    -0.10000E+04    -0.10000E+04    -0.10000E+04    -0.10000E+04
upper bounds
     0.10000E+04     0.10000E+04     0.20000E+01     0.20000E+01     0.30000E+01
 FEASIBILITY OBTAINED at level 1
pivots =    0  level = 1    f =  0.00000000E+00
 gnorm =   6.32455532033676     
costs vector and indices
   1 -.20000E+01   2 -.60000E+01
steepest edge coefficients
     0.10000E+01     0.10000E+01
 active equality c/s =           0    pseudo-bounds =           2
x variables
     0.00000E+00     0.00000E+00
residual vector and indices
  -3 0.20000E+01  -4 0.20000E+01  -5 0.30000E+01
denominators
     0.10000E+01     0.20000E+01     0.10000E+01
 alpha =   1.00000000000000         p =           2    qq =           4
 r(p),r(qq),w(qq) =  -6.00000000000000        2.00000000000000     
   2.00000000000000     
 replace           2  by           4
pivots =    1  level = 1    f = -0.65000000E+01
 gnorm =   7.00000000000000     
costs vector and indices
   1 -.35000E+01  -4 0.35000E+01
steepest edge...
[This part of the test output was removed since it exceeds the threshold of 1024 bytes.]
</system-out>
	</testcase>
	<testcase name="avgas_sparse" classname="avgas_sparse" time="0.0116969" status="run">
		<properties/>
		<system-out>lower bounds
    -0.10000E+04    -0.10000E+04    -0.10000E+04    -0.10000E+04    -0.10000E+04
upper bounds
     0.10000E+04     0.10000E+04     0.20000E+01     0.20000E+01     0.30000E+01
 FEASIBILITY OBTAINED at level 1
pivots =    0  level = 1    f = -0.75000000E+01
 gnorm =   5.38516480713450     
costs vector and indices
   1 -.20000E+01   2 -.50000E+01
steepest edge coefficients
     0.10000E+01     0.10000E+01
 active equality c/s =           0    pseudo-bounds =           2
x variables
     0.10000E+01     0.10000E+01
residual vector and indices
  -3 0.00000E+00  -4 0.10000E+01  -5 0.30000E+01
denominators
     0.10000E+01     0.20000E+01     0.00000E+00
 alpha =  0.000000000000000E+000    p =           2    qq =           3
 r(p),r(qq),w(qq) =  -5.00000000000000       0.000000000000000E+000
   1.00000000000000     
 replace           2  by           3
pivots =    1  level = 1    f = -0.75000000E+01
 gnorm =   5.38516480713450     
costs vector and indices
  -1 -.30000E+01  -3 0.50000E+01
steepest edge...
[This part of the test output was removed since it exceeds the threshold of 1024 bytes.]
</system-out>
	</testcase>
	<testcase name="sparse_test" classname="sparse_test" time="0.0101307" status="run">
		<properties/>
		<system-out>--------------
Two dimensional problem
x: [0.6666666666666666, 1.3333333333333333]
activeConstraints: [-3, -4]
Lagrangian: [0.44444444444444464, 0.3333333333333335]
fval: -8.222222222222221
ifail: 0
--------------
Three dimensional problem
x: [0, 1.5, 1.5]
activeConstraints: [1, -4, 2]
Lagrangian: [1.5, 9.457344806965128e-308, 1.5]
fval: -33.75
ifail: 0
--------------
Three dimensional problem warmstarted
x: [0, 1.1666666666666667, 1.8333333333333333]
activeConstraints: [1, -4, 2]
Lagrangian: [1.1666666666666667, -1e+20, 1.8333333333333333]
fval: -46.083333333333336
ifail: 0
</system-out>
	</testcase>
	<testcase name="matlab_dense" classname="matlab_dense" time="0.0119571" status="run">
		<properties/>
		<system-out>lower bounds
     0.00000E+00     0.00000E+00     0.00000E+00    -0.10000E+20
upper bounds
     0.10000E+20     0.10000E+20     0.10000E+20     0.30000E+01
pivots =    0  level = 1    f =  0.30000000E+01   ninf =   1
 gnorm =   1.73205080756888     
costs vector and indices
  -1 -.10000E+01  -2 -.10000E+01  -3 -.10000E+01
steepest edge coefficients
     0.10000E+01     0.10000E+01     0.10000E+01
 active equality c/s =           0    pseudo-bounds =           3
x variables
     0.10000E+01     0.20000E+01     0.30000E+01
residual vector and indices
  -4 -.30000E+01
denominators
    -0.10000E+01
 alpha =   1.00000000000000         p =           1    qq =           1
 r(p),r(qq),w(qq) =  -1.00000000000000       -1.00000000000000     
   1.00000000000000     
pivots =    0  level = 1    f =  0.20000000E+01   ninf =   1
costs vector and indices
  -3 -.10000E+01  -2 -.10000E+01   1 0.10000E+01
steepest edge coefficients
     0.10000E+01     0.10000E+01     0.10000E+01
 active equality c/s =           0    pseudo-b...
[This part of the test output was removed since it exceeds the threshold of 1024 bytes.]
</system-out>
	</testcase>
	<testcase name="sparse_eigen" classname="sparse_eigen" time="0.0188491" status="run">
		<properties/>
		<system-out>(0, 0) 1
(1, 1) 2
(2, 2) 3
(0, 0) 1
(3, 0) 1
(1, 1) 2
(4, 1) 2
(2, 2) 3
(5, 2) 3
</system-out>
	</testcase>
	<testcase name="dense_hessianmultiply" classname="dense_hessianmultiply" time="0.0099773" status="run">
		<properties/>
		<system-out>x = [0.6666666666666666, 1.3333333333333333]
</system-out>
	</testcase>
	<testcase name="sparse_hessianmultiply" classname="sparse_hessianmultiply" time="0.0113805" status="run">
		<properties/>
		<system-out>x = [0.6666666666666666, 1.3333333333333333]
</system-out>
	</testcase>
</testsuite>

I suppose I can drop the verbosity on the printout but it's a unit test

@mikepenz
Copy link
Owner

thanks for providing the payload. I'll try to see in the next few days to test it. and understand better what is happening

@mikepenz mikepenz self-assigned this Dec 10, 2024
@mikepenz
Copy link
Owner

Took a bit to come to it, however trying the file it parses just fine 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants