Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

[DRAFT] Expose eyre features as color-eyre features #142

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thenorili
Copy link

@thenorili thenorili commented Nov 19, 2023

This change exposes all eyre features as color-eyre features, allowing you to test these dependency features combinatorially with cargo test-all-features. Default eyre features were added as default color-eyre features.

As it stands the resulting test suite is extremely long, 256 runs, too long for CI. The --chunks feature can be used to split up and parallelize this process, but it's still a too much for CI as it exists. Maybe some of the eyre features could be added manually to the CI, but I don't know what combinations we'd be interested in - @pksunkara had some ideas though. If we reduce the combinatorial complexity some with a more restrained cargo-all-features configuration maybe that'd be something we'd like to pursue!

p.s. all 256 tests passed on stable locally

This change exposes all eyre features as color-eyre features,
allowing you to test these dependency features combinatorially
with `cargo test-all-features`. Default eyre features were added
as default color-eyre features.

As it stands the resulting test suite is extremely long, 256 runs, too
long for CI. The --chunks feature can be used to split up and
parallelize this process, but it's still a too much for CI as it exists.
Maybe some of the eyre features could be added manually to the CI, but I
don't know what combinations we'd be interested in - @pksunkara had some
ideas though. If we reduce the combinatorial complexity some with a more
restrained cargo-all-features configuration maybe that'd be something
we'd like to pursue!
@@ -12,10 +12,13 @@ categories = []
keywords = []

[features]
default = ["track-caller", "capture-spantrace"]
default = ["track-caller", "capture-spantrace", "auto-install", "track-caller"]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
default = ["track-caller", "capture-spantrace", "auto-install", "track-caller"]
default = ["auto-install", "capture-spantrace", "track-caller"]

"track-caller" was in there twice. It's easier to spot in alphabetic order.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eyre-rs/eyre#138 introduces "anyhow" as new eyre default feature flag.

eyre-rs/eyre#136 intends to make the new "anyhow" feature non-default in a breaking release.

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

Successfully merging this pull request may close these issues.

2 participants