fix doc render (#5038)
This commit is contained in:
parent
7f61c4c936
commit
5dd3a6ca1a
|
@ -47,11 +47,15 @@ To fix a CI sync timeout, follow these steps until the timeouts are fixed:
|
||||||
3. Wait for a full or update sync to finish with the new checkpoints
|
3. Wait for a full or update sync to finish with the new checkpoints
|
||||||
4. The GitHub actions job limit is 6 hours, so the ideal job time is 4-5 hours.
|
4. The GitHub actions job limit is 6 hours, so the ideal job time is 4-5 hours.
|
||||||
If any GitHub actions job times out, or takes over 5 hours:
|
If any GitHub actions job times out, or takes over 5 hours:
|
||||||
|
|
||||||
a. [Split the job based on the sync height](https://github.com/ZcashFoundation/zebra/pull/4961/files#diff-4c3718f100312ddc9472f5d4ab2ee0a50a46f2af21352a25fca849734e3f7514R732), or
|
a. [Split the job based on the sync height](https://github.com/ZcashFoundation/zebra/pull/4961/files#diff-4c3718f100312ddc9472f5d4ab2ee0a50a46f2af21352a25fca849734e3f7514R732), or
|
||||||
|
|
||||||
b. Adjust the sync heights in existing jobs.
|
b. Adjust the sync heights in existing jobs.
|
||||||
5. If a Rust test fails with "command did not log any matches for the given regex, within the ... timeout":
|
5. If a Rust test fails with "command did not log any matches for the given regex, within the ... timeout":
|
||||||
a. If it's the full sync test, [increase the full sync timeout](https://github.com/ZcashFoundation/zebra/commit/9fb87425b76ba3747985ea2f22043ff0276a03bd#diff-8fbc73b0a92a4f48656ffe7d85d55c612c755202dcb7284d8f6742a38a6e9614R367)
|
|
||||||
b. If it's an update sync test, [increase the update sync timeouts](https://github.com/ZcashFoundation/zebra/commit/9fb87425b76ba3747985ea2f22043ff0276a03bd#diff-92f93c26e696014d82c3dc1dbf385c669aa61aa292f44848f52167ab747cb6f6R51)
|
a. If it's the full sync test, [increase the full sync timeout](https://github.com/ZcashFoundation/zebra/commit/9fb87425b76ba3747985ea2f22043ff0276a03bd#diff-8fbc73b0a92a4f48656ffe7d85d55c612c755202dcb7284d8f6742a38a6e9614R367)
|
||||||
|
|
||||||
|
b. If it's an update sync test, [increase the update sync timeouts](https://github.com/ZcashFoundation/zebra/commit/9fb87425b76ba3747985ea2f22043ff0276a03bd#diff-92f93c26e696014d82c3dc1dbf385c669aa61aa292f44848f52167ab747cb6f6R51)
|
||||||
|
|
||||||
### Resolving Duplicate Dependencies in `Check deny.toml bans`
|
### Resolving Duplicate Dependencies in `Check deny.toml bans`
|
||||||
|
|
||||||
|
@ -62,15 +66,23 @@ You can view Zebra's entire dependency tree using `cargo tree`. It can also show
|
||||||
|
|
||||||
To fix duplicate dependencies, follow these steps until the duplicate dependencies are fixed:
|
To fix duplicate dependencies, follow these steps until the duplicate dependencies are fixed:
|
||||||
1. Check for updates to the crates mentioned in the `Check deny.toml bans` logs, and try doing them in the same PR.
|
1. Check for updates to the crates mentioned in the `Check deny.toml bans` logs, and try doing them in the same PR.
|
||||||
For an example, see [PR $5009](https://github.com/ZcashFoundation/zebra/pull/5009#issuecomment-1232488943).
|
For an example, see [PR #5009](https://github.com/ZcashFoundation/zebra/pull/5009#issuecomment-1232488943).
|
||||||
a. Check for open dependabot PRs, and
|
|
||||||
b. Manually check for updates to those crates on https://crates.io .
|
a. Check for open dependabot PRs, and
|
||||||
|
|
||||||
|
b. Manually check for updates to those crates on https://crates.io .
|
||||||
2. If there are still duplicate dependencies, try removing those dependencies by disabling crate features:
|
2. If there are still duplicate dependencies, try removing those dependencies by disabling crate features:
|
||||||
a. Check for features that Zebra activates in its `Cargo.toml` files, and try turning them off, then
|
|
||||||
b. Try adding `default-features = false` to Zebra's dependencies (see [PR #4082](https://github.com/ZcashFoundation/zebra/pull/4082/files)).
|
a. Check for features that Zebra activates in its `Cargo.toml` files, and try turning them off, then
|
||||||
|
|
||||||
|
b. Try adding `default-features = false` to Zebra's dependencies (see [PR #4082](https://github.com/ZcashFoundation/zebra/pull/4082/files)).
|
||||||
3. If there are still duplicate dependencies, add an exception to [`deny.toml`](https://github.com/ZcashFoundation/zebra/blob/main/deny.toml):
|
3. If there are still duplicate dependencies, add an exception to [`deny.toml`](https://github.com/ZcashFoundation/zebra/blob/main/deny.toml):
|
||||||
* Prefer exceptions for dependencies that are closer to Zebra in the dependency tree (sometimes this resolves other duplicates as well),
|
|
||||||
* Add exceptions for the earlier version of duplicate dependencies, not the later version, and
|
a. Prefer exceptions for dependencies that are closer to Zebra in the dependency tree (sometimes this resolves other duplicates as well),
|
||||||
* Add a comment about why the dependency exception is needed: what was the dependency update that caused it?
|
|
||||||
* For an example, see [PR #4890](https://github.com/ZcashFoundation/zebra/pull/4890/files).
|
b. Add exceptions for the earlier version of duplicate dependencies, not the later version, and
|
||||||
|
|
||||||
|
c. Add a comment about why the dependency exception is needed: what was the dependency update that caused it?
|
||||||
|
|
||||||
|
d. For an example, see [PR #4890](https://github.com/ZcashFoundation/zebra/pull/4890/files).
|
||||||
4. Repeat step 3 until the dependency warnings are fixed. Adding a single exception can resolve multiple warnings.
|
4. Repeat step 3 until the dependency warnings are fixed. Adding a single exception can resolve multiple warnings.
|
||||||
|
|
Loading…
Reference in New Issue