Xuanwo opened a new pull request, #8727:
URL: https://github.com/apache/opendal/pull/8727
# Which issue does this PR close?
<!--
We generally require a GitHub issue to be filed for all bug fixes and
enhancements. You can link an issue to this PR using the GitHub syntax. For
example `Closes #123` indicates that this PR will close issue #123.
-->
Refs #6681.
# Rationale for this change
<!--
Why are you proposing this change? If this is already explained clearly in
the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand your
changes and offer better suggestions for fixes.
-->
`auto-simulate` became an optional default feature, and `opendal-core`
carries unit tests gated on `#[cfg(not(feature = "auto-simulate"))]` (e.g.
`explicit_simulate_layer_enables_create_dir` in `types::operator::builder`).
The `unit` job only runs `cargo nextest run --workspace --all-features`, so
those tests are compiled out and never run in CI. A regression under
`--no-default-features` would not be caught.
# What changes are included in this PR?
<!--
There is no need to duplicate the description in the issue here but it is
sometimes worth providing a summary of the individual changes in this PR.
-->
- Adds a `unit_no_default_features` job to `ci_core.yml` that runs:
```
cargo nextest run --locked --no-default-features \
-p opendal -p opendal-core \
--features opendal/auto-register-services,opendal/executors-tokio
```
`auto-register-services` + `executors-tokio` keep the `opendal` facade
unit test (`default_executor_runs_concurrent_reads`) eligible so the facade
path is exercised while `auto-simulate` stays off.
- The job only needs the Rust toolchain and nextest, so it is intentionally
lighter than `unit` (no rocksdb/foundationdb/protoc/java/python setup) and
finishes in well under a minute of test time.
Verified locally: `cargo nextest run --locked --no-default-features -p
opendal -p opendal-core --features
opendal/auto-register-services,opendal/executors-tokio` runs 311 tests, all
passing, including
`types::operator::builder::tests::explicit_simulate_layer_enables_create_dir`
(present only when `auto-simulate` is off) and `opendal
default_executor_tests::default_executor_runs_concurrent_reads`.
Default-features runs (`cargo nextest run -p opendal-core --lib`, 309 tests)
still pass.
# Are there any user-facing changes?
<!--
If there are user-facing changes then we may require documentation to be
updated before approving the PR.
-->
No user-facing changes; CI coverage only.
# Breaking changes
<!--
Leave this section empty for compatible changes. For breaking changes, add
the
breaking-changes label and use the following format outside this comment:
Affected packages: core, bindings/java
Migration:
- Replace `old_api()` with `new_api()`.
Use package names from dev/src/release/package.rs. Include bindings affected
by
behavior changes even when their source files are unchanged. Explain how
users
can migrate, or explain the removal and available alternatives.
-->
# AI Usage Statement
<!--
If AI materially assisted or authored this PR, list each harness/model/effort
combination that materially contributed, and briefly describe its role:
- Harness: Application or agent framework used to run the model.
- Model: Model name or identifier shown by the harness, with version if
available.
- Effort: Reasoning effort setting as named by the harness.
- Role: AI's contribution and any assumptions or unknowns that affect review.
Do not include routine command output or repeat information provided
elsewhere.
The accountable human author remains responsible for every submitted claim
and
change. If AI did not materially assist this PR, write "None".
-->
- Harness: pi coding agent (delegated via T3 Code)
- Model: devin/swe-2
- Effort: max
- Role: Located the coverage gap, authored the new CI job, ran the exact
commands locally to confirm the gated tests execute and pass. The `opendal`
README doctest fails under `--no-default-features` (pre-existing, needs a real
transport/executor); this PR intentionally scopes to unit tests, matching the
existing `unit` job.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]