instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
actor-framework__actor-framework__1528
actor-framework/actor-framework
1,528
defect
16b40d408d77544cb87708c1e8bf53cd1a61a278
641684d565da072d26f924cae246902dce5b5812
Implement requirement_failed exception
Relates https://github.com/actor-framework/actor-framework/issues/1479 The fail function has been implemented in https://github.com/actor-framework/actor-framework/pull/1518 but the proper `requirement_failed` error was not raised. Proper error has been added here. @Neverlord I think that the error can be added i...
diff --git a/libcaf_test/caf/test/runnable.cpp b/libcaf_test/caf/test/runnable.cpp index e799a6eebe..0d638fb580 100644 --- a/libcaf_test/caf/test/runnable.cpp +++ b/libcaf_test/caf/test/runnable.cpp @@ -24,6 +24,19 @@ runnable::~runnable() { // nop } +#ifdef CAF_ENABLE_EXCEPTIONS + +requirement_failed::requiremen...
1
1
1
[{"id": "G0", "claim": "Rework the exception design: model it on `nesting_error` instead of specializing `std::exception`, raise it via a `raise()` function on the exception class rather than `CAF_RAISE_ERROR`, keep only a source location for now, and add a new `catch` case in `runner.cpp` that only calls `default_repo...
null
actor-framework__actor-framework__1530
actor-framework/actor-framework
1,530
defect
3954643270889b32a3618f93035982af5de82110
cdea81b52ceeafd97ab09409b1750e2963e5433b
Add require function for all predicates
Relates https://github.com/actor-framework/actor-framework/issues/1479 @Neverlord a new `info()` function was added to in `reporter.cpp` to show the information without failing the test, as `fail()` will fail the test anyways. An alternative will be a `fail()` function which can take appropriate parameters as input ...
diff --git a/libcaf_test/CMakeLists.txt b/libcaf_test/CMakeLists.txt index c3d4026c13..f5db39e569 100644 --- a/libcaf_test/CMakeLists.txt +++ b/libcaf_test/CMakeLists.txt @@ -30,7 +30,7 @@ caf_add_component( caf/test/nesting_error.cpp caf/test/registry.cpp caf/test/reporter.cpp - caf/test/requirement_...
3
3
1
[{"id": "G0", "claim": "The require_* predicates should call the corresponding check_* functions and raise the requirement exception, with the failure message printed centrally in runner.cpp via print_error, instead of duplicating the comparison logic, demoting the useful error output to info severity and printing a ge...
null
actor-framework__actor-framework__1532
actor-framework/actor-framework
1,532
defect
3954643270889b32a3618f93035982af5de82110
fa492b952d6f045e6ec524dda8e869072f402e21
Re-implement inject in the deterministic fixture
I've also ported the `action` unit test to the new framework to have a use test actually using the new `inspect`.
diff --git a/libcaf_core/CMakeLists.txt b/libcaf_core/CMakeLists.txt index 7f834b7e2a..88b2a9eb2d 100644 --- a/libcaf_core/CMakeLists.txt +++ b/libcaf_core/CMakeLists.txt @@ -71,6 +71,7 @@ caf_add_component( caf/abstract_group.cpp caf/abstract_mailbox.cpp caf/action.cpp + caf/action.test.cpp caf/...
1
1
0
[{"id": "G0", "claim": "The added member declaration should be reformatted to `deterministic* fix;` (with a space after the asterisk) to satisfy clang-format.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
actor-framework__actor-framework__1543
actor-framework/actor-framework
1,543
defect
70102cd1566e00e80067dfae87e82f8abe8f0503
42cbbff5f64a3700a6493937ecc453b24fe729d8
Flush delta buffer after consuming input
This PR closes #1542. This PR also closes #1537. I've covered both issues with unit tests for compatibility. For these tests I've modified the fixture a little. Also solved some clang-tidy complains with static casts.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 78f84d1969..520974f2da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,8 @@ is based on [Keep a Changelog](https://keepachangelog.com). `caf::async::publisher`. - When failing to deserialize a request, the sender will receive an error of kind `sec::malform...
4
4
2
[{"id": "G0", "claim": "The CHANGELOG entry about the delta reset lacks context and few readers will understand it; rewrite it along the suggested lines.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The mock's magic return value 7 needs an expla...
null
actor-framework__actor-framework__1560
actor-framework/actor-framework
1,560
defect
bc1a4d0af4ddb4d505b8d26d5355b08306e1f8d4
039b68c650ee7a73f5813b23a77494d4638c2839
Add case insensitive compare to request header
Closes #1554. All field access is case insensitive now. I've also checked for const correctness.
diff --git a/libcaf_net/CMakeLists.txt b/libcaf_net/CMakeLists.txt index 09d655e698..10368152b5 100644 --- a/libcaf_net/CMakeLists.txt +++ b/libcaf_net/CMakeLists.txt @@ -42,6 +42,7 @@ caf_add_component( caf/net/http/method.cpp caf/net/http/request.cpp caf/net/http/request_header.cpp + caf/net/http/re...
3
3
1
[{"id": "G0", "claim": "Guard the check_throws assertion for field_at(4) with #ifdef CAF_ENABLE_EXCEPTIONS so the test also builds in exception-less configurations.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Use braced initialization (std::pair{...
null
actor-framework__actor-framework__1561
actor-framework/actor-framework
1,561
defect
d5c09e49d1b7147f684cd72294211cbd32949bc5
d1db2c41d63d389bdc42814659574219cb18a592
Add test for message_builder based on new framework
Relates https://github.com/actor-framework/actor-framework/issues/1557 The tests have been refactored a little bit to minimize duplication. The old tests have not been removed yet and kept as is.
diff --git a/libcaf_core/CMakeLists.txt b/libcaf_core/CMakeLists.txt index c504331a8c..d2eaa97517 100644 --- a/libcaf_core/CMakeLists.txt +++ b/libcaf_core/CMakeLists.txt @@ -192,6 +192,7 @@ caf_add_component( caf/make_config_option.cpp caf/message.cpp caf/message_builder.cpp + caf/message_builder.tes...
9
9
2
[{"id": "G0", "claim": "Rename the TEST to \"message_builder can build messages incrementally\" instead of \"message_builder can build messages incrementally with default-constructor\".", "category": "testing", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename the SECTION t...
null
actor-framework__actor-framework__1562
actor-framework/actor-framework
1,562
defect
d5c09e49d1b7147f684cd72294211cbd32949bc5
7619d19db0cf7bdd3fc59ef3cdda1c1afe32e691
Add tests for actor_companion
Relates to https://github.com/actor-framework/actor-framework/issues/1556 Adds new tests for actor_companion.cpp
diff --git a/libcaf_core/CMakeLists.txt b/libcaf_core/CMakeLists.txt index c504331a8c..2801eb2e30 100644 --- a/libcaf_core/CMakeLists.txt +++ b/libcaf_core/CMakeLists.txt @@ -77,6 +77,7 @@ caf_add_component( caf/actor_addr.cpp caf/actor_clock.cpp caf/actor_companion.cpp + caf/actor_companion.test.cpp ...
6
6
2
[{"id": "G0", "claim": "The enqueue cases in the SECTION blocks are already tested by sending a message to the companion earlier, so the duplicated test code should be removed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The first test should be rena...
null
actor-framework__actor-framework__1581
actor-framework/actor-framework
1,581
defect
08b783de4b62e45184f31bb60199ccb46d60c190
60a6e0aa4d74a5ae7300cfa37a434d81be283a74
Fix clang-tidy implicit move constructor
Clang-tidy complained that having a constructor accepting a forward reference may act as a move constructor. Pulled out of #1565.
diff --git a/libcaf_core/caf/catch_all.hpp b/libcaf_core/caf/catch_all.hpp index 1281199db9..b931410ff4 100644 --- a/libcaf_core/caf/catch_all.hpp +++ b/libcaf_core/caf/catch_all.hpp @@ -22,12 +22,11 @@ struct catch_all { F handler; - catch_all(catch_all&& x) : handler(std::move(x.handler)) { - // nop - } +...
3
3
0
[{"id": "G0", "claim": "In libcaf_core/caf/others.hpp, operator>> should use a deduced `auto` return type instead of spelling out `catch_all<F>`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The test-local `res_t` helpers in read_number.cpp ...
null
actor-framework__actor-framework__1588
actor-framework/actor-framework
1,588
defect
93d522fc51110c77320c27f452ab7a3417a80aed
51b029baf13c108e067d0bd34227095c0cb14279
Add on_error_return_item step along with tests
Relates https://github.com/actor-framework/actor-framework/issues/1389 Added a new step for observable on_error_return_item.
diff --git a/libcaf_core/caf/flow/observable.hpp b/libcaf_core/caf/flow/observable.hpp index c29502ed93..a82323d058 100644 --- a/libcaf_core/caf/flow/observable.hpp +++ b/libcaf_core/caf/flow/observable.hpp @@ -330,6 +330,11 @@ class observable_def { return add_step(step::on_error_complete<output_type>{}); } ...
9
8
3
[{"id": "G0", "claim": "Rename the new test from \"on_error_return_item() returns item on error\" to \"on_error_return_item() replaces an error with a value\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the SECTION title to \"on_error...
null
actor-framework__actor-framework__1598
actor-framework/actor-framework
1,598
defect
9269ba616aff329b93a10da20260afb5658f7e3b
9ba31f7be899d16131d3434568bb809bafd08292
Fix leak when using spawn_inactive
Closes #1597.
diff --git a/CHANGELOG.md b/CHANGELOG.md index e2355c57b4..fc3e931d76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,8 @@ is based on [Keep a Changelog](https://keepachangelog.com). system messages while waiting for the response (#1584). - Fix compiler errors and warnings for GCC 13 in C++23 mode (#1583)...
1
1
1
[{"id": "G0", "claim": "The new test only verifies that the actor launched (fn() called); the reviewer asks that it also check the strong refs of self, as done in the legacy requester test, to fully test the leak fix.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
actor-framework__actor-framework__1615
actor-framework/actor-framework
1,615
defect
4b17226830af33871ae8c98bc039869568a6e409
1bb5a8d6d80725d56ba3250fd36594dd03361c7f
Clean up type ID list builder capacity management
Follow up to #1614 to document the merged fix and clean up the convoluted capacity management in the `type_id_list_builder`. Also adds new tests for the class.
diff --git a/CHANGELOG.md b/CHANGELOG.md index ca9a459a65..ebdfa71d10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,8 @@ is based on [Keep a Changelog](https://keepachangelog.com). - Fix encoding of chunk size in chunked HTTP responses (#1587). - Fix leak when using `spawn_inactive` and not launching the ...
1
1
1
[{"id": "G0", "claim": "The test under WHEN(\"we call move_to_list\") calls builder.copy_to_list() instead of builder.move_to_list() - a copy-paste error that should be corrected.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
actor-framework__actor-framework__1628
actor-framework/actor-framework
1,628
defect
f173678200394889923f067d50ccec1616f4677d
77b8e5ed8c094d2d7d3d8ef917da17af4e7f4c02
Fix subscribe implementations that emit errors
Observables must call on_subscribe before calling any other member function on an observer. @shariarriday thanks for reporting this the other day. I finally found the time to look into this. I've also replaced several places in the `observables` test where we've concatenated an empty range with the `fail` operator t...
diff --git a/CHANGELOG.md b/CHANGELOG.md index ffd31ff413..5c42587392 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,8 @@ is based on [Keep a Changelog](https://keepachangelog.com). - Fix a minor bug in the deserialization of messages that caused CAF to allocate more storage than necessary (#1614). - Ad...
1
1
0
[{"id": "G0", "claim": "The on_error_return() tests no longer need to start from an empty range(1, 0) to build an erroring observable and can be refactored to apply on_error_return() directly to obs_error().", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
actor-framework__actor-framework__1634
actor-framework/actor-framework
1,634
defect
1fefa4a44c7e07fd952897fa423f034b9d0b33f2
2fbc7544d44e1addd524cdea91157bc01c50e51d
Add start_with step for observables
@Neverlord you had mentioned that this can be implemented as `just(x).concat(*this)`. But, upon reading the documentation for this step it looks that the only difference between `just()` and `start_with()` is that `start_with` expects a function that outputs `x`. Relates https://github.com/actor-framework/actor-fram...
diff --git a/libcaf_core/caf/flow/observable.hpp b/libcaf_core/caf/flow/observable.hpp index 4cc58d3c71..7a5fb6e710 100644 --- a/libcaf_core/caf/flow/observable.hpp +++ b/libcaf_core/caf/flow/observable.hpp @@ -370,6 +370,12 @@ class observable_def { return materialize().concat(std::forward<Inputs>(xs)...); } ...
4
4
2
[{"id": "G0", "claim": "start_with does not belong on the observable builder; per the ReactiveX docs x.startWith(y) should be an observable operator equivalent to just(y).concat(x).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "start_with should take th...
null
actor-framework__actor-framework__1640
actor-framework/actor-framework
1,640
defect
a3bde16eb4577421e6eddc35c47af465276eee74
d78c343a6d64c362dd2b001c91ea9d830921b57d
Move legacy test code out of the core module
Push code from the core module that only exists for (legacy) testing to `dsl.hpp`.
diff --git a/libcaf_core/CMakeLists.txt b/libcaf_core/CMakeLists.txt index 0c8bc17455..6dac7a54e3 100644 --- a/libcaf_core/CMakeLists.txt +++ b/libcaf_core/CMakeLists.txt @@ -143,7 +143,6 @@ caf_add_component( caf/detail/latch.test.cpp caf/detail/local_group_module.cpp caf/detail/mailbox_factory.cpp - ...
5
2
0
[{"id": "G0", "claim": "In prioritize_impl (and the function below), using jobs.begin() and jobs.end() instead of the b and e aliases would be nicer.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Could run_once fail the current test instead of ...
null
actor-framework__actor-framework__1642
actor-framework/actor-framework
1,642
defect
3a4b619e771f10689c335cc83bfd054b3d748567
a094fa78029b5f5af3c2d7b05e80c3cdef16654c
Remove caf.middleman.manual-multiplexing option
I know that this removes the OpenSSL tests entirely at the moment. I've already prepared Robot tests to replace them in `topic/openssl-robot-tests`. That's going to be a followup to this PR. Closes #1450.
diff --git a/libcaf_net/caf/net/middleman.cpp b/libcaf_net/caf/net/middleman.cpp index 808f30e085..e8964b48dd 100644 --- a/libcaf_net/caf/net/middleman.cpp +++ b/libcaf_net/caf/net/middleman.cpp @@ -79,16 +79,12 @@ middleman::~middleman() { } void middleman::start() { - if (!get_or(config(), "caf.middleman.manual-...
1
1
1
[{"id": "G0", "claim": "Stale references to the removed caf.middleman.manual-multiplexing option still remain in the code base (the net middleman option registration, examples/caf-application.conf, and the io middleman, where it is entangled with the network-backend parameter), and the author should go through the list...
null
actor-framework__actor-framework__1643
actor-framework/actor-framework
1,643
defect
1fefa4a44c7e07fd952897fa423f034b9d0b33f2
b406ec8afc54f03d675819f52d57930d9db4af4e
Support config via environment variable
Closes #1440. I've split the tests for `config_option`. The parts that made sense to keep in unit tests moved to a new test suite with the new testing framework. The high-level tests are now implemented in Robot tests with baseline checks. I find that much easier to work with and found a bug in the dump-content outp...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 36265c4f19..67efd166ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,15 @@ is based on [Keep a Changelog](https://keepachangelog.com). consume it as an observable (via a `publisher`, #1573). - The class `caf::unordered_flat_map` now has the `contains` and ...
11
7
2
[{"id": "G0", "claim": "The reviewer asks the author to confirm that the `type_id_t` argument of `config_value_writer::begin_object` is kept only for API compatibility, or to give another reason.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer ...
null
actor-framework__actor-framework__1658
actor-framework/actor-framework
1,658
defect
ae77ecbf7da21e64786050d6b5cb5dfadc5d45b0
dd70c423785f3275e42cf99f232da4780a89aa5e
Fix shutdown for actors with open streams
Closes #1657. There are actually a few smaller fixes/changes in there as well: - On the actor clock: calling `dispose()` on a scheduled action will now call `dispose()` on the decorator to clean up the actor reference early. - The `interval_action` looked rather suspicious. We will pass it to the actor clock, so...
diff --git a/CHANGELOG.md b/CHANGELOG.md index f82c370592..005bf9e7c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -49,6 +49,8 @@ is based on [Keep a Changelog](https://keepachangelog.com). Previously, dictionaries in lists missed surrounding braces. - CAF now parses `foo.bar = 42` in a config file as `foo { bar...
2
2
0
[{"id": "G0", "claim": "In interval_sub::schedule_next the local variable holding the single-shot action should be avoided in favour of passing make_single_shot_action directly to delay_until.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The r...
null
actor-framework__actor-framework__1659
actor-framework/actor-framework
1,659
defect
083b234039e7484d63243f0352a3e90c86639553
fb24ec9c66eb5f106b6cab5228fae972f0cb2e02
Add fix to dispose subscription on error for merge
Previously the subscription was not disposed for `on_error` / `failed_subscription` of an input observable. It has been added with a check in `on_next` to ensure that further input observables are not added if subscription fails for any earlier input.
diff --git a/libcaf_core/caf/flow/op/merge.hpp b/libcaf_core/caf/flow/op/merge.hpp index 0f49c131c4..1208732174 100644 --- a/libcaf_core/caf/flow/op/merge.hpp +++ b/libcaf_core/caf/flow/op/merge.hpp @@ -87,6 +87,8 @@ class merge_sub : public subscription::impl_base, void on_next(const observable<T>& what) override...
3
2
2
[{"id": "G0", "claim": "Calling dispose() on sub_ might re-enter on_complete or on_error, so sub_ must first be reset (moved out) and dispose() called on the local copy, i.e. `auto sub = std::move(sub_); sub.dispose();`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id...
null
actor-framework__actor-framework__1671
actor-framework/actor-framework
1,671
defect
3dffef326434f03f94d66074f0c494fb6e46fdf5
d55f0b80039225f7413959fd865d3f39999c0630
Fix compilation error on MSVC
Closes #1669. There are still a lot of warnings on MSVC when building DLL's, but at least this patch makes CAF compile and link.
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2db630ae79..3cc270f927 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -214,10 +214,6 @@ endfunction() function(caf_export_and_install_lib component) add_library(CAF::${component} ALIAS libcaf_${component}) string(TOUPPER "CAF_${component}_EXPORT" export_mac...
3
1
0
[{"id": "G0", "claim": "Use `auto` for the file-local globals in json_value.cpp (null_value_instance and undefined_value_instance), and possibly the other globals added by this PR, instead of spelling out the type.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id":...
null
actor-framework__actor-framework__1694
actor-framework/actor-framework
1,694
defect
552ff6e366b3d87220666c8c64afa305a8bb629f
43276a3308cc5579a11e7aa635e3823ddc833f93
Implement new log event type for logging
More prep work for https://github.com/actor-framework/actor-framework/issues/1652. The new `log_event` is going to be used for the `logger` once this has landed.
diff --git a/libcaf_core/CMakeLists.txt b/libcaf_core/CMakeLists.txt index a2cdc5200a..a51bc78090 100644 --- a/libcaf_core/CMakeLists.txt +++ b/libcaf_core/CMakeLists.txt @@ -232,6 +232,8 @@ caf_add_component( caf/json_writer.cpp caf/load_inspector.cpp caf/local_actor.cpp + caf/log_event.cpp + caf/...
5
4
0
[{"id": "G0", "claim": "The '// -- log_event ---' section banner comment in log_event.hpp is redundant and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "log_event::field_list::head should be default-initialized to nullptr.", ...
null
actor-framework__actor-framework__1695
actor-framework/actor-framework
1,695
defect
701adbb5a3c5f8c521b87757ae28650c5f33915b
be64e09f6ea62b4d7a9abaeb1214d4e8d322ee9e
Add new logging API for events with custom fields
Closes #1654.
diff --git a/libcaf_core/caf/chunked_string.cpp b/libcaf_core/caf/chunked_string.cpp index b06bbdfbf7..2de6525bed 100644 --- a/libcaf_core/caf/chunked_string.cpp +++ b/libcaf_core/caf/chunked_string.cpp @@ -8,6 +8,7 @@ #include <new> #include <numeric> +#include <ostream> namespace caf { @@ -33,6 +34,12 @@ std...
5
3
1
[{"id": "G0", "claim": "The new deep-copy and field code paths (deep_copy_to_node and the field() member functions that invoke it) are not covered by tests and should be covered, indirectly if necessary.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Ca...
null
actor-framework__actor-framework__1701
actor-framework/actor-framework
1,701
defect
636cea01f9221894442a2814c4d5e1f889f9d1f4
4d68f7b89221b7022d4ebd275dc61a1bafbce9cc
Increase coverage of TCP connect
The pipeline was an adventure to fix. Some docker containers that run the pipeline (looking at fedora and almalinux) don't have a loopback ipv6 address set up, unless the container joins a docker network. However, `localhost` still resolves the ipv6 address that is set up in `etc/hosts`. It took me a while to find...
diff --git a/examples/http/client.cpp b/examples/http/client.cpp index 937f41e308..f9a5af66b7 100644 --- a/examples/http/client.cpp +++ b/examples/http/client.cpp @@ -84,6 +84,8 @@ int caf_main(caf::actor_system& sys, const config& cfg) { // If we don't succeed at first, try up to 5 times with 1s delay. ...
4
4
0
[{"id": "G0", "claim": "The 50ms connection timeout added to the HTTP client example is too aggressive; in an example it should be something more relaxed, like >= 250ms.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The added comment above connection_ti...
null
actor-framework__actor-framework__1703
actor-framework/actor-framework
1,703
defect
636cea01f9221894442a2814c4d5e1f889f9d1f4
be6f76b5d6c8cc0ad29e4f1d51d959f742920391
Remove legacy tests and move to new framework
Move some legacy tests to new framework - string_algorithms - string_view - type_id_list - typed_behavior - typed_message_view - unit - uri - uuid
diff --git a/libcaf_core/CMakeLists.txt b/libcaf_core/CMakeLists.txt index f0f51f351e..c92a2d6489 100644 --- a/libcaf_core/CMakeLists.txt +++ b/libcaf_core/CMakeLists.txt @@ -273,7 +273,9 @@ caf_add_component( caf/stream.cpp caf/stream.test.cpp caf/string_algorithms.cpp + caf/string_algorithms.test.cp...
5
4
0
[{"id": "G0", "claim": "The new string_view and string_algorithms test files should include caf/test/test.hpp instead of caf/test/caf_test_main.hpp (dropping caf_test_main if it was added automatically).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
actor-framework__actor-framework__1717
actor-framework/actor-framework
1,717
defect
c2620e7ff8db26298946adfbb8dc9119776ec4ee
25046aaf86eeea3fc816f360c9354fc28aba24e5
Remove legacy tests and update for new test framework (Part 4)
Updated the following tests to new framework. Also introduced a test_type_id class to contain all of the test type id required by tests. - ipv4_address - ipv4_endpoint - ipv4_subnet - ipv6_address - ipv6_endpoint - ipv6_subnet - json_array - json_builder - json_object - json_reader - json_value - json_write...
diff --git a/libcaf_core/CMakeLists.txt b/libcaf_core/CMakeLists.txt index dba2e5121a..b02206c9d6 100644 --- a/libcaf_core/CMakeLists.txt +++ b/libcaf_core/CMakeLists.txt @@ -232,30 +232,47 @@ caf_add_component( caf/intrusive/linked_list.test.cpp caf/intrusive/stack.test.cpp caf/ipv4_address.cpp + caf...
2
2
1
[{"id": "G0", "claim": "The test macros like check_TO_STRING and check_COMPARISON should be uppercase.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Moving test internals into the public libcaf_test library (libcaf_test/caf/test/type_id.hpp) sh...
null
actor-framework__actor-framework__1719
actor-framework/actor-framework
1,719
defect
4b00e75228eda5d74c5666bb71de63256c3127dd
92667986d0079e6ae571a3bcdf79d5f25a3b4ca9
Move linked_list from json to detail
Closes #1692. Moves the linked list to detail namespace. I've named it `forward_list` to further differentiate it from `intrusive::linked_list`. Aside from that, while analyzing `intrusive::linked_list` I removed an unneeded initialization and some headers that where obsolete.
diff --git a/libcaf_core/CMakeLists.txt b/libcaf_core/CMakeLists.txt index dba2e5121a..7566272540 100644 --- a/libcaf_core/CMakeLists.txt +++ b/libcaf_core/CMakeLists.txt @@ -138,6 +138,7 @@ caf_add_component( caf/detail/default_mailbox.cpp caf/detail/default_mailbox.test.cpp caf/detail/format.test.cpp +...
5
4
2
[{"id": "G0", "claim": "chunked_string.hpp still uses CAF_USE_STD_FORMAT after the pull request removed the include of caf/detail/build_config.hpp, so the header should keep that include.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The stale TODO...
null
actor-framework__actor-framework__1748
actor-framework/actor-framework
1,748
defect
5b2e4f747282ea593fdd485f4bc78a3f112727ce
db637dd47ead2ceddb3c3e9d69c1d6eb57ce212e
Implement new mail DSL for anonymous messages
First chunk for the new `mail` API. The anonymous messages are the simplest DSL, but the other pieces will follow the same template. Relates #1745.
diff --git a/libcaf_core/CMakeLists.txt b/libcaf_core/CMakeLists.txt index 1f28f3cd0c..89b512a801 100644 --- a/libcaf_core/CMakeLists.txt +++ b/libcaf_core/CMakeLists.txt @@ -91,6 +91,7 @@ caf_add_component( caf/actor_system.test.cpp caf/actor_system_config.cpp caf/actor_system_config.test.cpp + caf/a...
2
2
0
[{"id": "G0", "claim": "The expired-sender branch in schedule_message(weak_actor_ptr sender, strong_actor_ptr receiver, ...) should be shortened and kept consistent with the surrounding style by rewriting it as a single `if (auto ssrc = src.lock())` statement.", "category": "maintainability", "verdict": "supported", "p...
null
actor-framework__actor-framework__1756
actor-framework/actor-framework
1,756
defect
4aacd7fde606d6976ed42a9dfd7a2b824b81457b
e502e1e081c25c6d4172acda8f3af6a869d1bcb5
Implement unit tests for scheduler implementations
Closes #1674.
diff --git a/libcaf_core/CMakeLists.txt b/libcaf_core/CMakeLists.txt index 4bb1ab577b..1175185572 100644 --- a/libcaf_core/CMakeLists.txt +++ b/libcaf_core/CMakeLists.txt @@ -303,6 +303,7 @@ caf_add_component( caf/scheduled_actor.cpp caf/scheduled_actor.test.cpp caf/scheduler.cpp + caf/scheduler.test....
2
2
1
[{"id": "G0", "claim": "The tests are not focused on what they test: they should exercise the scheduler at the proper level of abstraction (resumable) and only the units under test, instead of pulling in high-level API pieces built on top of the scheduler such as flows.", "category": "testing", "verdict": "supported", ...
null
actor-framework__actor-framework__1761
actor-framework/actor-framework
1,761
defect
ab1f6bf8c480e967f2087bbe2c9da8a7a7923f84
fffe1ef373ad68c6cc0aff57548c53f11c5afb35
Implement trait based type interfaces for actors
Relates #1600 Draft to check Windows/FreeBSD pipeline.
diff --git a/libcaf_core/CMakeLists.txt b/libcaf_core/CMakeLists.txt index ae49939608..725a018ebb 100644 --- a/libcaf_core/CMakeLists.txt +++ b/libcaf_core/CMakeLists.txt @@ -344,6 +344,7 @@ caf_add_component( caf/type_id.cpp caf/type_id_list.cpp caf/type_id_list.test.cpp + caf/typed_actor.test.cpp ...
9
9
1
[{"id": "G0", "claim": "The `trait` alias name in caf/detail/to_trait.hpp is too generic without context in its own file and should be renamed (e.g. `to_signatures_wrapper_t`) and documented with what it is used for.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id...
null
actor-framework__actor-framework__1763
actor-framework/actor-framework
1,763
defect
80ae89bfb80770981a2eda1909b92c152fca4dc0
7a1f0eeff377e60988e3277db825d697def42c9f
Add blocking member functions to futures
Closes https://github.com/actor-framework/actor-framework/issues/1760
diff --git a/libcaf_core/CMakeLists.txt b/libcaf_core/CMakeLists.txt index a6e577fad2..f44b9671ee 100644 --- a/libcaf_core/CMakeLists.txt +++ b/libcaf_core/CMakeLists.txt @@ -351,6 +351,7 @@ caf_add_component( caf/uri_builder.cpp caf/uuid.cpp caf/uuid.test.cpp + caf/detail/beacon.cpp LEGACY_TEST_SO...
5
4
2
[{"id": "G0", "claim": "The relative-timeout overload should be a template over std::chrono::duration<Rep, Period> and dispatch to the overload taking an absolute timeout (now() + timeout) instead of taking actor_clock::duration_type with its own wait_for body.", "category": "design", "verdict": "supported", "priority"...
null
actor-framework__actor-framework__1803
actor-framework/actor-framework
1,803
defect
26e454d9deaf5ae19b45fb56765b2212ad80feaf
a035d2f335243829b39e27e38b411581e646a607
Fix parsing of <arg> syntax in scenarios
Closes #1799. Decided to do this first because having an dedicated outline block might be useful for #1776.
diff --git a/libcaf_test/caf/test/block.cpp b/libcaf_test/caf/test/block.cpp index d1707acae1..2f11343a97 100644 --- a/libcaf_test/caf/test/block.cpp +++ b/libcaf_test/caf/test/block.cpp @@ -102,49 +102,55 @@ void block::lazy_init() { if (!description_.empty() || raw_description_.empty()) return; description...
4
4
0
[{"id": "G0", "claim": "The <arg> parsing in block::lazy_init should use guard style - check for the non-outline case first, assign the raw description and return - instead of nesting the parsing loop in an else branch.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1...
null
actor-framework__actor-framework__1806
actor-framework/actor-framework
1,806
defect
fc19c1e4b473b45b359508cb43c30a882e7b818c
ccccfc59096524aaae2aee468c94f7904973565d
Implement new `set_idle_handler`
Closes #1789.
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 09d9e7f49a..d45b75793b 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -24,12 +24,13 @@ add_core_example(. hello_world) add_core_example(config read-json) # basic message passing primitives -add_core_example(message_passing a...
1
1
1
[{"id": "G0", "claim": "Instead of silently discarding an infinite idle delay, setting an idle handler with an infinite delay (with a strong reference) should raise an error or assertion rather than silently return.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
actor-framework__actor-framework__1817
actor-framework/actor-framework
1,817
defect
f25f7305e114845a902c21eeab59155caaad691e
a9e1239c1fa75dfb6e9b0bb10a843ca3897fcd52
Parse username and password in URI
Closes #1814. I've added an extra state to parse the content after ':', since it can be both, port or password. The content before ':' is stored temporarly to a memory variable. With the approach used I kept as much logic as possible in SM transitions. However, since port is parsed as a decimal number, and password as...
diff --git a/libcaf_core/caf/detail/parser/read_uri.hpp b/libcaf_core/caf/detail/parser/read_uri.hpp index 8387de7403..9b5b0b457f 100644 --- a/libcaf_core/caf/detail/parser/read_uri.hpp +++ b/libcaf_core/caf/detail/parser/read_uri.hpp @@ -99,13 +99,13 @@ template <class State, class Consumer> void read_uri(State& ps, ...
6
6
2
[{"id": "G0", "claim": "The parser must not use `std::stoi` because it can throw; a non-throwing conversion such as caf::detail::parse should be used instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A second `memory` string is unnecessary; ca...
null
actor-framework__actor-framework__1820
actor-framework/actor-framework
1,820
defect
f39377fba1405edf8951f6483dfb9c5401e90de5
ca5a8462020b9c6d82e932934c9ccea4b868fbdd
Add new format_to_error utility function
This was originally part of #1816, but I thought it's worth keeping even though we're not going through with the `error` redesign.
diff --git a/examples/http/rest.cpp b/examples/http/rest.cpp index 880b2a7628..eadf305d0b 100644 --- a/examples/http/rest.cpp +++ b/examples/http/rest.cpp @@ -12,6 +12,7 @@ #include "caf/deep_to_string.hpp" #include "caf/defaults.hpp" #include "caf/event_based_actor.hpp" +#include "caf/format_to_error.hpp" #include...
1
1
0
[{"id": "G0", "claim": "Reformat the TODO comment in config_value::can_convert_to_dictionary, which the change wrapped with an extra line break leaving \"an\" alone on its own line.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
actor-framework__actor-framework__1838
actor-framework/actor-framework
1,838
defect
afb8de5002522283daf155dba4471abf5df1ed63
c548646772f167f80917d04bcf79fb5224036416
Add version header and ABI version token
Relates #1254. - shift the version information to CMake - auto-generate CAF's version macros from CMake - add a new version.hpp header to get versions from CAF at run-time - add an ABI token to the `actor_system` constructor The latter will force a call to `caf::version::make_abi_token()` for all instances whe...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 217ae8f2ba..142fdf53e4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,36 @@ cmake_minimum_required(VERSION 3.13..3.27 FATAL_ERROR) -project(CAF CXX) +project(CAF VERSION 1.0.0 LANGUAGES CXX) + +# -- version boilerplate ------------------------------------...
2
2
0
[{"id": "G0", "claim": "Fix the typo in the added doc comment so it reads \"Checks whether the ABI of the middleman is compatible with the CAF core.\" instead of \"ghe ABI\" (suggested for io/middleman.hpp, net/middleman.hpp and openssl/manager.hpp).", "category": "documentation", "verdict": "supported", "priority": "P...
null
actor-framework__actor-framework__1839
actor-framework/actor-framework
1,839
defect
afb8de5002522283daf155dba4471abf5df1ed63
1f5f672f84d6dbbafbfdef9935d5f7ed6459ea7f
Migrate actor lifetime test to new framework
The actor lifetime test has been reimplemented without the deterministic fixture. The check to ensure that the destructors has been called has been moved out from the tester behavior and it has been added in the test alongside synchronization. Relates https://github.com/actor-framework/actor-framework/issues/1731
diff --git a/libcaf_core/CMakeLists.txt b/libcaf_core/CMakeLists.txt index b3bd7b69a6..e1beed14f2 100644 --- a/libcaf_core/CMakeLists.txt +++ b/libcaf_core/CMakeLists.txt @@ -83,6 +83,7 @@ caf_add_component( caf/actor_control_block.cpp caf/actor_factory.test.cpp caf/actor_from_state.test.cpp + caf/act...
6
4
0
[{"id": "G0", "claim": "The now-empty LEGACY_TEST_SUITES entry in libcaf_core/CMakeLists.txt is no longer needed and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test file should use `using namespace std::literals;` inst...
null
actor-framework__actor-framework__1853
actor-framework/actor-framework
1,853
defect
f66384127c4f24ef19796a20f09fe765931929ea
3e518fbe4eecb9ac6c77426f9442ee1c0b068199
Fix parsing of Windows-style line endings
Fixes #1850.
diff --git a/CHANGELOG.md b/CHANGELOG.md index a1f0ff1164..2fdc0b07f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,8 @@ is based on [Keep a Changelog](https://keepachangelog.com). member variables: `name` and (an optional) `password`. Further, the `userinfo` field is now optional in order to differen...
1
1
0
[{"id": "G0", "claim": "Remove the leftover debug puts(\"WHY\") statement from the test fixture's parse helper.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
actor-framework__actor-framework__1902
actor-framework/actor-framework
1,902
defect
f1940186988d898941ade23e2a1c3bbb5465285b
7a38ada378f4731ac03325e1d64a590c298c784f
Fix ctor access when spawning io::broker
Closes #1900
diff --git a/libcaf_io/CMakeLists.txt b/libcaf_io/CMakeLists.txt index 9e74a7e543..55b4437346 100644 --- a/libcaf_io/CMakeLists.txt +++ b/libcaf_io/CMakeLists.txt @@ -36,6 +36,7 @@ caf_add_component( caf/io/datagram_servant.cpp caf/io/doorman.cpp caf/io/middleman.cpp + caf/io/middleman.test.cpp c...
2
2
1
[{"id": "G0", "claim": "The regression test should be named descriptively after the issue (e.g. \"GH-1900 regression\") instead of \"spawn client works\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should not actually run spawn_clie...
null
actor-framework__actor-framework__1903
actor-framework/actor-framework
1,903
defect
2d163974acef46052987c5a0b6a458fccefb00f2
b149607b53a0ada2fb4a922f47b42c2349a842f7
Fix errors when using std::format
This was reported in the community chatroom. We want to use the same C++ version when detecting std::format support as when compiling our targets.
diff --git a/CMakeLists.txt b/CMakeLists.txt index c11e6e521f..4aa2b8efb4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -155,8 +155,12 @@ if(NOT DEFINED CAF_USE_STD_FORMAT) set(snippet "#include <format> #include <iostream> int main() { std::cout << std::format(\"{}\", \"o...
1
1
1
[{"id": "G0", "claim": "The CMake flag setup added for check_cxx_source_runs won't work on MSVC, and fixing the std::format detection now would break the ABI against CAF 1.0.0, so the auto-detection should be removed entirely and CAF_USE_STD_FORMAT turned into an option that defaults to OFF (revisit in CAF 2.0).", "cat...
null
actor-framework__actor-framework__1925
actor-framework/actor-framework
1,925
defect
2a3f9a41ea4d1d4df4f9660a633299f7e1461155
5fdc105641bffdc9f3baa3b34907f0b200edaf0e
Graceful shutdown in http::async_client
Fixes #1908. I didn't call down->shutdown. This also implements unit tests for the `http::async_client,` and fixes another bug where two `Content-Lengths` might appear in the header fields (one line change).
diff --git a/libcaf_net/CMakeLists.txt b/libcaf_net/CMakeLists.txt index 703f822ec6..3631c6e8c5 100644 --- a/libcaf_net/CMakeLists.txt +++ b/libcaf_net/CMakeLists.txt @@ -47,6 +47,7 @@ caf_add_component( caf/net/generic_lower_layer.cpp caf/net/generic_upper_layer.cpp caf/net/http/async_client.cpp + ca...
3
2
1
[{"id": "G0", "claim": "The shutdown calls in async_client_impl::abort() are wrong: abort is the callback for the lower layer to clean up upper layers, so it shouldn't call down->shutdown() at all — and the duplicated, partly unguarded shutdown call the author called 'very peculiar' should be changed.", "category": "co...
null
actor-framework__actor-framework__1941
actor-framework/actor-framework
1,941
defect
f336b71ba0089b88a58be771891ba6c3141e8879
76715cc12218101701aa7f3d3ac3df1e3b790669
Add retry flow operator
Relates https://github.com/actor-framework/actor-framework/issues/1389 Adds retry operator that retries only when the predicate returns true. The predicate should accept one argument of type caf::error.
diff --git a/libcaf_core/CMakeLists.txt b/libcaf_core/CMakeLists.txt index 4e2c9a443f..0aae964562 100644 --- a/libcaf_core/CMakeLists.txt +++ b/libcaf_core/CMakeLists.txt @@ -252,6 +252,7 @@ caf_add_component( caf/flow/op/prefix_and_tail.test.cpp caf/flow/op/publish.test.cpp caf/flow/op/pullable.cpp + ...
13
13
4
[{"id": "G0", "claim": "The doc comment on observable::retry should say that the operator re-subscribes to the input observable on error for as long as the predicate returns true, instead of \"Retries input observable on error when predicate returns true.\".", "category": "documentation", "verdict": "supported", "prior...
null
actor-framework__actor-framework__1949
actor-framework/actor-framework
1,949
defect
94cec61ae72559edec09e53e12917840d4780e66
bb24c1936e5ee961c1dd79f3a9abff9fb530c172
Escape non-printable characters in JSON output
Fixes #1937.
diff --git a/libcaf_core/caf/detail/json.cpp b/libcaf_core/caf/detail/json.cpp index 5fd708f8da..f8c43dd646 100644 --- a/libcaf_core/caf/detail/json.cpp +++ b/libcaf_core/caf/detail/json.cpp @@ -23,11 +23,54 @@ CAF_PUSH_UNUSED_LABEL_WARNING #include "caf/detail/parser/fsm.hpp" +namespace caf::detail::parser { + n...
14
12
5
[{"id": "G0", "claim": "The JSON reader should support the \\uxxxx escape syntax, verified by a roundtrip test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The helper from_utf16 combines UTF-16 surrogates into a UTF-32 code point, so surrogates_to_...
null
actor-framework__actor-framework__1950
actor-framework/actor-framework
1,950
defect
94cec61ae72559edec09e53e12917840d4780e66
bd72738172e99be969b360b2827873ad03008f8b
Update comments to resolve doxygen warnings
Closes https://github.com/actor-framework/actor-framework/issues/1946
diff --git a/cmake/Doxyfile.in b/cmake/Doxyfile.in index 8e95fd5a44..d00945d0da 100644 --- a/cmake/Doxyfile.in +++ b/cmake/Doxyfile.in @@ -251,6 +251,7 @@ TAB_SIZE = 2 # @} or use a double escape (\\{ and \\}) ALIASES = "experimental=@attention This feature is **experimental**." +ALIASE...
12
12
1
[{"id": "G0", "claim": "The `@memberof caf::detail` commands added in parse.hpp are unnecessary because the functions are already properly defined in the namespace.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Replacing `@copydoc cvalue` with `@...
null
actor-framework__actor-framework__1983
actor-framework/actor-framework
1,983
defect
e441af21e57b91a4cf5e471d8d0b2f3983a08de1
3512731491c075fd09f8bc1b5279aa5fdcd4ad4f
Update lp framing to support max message size
Closes https://github.com/actor-framework/actor-framework/issues/1896
diff --git a/examples/length_prefix_framing/chat-client.cpp b/examples/length_prefix_framing/chat-client.cpp index 23ed7c4c27..2a647e1236 100644 --- a/examples/length_prefix_framing/chat-client.cpp +++ b/examples/length_prefix_framing/chat-client.cpp @@ -69,7 +69,7 @@ int caf_main(caf::actor_system& sys, const config& ...
5
5
4
[{"id": "G0", "claim": "The default length-prefix size should be 32-bit so that call sites such as the chat-client example need no changes.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new libcaf_net/caf/net/dsl/lp_custom_config.hpp header should b...
null
actor-framework__actor-framework__1985
actor-framework/actor-framework
1,985
defect
500410c872cdb0ac9479f1c3e7684c4de5adbce4
64bd85a417683e28f41b8e4b48ee4375f3875b91
Fix warnings building CAF with LLVM 19 on macOS
This fixes all compiler warnings when building CAF on macOS with LLVM 19.1.6. This fixes three kinds of bugs: - `-Wdocumentation`: `@throws` now requires a description. - `-Winvalid-offsetof`: This was already suppressed for GCC, but Clang now detects this as well. - `-Wmissing-field-initializers`: For fields tha...
diff --git a/libcaf_core/caf/actor_storage.hpp b/libcaf_core/caf/actor_storage.hpp index 049443a9fd..aa8eb52b49 100644 --- a/libcaf_core/caf/actor_storage.hpp +++ b/libcaf_core/caf/actor_storage.hpp @@ -13,10 +13,7 @@ #include <new> #include <type_traits> -#ifdef CAF_GCC -# pragma GCC diagnostic push -# pragma GC...
2
1
1
[{"id": "G0", "claim": "The added `= {}` default member initializers on the test struct's fields are unnecessary - a struct default-initializes its fields, all fields here have default constructors, and the codebase does not initialize fields this way.", "category": "maintainability", "verdict": "opposed", "priority": ...
null
actor-framework__actor-framework__1992
actor-framework/actor-framework
1,992
defect
916d957408e33de75c215c896b8752519ee8724d
3a0fb3e39328c997ce46602d75dd479b0da79843
Add on_error_resume_next flow operator
Relates https://github.com/actor-framework/actor-framework/issues/1389
diff --git a/libcaf_core/CMakeLists.txt b/libcaf_core/CMakeLists.txt index cf3d337b5a..6b3927a39b 100644 --- a/libcaf_core/CMakeLists.txt +++ b/libcaf_core/CMakeLists.txt @@ -240,6 +240,7 @@ caf_add_component( caf/flow/observable_builder.cpp caf/flow/observe_on.test.cpp caf/flow/op/buffer.test.cpp + c...
10
10
7
[{"id": "G0", "claim": "Taking Predicate and Fallback by value copies them, so lambdas capturing non-copyable types (e.g. a unique pointer) will not work; they should be taken by forwarding references, here and in the other places throughout this PR.", "category": "design", "verdict": "supported", "priority": "P1", "sc...
null
actor-framework__actor-framework__2014
actor-framework/actor-framework
2,014
defect
9bfd3df506b3cbce549946cd1e7a6d764daaf602
ce519d14388e3b7c88b9c66652e48426f87a5bd7
Allow setting max_concurrent for merge operators
Closes #2012.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 924060dcf6..689ecbb3c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ is based on [Keep a Changelog](https://keepachangelog.com). - Add intermediary types for the `mail` API as `[[nodiscard]]` to make it easier to spot mistakes when chaining calls. +- T...
3
3
2
[{"id": "G0", "claim": "The new max_concurrent parameter lacks a comment explaining its scaling behavior, the rationale for the low default, a reasonable default for finite vs infinite streams, and how inputs notice when they hit the limit.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope...
null
actor-framework__actor-framework__2021
actor-framework/actor-framework
2,021
defect
a15c43dfe12028361106771330c56a4a31a6dd6f
80560bd731b46360461ccc4418f44d904195abdd
Add startup check for socket manager in HTTP client factory
Closes #1954. Hard to test this since all our multiplexer tests run the `mpx` thread locally. However, I confirmed the code from the ticket running. This code does break ABI. I don't know a way of checking if `mpx` is shutting down locally. Comparing the number of running socket managers doesn't work since running...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 113be495db..27b73ffc4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com). +## 2.0.0 + +### Changed + +- Serializer int...
3
3
0
[{"id": "G0", "claim": "In default_multiplexer::start the in-thread branch should return do_start(mgr)'s result instead of re-checking the shutdown flag with `return !shutting_down_`, since do_start already checks the flag.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"...
null
actor-framework__actor-framework__2036
actor-framework/actor-framework
2,036
defect
6fec7c88d333a944483c87c69f9cd7cb7e28d1a6
38dcde9c7540f501aa6aad65278f5c15baad5925
Use fast-pimpl idiom for `stringification_inspector`
Relates https://github.com/actor-framework/actor-framework/issues/1873
diff --git a/libcaf_core/caf/detail/stringification_inspector.cpp b/libcaf_core/caf/detail/stringification_inspector.cpp index 937b0587be..cff255b4e1 100644 --- a/libcaf_core/caf/detail/stringification_inspector.cpp +++ b/libcaf_core/caf/detail/stringification_inspector.cpp @@ -6,216 +6,430 @@ #include "caf/actor_co...
1
1
1
[{"id": "G0", "claim": "Helpers like sep() and result() should not be part of the public interface, and the builtin functions (e.g. for map-like types) should be broken down using the inspection API (begin_associative_array/end_associative_array with a stack tracking context, as in json_writer) instead of manually asse...
null
actor-framework__actor-framework__2040
actor-framework/actor-framework
2,040
defect
e00cf425ced4ac705ade745d3d92b6eb4b41c153
6286e5d38a3c1e2edff74f4053ebae0d480b476f
Add label dimension to caf.system.running-actors
Closes #2039. Relates #2037.
diff --git a/CHANGELOG.md b/CHANGELOG.md index d898773acd..82c13ae2b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,14 @@ is based on [Keep a Changelog](https://keepachangelog.com). of actor handles. There are also two new base types for serialization: `byte_reader` and `byte_writer`. These new types ...
2
1
0
[{"id": "G0", "claim": "At some point it would probably be good to have integration tests set up that verify the metrics per name.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR should add back the timeout for how long to wait for actors to exit ...
null
actor-framework__actor-framework__2049
actor-framework/actor-framework
2,049
defect
788bb75ac0fa781689b26cd00c863a9ea26fd2e2
cdfcf0974e7b989881af88be4d46ba3629224054
Fix parsing of flags on the command line
Boolean flags now accept arguments on the command line (#2048). For example, `--foo=true` is now equivalent to `--foo` and `--foo=false` will set the flag to `false`. Short options like `-f` only accept the argument when passing it without a space, e.g., `-ffalse`.
diff --git a/CHANGELOG.md b/CHANGELOG.md index cc16b5f121..e4670b6da4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,10 @@ is based on [Keep a Changelog](https://keepachangelog.com). `actor_cast`. This resolves an issue with `send` that could lead to undefined behavior (#1972). - Add missing export de...
1
1
0
[{"id": "G0", "claim": "The pull request should add a test covering space-separated arguments for boolean flags, such as `--value true` and `--value false`.", "category": "testing", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
actor-framework__actor-framework__2053
actor-framework/actor-framework
2,053
defect
ddbac47f8bae38cb0ea569a3352d7dc7eb8ff674
0ef31fa4edaef378311faadbd63076d240b7c962
Implement HTTP chunked response
Closes #2038 Implemented chunked reading.
diff --git a/libcaf_net/caf/net/http/client.cpp b/libcaf_net/caf/net/http/client.cpp index 34af2d3047..24dfc2366a 100644 --- a/libcaf_net/caf/net/http/client.cpp +++ b/libcaf_net/caf/net/http/client.cpp @@ -206,10 +206,49 @@ class client_impl : public client { input.subspan(payload_len_); mode_ = mode::re...
5
5
2
[{"id": "G0", "claim": "The buffer_.reserve call before a single full-range insert is unnecessary and should be removed.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request needs additional tests covering edge cases and errors of the new...
null
actor-framework__actor-framework__2057
actor-framework/actor-framework
2,057
defect
17ea321a8952ccefa1c295722e6d4e08120b80c4
e2bcb8374da4cd11af95376470fb17bc77f044a4
Fix -Wconversion warnings
Closes https://github.com/actor-framework/actor-framework/issues/1449
diff --git a/examples/message_passing/fan_out_request.cpp b/examples/message_passing/fan_out_request.cpp index 0544d7a043..4e02529516 100644 --- a/examples/message_passing/fan_out_request.cpp +++ b/examples/message_passing/fan_out_request.cpp @@ -113,7 +113,8 @@ struct matrix_state { .then( [thi...
8
7
1
[{"id": "G0", "claim": "Writing `long int` is a waste of space and the signature should just say `long`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The lambda should capture only `pos` and take an `auto` parameter instead of capturing everyt...
null
actor-framework__actor-framework__2066
actor-framework/actor-framework
2,066
defect
795ec9cdf689833dd25ca52357b72eb9f9178a08
4a1fd7fc7e03f2c42ed329341009a8e2fe00d394
Allow inheriting from JSON reader/writer
Overriding how actors are serialized / deserialized is an important customization point. This patch allows specifically overriding this member function on the JSON (de)serializer without opening it up more than necessary.
diff --git a/libcaf_core/caf/json_reader.cpp b/libcaf_core/caf/json_reader.cpp index 93e26d7dac..874441507f 100644 --- a/libcaf_core/caf/json_reader.cpp +++ b/libcaf_core/caf/json_reader.cpp @@ -4,10 +4,11 @@ #include "caf/json_reader.hpp" +#include "caf/actor_control_block.hpp" +#include "caf/deserializer.hpp" #...
1
1
0
[{"id": "G0", "claim": "Quick tests should be added to cover serialization/deserialization of actor types by the new inheritable JSON reader/writer.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
actor-framework__actor-framework__2067
actor-framework/actor-framework
2,067
defect
795ec9cdf689833dd25ca52357b72eb9f9178a08
3f415c62fa9cc7d6fbfc0ca77ae1fbcaba8e8fd0
Make the interface part of the handle
- introduce a new `meta` utility for storing actor interfaces - simplify `make_actor` setup, get rid of `actor_storage` - store the actor interface in the `actor_control_block` Closes #914.
diff --git a/libcaf_core/CMakeLists.txt b/libcaf_core/CMakeLists.txt index 5c766f9e31..d1e5139c5d 100644 --- a/libcaf_core/CMakeLists.txt +++ b/libcaf_core/CMakeLists.txt @@ -320,6 +320,8 @@ caf_add_component( caf/message_id.test.cpp caf/message_lifetime.test.cpp caf/messaging.test.cpp + caf/meta/hand...
5
3
1
[{"id": "G0", "claim": "The doc comment for meta::handler duplicates the word \"handler\" (\"Descriptor for a message handler handler\").", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The assignability direction looks backwards to the reviewer: t...
null
actor-framework__actor-framework__2091
actor-framework/actor-framework
2,091
defect
faddf2e15ce6caa420fcb0a355e21cd89aaa21d7
c238bc41b5d27737312a801e7a68fd9049420fbe
Add support for setting SSL SNI hostname
Closes #2084 No idea how to unit test this. I did try fetching the sites from the ticket and can confirm it works.
diff --git a/examples/http/client.cpp b/examples/http/client.cpp index 2f136e7a63..6c4f5b13cd 100644 --- a/examples/http/client.cpp +++ b/examples/http/client.cpp @@ -75,9 +75,10 @@ int caf_main(caf::actor_system& sys, const config& cfg) { auto result = http::with(sys) // Lazy load TLS when connecting ...
5
4
2
[{"id": "G0", "claim": "The connection setter should be named `sni_hostname` and marked `[[nodiscard]]`, and the connection should also expose a getter for the SNI hostname.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The getter's doc comment should s...
null
actor-framework__actor-framework__2100
actor-framework/actor-framework
2,100
defect
dfbf8a36b45ad0ddaf00582ec869914ba70ead8a
b561745b81684fcb268d10b46e41856c5f1eeb4f
Implement fan out request in the new mail API
This PR covers the fan_out_request for event based messages. Since this is open for a while and grown in size, I propose this for the first round of review, while some things like the delayed and blocking version of the request will be a followup. Relates #2009
diff --git a/libcaf_core/caf/abstract_scheduled_actor.hpp b/libcaf_core/caf/abstract_scheduled_actor.hpp index 14f96c7377..8800353615 100644 --- a/libcaf_core/caf/abstract_scheduled_actor.hpp +++ b/libcaf_core/caf/abstract_scheduled_actor.hpp @@ -33,9 +33,14 @@ class CAF_CORE_EXPORT abstract_scheduled_actor template...
13
12
1
[{"id": "G0", "claim": "The large block of commented-out code at the end of event_based_fan_out_response_handle.hpp (lines 371-618) should be removed if not needed, or converted to proper documentation.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
actor-framework__actor-framework__2110
actor-framework/actor-framework
2,110
defect
ab8a744622f1d0231ae6a286ef394e534ca9585a
cabfbebe02915b9caa8ee37c682c4592bf193560
Add HTTP multipart writer
Closes #2073. Adds a convenience API for writing an HTTP multipart body.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 34b0a07983..4b01d97827 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,9 @@ is based on [Keep a Changelog](https://keepachangelog.com). - When starting a server or client using length-prefix framing, users can now specify the maximum message size via `max_mes...
3
3
0
[{"id": "G0", "claim": "The test scenario description 'multiple payload' is grammatically incorrect and should read 'multiple payloads'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "do_append should accept the AddHeadersFn directly (as a templat...
null
actor-framework__actor-framework__2114
actor-framework/actor-framework
2,114
defect
c8c526b5b66b4a866909b4db5528b309dd9f9083
18848ca400648030efdbd1dfc54f467f38b1981f
Remove `monotonic_buffer_resource` backport
Closes #2113.
diff --git a/libcaf_core/CMakeLists.txt b/libcaf_core/CMakeLists.txt index fd427d1790..000f6c07a4 100644 --- a/libcaf_core/CMakeLists.txt +++ b/libcaf_core/CMakeLists.txt @@ -182,8 +182,6 @@ caf_add_component( caf/detail/meta_object.cpp caf/detail/meta_object.test.cpp caf/detail/monitor_action.cpp - c...
4
2
0
[{"id": "G0", "claim": "Switching reclaim() to release() in json_reader.cpp's reset() and json_builder.cpp's clear path now frees all memory blocks instead of reusing them, which may increase allocation overhead on repeated parse/reset or clear/reuse cycles; the author should verify this memory-reuse trade-off is inten...
null
actor-framework__actor-framework__2131
actor-framework/actor-framework
2,131
defect
1af15499cacd324f354136bc7acdf0f013df468a
667e4c1e58b2035fdb077569cfdeb8b2c8a99727
Implement delayed fan out requests
Relates #2009 This PR: - implements delayed fan out requests with tests, - tests the complete request timeout, - tests sending urgent fan out requests.
diff --git a/libcaf_core/caf/event_based_fan_out_response_handle.hpp b/libcaf_core/caf/event_based_fan_out_response_handle.hpp index 97c8554484..b800904e2a 100644 --- a/libcaf_core/caf/event_based_fan_out_response_handle.hpp +++ b/libcaf_core/caf/event_based_fan_out_response_handle.hpp @@ -290,6 +290,174 @@ class event...
7
7
2
[{"id": "G0", "claim": "The documentation comment on `event_based_fan_out_delayed_response_handle` lacks an explanation of when to use this class versus the regular handle and how its two disposables relate.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
actor-framework__actor-framework__2145
actor-framework/actor-framework
2,145
defect
67bdbb75321810ea6f6ad2e0b0b00e879608c4d8
3aac3ebcc331a188a71566e6cdc36ab0b4fc2985
Implement new cache flow operator
The `cache` operator turns hot observables into cold ones by caching all emitted events and re-playing them to their subscribers.
diff --git a/libcaf_core/CMakeLists.txt b/libcaf_core/CMakeLists.txt index 3a6655e748..0473042bd8 100644 --- a/libcaf_core/CMakeLists.txt +++ b/libcaf_core/CMakeLists.txt @@ -242,6 +242,7 @@ caf_add_component( caf/flow/observe_on.test.cpp caf/flow/op/auto_connect.test.cpp caf/flow/op/buffer.test.cpp + ...
4
3
1
[{"id": "G0", "claim": "The test description string should read 'they receive the cached values and live data afterwards' instead of 'they received'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The magic number 64 in sub_.request(64) should be ...
null
actor-framework__actor-framework__2147
actor-framework/actor-framework
2,147
defect
e78a0934f114f9a283910d41ed928dd5b5c06e43
352875ac3e64fb5ea8d59ad87ce4cb3d8cd03daa
Add new functions for operating on SPSC buffers
The new `consume_on` function on consumer resources enables actors to consume items from a consumer resource without turning it into a flow. The new `produce_on` function on producer resources is the symmetric counterpart to `consume_on`. These additions allow developers to get a more "direct" way to operate on S...
diff --git a/.clang-format b/.clang-format index b545ef7869..cb69254030 100644 --- a/.clang-format +++ b/.clang-format @@ -31,18 +31,20 @@ IncludeBlocks: Regroup IncludeCategories: - Regex: 'caf/test/[[:alnum:]/_.-]+' Priority: 1 - - Regex: 'caf/io/[[:alnum:]/_.-]+' + - Regex: 'caf/[[:alnum:]/_.-]+\.test\.hp...
2
1
0
[{"id": "G0", "claim": "The doc comment above the mtx_ mutex should say that it guards access to the state rather than that it stores the current state, in both spsc_buffer_consumer and spsc_buffer_producer.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
actor-framework__actor-framework__2196
actor-framework/actor-framework
2,196
defect
a6c56c45bcfffd1fa7a490bb1580f01e5de4effe
49f5fc5d763eaa152820bf00a405535c5a34509a
Redesign the `resumable` class
- Introduce event IDs for `resume`: this addition allows an resumable to support multiple event types. The only use case we currently have is to have an explicit dispose event that we can use during shutdown. The scheduler API has been prepared to support user-defined event IDs but the default scheduler wil...
diff --git a/libcaf_core/caf/action.hpp b/libcaf_core/caf/action.hpp index e8bbdba4ca..316014a3cd 100644 --- a/libcaf_core/caf/action.hpp +++ b/libcaf_core/caf/action.hpp @@ -80,7 +80,7 @@ class CAF_CORE_EXPORT action { /// Triggers the action. void run() { - pimpl_->resume(nullptr, 0); + pimpl_->resume(n...
2
2
0
[{"id": "G0", "claim": "In scheduler.test.cpp the closing parenthesis should be on the same line as `uint64_t event_id` for consistency with other function signatures.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The comment for `initialization_event_id...
null
actor-framework__actor-framework__2206
actor-framework/actor-framework
2,206
defect
a4fc59df3c61645849ec17f7af454cd768ffa3eb
19afba9c910de5e42c45dabebe020967e1ace3de
Remove resume_result from the code base
The `resume_result` allowed scheduled actors to tell the scheduler whether they could still be running or not via `resume_result::resume_later`. However, the return value makes no sense for other resumables such as an `action`. Hence, we remove `resume_result` from CAF since it leaks an implementation detail for a mino...
diff --git a/libcaf_core/caf/action.hpp b/libcaf_core/caf/action.hpp index 7cafe2535c..809d04eb40 100644 --- a/libcaf_core/caf/action.hpp +++ b/libcaf_core/caf/action.hpp @@ -196,34 +196,32 @@ class default_action_impl : public detail::atomic_ref_counted, f_.~F(); } - resume_result run_multi_shot() { + void...
1
1
1
[{"id": "G0", "claim": "The resume() documentation still says it resumes 'until it is either finished or needs to be re-scheduled later' without explaining that a resumable that wants to be called again must explicitly re-schedule itself via the context parameter before returning; the documentation should be updated to...
null
actor-framework__actor-framework__2217
actor-framework/actor-framework
2,217
defect
b801226c944e22333989016b5cd03e1c97df70a6
fd930af0b124b366b69aa4312bdcde92f631516c
Fix rendering of timestamps
Closes #2216.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 120120d635..9e6e0ddf90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -90,6 +90,7 @@ is based on [Keep a Changelog](https://keepachangelog.com). actors. - Fix build issues on some BSD derivatives (#2135). - Fix alignment of `caf::async::batch` on 32bit ARM architectu...
2
1
0
[{"id": "G0", "claim": "check_matches compiles the regex on every call, which is inefficient for repeatedly used patterns, and an invalid regex pattern would throw std::regex_error which would propagate uncaught, so the reviewer suggests wrapping the body in try/catch and failing the check on regex_error.", "category":...
null
actor-framework__actor-framework__2218
actor-framework/actor-framework
2,218
defect
030decfd560c41ca675c50975155b279fa5990ba
e193c4b86bc48b97d43b51e5a9be1aa593f430bc
Prevent type ID collisions in test files
Add explicit size parameter to CAF_BEGIN_TYPE_ID_BLOCK to detect and prevent overlapping type ID ranges between test files. - Extend CAF_BEGIN_TYPE_ID_BLOCK macro to accept an optional third parameter specifying the maximum block size - Add static_assert in CAF_END_TYPE_ID_BLOCK to verify blocks don't exceed their de...
diff --git a/.github/workflows/quality-checks.yml b/.github/workflows/quality-checks.yml index d750e19a02..c92ef11c9f 100644 --- a/.github/workflows/quality-checks.yml +++ b/.github/workflows/quality-checks.yml @@ -39,3 +39,10 @@ jobs: - name: forbidden-includes run: | find libcaf_* -name '*h...
7
6
2
[{"id": "G0", "claim": "The inline development note in parse_block_from_args should be removed or rewritten more professionally instead of reading like an internal decision-making note.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The magic numb...
null
actor-framework__actor-framework__2222
actor-framework/actor-framework
2,222
defect
b801226c944e22333989016b5cd03e1c97df70a6
c5365c698c9c5259b274ae9eb38cdfbabc56acf2
Handle HTTP chunked requests
Closes #2205 Organized chunked requests in server and router. The server will have callbacks for each chunk. The router aggregates the chunks and routes them as a normal request. Side-quest: added `.devcontainer/build` to .gitignore. Better than accidentally pushing the build directory.
diff --git a/libcaf_net/caf/net/http/server.cpp b/libcaf_net/caf/net/http/server.cpp index da62924a82..d24bffbcee 100644 --- a/libcaf_net/caf/net/http/server.cpp +++ b/libcaf_net/caf/net/http/server.cpp @@ -220,11 +220,55 @@ class server_impl : public http::server { break; } case mode::read...
18
16
7
[{"id": "G0", "claim": "After processing a non-zero chunk the code returns instead of continuing the loop, and it should advance input past the chunk and use break so multiple chunks are processed in a single consume() call.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ...
null
actor-framework__actor-framework__2227
actor-framework/actor-framework
2,227
defect
a65c8bd8d239308daaacebe0cdb380059e957f81
f9687bae30c16c91b65fbca03137add1d9acf0e5
Fix max-connections bug
Once the HTTP server hits `max-connections`, it suspends reading. Further, it stores a `disposable` of each accepted connection and installs a callback on each accepted connection that gets called when shutting down that connection. The callback then drops all disposed connections from the list and resumes reading if a...
diff --git a/libcaf_core/caf/detail/latch.hpp b/libcaf_core/caf/detail/latch.hpp index 4b266c4f6f..5ef9385fc1 100644 --- a/libcaf_core/caf/detail/latch.hpp +++ b/libcaf_core/caf/detail/latch.hpp @@ -6,13 +6,14 @@ #include "caf/detail/core_export.hpp" +#include <chrono> #include <condition_variable> #include <cst...
5
5
0
[{"id": "G0", "claim": "The test file includes <latch> but only uses detail::latch from \"caf/detail/latch.hpp\", so the standard-library include appears unused and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new wait_f...
null
actor-framework__actor-framework__2228
actor-framework/actor-framework
2,228
defect
d029bd28b5b761d03996b70d26d0c2093ef94247
6f0927446bd7a6d20833f9dcf8847d2e13bb3902
Backport max-connections fix to the CAF 1 series
Backports #2227 to the `release/1` branch for inclusion in CAF 1.2. Relates #2226.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 61923fc05b..c369d89981 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,11 @@ is based on [Keep a Changelog](https://keepachangelog.com). - Fix a deadlock when disposing an monitor action while it is running (#2169). - Fix a resource leak where sockets were not ...
1
1
1
[{"id": "G0", "claim": "The change of `socket_t` from `server_config_tag<error>` to `server_config_tag<socket>` may have been unintentional and needs to be confirmed or corrected.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
actor-framework__actor-framework__2232
actor-framework/actor-framework
2,232
defect
7160e589ff70eea08cb365e85bea1da4a75c8304
4dbb974a4ff9f2501cf14fa4e2766a5eb708e130
Add new API for thread-local current actor
Add `abstract_actor::current()` to allow users to retrieve the actor that's currently running on the calling thread.
diff --git a/CHANGELOG.md b/CHANGELOG.md index c657a2fcec..875e830477 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -96,6 +96,9 @@ is based on [Keep a Changelog](https://keepachangelog.com). urgent warnings. Of course, we recommend using this macro only for a short transition period since deprecated APIs will u...
4
4
2
[{"id": "G0", "claim": "The comment on the `prev_` member in scoped_actor.hpp is now inaccurate: the member is no longer just for logging/debugging purposes but stores the previous current actor that is restored in the destructor, so the comment should be updated to reflect its actual use.", "category": "documentation"...
null
actor-framework__actor-framework__2249
actor-framework/actor-framework
2,249
defect
ed8f0c0be6d445f44c33586db6bd759169cc4c77
32970a4008e78e3279d63fe6b901271dca18e2bc
Replace match_glob with a simpler algorithm
We use `match_glob` only for matching metric names. Shipping a complete glob engine that is meant for file system matching is overkill and also enables features that we don't want to support.
diff --git a/CMakeLists.txt b/CMakeLists.txt index aa520a18bb..4919b999fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -268,6 +268,16 @@ function(caf_add_component name) endif() endforeach() set(lib_target "libcaf_${name}") + set(obj_target "libcaf_${name}_obj") + # Create OBJECT library for all .cp...
3
2
2
[{"id": "G0", "claim": "The new Windows-only tests assume a backslash in the glob pattern matches a forward slash in the text, but glob_match only provides the one-way equivalence ('/' in glob matches '\\' in text), so the first and third checks will always fail on Windows — either extend glob_match so that '\\' in the...
null
actor-framework__actor-framework__2262
actor-framework/actor-framework
2,262
defect
2c276fe6c1ea7eb9b5f0497af11544eeacadf139
cc5bf24d9af01ade0e209c461858e8f04570fc98
Introduce new caf::detail::actor_system_impl class
Previously, the `impl` class in `actor_system` was an opaque type. While this gives us a lot of flexibility internally, it complicates setting up internals differently. As a result, the `deterministic` fixture is quite limited and relies on roundabout ways that we can improve with the new interface. Relates #2115.
diff --git a/libcaf_core/CMakeLists.txt b/libcaf_core/CMakeLists.txt index d9599ca2b1..e390e88d57 100644 --- a/libcaf_core/CMakeLists.txt +++ b/libcaf_core/CMakeLists.txt @@ -153,6 +153,7 @@ caf_add_component( caf/detail/abstract_worker_hub.cpp caf/detail/actor_system_access.cpp caf/detail/actor_system_c...
5
2
1
[{"id": "G0", "claim": "In namespace caf::detail, the qualified name detail::global_meta_objects_guard_type in the launch_thread signature refers to a nested caf::detail::detail namespace and will fail to compile; use ::caf::detail::global_meta_objects_guard_type or the unqualified name (and keep the type complete in t...
null
actor-framework__actor-framework__2263
actor-framework/actor-framework
2,263
defect
2c276fe6c1ea7eb9b5f0497af11544eeacadf139
5beaad4b7e0efa386273ed71373da69b78974682
Implement new wait_for utility on metrics_registry
The new utility method blocks the current thread until a predicate for a given counter or gauge metric becomes true. Useful for writing tests that need feedback on or verify internal state transitions.
diff --git a/libcaf_core/caf/telemetry/metric_registry.cpp b/libcaf_core/caf/telemetry/metric_registry.cpp index 33310e4a44..3e78707260 100644 --- a/libcaf_core/caf/telemetry/metric_registry.cpp +++ b/libcaf_core/caf/telemetry/metric_registry.cpp @@ -6,13 +6,16 @@ #include "caf/actor_system.hpp" #include "caf/actor...
2
1
0
[{"id": "G0", "claim": "Lines 496-499 of metric_registry.hpp use `//` instead of `///` in the @throws documentation block, breaking the Doxygen documentation block, and should all use `///`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test'...
null
actor-framework__actor-framework__2264
actor-framework/actor-framework
2,264
defect
1e84687874b95a9c8cea4807d6a2d1a53a60889a
6e4ea98613da3dab7c4ed382a1af403e4df86ad3
Remove duplicate filters
Small improvement for filter logic as discussed in https://github.com/actor-framework/actor-framework/pull/2259#discussion_r2751675547
diff --git a/libcaf_core/caf/detail/asynchronous_logger.cpp b/libcaf_core/caf/detail/asynchronous_logger.cpp index 606b77078d..d17ba26708 100644 --- a/libcaf_core/caf/detail/asynchronous_logger.cpp +++ b/libcaf_core/caf/detail/asynchronous_logger.cpp @@ -31,6 +31,7 @@ #include <ctime> #include <thread> #include <uno...
4
4
1
[{"id": "G0", "claim": "The `<unordered_set>` include this PR adds to asynchronous_logger.cpp is never used and should be removed to keep the include list minimal.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new filter-splitting logic is ...
null
actor-framework__actor-framework__2265
actor-framework/actor-framework
2,265
defect
1e84687874b95a9c8cea4807d6a2d1a53a60889a
eb827fff7f15695a2b7020cc5159708c4f5938c8
Restructure the deterministic fixture
After introducing the `actor_system_impl`, we can now get rid of the roundabout way for setting up the deterministic fixture and instead simply implement a new private `actor_system_impl` subclass for the fixture. Relates #2115.
diff --git a/libcaf_core/caf/actor_system.cpp b/libcaf_core/caf/actor_system.cpp index 730fb9ab63..6171757aa1 100644 --- a/libcaf_core/caf/actor_system.cpp +++ b/libcaf_core/caf/actor_system.cpp @@ -418,8 +418,7 @@ class default_actor_system_impl : public detail::actor_system_impl { detail::critical("unable to o...
3
2
1
[{"id": "G0", "claim": "The no-argument mail_count helper counts an event as mail whenever it has a target, so it may incorrectly count events that have a target but no message payload (item).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The per-a...
null
actor-framework__actor-framework__2266
actor-framework/actor-framework
2,266
defect
69851410df63c344b428babea8862270d7c482eb
876d51c23ed9797bcdc2e9d28b115e6eb1ed8eb2
Prevent detaching in the deterministic fixture
When spawning an actor with the deterministic test fixture, the `detached` flag no longer has an effect and attempting to spawn a blocking actor will terminate the application. Closes #2115.
diff --git a/CHANGELOG.md b/CHANGELOG.md index bfdfc78556..f9f4d72b7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -81,6 +81,9 @@ is based on [Keep a Changelog](https://keepachangelog.com). use the new `add_ref` and `adopt_ref` tags instead. - Deprecate all member functions in `caf::expected` that are not presen...
3
3
3
[{"id": "G0", "claim": "actor_companion::initialize returns true without setting is_initialized_flag (or delegating to scheduled_actor::initialize), breaking callers that explicitly run the companion via activate(...) (e.g. caf::mixin::actor_widget); remove the override or delegate to super::initialize.", "category": "...
null
actor-framework__actor-framework__2268
actor-framework/actor-framework
2,268
defect
b643033871677fd8e61d8bd67f19790b7f54e14f
e49064698e2490a302aaad3fdf2bd80a031c8eb4
Implement actor clock setting for periodic cleanup
Closes #2267.
diff --git a/CHANGELOG.md b/CHANGELOG.md index bfdfc78556..9454c33382 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -117,6 +117,10 @@ is based on [Keep a Changelog](https://keepachangelog.com). - The class `http::request` now has an `orphaned()` method that returns `true` if the underlying connection has been shu...
5
4
3
[{"id": "G0", "claim": "default_actor_clock::stop() terminates the worker thread without clearing queue_ or resetting the actor-clock-queue-size gauge, which can leave stale metric values and keep scheduled actions alive longer than necessary; the queue should be cleared and the gauge adjusted.", "category": "correctne...
null
actor-framework__actor-framework__2273
actor-framework/actor-framework
2,273
defect
3ebf053c351b9186115f6f2b381efb89053c2ef9
2112759b0dbbdaea24fcf44cace693c403535445
Fix shutdown issue in socket managers
Make sure calling `shutdown` on a socket manager closes the socket in all code paths.
diff --git a/libcaf_net/CMakeLists.txt b/libcaf_net/CMakeLists.txt index 41e3178ebb..aa3a5575cb 100644 --- a/libcaf_net/CMakeLists.txt +++ b/libcaf_net/CMakeLists.txt @@ -104,6 +104,7 @@ caf_add_component( caf/net/socket_event_layer.cpp caf/net/socket_guard.test.cpp caf/net/socket_manager.cpp + caf/ne...
3
3
2
[{"id": "G0", "claim": "The helpers receive_text and send_text are defined but never used in the new test file and should be removed or used by tests.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In each shutdown scenario the mgr variable is n...
null
actor-framework__actor-framework__2278
actor-framework/actor-framework
2,278
defect
a6b69a5010865a0be069df655e4dcc29993df90e
2269ccf47ccdd423d63d2139bc6f176aa8e7960e
Relax the deterministic fixture type requirements
Tying the `deterministic` fixture to `scheduled_actor` is overly restrictive, since the fixture actually only needs access to the two interfaces `local_actor` and `resumable`. By adding an `as_resumable` getter to `local_actor`, we can move up the class hierarchy to allow the fixture to work with (future) actor type...
diff --git a/libcaf_core/caf/detail/mailbox_factory.hpp b/libcaf_core/caf/detail/mailbox_factory.hpp index 49586f4d87..e7dd587e24 100644 --- a/libcaf_core/caf/detail/mailbox_factory.hpp +++ b/libcaf_core/caf/detail/mailbox_factory.hpp @@ -15,10 +15,7 @@ class CAF_CORE_EXPORT mailbox_factory { virtual ~mailbox_factor...
2
2
0
[{"id": "G0", "claim": "The out-of-line definition should read `resumable* scheduled_actor::as_resumable()` instead of `scheduled_actor::resumable* scheduled_actor::as_resumable()`, which the reviewer asserts is invalid syntax that will cause a compilation error.", "category": "correctness", "verdict": "supported", "pr...
null
actor-framework__actor-framework__2279
actor-framework/actor-framework
2,279
defect
c58750ac07969602bae320bbda4acd7d0bc130d6
240026b3a10bb4b519a0dae0a9d8219dd10cecdf
Convert http::router to an interface
Closes #2223.
diff --git a/libcaf_net/caf/net/http/request.hpp b/libcaf_net/caf/net/http/request.hpp index f69480ad68..d4ccc243ee 100644 --- a/libcaf_net/caf/net/http/request.hpp +++ b/libcaf_net/caf/net/http/request.hpp @@ -25,12 +25,14 @@ namespace caf::net::http { /// promise for the HTTP response. class CAF_NET_EXPORT request ...
2
2
1
[{"id": "G0", "claim": "The added `::caf::detail::connection_guard_ptr` qualification in the `make` overload should be reverted to the previous `detail::connection_guard_ptr guard);` wording.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pr...
null
actor-framework__actor-framework__2289
actor-framework/actor-framework
2,289
defect
108238d2d0de8cc9dac372ceaa1b73e351ee9cc1
dec54636b0103ab16adfb795e4b41d09e7f177b6
Enable builds with `-fno-rtti`
Closes #2282.
diff --git a/.ci/linux/no-rtti.cmake b/.ci/linux/no-rtti.cmake new file mode 100644 index 0000000000..2ff9ccb863 --- /dev/null +++ b/.ci/linux/no-rtti.cmake @@ -0,0 +1,6 @@ +set(CAF_ENABLE_EXAMPLES "ON" CACHE BOOL "" FORCE) +set(CAF_ENABLE_ROBOT_TESTS "ON" CACHE BOOL "" FORCE) +set(CAF_ENABLE_RUNTIME_CHECKS "ON" CACHE ...
2
2
0
[{"id": "G0", "claim": "The `#ifdef CAF_ENABLE_RTTI` guard around the 'requesting from disposed ucast operators' scenario is unnecessary because the static_cast there is safe without RTTI, so the guard should be removed and the test left enabled in non-RTTI builds.", "category": "testing", "verdict": "supported", "prio...
null
actor-framework__actor-framework__2290
actor-framework/actor-framework
2,290
defect
af71ce381e3307dbfa8ca1aa00b01a19b0686302
8a8af007dfc515167405d61ec5fe812e187e88d7
Add unit tests for the HTTP responder
After a recent question regarding the HTTP responder in chat, I realized that we actually have no unit tests for it. Our examples also only cover the high-level `respond` API, so we should consider adding a few more.
diff --git a/libcaf_net/CMakeLists.txt b/libcaf_net/CMakeLists.txt index aa3a5575cb..04fdb54d02 100644 --- a/libcaf_net/CMakeLists.txt +++ b/libcaf_net/CMakeLists.txt @@ -64,6 +64,7 @@ caf_add_component( caf/net/http/request_header.cpp caf/net/http/request_header.test.cpp caf/net/http/responder.cpp + ...
3
3
2
[{"id": "G0", "claim": "The fixture's launch() calls mpx->watch(server) from the test thread, which is not thread-safe against the multiplexer's event-loop thread and can cause a data race/UB; remove the call or schedule it onto the multiplexer thread.", "category": "correctness", "verdict": "supported", "priority": "P...
null
actor-framework__actor-framework__2295
actor-framework/actor-framework
2,295
defect
034cc14021e5553e3bf9ea32995c1194ac513a4b
b7016678bc7e84df45d3b8b008f3cfce89fe5699
Add new `cppcheck` script and fix `noExplicitConstructor` warnings
Relates #2294. This is going to be a series of PRs to fix the current `cppcheck` warnings and ultimately run the new `cppcheck.sh` script on each PR in our CI.
diff --git a/.cppcheck-suppressions b/.cppcheck-suppressions deleted file mode 100644 index ba12858e99..0000000000 --- a/.cppcheck-suppressions +++ /dev/null @@ -1,69 +0,0 @@ -// having an explicit constructor for attachable would -// make it harder to use and its a library internal anyways -noExplicitConstructor:libca...
2
2
2
[{"id": "G0", "claim": "The script runs cppcheck with --inline-suppr but does not support a repository-wide suppressions file, and since the PR removes the existing .cppcheck-suppressions this will likely reintroduce known false positives and make the report/CI signal noisy; reintroduce a suppressions file and have the...
null
actor-framework__actor-framework__2302
actor-framework/actor-framework
2,302
defect
263d8d465ff54be37e3658d387cd8a048d9be811
9564822074d1c9a0d218954ef94b54912f6cc506
Update testing framework to run all examples
Closes https://github.com/actor-framework/actor-framework/issues/2298 A new test has been added to `outline.test` to verify that all of the examples have been run.
diff --git a/libcaf_test/caf/test/outline.test.cpp b/libcaf_test/caf/test/outline.test.cpp index 2066a397a7..d6570018d1 100644 --- a/libcaf_test/caf/test/outline.test.cpp +++ b/libcaf_test/caf/test/outline.test.cpp @@ -5,10 +5,12 @@ #include "caf/test/outline.hpp" #include "caf/test/approx.hpp" +#include "caf/test/...
3
3
2
[{"id": "G0", "claim": "Copy-assigning ctx.parameters (a std::map<std::string, std::string>) inside the noexcept scope_guard lambda may allocate and throw, calling std::terminate; move the parameter assignment back out of the noexcept guard and do it in normal control flow.", "category": "correctness", "verdict": "supp...
null
actor-framework__actor-framework__2304
actor-framework/actor-framework
2,304
defect
c20ce0af0dbca530682750ad8ea7a69e60302038
88613514b10a1d9ea3e1bf9d57ba951d98fb64eb
Redesign setup for the deterministic fixture
Refactor the `local_actor` interface to allow the deterministic fixture to call `consume` directly instead of going through `resume`. This setup gives the fixture better control over actors and allows us to detect when an actor skips a message instead of processing. Closes #2095.
diff --git a/libcaf_core/CMakeLists.txt b/libcaf_core/CMakeLists.txt index a1794325c7..54a49f150a 100644 --- a/libcaf_core/CMakeLists.txt +++ b/libcaf_core/CMakeLists.txt @@ -164,7 +164,6 @@ caf_add_component( caf/detail/beacon.test.cpp caf/detail/behavior_impl.cpp caf/detail/behavior_stack.cpp - caf/...
6
3
3
[{"id": "G0", "claim": "scheduled_actor::consume now performs mailbox metrics accounting (processing_time, mailbox_time, mailbox_size) when a message is consumed, but scheduled_actor::resume still measures and updates the same metrics after calling consume(ptr), so metrics-enabled actors get mailbox_size double-decreme...
null
actor-framework__actor-framework__2305
actor-framework/actor-framework
2,305
defect
5950358448ae3cf4e66de6964cba1800f430f4ee
678d752299d8cc4293079d6f217f201ba1d05077
Use intrusive pointers on the scheduler interface
Using raw pointers on the scheduler interface makes it brittle and prone to error for no reason.
diff --git a/libcaf_core/caf/blocking_actor.cpp b/libcaf_core/caf/blocking_actor.cpp index 762c1c651e..a53054fe3a 100644 --- a/libcaf_core/caf/blocking_actor.cpp +++ b/libcaf_core/caf/blocking_actor.cpp @@ -167,7 +167,7 @@ void blocking_actor::launch(detail::private_thread* worker, scheduler*) { CAF_ASSERT(worker !=...
1
1
0
[{"id": "G0", "claim": "scheduler.cpp uses the add_ref tag (e.g. resumable_ptr{&sh, add_ref}) without including caf/add_ref.hpp directly, compiling only via a transitive include through caf/send.hpp; add an explicit include to avoid brittle header dependencies.", "category": "maintainability", "verdict": "supported", "...
null
actor-framework__actor-framework__2308
actor-framework/actor-framework
2,308
defect
cb0e123ccfb0e8acb1fac15e919ae6c9da0fa77e
85f93442091646e74c1827af20c03219c864f5c3
Implement new `atomic_ref_count` class
The inheritance-based approach with `atomic_ref_counted` and `plain_ref_counted` did not work in all cases. For example, `chunk::data` cannot use inheritance and thus had to roll its own reference counting implementation. The new class `atomic_ref_count` is designed to be used as a member variable and works in all c...
diff --git a/.cppcheck-suppressions b/.cppcheck-suppressions index 357fc33dba..2faf679ee8 100644 --- a/.cppcheck-suppressions +++ b/.cppcheck-suppressions @@ -1,6 +1,8 @@ // types with intentionally non-explicit constructors noExplicitConstructor:libcaf_core/caf/actor.hpp noExplicitConstructor:libcaf_core/caf/expect...
2
1
1
[{"id": "G0", "claim": "`has_memory_interface` likely never matches because the `constexpr` `T::memory_interface` has type `const memory_interface`, which fails `std::same_as<memory_interface>`, so `uses_new_and_delete()` falls back to true and `atomic_ref_count::dec` calls `delete` on types that set `memory_interface ...
null
actor-framework__actor-framework__2310
actor-framework/actor-framework
2,310
defect
cb0e123ccfb0e8acb1fac15e919ae6c9da0fa77e
f32e3e9f5123daa3c37830fecb82d462cc8d7b87
Host header should contain explicit non-default port
Closes #2309
diff --git a/libcaf_net/caf/net/http/with.cpp b/libcaf_net/caf/net/http/with.cpp index b8d4cdb86f..b0041ca429 100644 --- a/libcaf_net/caf/net/http/with.cpp +++ b/libcaf_net/caf/net/http/with.cpp @@ -13,14 +13,18 @@ #include "caf/actor_system.hpp" #include "caf/add_ref.hpp" +#include "caf/defaults.hpp" #include "ca...
5
5
1
[{"id": "G0", "claim": "The free function host_header_value does not operate on `with`, is used only inside with.cpp, and should not become part of the public API and ABI — it should live in an anonymous namespace in with.cpp.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"i...
null
actor-framework__actor-framework__2314
actor-framework/actor-framework
2,314
defect
7b38e9addb39bc87f709c1f2853bc04b50705c93
a48710aeaed7833c6c6b83b61522be3d2ef3f772
Fix `current_actor` handling in `scoped_actor`
Setting `current_actor` in the constructor of `scoped_actor` and resetting it in the destructor only works as long as the `scoped_actor` is put onto the stack. This logic breaks down when managing the scoped actor through a smart pointer or, even worse, when it gets moved between threads. The new logic only sets `cu...
diff --git a/libcaf_core/caf/abstract_actor.hpp b/libcaf_core/caf/abstract_actor.hpp index 394f8c4e11..8de7f1b615 100644 --- a/libcaf_core/caf/abstract_actor.hpp +++ b/libcaf_core/caf/abstract_actor.hpp @@ -323,10 +323,10 @@ class CAF_CORE_EXPORT abstract_actor { // -- linking ---------------------------------------...
6
2
2
[{"id": "G0", "claim": "The defaulted move-assignment operator overwrites `self_` without running the destructor cleanup for the previously owned actor, which can drop the last strong reference and trigger `on_unreachable()` (exit_reason::unreachable) instead of the intended `exit_reason::normal`; it should be a custom...
null
actor-framework__actor-framework__2322
actor-framework/actor-framework
2,322
defect
9f29778a1938042b03fce158376b51d82758d5b0
35c95ab013a308d8e7a9e07a6e1afae7a7e63ee2
Allow install custom reporters to the test runner
Small refactoring to allow us to change the reporter implementation in the future without having to re-implement the runner.
diff --git a/libcaf_test/caf/test/runner.cpp b/libcaf_test/caf/test/runner.cpp index 18211b22f2..608339dbe5 100644 --- a/libcaf_test/caf/test/runner.cpp +++ b/libcaf_test/caf/test/runner.cpp @@ -13,6 +13,7 @@ #include "caf/config_option.hpp" #include "caf/config_option_adder.hpp" #include "caf/config_option_set.hpp"...
4
3
3
[{"id": "G0", "claim": "Since default_logger is created before the --log-component-filter CLI option is applied to the reporter, the logger's component filter snapshot won't reflect the CLI option; consider applying the filter before creating the logger or refreshing the logger filter afterwards.", "category": "correct...
null
actor-framework__actor-framework__2328
actor-framework/actor-framework
2,328
defect
eb992828fbd65efc00657a83f990fc51e3eb881b
059438b8a5f10d2803419a8327a71131610cf9d4
Remove constVariableReference suppression
<!-- CURSOR_AGENT_PR_BODY_BEGIN --> ## Summary - remove the `constVariableReference:*` suppression from `.cppcheck-suppressions` under the tracking comment for issue #2294 ## Testing - CI-only for this step (cppcheck will reveal warnings after unsuppressing) Refs #2294 <!-- CURSOR_AGENT_PR_BODY_END --> <div><a href=...
diff --git a/.cppcheck-suppressions b/.cppcheck-suppressions index d5ca1f1dd3..627503eb48 100644 --- a/.cppcheck-suppressions +++ b/.cppcheck-suppressions @@ -28,7 +28,6 @@ accessMoved:* passedByValue:* shadowFunction:* uninitMemberVar:* -constVariableReference:* constParameterReference:* useStlAlgorithm:* useIni...
2
2
0
[{"id": "G0", "claim": "In end_message_impl the switch to a const auto& binding plus repeated down_->output_buffer() raw-pointer construction makes the code worse; revert to a single mutable `auto& buf` and take msg_begin/msg_end from buf.data(), adding an inline cppcheck suppression only if cppcheck still complains.",...
null
actor-framework__actor-framework__2355
actor-framework/actor-framework
2,355
defect
9badbf328dc542f40e22ca1e1b808b7c6102058e
23be4fe7a10fe03e14e9d1a399d4587bb12c94ad
Add CAF 1.x-compatible lp::framing::make overload
<!-- CURSOR_AGENT_PR_BODY_BEGIN --> ## Summary - add a `caf::net::lp::framing::make(upper_layer_ptr)` overload for backwards compatibility with CAF 1.x - implement the overload to use `size_field_type::u4` and `caf::defaults::net::lp_max_message_size` as safe defaults - refresh `framing` class documentation to describe...
diff --git a/libcaf_net/caf/net/lp/framing.cpp b/libcaf_net/caf/net/lp/framing.cpp index 25000c911e..ae4f669cb9 100644 --- a/libcaf_net/caf/net/lp/framing.cpp +++ b/libcaf_net/caf/net/lp/framing.cpp @@ -18,6 +18,7 @@ #include <cstdint> #include <cstring> +#include <limits> #include <memory> namespace caf::net::...
3
3
3
[{"id": "G0", "claim": "The new overload's documentation should consistently refer to maximum payload size and clarify whether the size field includes the header, instead of saying maximum \"message size\".", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl...
null
actor-framework__actor-framework__2357
actor-framework/actor-framework
2,357
defect
be52f8fe9d4cb76ad360c54e7b67016de0c2e259
7d67ac99d90c943326acc55421c76c4a0f94f204
Add pluggable actor handle codec to serialization stack
<!-- CURSOR_AGENT_PR_BODY_BEGIN --> ## Summary - rebase this branch onto latest `main` and resolve binary serializer/deserializer + BASP conflicts with upstream byte-inspector refactor - change `actor_handle_codec` API to use `serializer` / `deserializer` directly for `save`/`load` (including weak-handle helpers) - sim...
diff --git a/examples/custom_type/custom_types_1.cpp b/examples/custom_type/custom_types_1.cpp index 809694281f..dbeffe8a19 100644 --- a/examples/custom_type/custom_types_1.cpp +++ b/examples/custom_type/custom_types_1.cpp @@ -4,6 +4,7 @@ #include "caf/actor_system.hpp" #include "caf/byte_buffer.hpp" #include "caf/c...
8
8
1
[{"id": "G0", "claim": "Remove the default_actor_handle_codec include from the tests and the example that do not serialize actor handles and construct sink and source without a codec instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove...
null
actor-framework__actor-framework__2368
actor-framework/actor-framework
2,368
defect
4854742292f94a4d818030169f79dd9e577d2544
c76a3bf286a6873114ef6466b1b2ffe6be3f7cd8
Remove scheduled_actor exit_msg and error handlers
Removes `set_exit_handler` / `set_error_handler` and the dedicated `consume()` branches. Unmatched lone `exit_msg` and `error` payloads are handled via the new `default_unexpected_message` default message handler so built-in defaults stay the same unless users override `set_default_handler`. Updates tests, manual, a...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7da49c1974..b19bbeff3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -168,6 +168,9 @@ is based on [Keep a Changelog](https://keepachangelog.com). ### Removed +- For event-based actors (`scheduled_actor`), removed `set_error_handler` and + `set_exit_handler`. Handle...
3
3
2
[{"id": "G0", "claim": "Drop the added CHANGELOG notice announcing the set_error_handler/set_exit_handler removals, since 2.0 will remove all methods deprecated with 1.0 and no separate notice is needed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
actor-framework__actor-framework__2377
actor-framework/actor-framework
2,377
defect
f57b9ca6f93aa93a451e4a2c68dcd86bbf525fe4
a32c1452699d50f27aeb96560289b43116e07511
Clean up the reporter interface
Removes unused `verbosity()` and `log_component_filter()` getters, changes `verbosity(unsigned)` to return `void`, and adds `logger_accepts` plus `open_verbosity_scope` for internal framework use (test logger and temporary quiet mode). Relates #2376. Made with [Cursor](https://cursor.com)
diff --git a/libcaf_test/caf/test/reporter.cpp b/libcaf_test/caf/test/reporter.cpp index 115c8acf1c..cc30162e43 100644 --- a/libcaf_test/caf/test/reporter.cpp +++ b/libcaf_test/caf/test/reporter.cpp @@ -21,6 +21,8 @@ #include <algorithm> #include <cstdio> +#include <memory> +#include <ranges> namespace caf::test...
8
8
3
[{"id": "G0", "claim": "Drop the verbosity-scope mechanism and instead quiet the reporter with a dedicated quiet_scope_guard object in the failing-check tests.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Rename the reporter's new logger_accepts virtua...
null
actor-framework__actor-framework__2381
actor-framework/actor-framework
2,381
defect
1d55202c823e688a81cd3228591a0220a341d2c7
6cc4f7433201d01b17bb26f4457296755b55df3b
Fix test reporter granularity for sections
Relates #2380. - Add `begin_section` / `end_section` to `caf::test::reporter`. - Run the test loop with one `begin_test` / `end_test` per logical test and wrap each `can_run` iteration in section callbacks (with `def.reset` after `clear_stacks`, matching the issue sketch). - In `default_reporter`, emit the suite h...
diff --git a/libcaf_test/caf/test/reporter.cpp b/libcaf_test/caf/test/reporter.cpp index e449dcc95b..eef021deda 100644 --- a/libcaf_test/caf/test/reporter.cpp +++ b/libcaf_test/caf/test/reporter.cpp @@ -292,11 +292,23 @@ class default_reporter : public reporter { void begin_test(context_ptr state, std::string_view...
3
3
0
[{"id": "G0", "claim": "The default_reporter's begin_section/end_section overrides should have empty (`// nop`) bodies instead of printing a newline and resetting live_.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The added `printed_suite_header_` mem...
null
actor-framework__actor-framework__2383
actor-framework/actor-framework
2,383
defect
dc3db5297d82d602fb0828fcb82cdb6030462a34
e8b55f0fd5ffd3367bc6ebc756a67c25292a1291
Remove second unhandled_exception from reporter
Implements the changes requested in #2382: - Remove the two-argument `unhandled_exception` overload from `reporter`. - Handle `nesting_error` in the runner with `reporter::print` (same pattern as `requirement_failed`), including a short `nesting error:` prefix on the message. - Increment current test stats before ...
diff --git a/libcaf_test/caf/test/reporter.cpp b/libcaf_test/caf/test/reporter.cpp index be2f1d35a4..213e9aec51 100644 --- a/libcaf_test/caf/test/reporter.cpp +++ b/libcaf_test/caf/test/reporter.cpp @@ -412,19 +412,6 @@ class default_reporter : public reporter { } } - void unhandled_exception(std::string_vie...
1
1
0
[{"id": "G0", "claim": "In the nesting_error catch block the PR should call reporter_->fail(ex.message(), ex.location()) instead of manually bumping failed stats, building a log event and printing it, to match how requirement_failed is handled.", "category": "design", "verdict": "supported", "priority": "P2", "scope": ...
null
actor-framework__actor-framework__2389
actor-framework/actor-framework
2,389
defect
6b18fef68fd7ddbea612df1f6b334c214933a73f
43a0289f7fa4ef4bc4a7275982cf3134856ee49f
Add std::monostate type IDs and variant metadata
Register std::monostate with CAF type IDs and cover it in type_id tests. For variant-backed struct members, write the parent `@<name>-type` entry when the active alternative has a type annotation. This matches how other variant serialization paths already expose type information. Exercise monostate in the nasty...
diff --git a/libcaf_core/caf/config_value_writer.cpp b/libcaf_core/caf/config_value_writer.cpp index b86472c192..294142659e 100644 --- a/libcaf_core/caf/config_value_writer.cpp +++ b/libcaf_core/caf/config_value_writer.cpp @@ -111,8 +111,22 @@ class config_value_writer_impl : public serializer { return false...
1
1
0
[{"id": "G0", "claim": "Add a changelog entry stating that support for `std::monostate` has been added to the inspection API.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
actor-framework__actor-framework__899
actor-framework/actor-framework
899
defect
69bd250551963cbae8433c984b59f99d213be5d1
da6bf118500b71036a7ba961aaf2858ac3affec5
Improve stringification_inspector implementation
- Remove unnecessary `deconst` - Move more code to the `.cpp` file - Properly escape tab and newline characters - Print timespans in the highest resolution possible
diff --git a/libcaf_core/caf/deep_to_string.hpp b/libcaf_core/caf/deep_to_string.hpp index e68d343bfd..649626ea07 100644 --- a/libcaf_core/caf/deep_to_string.hpp +++ b/libcaf_core/caf/deep_to_string.hpp @@ -18,47 +18,37 @@ #pragma once -#include <array> -#include <tuple> #include <string> -#include <utility> -#in...
1
1
0
[{"id": "G0", "claim": "The line '&& !is_inspectable<stringification_inspector, T>::value' is a duplicate of the same condition on the line above and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
actor-framework__actor-framework__904
actor-framework/actor-framework
904
defect
5d6cda55a285343a6c9e0a878744f0c1c63ef380
a1a997a76e1a72b02066dffede6a429ca64281de
Add scheduled_send for sending with absolute timeout
Close #901.
diff --git a/libcaf_core/caf/group.hpp b/libcaf_core/caf/group.hpp index 09381f1246..77dc10e975 100644 --- a/libcaf_core/caf/group.hpp +++ b/libcaf_core/caf/group.hpp @@ -64,11 +64,11 @@ class group : detail::comparable<group>, group(intrusive_ptr<abstract_group> gptr); - inline explicit operator bool() const n...
2
2
1
[{"id": "G0", "claim": "The doc comment \"Sends a message after an absolute timeout\" is unclear and should be reworded to something like \"Sends a message at a specified point in time or immediately if it has already passed\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduce...
null
actor-framework__actor-framework__938
actor-framework/actor-framework
938
defect
7dd737e726f7049046964a004c182af4418d691f
3d2fda9b04262ef48e42d71ac425ba4232b887b2
Add config_value adaptors for complex user types
The recently added config_value_object_access makes it simple to add custom types where each field maps naturally to a key/value entry. However, not each type fits that model. For example, a custom duration type might internally store only a single integer but use two key/value entries in the config: a count and th...
diff --git a/libcaf_core/caf/all.hpp b/libcaf_core/caf/all.hpp index 03309bb5d9..ceaca377b5 100644 --- a/libcaf_core/caf/all.hpp +++ b/libcaf_core/caf/all.hpp @@ -50,11 +50,15 @@ #include "caf/config_option.hpp" #include "caf/config_option_adder.hpp" #include "caf/config_value.hpp" +#include "caf/config_value_adapto...
2
2
0
[{"id": "G0", "claim": "The public members of the non-detail header config_value_adaptor_field.hpp lack context and should get more explanation via names or doc comments.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment above the pre...
null