Skip to content

Conversation

jyn514
Copy link
Member

@jyn514 jyn514 commented Feb 15, 2021

Example error:

2021/02/15 01:43:12 [INFO] docs_rs::docbuilder::rustwide_builder: building package regex 1.3.1
Error: Building documentation failed

Caused by:
    not enough memory to build regex 1.3.1: needed 3072 MiB, have 2909 MiB
help: set DOCSRS_DISABLE_MEMORY_LIMIT=true to force a build

Fixes #657.

r? @pietroalbini or @Nemo157

@jyn514 jyn514 added S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed A-builds Area: Building the documentation for a crate A-admin Area: Administration of the production docs.rs server labels Feb 15, 2021
@Nemo157
Copy link
Member

Nemo157 commented Feb 15, 2021

Don't queue a build [...]

Or "dequeue a build" ?

@jyn514 jyn514 changed the title Don't queue a build when not enough memory is available Don't execute a build when not enough memory is available Feb 15, 2021
Example error:

```
2021/02/15 01:43:12 [INFO] docs_rs::docbuilder::rustwide_builder: building package regex 1.3.1
Error: Building documentation failed

Caused by:
    not enough memory to build regex 1.3.1: needed 3072 MiB, have 2909 MiB
help: set DOCSRS_DISABLE_MEMORY_LIMIT to force a build
```
@jyn514 jyn514 merged commit f561456 into rust-lang:master Feb 16, 2021
@jyn514 jyn514 deleted the not-enough-ram branch February 16, 2021 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-admin Area: Administration of the production docs.rs server A-builds Area: Building the documentation for a crate S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docs.rs starts building a crate even when there is not enough RAM
2 participants