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 inclusion of service-as-oracle tests in linera-chain #3583

Merged
merged 2 commits into from
Mar 17, 2025

Conversation

jvff
Copy link
Contributor

@jvff jvff commented Mar 17, 2025

Motivation

On main, running cargo test -p linera-chain fails to compile. That happens because some tests assume that the linera-execution/unstable-oracles feature flag was always enabled. CI failed to catch this because all tests are currently being executing with that feature enabled.

Proposal

Only include those tests if a new linera-chain/unstable-oracles feature is enabled, which is enabled if linera-core/unstable-oracles is enabled.

Test Plan

Ran cargo test -p linera-chain and cargo test -p linera-chain --features unstable-oracles manually.

CI was not updated because the current plan is to remove unstable-oracles in the next few days (#3524).

Release Plan

  • Nothing to do, because this only affects tests.

Links

@jvff jvff added the testing label Mar 17, 2025
@jvff jvff added this to the Testnet #2 milestone Mar 17, 2025
@jvff jvff requested review from ma2bd, afck, deuszx and bart-linera March 17, 2025 12:31
@jvff jvff self-assigned this Mar 17, 2025
@jvff jvff force-pushed the fix-service-as-oracle-tests-in-linera-chain branch from 6e34451 to d5b0b1a Compare March 17, 2025 12:46
jvff added 2 commits March 17, 2025 13:26
Ensure it is enabled by the respective feature in `linera-core`.
Fix the compilation error when attempting to build `linera-chain` tests
with the default features.
@jvff jvff force-pushed the fix-service-as-oracle-tests-in-linera-chain branch from d5b0b1a to bed2c0e Compare March 17, 2025 13:33
@jvff jvff merged commit 0453927 into linera-io:main Mar 17, 2025
23 checks passed
@jvff jvff deleted the fix-service-as-oracle-tests-in-linera-chain branch March 17, 2025 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants