Conversation
igchor
left a comment
There was a problem hiding this comment.
Can we change the "Module" into "Group" or something similar? Usually, module means some standalone package/unit and not a collection of different classes.
Reviewable status: 0 of 37 files reviewed, 1 unresolved discussion (waiting on @karczex)
a discussion (no related file):
Regarding modules' names, I would suggest following change:
Data residency -> Allocation
Data accessors -> Data views
Split primitives into primitives and synchronization
Also, some things are missing I think (e.g pool, ctl)
lukaszstolarczuk
left a comment
There was a problem hiding this comment.
Reviewable status: 0 of 37 files reviewed, 5 unresolved discussions (waiting on @igchor and @karczex)
a discussion (no related file):
pls update CONTRIBUTING.md and mention docs grouping (@ingroup)
a discussion (no related file):
pls add ref (in some commit msg) to #1010
a discussion (no related file):
misspell in commit message Increarease -> Increase
a discussion (no related file):
Previously, igchor (Igor Chorążewicz) wrote…
Regarding modules' names, I would suggest following change:
Data residency -> Allocation
Data accessors -> Data views
Split primitives into primitives and synchronizationAlso, some things are missing I think (e.g pool, ctl)
do we want to have everything grouped? or just "the most important" classes...?
I guess, all public API should be assigned to some groups (so I think I agree with Igor 😉 )
doc/libpmemobj++.Doxyfile.in, line 872 at r2 (raw file):
INPUT = @LIBPMEMOBJCPP_ROOT_DIR@/include/libpmemobj++ \ @LIBPMEMOBJCPP_ROOT_DIR@/include/libpmemobj++/README.md \ @LIBPMEMOBJCPP_ROOT_DIR@/doc/group_defs.dox
- can you deliver at least a stub of this file (this '.dox' file perhaps requires some special syntax...?)
- and please rename to e.g.
groups_definitions
Codecov Report
@@ Coverage Diff @@
## master #1177 +/- ##
==========================================
- Coverage 94.12% 93.58% -0.55%
==========================================
Files 52 52
Lines 5144 4442 -702
==========================================
- Hits 4842 4157 -685
+ Misses 302 285 -17
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
KFilipek
left a comment
There was a problem hiding this comment.
Reviewed 1 of 16 files at r1, 1 of 28 files at r2.
Reviewable status: 2 of 37 files reviewed, 5 unresolved discussions (waiting on @igchor and @karczex)
KFilipek
left a comment
There was a problem hiding this comment.
Reviewable status: 2 of 37 files reviewed, 6 unresolved discussions (waiting on @igchor and @karczex)
doc/libpmemobj++.Doxyfile.in, line 494 at r2 (raw file):
EXTRACT_PRIVATE = YES
I think it should be disabled, to avoid generating documentation for garbage like helpers methods in string, output there is massive
8a507cd to
eda212c
Compare
karczex
left a comment
There was a problem hiding this comment.
Reviewable status: 1 of 43 files reviewed, 6 unresolved discussions (waiting on @igchor, @KFilipek, and @lukaszstolarczuk)
a discussion (no related file):
Previously, lukaszstolarczuk (Łukasz Stolarczuk) wrote…
pls update CONTRIBUTING.md and mention docs grouping (
@ingroup)
Done.
a discussion (no related file):
Previously, lukaszstolarczuk (Łukasz Stolarczuk) wrote…
pls add ref (in some commit msg) to #1010
Done.
a discussion (no related file):
Previously, lukaszstolarczuk (Łukasz Stolarczuk) wrote…
misspell in commit message
Increarease->Increase
Done.
doc/libpmemobj++.Doxyfile.in, line 494 at r2 (raw file):
Previously, KFilipek (Krzysztof Filipek) wrote…
EXTRACT_PRIVATE = YESI think it should be disabled, to avoid generating documentation for garbage like helpers methods in string, output there is massive
Done.
doc/libpmemobj++.Doxyfile.in, line 872 at r2 (raw file):
Previously, lukaszstolarczuk (Łukasz Stolarczuk) wrote…
- can you deliver at least a stub of this file (this '.dox' file perhaps requires some special syntax...?)
- and please rename to e.g.
groups_definitions
Done.
igchor
left a comment
There was a problem hiding this comment.
Reviewed 6 of 16 files at r1, 33 of 35 files at r4.
Reviewable status: 39 of 43 files reviewed, 5 unresolved discussions (waiting on @KFilipek and @lukaszstolarczuk)
doc/libpmemobj++.Doxyfile.in, line 842 at r5 (raw file):
# or unneeded files are turned off (from doxygen) #WARN_AS_ERROR = @DOXYGEN_WARN_AS_ERROR@ WARN_AS_ERROR = NO
Could you create an issue for this (unless we already have one)?
KFilipek
left a comment
There was a problem hiding this comment.
Reviewed 7 of 16 files at r1, 1 of 28 files at r2, 35 of 35 files at r4.
Reviewable status: all files reviewed, 7 unresolved discussions (waiting on @karczex and @lukaszstolarczuk)
include/libpmemobj++/timed_mutex.hpp, line 31 at r5 (raw file):
* concepts. The typical usage example would be: * @snippet mutex/mutex.cpp timed_mutex_example * @ingorup primitives
include/libpmemobj++/container/segment_vector.hpp, line 661 at r5 (raw file):
/* Non-member swap * @relates segment_vector * */
replace
* */with
*/include/libpmemobj++/container/vector.hpp, line 258 at r5 (raw file):
/* Non-member swap * @relates vector * */
same story
include/libpmemobj++/detail/temp_value.hpp, line 37 at r5 (raw file):
struct temp_value; /*
If it should be ignored by Doxygen just skip my comment
ab8d000 to
5b12f9f
Compare
karczex
left a comment
There was a problem hiding this comment.
Reviewable status: 40 of 43 files reviewed, 7 unresolved discussions (waiting on @igchor, @KFilipek, and @lukaszstolarczuk)
doc/libpmemobj++.Doxyfile.in, line 842 at r5 (raw file):
Previously, igchor (Igor Chorążewicz) wrote…
Could you create an issue for this (unless we already have one)?
include/libpmemobj++/timed_mutex.hpp, line 31 at r5 (raw file):
Previously, KFilipek (Krzysztof Filipek) wrote…
Good catch. Done
include/libpmemobj++/container/segment_vector.hpp, line 661 at r5 (raw file):
Previously, KFilipek (Krzysztof Filipek) wrote…
replace
* */with
*/
Done.
include/libpmemobj++/container/vector.hpp, line 258 at r5 (raw file):
Previously, KFilipek (Krzysztof Filipek) wrote…
same story
Done.
|
lukaszstolarczuk
left a comment
There was a problem hiding this comment.
Reviewed 8 of 16 files at r1, 30 of 35 files at r4, 3 of 3 files at r6.
Reviewable status: all files reviewed, 10 unresolved discussions (waiting on @karczex and @KFilipek)
CONTRIBUTING.md, line 40 at r6 (raw file):
* Each new feature should be documented using doxygen comment blocks. * Each non-member function should be added to corresponding class documentation by `@relates` tag * Each new API should be assigned to group by `@ingroup` tag. See `doc/groups_definitions.dox` file in the repository for details.
you can add a link to the file, actually
doc/groups_definitions.dox, line 2 at r6 (raw file):
# SPDX-License-Identifier: BSD-3-Clause # Copyright 2018-2021, Intel Corporation
2021 should be enough
include/libpmemobj++/pool.hpp, line 49 at r6 (raw file):
* The exmple of using pool with RAII idiom: * @snippet pool/pool_as_class_member.cpp pool_class_member_example *
why the empty line? Did you want to add something here? perhaps it should be in the primitives group (since it's a public class)
include/libpmemobj++/detail/temp_value.hpp, line 37 at r5 (raw file):
Previously, KFilipek (Krzysztof Filipek) wrote…
If it should be ignored by Doxygen just skip my comment
If I remember correctly, this comment made our lives harder and we decided to disable it in Doxygen parsing... and it's just a detail ns.
include/libpmemobj++/experimental/atomic_self_relative_ptr.hpp, line 26 at r6 (raw file):
* Doesn't automatically add itself to the transaction. * The user is responsible for persisting the data. *
remove this empty line (?)
utils/docker/run-doc-update.sh, line 50 at r6 (raw file):
pushd ${REPO_DIR} echo "Clone repo:" git clone --origin Local ${LOCAL_REPO} ${REPO_DIR}
lowercase local, for consistency
utils/docker/run-doc-update.sh, line 52 at r6 (raw file):
git clone --origin Local ${LOCAL_REPO} ${REPO_DIR} cd ${REPO_DIR} git remote add origin ${UPSTREAM}
UPSTREAM -> ORIGIN
utils/docker/run-doc-update.sh, line 60 at r6 (raw file):
git remote update git checkout -B ${TARGET_BRANCH} Local/${TARGET_BRANCH}
does this change work for you? if you're not on master/stable branch this script should exit (in the if section on top of the file)
5b12f9f to
80295bb
Compare
it has doxygen in version 1.9.x, which produces better documentation. Also, removed additional 'hub --version' step in the auto-doc-update script, since it appears to be redundant. Fixes: pmem#1010
using Doxygen 1.9.1 version.
Include graph is extremely unreadable, and not really useful
80295bb to
a788092
Compare
It's needed for ebr_0_drd and radix_concurrent_ierate_0_drd
It's needed to rename "Modules" section into "Features" https://www.doxygen.nl/manual/customize.html
It generates a lot not relevant documentation for helper methods
a788092 to
c231064
Compare
karczex
left a comment
There was a problem hiding this comment.
Reviewable status: 8 of 43 files reviewed, 10 unresolved discussions (waiting on @igchor, @KFilipek, and @lukaszstolarczuk)
CONTRIBUTING.md, line 40 at r6 (raw file):
Previously, lukaszstolarczuk (Łukasz Stolarczuk) wrote…
you can add a link to the file, actually
Done.
doc/groups_definitions.dox, line 2 at r6 (raw file):
Previously, lukaszstolarczuk (Łukasz Stolarczuk) wrote…
2021should be enough
Done.
include/libpmemobj++/pool.hpp, line 49 at r6 (raw file):
Previously, lukaszstolarczuk (Łukasz Stolarczuk) wrote…
why the empty line? Did you want to add something here? perhaps it should be in the primitives group (since it's a public class)
Done.
include/libpmemobj++/experimental/atomic_self_relative_ptr.hpp, line 26 at r6 (raw file):
Previously, lukaszstolarczuk (Łukasz Stolarczuk) wrote…
remove this empty line (?)
Done.
utils/docker/run-doc-update.sh, line 50 at r6 (raw file):
Previously, lukaszstolarczuk (Łukasz Stolarczuk) wrote…
lowercase
local, for consistency
:)
It cannot be done consistently. On one hand local is keyword in bash, on the other hand "local" is a word, which is commonly used to describe branch like this one.
utils/docker/run-doc-update.sh, line 52 at r6 (raw file):
Previously, lukaszstolarczuk (Łukasz Stolarczuk) wrote…
UPSTREAM -> ORIGIN
Done.
utils/docker/run-doc-update.sh, line 60 at r6 (raw file):
Previously, lukaszstolarczuk (Łukasz Stolarczuk) wrote…
does this change work for you? if you're not on master/stable branch this script should exit (in the
ifsection on top of the file)
It works, as I'm doing changes on my local master. I don't want to change basic functionality of this script, rather make it little bit more usable.
lukaszstolarczuk
left a comment
There was a problem hiding this comment.
Reviewed 1 of 35 files at r9, 32 of 34 files at r10, 1 of 1 files at r11.
Reviewable status: 42 of 43 files reviewed, 3 unresolved discussions (waiting on @igchor and @KFilipek)
utils/docker/run-doc-update.sh, line 50 at r6 (raw file):
Previously, karczex (Paweł Karczewski) wrote…
:)
It cannot be done consistently. On one handlocalis keyword in bash, on the other hand "local" is a word, which is commonly used to describe branch like this one.
och, yeah, my bad, I forgot it's a keyword
utils/docker/run-doc-update.sh, line 60 at r6 (raw file):
Previously, karczex (Paweł Karczewski) wrote…
It works, as I'm doing changes on my local master. I don't want to change basic functionality of this script, rather make it little bit more usable.
ok, sure, if you make it on master then everything is clear to me
karczex
left a comment
There was a problem hiding this comment.
Reviewable status: 42 of 43 files reviewed, 3 unresolved discussions (waiting on @igchor and @KFilipek)
include/libpmemobj++/timed_mutex.hpp, line 31 at r5 (raw file):
Previously, karczex (Paweł Karczewski) wrote…
Good catch. Done
Done.
include/libpmemobj++/container/segment_vector.hpp, line 661 at r5 (raw file):
Previously, karczex (Paweł Karczewski) wrote…
Done.
Done.
KFilipek
left a comment
There was a problem hiding this comment.
Reviewable status: 42 of 43 files reviewed, all discussions resolved (waiting on @igchor and @KFilipek)
This PR is build on top of #1074 with some output tweaks.
This change is