-
Notifications
You must be signed in to change notification settings - Fork 7
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
API returns 500 on uploading data from a custom Github Action #1527
Comments
Here is an action's run info https://api.github.com/repos/40ants/cl-info/actions/runs/564926310. I pass id "564926310" in the payload as "service_job_id". This is the similar to what official Coveralls Github Action does. |
Hi @svetlyak40wt , with Github Actions, instead of passing the coveralls repo token, like:
You need to pass the secret github token, like:
If you want to use the official Coveralls Github Action, you'll need to pass that as
Please try that and let me know if you encounter further issues / new errors. |
@afinetooth I know and use When I tried to use Coveralls token, I've received 422 error saying it is unable to find a repository. I belive, this 500 is different than that 422. |
Hi @svetlyak40wt the file at the link you provided: is actually passing the key
We are looking for this format of incoming JSON:
So you'll want to use the key Again, that's if you're rolling your own Github Action. If you're using our action you can use Sorry if I misunderstand something here, but I can confirm that You're right that the 500 error is different from the 422 you'll get if you're using the right key ( For good measure, try these two options, in order, in your
Then:
The first should work. I suspect the second will also throw a 500 error. |
@afinetooth you are misunderstand. I'm working on my own action. It:
That is it in the JSON I'm sending the report, repo_token contains github token. In my original issue's text:
Can we trace this 500 error in coveralls logs? Maybe it returns some sort of |
@afinetooth I've reproduced error again. This time with printing response headers:
Here is the body of the request:
Probably, |
@svetlyak40wt Thanks for the requestID. I was able to look this up in our production error tracking system. First of all, your request JSON looks valid:
But an error did occur and the top of the stacktrace is as follows:
The issue is that the line cited is expecting a string:
But your
Per the API Reference for We should be throwing a more useful error there, but please change the data type and see if that works. |
@afinetooth thank you for the detailed response. I've fixed cl-coveralls and now it works! Here is my first successful build results: https://coveralls.io/builds/37113655 |
By the way,
|
@svetlyak40wt great! Glad to hear it. Thanks for the background! We don't have cl-coveralls in our list of language integrations. Do you think we should add it under Lisp here? Or do you think run-tests would be the more appropriate resource? Or a combination? Please feel free to suggest some copy. I'd be happy to add it to our site. And thanks for adding Github Actions support to the library. |
@afinetooth it would be nice to add both to the Lisp integrations page! Please, use this text: This library can collect and publish coverage reports
for Common Lisp code:
<a href="https://github.com/fukamachi/cl-coverall">fukamachi/cl-coverall</a>
And this is a GitHub Action, which automates test running and
coverage report publishing:
<a href="https://40ants.com/run-tests/">40ants/run-tests</a> |
Great, @svetlyak40wt, thank you! It's now up at: |
This issue has been automatically marked for closure because it has not had recent activity. It will be closed if no further activity occurs. If your issue is still active please add a comment and we’ll review as soon as we can. Thank you for your contributions. |
Hi! I'm adapting cl-coveralls for using inside a Github Action.
But API responds with 500 error with body:
on this payload:
Here is the run: https://github.com/40ants/cl-info/runs/1895864300?check_suite_focus=true
Is there a way to learn the reason why I receive this internal server error?
The text was updated successfully, but these errors were encountered: