-
Notifications
You must be signed in to change notification settings - Fork 38
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
Bugzilla attachments should live on GitHub #234
Comments
GitHub API doesn't support uploading attachments, so unless some people are willing to do this by hand, I guess this issue is going to be a "won't fix". Note that currently the bugs link to attachments on Bugzilla but the plan is to preserve the attachments beyond the Bugzilla take-down (as static assets). |
Maybe though, I should have documented this in the blog post I published about the migration. |
If we do want to migrate the attachments, rather than leaving them as static content elsewhere, if someone attaches to this issue a zipfile which contains, for each bug with attachments, a zipfile named |
I'm going to leave it to @letouzey to decide what he thinks of this issue. Should we follow the initial plan of letting https://coq.inria.fr/bugfiles/ (where attachments live) survive the take down of https://coq.inria.fr/bugs/ as static assets or should we try the approach suggested by @JasonGross of uploading attachments on GitHub using a autohotkey script? |
Here come our 776 attachment numbers with their various metadata : If it is actually doable to upload all the corresponding files to github, I'm rather in favor of that. But beware of github : if you do something too automatic with their web interface, you'll probably be flagged as a spammer real quick... As discussed with @Zimmi48 today, ideally the short |
And if somebody wants to play more with these bug attachments, here comes the whole bunch of them : |
@letouzey You should change this page https://coq.inria.fr/bugs/ now that the old bugzilla is offline. Probably a simple redirect to https://github.com/coq/coq/issues would be enough. |
@Zimmi48 : done. I've also placed a redirect from |
@vbgl It is possible that this issue becomes relevant with the website migration. |
With the GitHub Pages website migration, Bugzilla attachments are no longer available on the Coq website. It's time to decide whether to migrate them to GitHub attachments or to close this issue, based on the principle that, after many years, most of these issues have been solved and/or the attachments have become irrelevant, and that if they need to be retrieved, there is still the tarball provided by Pierre in this thread. |
Does coqbot support uploading attachments to GitHub yet? I think it would be nice but not essential to get the attachments on GitHub, I expect it shouldn't be too hard to script if we already have code in coqbot for uploading attachments and commenting with them, and furthermore we'll want the ability to upload attachments for enhancing the minimizer comments, so I don't think adding this functionality to coqbot would be wasted effort. (It seems fine to go the route of making a new comment with "here's the attachment that was previously named ..." rather than editing existing comments, if that's easier to script.) |
No, GitHub still doesn't provide an official API for uploading attachment files. A comment from 2021 explained this. However, it seems that there exists an undocumented API that allows to do this. See: https://github.com/j178/github-s3. I'm not sure that abusing it in coqbot would be a good idea though. |
Looking at the code, this is just some go code that pretends to be the browser doing the same thing that happens when you drag and drop a file |
Description of the problem
Currently migrated bugs link to bugzilla attachments. GitHub supports uploading
.txt
,.log
, and.zip
files as attachments on issues. I propose that for all bugs with attachments on bugzilla, we archive the files in a.zip
file, and attach that to the github issue.One possible alternative is to special-case
.txt
,.log
, and.v
files, to renamefoo.v
tofoo.v.txt
, and upload these separately. However, I don't think there's any particular benefit to doing this, as I don't think you can view.txt
or.log
file attachments in the browser without downloading them.The text was updated successfully, but these errors were encountered: