trautonen / coveralls-maven-plugin

Maven plugin for submitting Java code coverage reports to Coveralls web service.
MIT License
312 stars 123 forks source link

HTTP 405 error when submitting coverage info #147

Open wetneb opened 2 years ago

wetneb commented 2 years ago

We started getting the following error messages in our CI logs:

[INFO] --- coveralls-maven-plugin:4.3.0:report (default-cli) @ openrefine ---
[INFO] Starting Coveralls job
[INFO] Using repository token <secret>
[INFO] Git commit 7295807 in ellipsis-sort-text-regression-fix
[INFO] Writing Coveralls data to /home/runner/work/OpenRefine/OpenRefine/target/coveralls.json...
[INFO] Processing coverage report from /home/runner/work/OpenRefine/OpenRefine/main/target/site/jacoco/jacoco.xml
[INFO] Processing coverage report from /home/runner/work/OpenRefine/OpenRefine/extensions/jython/target/site/jacoco/jacoco.xml
[INFO] Processing coverage report from /home/runner/work/OpenRefine/OpenRefine/extensions/wikidata/target/site/jacoco/jacoco.xml
[INFO] Processing coverage report from /home/runner/work/OpenRefine/OpenRefine/extensions/database/target/site/jacoco/jacoco.xml
[INFO] Processing coverage report from /home/runner/work/OpenRefine/OpenRefine/extensions/gdata/target/site/jacoco/jacoco.xml
[INFO] Processing coverage report from /home/runner/work/OpenRefine/OpenRefine/extensions/phonetic/target/site/jacoco/jacoco.xml
[INFO] Successfully wrote Coveralls data in 482ms
[INFO] Gathered code coverage metrics for 651 source files with 91261 lines of code:
[INFO] - 26445 relevant lines
[INFO] - 14289 covered lines
[INFO] - 12156 missed lines
[INFO] Submitting Coveralls data to API
Error:  Submission failed in 1494ms while processing data
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for OpenRefine 3.7-SNAPSHOT:
[INFO] 
[INFO] OpenRefine ......................................... FAILURE [  2.635 s]
[INFO] OpenRefine - main .................................. SUCCESS [  0.005 s]
[INFO] OpenRefine - server ................................ SUCCESS [  0.003 s]
[INFO] OpenRefine - extensions ............................ SUCCESS [  0.004 s]
[INFO] OpenRefine - Jython extension ...................... SUCCESS [  0.003 s]
[INFO] OpenRefine - Wikidata extension .................... SUCCESS [  0.003 s]
[INFO] OpenRefine - Database extension .................... SUCCESS [  0.004 s]
[INFO] OpenRefine - Gdata extension ....................... SUCCESS [  0.003 s]
[INFO] OpenRefine - PC-axis extension ..................... SUCCESS [  0.002 s]
[INFO] OpenRefine - Phonetic clustering extension ......... SUCCESS [  0.003 s]
[INFO] OpenRefine - packaging ............................. SUCCESS [  0.039 s]
[INFO] OpenRefine Java JMH benchmarks ..................... SUCCESS [  0.003 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.699 s
[INFO] Finished at: 2022-07-01T03:32:03Z
[INFO] ------------------------------------------------------------------------
Error:  Failed to execute goal org.eluder.coveralls:coveralls-maven-plugin:4.3.0:report (default-cli) on project openrefine: Processing of input or output data failed: Report submission to Coveralls API failed with HTTP status 405: Method Not Allowed (Response doesn't contain Content-Type header) -> [Help 1]
Error: 
Error:  To see the full stack trace of the errors, re-run Maven with the -e switch.
Error:  Re-run Maven using the -X switch to enable full debug logging.
Error: 
Error:  For more information about the errors and possible solutions, please read the following articles:
Error:  [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Error: Process completed with exit code 1.