Skip to content
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

png attachment links broken #181

Open
mkoeppe opened this issue Feb 6, 2023 · 23 comments
Open

png attachment links broken #181

mkoeppe opened this issue Feb 6, 2023 · 23 comments

Comments

@mkoeppe
Copy link

mkoeppe commented Feb 6, 2023

To be investigated whether the actual files are accessible.

In any case, this will have to be fixed post-migration.

@mkoeppe mkoeppe added this to the Right after the migration milestone Feb 6, 2023
@kwankyu
Copy link

kwankyu commented Feb 6, 2023

Can I see the affected issues in the preview repo: https://github.com/sagemath/sage-migration-preview-2023-02-02?

@mkoeppe
Copy link
Author

mkoeppe commented Feb 6, 2023

No, but I have just made the next iteration public, where you can see it for example in https://github.com/sagemath/sage-migration-preview-2023-02-04/issues/10146: the png attachment gives "not found", but the other attached file (technically a repository_file) works.

@mkoeppe
Copy link
Author

mkoeppe commented Feb 6, 2023

(Note that sagemath/sage is at the moment a redirect to https://github.com/sagemath/sage-migration-preview-2023-02-04)

@kwankyu
Copy link

kwankyu commented Feb 6, 2023

Did the importer drop all .png attachments?

@mkoeppe
Copy link
Author

mkoeppe commented Feb 6, 2023

It did not report anything regarding the .png attachments.

It did report (as expected) that a number of large (> 25MB) attachments were "not found" (= dropped in the process).

@kwankyu
Copy link

kwankyu commented Feb 6, 2023

@mkoeppe
Copy link
Author

mkoeppe commented Feb 6, 2023

hm, interesting!

@mkoeppe
Copy link
Author

mkoeppe commented Feb 6, 2023

OK, so the link in the description has been rewritten to a correct one.
But the link in https://github.com/sagemath/sage-migration-preview-2023-02-04/issues/25270#comment:1 is also broken (not rewritten to the actual storage location).
(this is now sagemath/sage#25270 (comment))

@kwankyu
Copy link

kwankyu commented Feb 6, 2023

@kwankyu
Copy link

kwankyu commented Feb 6, 2023

@mkoeppe
Copy link
Author

mkoeppe commented Feb 6, 2023

Yes, that would likely have fixed it.

@kwankyu
Copy link

kwankyu commented Feb 6, 2023

I think it's okay to reschedule the final import once again, if it is hard to fix after migration.

@mkoeppe
Copy link
Author

mkoeppe commented Feb 6, 2023

No, I'd rather not delay it further. I think it's easy to fix afterwards using PyGithub (REST API). Easier than #110, which requires use of a more complicated API (GraphQL)

@kwankyu
Copy link

kwankyu commented Feb 6, 2023

Okay.

BTW, if we use the markdown syntax, then the image will show up again in the attachment comment.

@mkoeppe
Copy link
Author

mkoeppe commented Feb 6, 2023

Right, that's not really intended.

@kwankyu
Copy link

kwankyu commented Feb 6, 2023

One way is to upload image files twice as ".png" and as ".png.gz".

I also feel that we may leave the bug unfixed. Image attachment not shown in the issue perhaps are not that important.

@mkoeppe
Copy link
Author

mkoeppe commented Feb 6, 2023

I agree, it's a very minor issue.

@kwankyu
Copy link

kwankyu commented Feb 6, 2023

BTW, "r: invalid", "r: duplicate" received wrong colors.

@mkoeppe
Copy link
Author

mkoeppe commented Feb 6, 2023 via email

@kwankyu
Copy link

kwankyu commented Feb 6, 2023

Ah. That's fortunate!

@mkoeppe
Copy link
Author

mkoeppe commented Feb 6, 2023

In the production import, a few other files (in addition to the > 25MB files) were dropped. Easy to fix if we want.
Here's the report.

Enterprise Cloud Importer
BETA

Audit

Some models were not successfully imported.

Please check them below, and unlock your repositories if you're ready to use them.

Model Type Source URL State Message
Repository File https://github.com/sagemath/sage/files/ticket7197/trac_7197_part10.patch.gz FAILED_IMPORT Skipped import: repository file upload failed
Repository File https://github.com/sagemath/sage/files/ticket8244/trac_8244-slot_wrapper_argspec.patch.gz FAILED_IMPORT Skipped import: repository file upload failed
Repository File https://github.com/sagemath/sage/files/ticket21612/fixsage-incremental-docbuild.patch.gz FAILED_IMPORT Skipped import: repository file upload failed
Repository File https://github.com/sagemath/sage/files/ticket25026/jmol-14.29.10.tar.bz2.gz FAILED_IMPORT Skipped import: invalid or missing repository file
Repository File https://github.com/sagemath/sage/files/ticket25374/CMakeOutput.log FAILED_IMPORT Skipped import: repository file upload failed
Repository File https://github.com/sagemath/sage/files/ticket29521/giac-1.5.0.63-p0.tar.bz2.gz FAILED_IMPORT Skipped import: invalid or missing repository file
Repository File https://github.com/sagemath/sage/files/ticket29552/giac-1.5.0.87.tar.bz2.gz FAILED_IMPORT Skipped import: invalid or missing repository file
Repository File https://github.com/sagemath/sage/files/ticket29552/giac-1.5.0.87p0.tar.bz2.gz FAILED_IMPORT Skipped import: invalid or missing repository file
Repository File https://github.com/sagemath/sage/files/ticket30396/giac-1.5.0.87p1.tar.bz2.gz FAILED_IMPORT Skipped import: invalid or missing repository file
Repository File https://github.com/sagemath/sage/files/ticket30396/giac-1.5.0.87p2.tar.bz2.gz FAILED_IMPORT Skipped import: invalid or missing repository file
Repository File https://github.com/sagemath/sage/files/ticket30537/giac-1.6.0.47p2.tar.bz2.gz FAILED_IMPORT Skipped import: invalid or missing repository file
Repository File https://github.com/sagemath/sage/files/ticket31562/giac-1.6.0.47p3.tar.bz2.gz FAILED_IMPORT Skipped import: invalid or missing repository file
Repository File https://github.com/sagemath/sage/files/ticket31563/giac-1.7.0.25p0.tar.bz2.gz FAILED_IMPORT Skipped import: invalid or missing repository file
Repository File https://github.com/sagemath/sage/files/ticket31563/giac-1.7.0.47p0.tar.bz2.gz FAILED_IMPORT Skipped import: invalid or missing repository file
Repository File https://github.com/sagemath/sage/files/ticket31563/giac-1.9.0.5p0.tar.bz2.gz FAILED_IMPORT Skipped import: invalid or missing repository file
Repository File https://github.com/sagemath/sage/files/ticket31563/giac-1.9.0.15p0.tar.bz2.gz FAILED_IMPORT Skipped import: invalid or missing repository file

    Step: 6 of 7

    Status: IMPORTED

    @kwankyu
    Copy link

    kwankyu commented Feb 6, 2023

    Labels are all perfect!

    @kwankyu
    Copy link

    kwankyu commented Feb 6, 2023

    In the production import, a few other files (in addition to the > 25MB files) were dropped. Easy to fix if we want.

    Some of the affected issues are fairly recent. I think "we want".

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants