-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #543 - jyn514:doc-runs, r=<try>
[WIP] Read docs.rs metadata when running rustdoc Closes #532 <details><summary>Outdated errors</summary> I'm having trouble running the test suite, so I haven't yet added a test. My idea was to have a crate that only builds successfully when you read the metadata, but I'm not sure if that would work with the way the test suite is set up. Current errors: ``` $ cargo test minicrater -- single_thread_small --ignored --test-threads 1 [2020-09-05T02:02:04Z INFO rustwide::cmd] running `Command { std: "/home/joshua/src/rust/crater/work/cargo-home/bin/cargo" "+stable" "install" "lazy_static", kill_on_drop: false }` [2020-09-05T02:02:04Z INFO rustwide::cmd] [stderr] Updating crates.io index [2020-09-05T02:02:04Z INFO rustwide::cmd] [stderr] error: specified package `lazy_static v1.4.0` has no binaries [2020-09-05T02:02:04Z ERROR crater::utils] Permission denied (os error 13) [2020-09-05T02:02:04Z ERROR crater::utils] note: run with `RUST_BACKTRACE=1` to display a backtrace. [2020-09-05T02:02:04Z INFO crater] command failed ', /home/joshua/.local/lib/cargo/registry/src/jackfan.us.kg-1ecc6299db9ec823/assert_cmd-0.10.1/src/assert.rs:154:13 ``` </details> Before merging, I need to publish the `docsrs-metadata` package to crates.io so crater doesn't depend on a git version. r? `@pietroalbini` help
- Loading branch information
Showing
21 changed files
with
419 additions
and
125 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[package] | ||
name = "docs-rs-features" | ||
version = "0.1.0" | ||
authors = ["Joshua Nelson <[email protected]>"] | ||
edition = "2018" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
|
||
[package.metadata.docs.rs] | ||
features = ["docs_rs_feature"] | ||
|
||
[features] | ||
docs_rs_feature = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#[cfg(feature = "docs_rs_feature")] | ||
compile_error!("oh no, a hidden regression!"); | ||
|
||
fn main() { | ||
println!("Hello, world!"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[server.bot-acl] | ||
rust-teams = true | ||
github = ["pietroalbini"] | ||
|
||
[server.labels] | ||
remove = "^S-" | ||
experiment-queued = "S-waiting-on-crater" | ||
experiment-completed = "S-waiting-on-review" | ||
|
||
[server.distributed] | ||
chunk-size = 32 | ||
|
||
[demo-crates] | ||
crates = [] | ||
github-repos = [] | ||
local-crates = ["build-pass", "docs-rs-features"] | ||
|
||
[sandbox] | ||
memory-limit = "512M" | ||
build-log-max-size = "2M" | ||
build-log-max-lines = 1000 | ||
|
||
[crates] | ||
|
||
[github-repos] | ||
|
||
[local-crates] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"available_archives": [ | ||
{ | ||
"name": "All the crates", | ||
"path": "logs-archives/all.tar.gz" | ||
}, | ||
{ | ||
"name": "error crates", | ||
"path": "logs-archives/error.tar.gz" | ||
} | ||
], | ||
"crates_count": 2, | ||
"nav": [ | ||
{ | ||
"active": false, | ||
"label": "Summary", | ||
"url": "index.html" | ||
}, | ||
{ | ||
"active": false, | ||
"label": "Full report", | ||
"url": "full.html" | ||
}, | ||
{ | ||
"active": true, | ||
"label": "Downloads", | ||
"url": "downloads.html" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{ | ||
"categories": [ | ||
[ | ||
"error", | ||
{ | ||
"Plain": [ | ||
{ | ||
"name": "build-pass (local)", | ||
"res": "error", | ||
"runs": [ | ||
{ | ||
"log": "stable/local/build-pass", | ||
"res": 0 | ||
}, | ||
{ | ||
"log": "beta/local/build-pass", | ||
"res": 0 | ||
} | ||
], | ||
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/build-pass" | ||
}, | ||
{ | ||
"name": "docs-rs-features (local)", | ||
"res": "error", | ||
"runs": [ | ||
{ | ||
"log": "stable/local/docs-rs-features", | ||
"res": 0 | ||
}, | ||
{ | ||
"log": "beta/local/docs-rs-features", | ||
"res": 0 | ||
} | ||
], | ||
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/docs-rs-features" | ||
} | ||
] | ||
} | ||
] | ||
], | ||
"comparison_colors": { | ||
"error": { | ||
"Single": "#d77026" | ||
} | ||
}, | ||
"crates_count": 2, | ||
"full": true, | ||
"info": { | ||
"error": 2 | ||
}, | ||
"nav": [ | ||
{ | ||
"active": false, | ||
"label": "Summary", | ||
"url": "index.html" | ||
}, | ||
{ | ||
"active": true, | ||
"label": "Full report", | ||
"url": "full.html" | ||
}, | ||
{ | ||
"active": false, | ||
"label": "Downloads", | ||
"url": "downloads.html" | ||
} | ||
], | ||
"result_colors": [ | ||
{ | ||
"Single": "#d77026" | ||
} | ||
], | ||
"result_names": [ | ||
"error" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{ | ||
"categories": [ | ||
[ | ||
"error", | ||
{ | ||
"Plain": [ | ||
{ | ||
"name": "build-pass (local)", | ||
"res": "error", | ||
"runs": [ | ||
{ | ||
"log": "stable/local/build-pass", | ||
"res": 0 | ||
}, | ||
{ | ||
"log": "beta/local/build-pass", | ||
"res": 0 | ||
} | ||
], | ||
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/build-pass" | ||
}, | ||
{ | ||
"name": "docs-rs-features (local)", | ||
"res": "error", | ||
"runs": [ | ||
{ | ||
"log": "stable/local/docs-rs-features", | ||
"res": 0 | ||
}, | ||
{ | ||
"log": "beta/local/docs-rs-features", | ||
"res": 0 | ||
} | ||
], | ||
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/docs-rs-features" | ||
} | ||
] | ||
} | ||
] | ||
], | ||
"comparison_colors": { | ||
"error": { | ||
"Single": "#d77026" | ||
} | ||
}, | ||
"crates_count": 2, | ||
"full": false, | ||
"info": { | ||
"error": 2 | ||
}, | ||
"nav": [ | ||
{ | ||
"active": true, | ||
"label": "Summary", | ||
"url": "index.html" | ||
}, | ||
{ | ||
"active": false, | ||
"label": "Full report", | ||
"url": "full.html" | ||
}, | ||
{ | ||
"active": false, | ||
"label": "Downloads", | ||
"url": "downloads.html" | ||
} | ||
], | ||
"result_colors": [ | ||
{ | ||
"Single": "#d77026" | ||
} | ||
], | ||
"result_names": [ | ||
"error" | ||
] | ||
} |
Oops, something went wrong.