Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#56467 closed defect (fixed)

Travis logs are truncated

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: admin@…
Priority: Normal Milestone:
Component: server/hosting Version:
Keywords: Cc:
Port:

Change History (6)

comment:1 in reply to:  description ; Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to ryandesign:

https://paste.macports.org/b98c42c2fadc

https://paste.macports.org/b293069fe710

These logs are truncated to the first 12288 bytes (exactly 12K)

https://paste.macports.org/bde2f5d2d8b6

This log is truncated to the first 16384 bytes (exactly 16K)

Does some part of uploading the logfile involve 4096-byte (4K) chunks?

Last edited 6 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:2 in reply to:  1 Changed 6 years ago by l2dy (Zero King)

Replying to ryandesign:

Replying to ryandesign:

https://paste.macports.org/b98c42c2fadc

https://paste.macports.org/b293069fe710

These logs are truncated to the first 12288 bytes (exactly 12K)

https://paste.macports.org/bde2f5d2d8b6

This log is truncated to the first 16384 bytes (exactly 16K)

Does some part of uploading the logfile involve 4096-byte (4K) chunks?

Actually 2KiB chunks, see https://github.com/golang/go/blob/go1.10.2/src/net/http/client.go#L595.

I'm testing a retryable HTTP client from HashiCorp, see https://github.com/macports/mpbot-github/commits/develop.

comment:3 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Any luck resolving this issue?

comment:4 in reply to:  3 Changed 6 years ago by l2dy (Zero King)

Replying to ryandesign:

Any luck resolving this issue?

With this debug commit and this build, it seems that the log file generated by func mpbbToLog is truncated. I'm investigating.

Last edited 6 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 Changed 6 years ago by l2dy (Zero King)

Resolution: fixed
Status: newclosed

Fixed in [3081068a518d5bd41d10f53e2afdbfde91eae40e/mpbot-github]. I forgot to flush the writer when the command failed.

Last edited 6 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:6 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Thanks!

Note: See TracTickets for help on using tickets.