eclipse-zenoh / ci

GitHub Actions and workflows used across eclipse-zenoh
Other
1 stars 3 forks source link

Publishing zenoh crate to estuary is failing with a 413 payload is too large #189

Open diogomatsubara opened 2 weeks ago

diogomatsubara commented 2 weeks ago

Describe the bug

Estuary tracing output:

[2024-06-20T16:12:41Z TRACE mio::poll] registering with poller
[2024-06-20T16:12:41Z DEBUG actix_web::middleware::logger] Error in response: Overflow
[2024-06-20T16:12:41Z INFO  actix_web::middleware::logger] 127.0.0.1:60044 "PUT /api/v1/crates/new HTTP/1.1" 413 29 "-" "cargo 1.75.0" 0.000040
[2024-06-20T16:12:41Z TRACE mio::poll] deregistering handle with poller
[2024-06-20T16:13:24Z TRACE mio::poll] registering with poller
[2024-06-20T16:13:24Z TRACE estuary::handlers::git] git says: Output { status: ExitStatus(unix_wait_status(0)), stdout: "00faa06179224beedcb042634109388f038c356f012b HEAD\0multi_ack thin-pack side-band side-band-64k ofs-delta shallow deepen-since deepen-not deepen-relative no-progress include-tag multi_ack_detailed no-done symref=HEAD:refs/heads/master agent=git/2.25.1\n003fa06179224beedcb042634109388f038c356f012b refs/heads/master\n0000", stderr: "" }
[2024-06-20T16:13:24Z INFO  actix_web::middleware::logger] 127.0.0.1:35440 "GET /git/index/info/refs?service=git-upload-pack HTTP/1.1" 200 351 "-" "git/1.0 (git2-curl 0.19.0)" 0.001327
[2024-06-20T16:13:29Z TRACE actix_http::h1::dispatcher] Keep-alive timeout, close connection
[2024-06-20T16:13:29Z TRACE mio::poll] deregistering handle with poller
[2024-06-20T16:15:56Z TRACE mio::poll] registering with poller
[2024-06-20T16:15:56Z DEBUG actix_web::middleware::logger] Error in response: Overflow
[2024-06-20T16:15:56Z INFO  actix_web::middleware::logger] 127.0.0.1:41348 "PUT /api/v1/crates/new HTTP/1.1" 413 29 "-" "cargo 1.75.0" 0.000039
[2024-06-20T16:15:56Z TRACE mio::poll] deregistering handle with poller

Tracing output from CARGO_HTTP_DEBUG=true CARGO_LOG=network=debug cargo publish --manifest-path zenoh/Cargo.toml --allow-dirty

 161.853004021s DEBUG network: http-debug: * TCP_NODELAY set
 161.853061211s DEBUG network: http-debug: * connect to ::1 port 7878 failed: Connection refused
 161.853069192s DEBUG network: http-debug: *   Trying 127.0.0.1:7878...
 161.853072183s DEBUG network: http-debug: * TCP_NODELAY set
 161.853137146s DEBUG network: http-debug: * Connected to localhost (127.0.0.1) port 7878 (#0)
 161.853175403s DEBUG network: http-debug: > PUT /api/v1/crates/new HTTP/1.1
 161.853178661s DEBUG network: http-debug: > Host: localhost:7878
 161.853181556s DEBUG network: http-debug: > User-Agent: cargo 1.75.0
 161.853184532s DEBUG network: http-debug: > Accept-Encoding: deflate, gzip, br
 161.853186745s DEBUG network: http-debug: > Accept: application/json
 161.853188710s DEBUG network: http-debug: > Authorization: [REDACTED]
 161.853190555s DEBUG network: http-debug: > Content-Length: 263080
 161.853192391s DEBUG network: http-debug: > Expect: 100-continue
 161.853194259s DEBUG network: http-debug: >
 161.853428415s DEBUG network: http-debug: * Mark bundle as not supporting multiuse
 161.853435743s DEBUG network: http-debug: < HTTP/1.1 100 Continue
 161.853440641s DEBUG network: http-debug: * Mark bundle as not supporting multiuse
 161.853442983s DEBUG network: http-debug: < HTTP/1.1 413 Payload Too Large
 161.853458875s DEBUG network: http-debug: < content-length: 29
 161.853461602s DEBUG network: http-debug: < content-type: text/plain; charset=utf-8
 161.853464044s DEBUG network: http-debug: < date: Thu, 20 Jun 2024 16:15:56 GMT
 161.853481397s DEBUG network: http-debug: * HTTP error before end of send, stop sending
 161.853484472s DEBUG network: http-debug: <
 161.853491262s DEBUG network: http-debug: * Closing connection 0
error: failed to publish to registry at http://localhost:7878

Caused by:
  failed to get a 200 OK response, got 413
  headers:
        HTTP/1.1 100 Continue

        HTTP/1.1 413 Payload Too Large
        content-length: 29
        content-type: text/plain; charset=utf-8
        date: Thu, 20 Jun 2024 16:15:56 GMT

  body:
  A payload reached size limit.

To reproduce

See https://github.com/eclipse-zenoh/zenoh/actions/runs/9598376528/job/26473384076#step:2:26933

System info

diogomatsubara commented 2 weeks ago

cc: @Mallets @fuzzypixelz, currently the 1.0.0-alpha.2 release is blocked on this issue.

fuzzypixelz commented 2 weeks ago

I opened a pull request upstream: https://github.com/onelson/estuary/pull/35.