chitralverma commented on PR #9361:
URL: https://github.com/apache/opendal/pull/9361#issuecomment-7253179415
(AI-generated reply)
1. Restored in 2c86e8b1d. The doc test again compares each member doc with
its full core doc, paragraph by paragraph, and now does the same for each
struct doc. The expected prose comes from core's parsed docs: rustdoc links
keep their code span or text, `Capability::x` reads `opendal::Capability::x`,
and `ErrorKind::X` reads `X`. Each declaration is looked up inside its own
`struct … { … };` block. `MEMBER_REFERENCES` is gone, as is the struct-level
`STRUCT_REFERENCES`. The name-rewrite unit test now includes
``[`crate::ErrorKind::NotFound`]`` reading `` `NotFound` ``.
Scratch mutations on this head:
- Your case: with the generator documenting `ListOptions::recursive` as
defaulting to `true`, the doc test fails at "doc of `ListOptions::recursive`".
- Moving the `version` member from `StatOptions` into `ListOptions` fails
the doc test with "`StatOptions` lacks `version`", and the declaration test too.
- Rendering the `StatOptions` docs from core `ReadOptions`, whose fields
have the same names, fails the doc test.
2. Synced in 706b4bb8c, which merges `431e713e79`, and in 414fa5f77, which
merges current `main`. Regenerating changed the three `override_*` comments,
which now read "Request a `content-type` response header override from services
that support it, including for presigned stat requests." The description no
longer says they have no effect. I checked that `s3_head_object_request` adds
the `response-*` query arguments on an ordinary HeadObject.
#9348 also qualifies the `StatOptions` struct doc ("With valid, supported
options, stat returns `NotFound` for a missing file"), which the C++ header did
not render. 5bad84ab2 renders core's struct doc, minus its summary paragraph,
as `///` lines after the released `@brief` block, so both structs now carry it.
This changes comments only. A C++ test on `memory` checks that claim through
the binding: each unsupported condition fails with `Unsupported` for a missing
file too, and default and `override_*` options fail with `NotFound` there.
Checks on 414fa5f77: every `ci_odev.yml` generator plus `cargo fmt` leaves
no diff, dev tests and clippy pass, clang-format 18 leaves the C++ files
unchanged, and the C++ tests pass locally. The C++ CI job in a Linux container
(GCC 13 + ASan, valgrind, async clang-18 + ASan, docs) passed on 5bad84ab2. The
later commits change only dev tests and merge `main`.
--
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]