-
Notifications
You must be signed in to change notification settings - Fork 66
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
Coveralls integration stopped working around 2018-09-20 #175
Comments
Passing a using HTTP
using JSON
makebody(data::Dict) =
HTTP.Form(
Dict("json_file" => HTTP.Multipart("json_file", IOBuffer(JSON.json(data)),
"application/json")))
url = "https://coveralls.io/api/v1/jobs"
data = Dict("service_job_id" => "APPVEYOR_JOB_ID",
"service_name" => "appveyor",
"source_files" => "xyz",
"repo_token" => "REPO_TOKEN")
body = makebody(data)
headers = ["Content-Type" => "multipart/form-data; boundary=$(body.boundary)"]
req = HTTP.post(url, headers, body, verbose=3)
|
Note: this works because |
I think the best thing to do is add something like this to HTTP.jl: content_type(f::Form) = "Content-Type" =>
"multipart/form-data; boundary=$(f.boundary)"
post(url, f::Form; kw...) = post(url, Header[], f; kw...)
function post(url, headers, f::Form; kw...)
setheader(headers, content_type(f))
request("POST", url, headers, f; kw...)
end Then client code will be able to do: req = HTTP.post(url, HTTP.Form(data)) |
Hi guys! Is there any workaround for this bug ? |
Based on JuliaCI#175
Based on JuliaCI#175
Based on JuliaCI#175
Based on JuliaCI#175
Based on JuliaCI#175
This is fixed by PR #179 |
This seems not be corrected yet, at least for DataFrames.jl, see https://travis-ci.org/JuliaData/DataFrames.jl/jobs/443235134 line 1000. |
Once the next version of Coverage is merged into METADATA we should be good. |
This seems to be a global issue, I've checked several packages, and they all started failing around Sept 20. This is what happens during submission of coverage:
See example of full stack trace in this build.
Codecov still works.
The text was updated successfully, but these errors were encountered: