Skip to content

Idea: store unrendered READMEs on s3 #1028

Closed as not planned
Closed as not planned
@carols10cents

Description

@carols10cents

This is another idea for speeding up README rerendering, similar to #1025.

Right now, part of the time that the render-readmes script takes is downloading the .crate tarballs from s3 and unpacking them to extract the README files. Every time we rerun the render-readmes script, it redoes all this work, even though the .crate files are immutable, and those crates that were missing READMES are still going to be missing READMEs even if we try again.

What if, instead, we store the raw markdown/text/asciidoc on s3, so that the render-readmes script doesn't have to do this extraction over and over? Instead of iterating through every version of every crate, the script could iterate through just the files it finds on s3.

For new crates, since crate publishing sends the README text separately for search purposes, we could even save the raw README to s3 directly and never have to unpack the .crate file for this purpose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-readmeC-internal 🔧Category: Nonessential work that would make the codebase more consistent or clear

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions