Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix building mithril-common with some features and targets combinatory #1463

Merged
merged 5 commits into from Jan 26, 2024

Conversation

Alenar
Copy link
Collaborator

@Alenar Alenar commented Jan 26, 2024

Content

This PR fix the building of mithril-common for all it's matrix of features and targets.

Some examples that raise errors right now:

  • building with only the test_tools features fails because it's need the ColdKeyGenerator that's behind the random feature.
  • building with only the --all-targets directive fails horribly (30 errors) because the tests use a lot of tools that are behind the test_tools feature.
  • building it with only the fs and random features would fails since the FakeObserver is behind the test_tools feature that is disabled.

Pre-submit checklist

  • Branch
    • Tests are provided (if possible)
    • Crates versions are updated (if relevant)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
  • PR
    • No clippy warnings in the CI
    • Self-reviewed the diff
    • Useful pull request description
    • Reviewer requested

Comments

In order to check more easily if a feature combinatory is failing a new target has been added to the mithril-common makefiles that compute all features combinatory (the "powerset" of features) and run a cargo clippy on them.

@Alenar Alenar self-assigned this Jan 26, 2024
Copy link

github-actions bot commented Jan 26, 2024

Test Results

  3 files  ±0   33 suites  ±0   9m 28s ⏱️ +26s
784 tests ±0  784 ✅ ±0  0 💤 ±0  0 ❌ ±0 
857 runs  ±0  857 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 079d148. ± Comparison against base commit 4153c47.

♻️ This comment has been updated with latest results.

@Alenar Alenar force-pushed the djo/fix-build-common-feature-combinatory branch from 704d04e to 2570abd Compare January 26, 2024 10:23
Copy link
Member

@jpraynaud jpraynaud left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@Alenar Alenar force-pushed the djo/fix-build-common-feature-combinatory branch from 2570abd to 079d148 Compare January 26, 2024 13:53
@Alenar Alenar merged commit 5945700 into main Jan 26, 2024
36 of 37 checks passed
@Alenar Alenar deleted the djo/fix-build-common-feature-combinatory branch January 26, 2024 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants