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
ci: send build log to paste.fedoraproject.org #370
Conversation
ee45e13
to
699907b
Compare
|
OK, so we can ship a paste off but paste.fedoraproject.org does not like the file size (~1.8M). Experimentally: a paste of < 512K succeeds, but a paste of ~1M fails. Now, fpaste is happy enough accepting binary data, e.g. a gzipped file The downsides to doing that are: But the upside is of course that we can get these files off so developers can get at them, so I think we should do that. |
699907b
to
c2c0ac5
Compare
|
Additional notes about paste.fedoraproject.org projects:
|
|
fedora-infra ticket for project name limitations: https://pagure.io/fedora-infrastructure/issue/5661 |
When the build fails, send the whole logfile to paste.fedora.org. (because due to size constraints we currently have to tail the log for the travis-ci transcript). We send a gzipped file, because the raw log file exceeds the size limit on paste.fedoraproject.org. Due to percent-encoding of the data, the compressed file inflates by ~2.5x for transport. If this ever becomes a problem, base64url-encoding before transport will limit inflation to 1.33x.
c2c0ac5
to
7601ece
Compare
|
Note: a new fedora pastebin is forthcoming. Staging instance: https://modernpaste.stg.fedoraproject.org/ |
|
LGTM, it would be nice if you could temporarily sneak in some breaking commit so that we can see how the paste looks like. |
|
@martbab the paste looks like gobbledygook; it's gzipped. We will see it in action soon enough :) |
|
So... any blocker on merging this? |
|
We were discussing yout PR with @HonzaCholasta yesterday and he suggested that we could pack the test runner log, HTTP and dirsrv logs and server installer log into an archive and upload it to https://transfer.sh/ a very lightweight file hosting site. What do you think? |
|
Right, I suggested https://transfer.sh, because uploading a file there is as easy as: curl --upload-file ./file https://transfer.sh/fileBTW I would not limit ourselves to the few logs @martbab suggested, but upload as much as possible: |
|
@HonzaCholasta I have measured the size of the whole gzipp'ed /var/log directory from the CI run and it has around 6 megs. We may thus paste the whole archived directory there (including journal and stuff) and have all the bases covered. I am working on a POC patch and will see how it will turn out. |
|
👍 sounds good. Take what's there and run with it :) |
|
@martbab, I would rather not include irrelevant stuff, it's just noise. |
|
@HonzaCholasta ok in that case I will archive: |
|
Superseded by #449 ; closing. |
This commit is just to see if we can ship our build logs off travisto a pastebin.
If we can, we can refine the approach to only ship logs when the buildbroke, provide better output about where to find them, etc.
No longer experimental; ready for review.