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
ByteDance-Seed__VeOmni__635
ByteDance-Seed/VeOmni
635
defect
2b21f290f4b61c2112c78910df58ebda81412e26
1cb6901dfab86e618d68362e49ce118bf9295bf7
[data, config] feat: add dynamic per-frame video_max_pixels for Qwen3-VL
### What does this PR do? Adds dynamic per-frame `video_max_pixels` budgeting for Qwen3-VL, matching the official `qwen-vl-utils` behavior. When `video_total_pixels` is set in the config, the per-frame spatial resolution is dynamically adjusted based on the number of sampled frames so that total visual tokens stay w...
diff --git a/configs/multimodal/qwen3_5/qwen3_5_vl.yaml b/configs/multimodal/qwen3_5/qwen3_5_vl.yaml index 4da73938b..1b0eabe67 100644 --- a/configs/multimodal/qwen3_5/qwen3_5_vl.yaml +++ b/configs/multimodal/qwen3_5/qwen3_5_vl.yaml @@ -12,6 +12,7 @@ data: mm_configs: image_max_pixels: 602112 # 28 * 28 * 768 ...
2
1
0
[{"id": "G0", "claim": "Applying the video_min_pixels floor after the video_max_pixels ceiling can leave dynamic_max above the configured video_max_pixels when video_min_pixels * 1.05 exceeds it, so the min operation should be applied last to keep video_max_pixels a hard ceiling, and the docstring should be updated to ...
null
ByteDance-Seed__VeOmni__688
ByteDance-Seed/VeOmni
688
defect
dd9e9643d5c265b1c5f90384d7f08b9bfa10daab
b168beb9e7315b30b1e498838aa7c3dca78fd545
[parallel, ci] feat: support loading large tensor for fsdp2
### What does this PR do? 1. Support loading large tensor for `fsdp2` by `_chunk_and_broadcast_and_dispatch` at the shard dim of `extra parallel`. The process is as follows: (1) rank0 loads safetensors from disk to cpu (2) according to the parallel plan of `extra parallel`, rank0 chunks the loaded tensor at the...
diff --git a/.github/workflows/gpu_unit_tests.yml b/.github/workflows/gpu_unit_tests.yml index feaf00ed5..6cdfbc8d9 100644 --- a/.github/workflows/gpu_unit_tests.yml +++ b/.github/workflows/gpu_unit_tests.yml @@ -98,10 +98,9 @@ jobs: uv run --frozen pytest -s -x tests/models/test_model_registry.py ...
3
2
1
[{"id": "G0", "claim": "The condition at line 636 will raise an AttributeError if parallel_plan is None, which occurs when the model provides no parallel plan (e.g. standard FSDP2 without extra parallelism) and affects all standard FSDP2 training runs since broadcast_model_weights_from_rank0 defaults to True; a `parall...
null
ByteDance-Seed__VeOmni__721
ByteDance-Seed/VeOmni
721
defect
de8f199c538d7766c3029536aed1d3d0af0d3c6f
7f56aa86f537dccb35a5473874e29f1e67c3f146
[ci, model] test: add bitwise logits-equal tests for transformers v4 models
### What does this PR do? > Adds a single-GPU bitwise logits-equality test (`tests/models/test_models_logits_equal.py`) that compares pristine HuggingFace forwards against VeOmni's monkey-patched HF models on transformers v4. Coverage spans causal-LM (qwen2.5, llama3.1, seed_oss, qwen3, qwen3_moe, deepseek_v3), VLM ...
diff --git a/tests/models/test_models_logits_equal.py b/tests/models/test_models_logits_equal.py index 64421e94f..14125fff1 100644 --- a/tests/models/test_models_logits_equal.py +++ b/tests/models/test_models_logits_equal.py @@ -53,6 +53,20 @@ class Case: `attn_implementation` is passed through to both HF and veom...
1
1
0
[{"id": "G0", "claim": "Before dist.init_process_group with the nccl backend, torch.cuda.set_device should be called first so NCCL initializes on the intended GPU instead of defaulting to device 0, which in multi-GPU environments can conflict with the model's placement or cause initialization errors.", "category": "cor...
null
ByteDance-Seed__VeOmni__722
ByteDance-Seed/VeOmni
722
defect
2b889dba836643dbb2d8726f0b7a193ec2f98a3d
e50b8ad3440070a41639081c5a0470340ec5ba13
[ci, model] test: add bitwise logits-equal tests for v5 models
### What does this PR do? > Adds a v5 sibling to `tests/models/test_models_logits_equal.py` (the v4 test). For every patchgen-migrated model, builds a pristine HuggingFace v5 model and the matching VeOmni `generated/patched_modeling_*_gpu.py` model side-by-side, copies HF weights, runs forward, and asserts bitwise-e...
diff --git a/.github/workflows/gpu_unit_tests.yml b/.github/workflows/gpu_unit_tests.yml index cc6e7bfe4..119385012 100644 --- a/.github/workflows/gpu_unit_tests.yml +++ b/.github/workflows/gpu_unit_tests.yml @@ -138,6 +138,7 @@ jobs: uv run --frozen pytest -s -x tests/models/test_model_registry.py ...
1
1
0
[{"id": "G0", "claim": "If text_config.vocab_size is less than 32000, the vocab/input_ids generation sets both bounds of torch.randint to 32000, which would raise a RuntimeError, so a safety check ensuring vocab > 32000 should be added to make the test robust against different toy configurations.", "category": "correct...
null
ByteDance-Seed__VeOmni__727
ByteDance-Seed/VeOmni
727
defect
9c041dbdac469f372b1b9373078d77771c64638f
7d8d22181f71e339eda3c002b41dd27dbc553e7f
[ci, model] test: add v5 loader-path test and glm_moe_dsa coverage
### What does this PR do? > Closes two gaps in `tests/models/test_models_logits_equal_v5.py` > compared to its v4 sibling. Tests-only — no production code changes. > > 1. **The disk-backed loader path was not tested.** The existing v5 > test loads weights via in-memory `model.load_state_dict(...)`, > whic...
diff --git a/tests/models/test_models_logits_equal_v5.py b/tests/models/test_models_logits_equal_v5.py index 87280574d..88e1541a2 100644 --- a/tests/models/test_models_logits_equal_v5.py +++ b/tests/models/test_models_logits_equal_v5.py @@ -15,8 +15,8 @@ class via the ``transformers >= 5.0.0`` branch: (``*ForCausalL...
2
1
0
[{"id": "G0", "claim": "The manual getattr traversal used to restore non-persistent buffers will fail when it meets an nn.ModuleList index (e.g. model.layers.0...), so model.get_buffer(name) should be used instead.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1...
null
ByteDance-Seed__VeOmni__735
ByteDance-Seed/VeOmni
735
defect
29fc8e663979856420b5f03e912a69a7ffcea750
438c41277a8255d6daf1f6e4bc466f75ff6aef54
[model] fix: dit + lora related fix
## Dit trainer related: 1. support sp offline embedding 2. fix helper when token_len == 0 (offline embedding has no token) ## Lora related: (only dit tested currently) 1. fix fsdp1 meta/gpu init load lora_adapter & init lora 2. add fsdp2 meta init load peftmodel & load adapter & init lora 3. del `training archite...
diff --git a/docs/usage/arguments.md b/docs/usage/arguments.md index 425ea65fb..2a1e3a22a 100644 --- a/docs/usage/arguments.md +++ b/docs/usage/arguments.md @@ -208,7 +208,7 @@ NPU validation runs at two times: | Field | Type | Default | Description | | --- | --- | --- | --- | -| train_architecture | `Literal["full...
6
4
4
[{"id": "G0", "claim": "Muxing audio into the video renames the original video to a temporary path and unconditionally deletes that temporary path in the finally block, so if the ffmpeg command fails (missing binary, corrupted audio, incorrect parameters) the original video file is lost forever; the original video shou...
null
ByteDance-Seed__VeOmni__760
ByteDance-Seed/VeOmni
760
defect
5243b276aea02cd799dbb3705fc113fd900e8ea6
05723a3d413aea1d3c6049b52721132fcf96e48e
[model, ci] test: add implicit CUDA sync gate for qwen3_5 generated modeling
### What does this PR do? Adds a unit-level **ratchet test** that detects implicit host↔device CUDA syncs in VeOmni-patched v5 modeling under `veomni/models/transformers/*/generated/`. The gate runs each model's forward under `torch.cuda.set_sync_debug_mode("warn")`, captures the warnings, and fails if a new sync site...
diff --git a/.github/workflows/gpu_unit_tests.yml b/.github/workflows/gpu_unit_tests.yml index e613efe39..3dc99c925 100644 --- a/.github/workflows/gpu_unit_tests.yml +++ b/.github/workflows/gpu_unit_tests.yml @@ -140,6 +140,7 @@ jobs: uv run --frozen pytest -s -x tests/models/test_vlm_trainer.py u...
3
3
2
[{"id": "G0", "claim": "The path check in _is_generated_path is too restrictive because of the leading slash in \"/veomni/models/transformers/\", so relative warning filenames would bypass the gate and cause false negatives in the CI sync test.", "category": "correctness", "verdict": "supported", "priority": "P1", "sco...
null
ByteDance-Seed__VeOmni__770
ByteDance-Seed/VeOmni
770
defect
7a359076f6e705da7dbdf6faa7647e495ea67673
677f158c3d2a6c41173a08c01e1b00ed13e83bc3
[model] feat: support qwen-image
### What does this PR do? Support Qwen-Image full training.
diff --git a/configs/dit/qwen_image_sft.yaml b/configs/dit/qwen_image_sft.yaml new file mode 100644 index 000000000..85f69f2d6 --- /dev/null +++ b/configs/dit/qwen_image_sft.yaml @@ -0,0 +1,61 @@ +model: + model_path: Qwen/Qwen-Image + condition_model_path: Qwen/Qwen-Image + config_path: ./configs/model_configs/qwen...
7
4
1
[{"id": "G0", "claim": "The timestep is scaled by /1000 before being passed to the transformer, which likely produces incorrect sinusoidal embeddings and poor performance with pretrained weights; the suggestion is to append the raw timestep instead.", "category": "correctness", "verdict": "opposed", "priority": "P1", "...
null
C4-ComeTrue__c4-cometrue-assignment__13
C4-ComeTrue/c4-cometrue-assignment
13
defect
05355ff12fd05239eb4ea1e35f18ee90ff431001
edb548b37bc4355340c718752e1d9e29675af213
Feature/kariskan step3
### 리뷰 작성 - 해당 상품에 대한 구매 이력이 있는 경우, 리뷰를 작성하지 않은 경우만 리뷰 작성 가능 - 리뷰가 작성되면, 리뷰를 작성한 상품의 avgScore가 변경됩니다. ### 상품 검색 - SortType(NEWEST, PRICE_ASC, PRICE_DESC, POPULARITY, TOP_RATED) 기준으로 5개의 쿼리를 직접 작성했습니다. - Querydsl을 사용할까도 고민했는데 제 경험상으로는 동적 쿼리에 대한 코드가 딱히 엄청나게 줄어든다는 느낌은 받지 못해서 사용하지 않았습니다. - 각 쿼리는 pagination이 적용돼 있고,...
diff --git a/src/main/java/org/c4marathon/assignment/domain/consumer/service/ConsumerService.java b/src/main/java/org/c4marathon/assignment/domain/consumer/service/ConsumerService.java index 91d6d9c2f..11bedf863 100644 --- a/src/main/java/org/c4marathon/assignment/domain/consumer/service/ConsumerService.java +++ b/src/...
12
11
1
[{"id": "G0", "claim": "The five sorted-search repository methods (and the switch over sortType) should be replaced by one dynamic query method that ignores null parameters, e.g. with MyBatis.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "NOT_POSSIBLE_C...
null
C4-ComeTrue__c4-cometrue-assignment__24
C4-ComeTrue/c4-cometrue-assignment
24
defect
6383ad7015e9dbe479dc2eed4958c7ba4da62b3d
75922e63b7c819d0fb601bf5e52e21499a5cd4f9
Feature/opixxx step2
# 메인 계좌(A) -> 메인 계좌(B) 송금 - 메인 계좌 A에서의 출금 시 걸리는 락을 메인 계좌 B에 입금 작업이 끝날 때까지 가지고 가기 때문에 락의 범위를 줄이기 위해 분리했습니다. - 트랜잭션 분리를 위해 메시지 큐를 찾아봤으나 현재 프로젝트의 서버가 한 대를 바탕으로 진행하고 있기 때문에 메시지 큐를 사용하는 것보다 Redis의 List 자료구조를 사용했습니다. - 송금 요청 시 출금을 하고 커밋을 완료 후 Redis List에 출금 내용을 저장하는 이벤트를 발행합니다. - @TransactionalEventListener를 사용해서 출금 ...
diff --git a/build.gradle b/build.gradle index d4c431549..c9bcf452f 100644 --- a/build.gradle +++ b/build.gradle @@ -40,6 +40,9 @@ dependencies { compileOnly 'org.projectlombok:lombok' annotationProcessor 'org.projectlombok:lombok' + //redis + implementation 'org.springframework.boot:spring-boot-start...
2
2
2
[{"id": "G0", "claim": "A Redis error in `redisTemplate.opsForList().remove(PENDING_DEPOSIT, 1, deposit)` inside processDeposit would land in the catch block and push the deposit to FAILED_DEPOSIT for retry/rollback even though the DB deposit itself never failed.", "category": "correctness", "verdict": "supported", "pr...
null
C4-ComeTrue__c4-cometrue-assignment__28
C4-ComeTrue/c4-cometrue-assignment
28
defect
517180c3910d87ef27c69c1e208a8b61277d71ed
a3289663f25af5ef5da39b6cf4ab044723c13346
Feature/zzambas step3
간단히만 구현한 것 같습니다. 스텝을 수행하면서 더 필요한 기능들 있으면 추가해 가겠습니다. 테스트 코드는 추후 스텝 7 성능 테스트 때 많이 작성하겠습니다.. 작성한 코드는 Settlement 관련 클래스들과 UserService 쪽입니다. # 구현사항 * 1/n 정산 * 금액을 나누고 남은 금액이 있으면 특정 사용자를 선택하고 그 사용자부터 순차적으로 1원씩 추가로 부과합니다. * 랜덤 정산 * [0, 정산금] 내에서 (사용자 수 - 1) 경계를 생성하고 경계에 해당하는 금액을 부과합니다. 경계는 중복될 수 있어서 누군가는 0원의 행운에 당...
diff --git a/src/main/java/org/c4marathon/assignment/AssignmentApplication.java b/src/main/java/org/c4marathon/assignment/AssignmentApplication.java index fc92bd686..82d86f85d 100644 --- a/src/main/java/org/c4marathon/assignment/AssignmentApplication.java +++ b/src/main/java/org/c4marathon/assignment/AssignmentApplicat...
2
2
1
[{"id": "G0", "claim": "If the user who received a settlement request does not settle right away, there is currently no way for the client to later find out the settlement information.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When the requested use...
null
C4K3__nbted__2
C4K3/nbted
2
defect
0282101e276458a354c6b5eada3c3f0df7e0b4fb
4dfd6e287e42c4c90a3c75c59120ba07da9bac6f
implement LongArray read/write operations (fixes #1)
NOTE: this commit doesn't work for me. With my specific unreadable NBT file, I still get a different error message: caused by: failed to fill whole buffer However, it does remove the previous error I got that said caused by: Got unknown type id c trying to read NBT compound
diff --git a/Cargo.lock b/Cargo.lock index 24d0c01..ddd3ca3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,3 +1,5 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. [[package]] name = "backtrace" version = "0.3.9" diff --git a/src/unstable/data.rs b/src/unstable/data.rs i...
3
3
2
[{"id": "G0", "claim": "The length of a LongArray is actually stored as an Int, not a Long, so read_long_array must read it with read_int and write_long_array must write it with write_int; with the patch, reading non-corrupted files fails with 'failed to fill whole buffer' and writing stores an 8-byte length that corru...
null
C5T__Current__154
C5T/Current
154
defect
28427419fb31779b8a2029b46c5e01b7655b8044
b992f186e3a7e061fe1a9934658893c1ea0d3828
Levenshtein distance computation.
Hi @mzhurovich , I coded this a while back in a clean branch, hoping the trick would help making ASCII-art-based `gnuplot` tests pass. Propose we merge it into Bricks. PTAL. Thanks, Dima
diff --git a/strings/distance.h b/strings/distance.h new file mode 100644 index 000000000..a2d8c0c6f --- /dev/null +++ b/strings/distance.h @@ -0,0 +1,127 @@ +/******************************************************************************* +The MIT License (MIT) + +Copyright (c) 2015 Dmitry "Dima" Korolev <dmitry.korol...
2
2
1
[{"id": "G0", "claim": "Fix the misspelling in the comment above FastEditDistance: 'mathing' should be 'matching'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The int-taking FastEditDistance overload should not be exposed this way, since an acc...
null
C5T__Current__155
C5T/Current
155
defect
eca471bb8b748a190ed4861789e0109c00bd5844
9dba811f6ed6d217597948db9e4f3bdeb9c92a01
MMQ with drop-or-wait policy on overflow + tests
@dkorolev Looks like I more-or-less finished it, PTAL CC @deathbaba: Dima said, it could be useful for you - we fixed a bug with dropping MMQ and added an option to make it non-dropping
diff --git a/mq/inmemory/mq.h b/mq/inmemory/mq.h index ea13d980d..cb2a1186b 100644 --- a/mq/inmemory/mq.h +++ b/mq/inmemory/mq.h @@ -2,30 +2,104 @@ #define BRICKS_MQ_INMEMORY_MQ_H // MMQ is an efficient in-memory FIFO buffer. +// One of the objectives of MMQ is to minimize the time for which the message pushing thr...
17
15
1
[{"id": "G0", "claim": "The header comment should explicitly clarify that the order of messages is preserved except for the multithreading lock case, and specifically that messages inserted from the same thread always keep their order.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "int...
null
C5T__Current__207
C5T/Current
207
defect
c33a76b11df14852c3e9cb3c3b08c274822ddc80
713690bafaaa77f37bd79364dd607024283525e6
Bricks fixes for Windows.
Tweaks: - `condition_variable` instead of a mutex that was incorrectly locked and unlocked from different threads. - Windows-friendly `strings::Printf()` and its proper usage (in two tests we were overflowing it). - Tweak for correct file length detection, which was broken on Windows. - Pleased MSVS by using `template<...
diff --git a/3rdparty/gtest/docu/docu_96gtest.md b/3rdparty/gtest/docu/docu_96gtest.md index aaf5d9a1d..0d72a22ca 100644 --- a/3rdparty/gtest/docu/docu_96gtest.md +++ b/3rdparty/gtest/docu/docu_96gtest.md @@ -1,3 +1,5 @@ +`TODO(dkorolev): Include this file some documentation -- likely a separate .md for "3rdparty".` + ...
2
1
0
[{"id": "G0", "claim": "The TODO line added to 3rdparty/gtest/docu/docu_96gtest.md is missing a preposition and should read 'Include this file in some documentation'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The variadic rmref_impl specializ...
null
C5T__Current__211
C5T/Current
211
defect
77db883d7df12195d9e5771c26c7890b981f3f81
77f12ad835e517bd2a683ac29a00d297703d912b
Unified entry processing.
Designed to be able to add a generic `ReplayDone()` method to enable persistence.
diff --git a/Bricks/mq/inmemory/consumer.h b/Bricks/mq/inmemory/consumer.h deleted file mode 100644 index 5b6cfe710..000000000 --- a/Bricks/mq/inmemory/consumer.h +++ /dev/null @@ -1,85 +0,0 @@ -/******************************************************************************* -The MIT License (MIT) - -Copyright (c) 2015...
5
5
1
[{"id": "G0", "claim": "The comment '// Type of entries to store, defaults to `std::string`.' is outdated now that the template parameters no longer carry that default, and should be removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The adde...
null
C5T__Current__216
C5T/Current
216
defect
988886e1b48f40eabefbd54d7a806e72ffe43f24
393714a180daae9d5aa6cefa449544963a59eb12
Added `Response`.
Hi @mzhurovich, Here's a helper class to forward HTTP responses to the 2nd parameter to `Yoda` transactions, that own the HTTP request object. PTAL. Thanks, Dima
diff --git a/Bricks/net/api/api.h b/Bricks/net/api/api.h index e4ac76f98..a44e48ef9 100644 --- a/Bricks/net/api/api.h +++ b/Bricks/net/api/api.h @@ -48,6 +48,8 @@ SOFTWARE. #ifndef BRICKS_NET_API_API_H #define BRICKS_NET_API_API_H +#include "request.h" +#include "response.h" #include "types.h" #include "../../p...
4
3
1
[{"id": "G0", "claim": "The pull request provides no way to construct an empty, default-initialized Response whose every field is filled, so the chainable setters cannot be used on it.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The chainable setters ...
null
C5T__Current__221
C5T/Current
221
defect
10ee47b1957bda38c87b35052e8dade72f07b799
878eab48bdaf32b69c60ecb7a7a6bc209481156d
Sherlock and Yoda ready for persistence.
Hi @mzhurovich, This pull request follows https://github.com/c5t/Current/pull/220. A few things were not easy and a few are still suboptimal in the code. Need your advice on how to best make it neat. In retrospect, it's great to see our C++ code behave functional. I spent way more time compiling it than making sure ...
diff --git a/Blocks/HTTP/test.cc b/Blocks/HTTP/test.cc index 833d68afc..c7f49a111 100644 --- a/Blocks/HTTP/test.cc +++ b/Blocks/HTTP/test.cc @@ -668,7 +668,7 @@ TEST(HTTPAPI, ResponseSmokeTest) { const auto response4 = HTTP(GET(Printf("http://localhost:%d/response4", FLAGS_net_api_test_port))); EXPECT_EQ(202, s...
4
4
0
[{"id": "G0", "claim": "The explicit `RmFile()` call on the test's file is redundant because `ScopedRmFile`, by default, already removes the existing file in its constructor.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Template parameter or...
null
C5T__Current__232
C5T/Current
232
defect
d51717f0327aa3a3009f0217ba82dc471bd257c5
3b407faf245c63bdfde0d0b58bae9981d9a5b7b1
Allowed passing parameters into lazy initializer.
Hi @mzhurovich, Added a clean way to allow semi-lazy initialization. PTAL once you're going through all the e-mail. :-) Thanks! Dima
diff --git a/Bricks/util/lazy_instantiation.h b/Bricks/util/lazy_instantiation.h index b4a24a09a..06a3d08f9 100644 --- a/Bricks/util/lazy_instantiation.h +++ b/Bricks/util/lazy_instantiation.h @@ -33,56 +33,118 @@ SOFTWARE. namespace bricks { -template <typename T> +template <typename T, typename T_EXTRA_PARAMETER...
4
4
0
[{"id": "G0", "claim": "The comment saying 'InstantiateAsSharedPtr as a `unique_ptr<T>`' should say 'InstantiateAsUniquePtr' instead.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The blank line after 'int q = 0;' should be removed.", "category":...
null
C5T__Current__240
C5T/Current
240
defect
1dda8c3fdf6048a7588711230c3769973c779d59
13a1f7429300e4000c95833793e872e91f659bdb
Further RipCurrent metaprogramming.
Hi @mzhurovich ! Getting ready to the final step of RTTI-based dispatching. In this work-in-progress: made the list of emitted types part of RipCurrent subflow node type signature. A bit of a design doc/idea: - When it comes to accepting incoming entries, we rely on C++ type dispatching. For example, the user could d...
diff --git a/RipCurrent/ripcurrent.h b/RipCurrent/ripcurrent.h index a401a0fc2..18399262b 100644 --- a/RipCurrent/ripcurrent.h +++ b/RipCurrent/ripcurrent.h @@ -111,7 +111,6 @@ class RipCurrentMockableErrorHandler { // Human-readable symbols for template parameters for one of four open-vs-closed-ended blocks. enum ...
1
1
0
[{"id": "G0", "claim": "The added comment misspells 'requires' as 'requres' and its phrasing could be changed to 'to be nonempty type list'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
C5T__Current__261
C5T/Current
261
defect
383fcfa5f540dbf26c5199f945fba5ee8d2a63de
c4ae695b08746627559f6f2ef18f96d0781aefd9
Struct schema v0.1
@dkorolev Decided to make a dedicated type for schema serialization due to problems with declaring not-serializable members (you cannot declare anything of size 0 => problems with field counting). Pichal'ka.
diff --git a/TypeSystem/Reflection/reflection.h b/TypeSystem/Reflection/reflection.h index 9f8302818..352e997b7 100644 --- a/TypeSystem/Reflection/reflection.h +++ b/TypeSystem/Reflection/reflection.h @@ -73,6 +73,15 @@ struct ReflectorImpl { return std::move(v); } + template <typename TF, typename TS>...
13
6
0
[{"id": "G0", "claim": "ReflectSuper() should return a const-qualified pointer (`const ReflectedType_Struct*`) instead of a mutable `ReflectedType_Struct*`.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A comment documenting the ordering of `TypeInfo::i...
null
C5T__Current__267
C5T/Current
267
defect
aafcae1f7603c8ac493243561d745fd6a76d6cd1
72b3fac1c39b70cf456620d7aff48c3316021025
Binary (de)serialization.
@dkorolev I didn't make changes to floating point values (de)serialization that we discussed over the phone.
diff --git a/TypeSystem/Serialization/binary.h b/TypeSystem/Serialization/binary.h new file mode 100644 index 000000000..cdc176340 --- /dev/null +++ b/TypeSystem/Serialization/binary.h @@ -0,0 +1,265 @@ +/******************************************************************************* +The MIT License (MIT) + +Copyright...
6
3
1
[{"id": "G0", "claim": "Make the size and byte-count locals in the binary size (de)serialization helpers const.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "`bool` probably needs special treatment too, it's not always one byte.", "category": "...
null
C5T__Current__274
C5T/Current
274
defect
a20b3c9cb8d20776a17facfcce25e431dcfa3d59
0ed5f266d6180d73f0e6439f1eba2e46a2cbccd8
Polymorphic types.
Hi Max! For after https://github.com/c5t/Current/pull/273. Polymorphic types, all but serialization by now. **Suggestion**: Looks like with a bit of tweaking, the dream may come true. Specifically: - Use global `Exists(...)` or `Exists<T>(...)` for base types, optionals, and polymorphics. - Use global `Value(...)` o...
diff --git a/TypeSystem/Serialization/binary.h b/TypeSystem/Serialization/binary.h index 95c9b1174..c7417a987 100644 --- a/TypeSystem/Serialization/binary.h +++ b/TypeSystem/Serialization/binary.h @@ -29,6 +29,10 @@ SOFTWARE. #include "../struct.h" +// TODO(dkorolev): Soon to be added. +// #include "../optional.h"...
5
5
0
[{"id": "G0", "claim": "The local variable `n` in LoadFromJSONImpl<std::vector<T>>::Load should be renamed to `size`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment typo should be fixed: \"in which cast it's moved\" should read \"in ...
null
C5T__Current__276
C5T/Current
276
defect
4525952a7f97d3f84ca68578897ed9f13575a18a
48695fb95980e89633f87b1b65db35823b3f73f6
File-level reflection, C++ and F# code generation, golden tests.
Hi @mzhurovich, Before I dive back into polymorphics, here's an attempt to: - move reflection / schema generation one level higher, to source file / group of structures level, and - add F# support. Thanks, Dima
diff --git a/TransactionalStorage/storage.h b/TransactionalStorage/storage.h index bea813088..8504d07fd 100644 --- a/TransactionalStorage/storage.h +++ b/TransactionalStorage/storage.h @@ -84,7 +84,7 @@ class VectorAPI : protected VectorStorage<T> { typename PERSISTER::ImmutableOptionalType operator[](size_t index...
4
3
1
[{"id": "G0", "claim": "The committed golden smoke_test_struct.json contains wrong primitive TypeIDs (mangled to less than 64 bits by json_pp pretty-printing), so the smoke test fails on both OS X and Ubuntu.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "cl...
null
C5T__Current__292
C5T/Current
292
defect
a1a758d7c6bbce44cedcbb042479a8ba592ed264
ec0cca4d2dd5d757590ac99063d6f06f9dc45651
More refactoring.
[ After https://github.com/c5t/Current/pull/291 ] More refactoring, mostly to have the example do its job, and to highlight what remains to be done. Thanks, Dima
diff --git a/Blocks/HTTP/chunked_demo.cc b/Blocks/HTTP/chunked_demo.cc index 34bad4132..55958b601 100644 --- a/Blocks/HTTP/chunked_demo.cc +++ b/Blocks/HTTP/chunked_demo.cc @@ -206,11 +206,11 @@ int main() { "application/json; charset=utf-8", {{"Connection", "keep-a...
1
1
0
[{"id": "G0", "claim": "The `--url` flag's help text in benchmark.cc should mention the default includes the http:// scheme (it currently reads \"default to localhost:${FLAGS_port}\" while the default value is \"http://localhost:%d\").", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "i...
null
C5T__Current__326
C5T/Current
326
defect
bfca6d6193c033e08f6059a473dbb303560cb6b0
fc4ce4cec85c567bcbd83f8979d6ae93fa48689b
Midichlorians using Current type system.
@dkorolev Slightly redesigned event system, which now uses Current structs. The old code left almost unchanged, except for `emit` method.
diff --git a/Midichlorians/Dev/Beta2/MidichloriansDataDictionary.h b/Midichlorians/Dev/Beta2/MidichloriansDataDictionary.h new file mode 100644 index 000000000..30bbd1fed --- /dev/null +++ b/Midichlorians/Dev/Beta2/MidichloriansDataDictionary.h @@ -0,0 +1,142 @@ +/*******************************************************...
10
8
1
[{"id": "G0", "claim": "Nit: the comment should read `allows the client code` (with `the`), probably in both the old and the new sources.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Asks whether the new header's guard/name should include `BETA2...
null
C5T__Current__350
C5T/Current
350
defect
acd3594ce74765de0eb729defacfe45cbce77357
2881e0703c1ba5e30418b728e9bf36d661d280a4
`CURRENT_STRUCT_TAG` refactoring and split.
Hi @mzhurovich , `CURRENT_STRUCT_TAG` refactoring, and separated `Dictionary` and `Vector` persistence-wise. Thanks, Dima
diff --git a/Storage/container/dictionary.h b/Storage/container/dictionary.h index 59cc00c63..e5085698e 100644 --- a/Storage/container/dictionary.h +++ b/Storage/container/dictionary.h @@ -83,7 +83,7 @@ class Dictionary { } } - void operator()(const T_UPDATE_EVENT& object) { map_[sfinae::GetKey(object)] = ob...
4
4
1
[{"id": "G0", "claim": "The `object` parameter of Dictionary's T_UPDATE_EVENT/T_DELETE_EVENT handlers in Storage/container/dictionary.h should be renamed (suggested: `event`), since after this change it wraps the object rather than being it.", "category": "maintainability", "verdict": "supported", "priority": "P3", "sc...
null
C5T__Current__392
C5T/Current
392
defect
704fc1f730c283632818bf8efd9f8245798712f1
8e7277b564856a9e40261dd3d4b478085aaa95ff
Several fixes in persisters and Sherlock.
@dkorolev This fixes two bugs: 1) `file.h` line 97 2) Sherlock didn't know last index and timestamp when started from non-empty persistence file.
diff --git a/Blocks/Persistence/file.h b/Blocks/Persistence/file.h index 08ef016b2..3ee9b1d38 100644 --- a/Blocks/Persistence/file.h +++ b/Blocks/Persistence/file.h @@ -94,7 +94,7 @@ template <typename ENTRY> class FilePersister { private: struct Impl { - const std::string& filename; + const std::string fil...
5
3
0
[{"id": "G0", "claim": "The new CompareValuesMixedWithTerminate call is less readable than the previous explicit list of accepted results strings.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The newly added expected_values vector should be decl...
null
C5T__Current__446
C5T/Current
446
defect
96ed504816f160dc2d184f74c3a53dda55878fec
510f148cb1363f01d40651800c280733aba5f1b5
Finished decoupling Stream and Storage.
The remaining 33% of https://github.com/C5T/Current/pull/443. Thanks, Dima
diff --git a/Blocks/SS/pubsub.h b/Blocks/SS/pubsub.h index 2e43fd797..1ec393c66 100644 --- a/Blocks/SS/pubsub.h +++ b/Blocks/SS/pubsub.h @@ -26,6 +26,9 @@ SOFTWARE. #ifndef BLOCKS_SS_PUBSUB_H #define BLOCKS_SS_PUBSUB_H +#include "../../port.h" +#include <cassert> + #include "idx_ts.h" #include "../../TypeSystem...
6
6
1
[{"id": "G0", "claim": "The commented-out `current::sherlock::Stream<...>` lines in the new test are redundant given the static_assert above and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The processor's parameter named T_...
null
C5T__Current__463
C5T/Current
463
defect
77097bd6b93ea366a2cd40d11e2556cb8746998d
c4ab2bf1ea0e6bda2912c19782e5fafb5b318a2f
`ScopeOwned` in `sherlock.h`, 50% done.
Hi Max, PTAL after https://github.com/C5T/Current/pull/462. No need to merge, I'm happy to make this change atop yours later on. Thanks, Dima
diff --git a/Blocks/HTTP/api.h b/Blocks/HTTP/api.h index cefd7b7e8..465ff8909 100644 --- a/Blocks/HTTP/api.h +++ b/Blocks/HTTP/api.h @@ -45,20 +45,24 @@ SOFTWARE. #if defined(CURRENT_POSIX) || defined(CURRENT_WINDOWS) || defined(CURRENT_APPLE_HTTP_CLIENT_POSIX) #include "impl/posix_client.h" #include "impl/posix_ser...
7
6
1
[{"id": "G0", "claim": "Remove the extra empty line added inside the memory persister iterator's `operator++` in Blocks/Persistence/memory.h.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Collapse the added `if (time_to_terminate_)` early retur...
null
C5T__Current__471
C5T/Current
471
defect
df0e200eb5f836b71d071dc498234fd9bb63a1e5
14710293358ec2df4a84c14b7d2e07ff86da23a3
Schema as Markdown.
Hi @mzhurovich, After https://github.com/C5T/Current/pull/470, this PR enables Markdown schema export. Thanks, Dima
diff --git a/Sherlock/test.cc b/Sherlock/test.cc index 537ab0d58..0a9b990e5 100644 --- a/Sherlock/test.cc +++ b/Sherlock/test.cc @@ -355,7 +355,8 @@ TEST(Sherlock, SubscribeToStreamViaHTTP) { // `?schema` responds back with a top-level schema JSON, providing the name, TypeID, // and various serializations. ...
2
2
0
[{"id": "G0", "claim": "The comment says it prints an \"F# type name\", but the code actually prints a Markdown type name, so \"F#\" should be removed from the comment.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The block comment that also say...
null
C5T__Current__486
C5T/Current
486
defect
8f2a860ae154a1fbad0ce5fa701e92ed61717102
2889e716f039ed912e08f8fe3ab924df91d14ce4
Karl's getting more mature and can handle Claires.
![karl](https://cloud.githubusercontent.com/assets/2159447/14946572/e8bcb660-0fd8-11e6-92e1-b6e2bbd6dd6c.png)
diff --git a/Bricks/strings/test.cc b/Bricks/strings/test.cc index 6ff283e85..64a42c6af 100644 --- a/Bricks/strings/test.cc +++ b/Bricks/strings/test.cc @@ -629,6 +629,14 @@ TEST(TimeIntervalAsString, SmokeTest) { EXPECT_EQ("1d 0h 0m 0s", TimeIntervalAsHumanReadableString( std::chrono::...
1
1
0
[{"id": "G0", "claim": "GCC's `-v` flag results in more detailed compiler information than `--version`, so `COMPILER_INFO` in scripts/gen-current-build.sh should be collected with `-v` instead.", "category": "improvement", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
C5T__Current__507
C5T/Current
507
defect
48873cd2d3f56c10ae2647ca75187a077ab9ee52
1078acd2922b3e48718d551b4e399fb5de66f153
Performance tests.
The actual commit: https://github.com/C5T/Current/commit/1de35cf3cc0a75a8228214c3f1eaa258db74faa1 (As this PR incorporates https://github.com/C5T/Current/pull/506 as of now). Max, I'm seeing 33K QPS on Current's HTTP server on Hetz, and 16K..18K on my T420s. Fucking impressive. At the same time, an attempt to test t...
diff --git a/examples/Benchmark/HTTP/Makefile b/examples/Benchmark/HTTP/Makefile new file mode 120000 index 000000000..082e345c4 --- /dev/null +++ b/examples/Benchmark/HTTP/Makefile @@ -0,0 +1 @@ +../../../scripts/Makefile \ No newline at end of file diff --git a/examples/Benchmark/HTTP/README.md b/examples/Benchmark/H...
5
5
0
[{"id": "G0", "claim": "The added comment in run.cc should read \"It only counts the queries\" instead of \"It only count the queries\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The added comment in run.cc misspells \"witin\" and should read...
null
C5T__Current__52
C5T/Current
52
defect
ada616207ba692a77dda330ed043930dadf9a7d7
4e1aedacad6e9e51464f2f225bfd90097e9a92d2
Added gnuplot support.
Need somewhat fancier graphs for the demo, `plotutils` is not enough.
diff --git a/plotutils/Makefile b/graph/Makefile similarity index 100% rename from plotutils/Makefile rename to graph/Makefile diff --git a/graph/gnuplot.h b/graph/gnuplot.h new file mode 100644 index 000000000..8af3824b6 --- /dev/null +++ b/graph/gnuplot.h @@ -0,0 +1,188 @@ +/******************************************...
1
1
1
[{"id": "G0", "claim": "The new ::system() invocation of gnuplot should include at least minimal error checking instead of ignoring the call's result.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
C5T__Current__527
C5T/Current
527
defect
156a1fbbb5add325ca0e4049f4332c311e434bf4
55bb72529cfe3206106ad06c02e833b17420334b
TypeID fix.
``` [----------] Global test environment tear-down [==========] 373 tests from 57 test cases ran. (8650 ms total) [ PASSED ] 373 tests. ALL TESTS PASS. ```
diff --git a/TypeSystem/Reflection/reflection.h b/TypeSystem/Reflection/reflection.h index e23ca693a..2a35c0855 100644 --- a/TypeSystem/Reflection/reflection.h +++ b/TypeSystem/Reflection/reflection.h @@ -55,8 +55,7 @@ struct ReflectorImpl { struct StructFieldReflector { using fields_list_t = std::vector<Reflec...
2
2
1
[{"id": "G0", "claim": "The commented-out field-visiting code left in `operator()(TypeSelector<T>, ReflectedType_Struct&)` looks like legacy left over from the refactoring process and should be cleaned up.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
C5T__Current__604
C5T/Current
604
defect
d4923a33e370f4c8e5aeeeb1fe6fec992a32ca3e
8129fcff3e8d70b161d73b2d6f8e6e587316ccd3
Test storage compilation time.
Atop https://github.com/C5T/Current/pull/603: Testing Storage compilation time with a Sherlock subscriber. `clang++` on Hetz, `-O0`: ``` Generating data for 50 structures. Compiling: .current/storage Time elapsed: 34.621 seconds. Running: PASSED Compiling: .current/storage_with_sherlock Time elapsed: 49.061 seconds. ...
diff --git a/regression_tests/type_system/gen_test_data.sh b/regression_tests/type_system/gen_test_data.sh index cc90ff8f4..8f07c79d7 100755 --- a/regression_tests/type_system/gen_test_data.sh +++ b/regression_tests/type_system/gen_test_data.sh @@ -164,7 +164,7 @@ done STORAGE_HEADER="$INCLUDE_DIR/storage.h" STORAGE_...
1
1
0
[{"id": "G0", "claim": "Rename the new test entry (and file) from storage_with_sherlock to storage_with_subscriber.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
C5T__Current__633
C5T/Current
633
defect
b2b21fc5afccb68775b3a30a4818b4c39a3ac1a6
439d5b1447593082cab7acbf64f46d0bd2270fe8
Integers are Doubles too.
The fix for: ``` {"success":false,"message":null,"error":{"name":"ParseJSONError","message":"Invalid JSON in request body.","details":{"error_details":"Expected double for `avg_blah_blah`, got: 0"}}} ```
diff --git a/TypeSystem/Serialization/json/primitives.h b/TypeSystem/Serialization/json/primitives.h index f2f29971d..bb1556970 100644 --- a/TypeSystem/Serialization/json/primitives.h +++ b/TypeSystem/Serialization/json/primitives.h @@ -100,9 +100,9 @@ struct DeserializeImpl<json::JSONParser<JSON_FORMAT>, template <cl...
1
1
1
[{"id": "G0", "claim": "The new test should also check the `float` deserializer, since the PR changed `IsDouble()` to `IsNumber()` there too.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
C5T__Current__645
C5T/Current
645
defect
fa3c741811bb66a29d91b0fd276ea6dd7b26e3ee
c1b62de11344c855729dc3dc0609df0021675080
RESTful URL fixes.
Hi @nyospe -- thanks for pinpointing the issue. Part of it was indeed taken care of by the nginx fix (oops), and the remaining logic is being corrected by this PR. CC @mzhurovich
diff --git a/Storage/rest/hypermedia.h b/Storage/rest/hypermedia.h index 82e84873a..27de49526 100644 --- a/Storage/rest/hypermedia.h +++ b/Storage/rest/hypermedia.h @@ -107,14 +107,17 @@ struct HypermediaResponseFormatter { } template <typename PARTICULAR_FIELD, typename ENTRY, typename INNER_HYPERMEDIA_TYPE, t...
1
1
0
[{"id": "G0", "claim": "A comment should be added to explain the redundancy of the identical pagination_url and collection_url expressions passed at Storage/rest/structured.h line 217.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
C5T__Current__652
C5T/Current
652
defect
36a931e6b02fe6ee9fb44fea6f7423a7e6e26081
5f079d79bbb3ebc26c4ae44338422bf5ed07bb60
Various Karl-related tweaks + `[Immutable]Optional<>` comparisons.
Sorry for some mess, but I hope this PR is good for per-commit review. Thanks!
diff --git a/Karl/integrations/nodejs/.gitignore b/Karl/integrations/nodejs/.gitignore index 93f136199..9456a0a5f 100644 --- a/Karl/integrations/nodejs/.gitignore +++ b/Karl/integrations/nodejs/.gitignore @@ -1,2 +1,3 @@ node_modules npm-debug.log +current_build.json diff --git a/Karl/integrations/nodejs/test.js b/Ka...
8
5
1
[{"id": "G0", "claim": "Reading and parsing `current_build.json` in the Node.js test should handle failure with a `console.error` message and `process.exit(-1)`.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The \"build\" placeholder shown for a servic...
null
C5T__Current__656
C5T/Current
656
defect
b12b514d208bea97591def6218721ace53084511
10215937f54c74cb5f80a5fab3b21d735b5363cc
RipCurrent syntactic sugar tweaks.
Hi Max! A few tweaks from the airplane. Cleaner syntax, and, looks like, I've fixed the global `using namespace current;` top-level `make test` issue in the meantime. Worth testing on Windows as I factored out the `REMOVE_PARENTHESES` macro into a dedicated header, and extended it with `__VA_ARGS__`. Thanks, Dima
diff --git a/RipCurrent/ripcurrent.h b/RipCurrent/ripcurrent.h index 646cf6e12..804e513f3 100644 --- a/RipCurrent/ripcurrent.h +++ b/RipCurrent/ripcurrent.h @@ -58,6 +58,7 @@ SOFTWARE. #include <vector> #include "../TypeSystem/struct.h" +#include "../TypeSystem/remove_parentheses.h" #include "../Bricks/rtti/disp...
1
1
1
[{"id": "G0", "claim": "The macros defined in TypeSystem/remove_parentheses.h (e.g. REMOVE_PARENTHESES and the CF_TYPE_* helpers) should be namespace-prefixed so they cannot clash with other macros in the global namespace of a program including the header.", "category": "design", "verdict": "supported", "priority": "P1...
null
C5T__Current__659
C5T/Current
659
defect
1b9716438d323b8b47eb8d5bf5907e98ee3be1dc
f68eaebb5a01c6bdf073a75ab9c60d0c0dcd2302
The "priority MMQ" to allow `PublishIntoTheFuture` and `UpdateHead`.
Hi @mzhurovich and CC @grixa. I've put together a piece of logic to allow joining events from the future with events from the present using timestamps as sort keys. The last two tests should be self-explanatory. Requires comments are: - I've kept MMQ (and MMPQ) indexes 1-based, as historically zero return code from M...
diff --git a/Blocks/MMQ/mmpq.h b/Blocks/MMQ/mmpq.h new file mode 100644 index 000000000..e16dfdcb2 --- /dev/null +++ b/Blocks/MMQ/mmpq.h @@ -0,0 +1,171 @@ +/******************************************************************************* +The MIT License (MIT) + +Copyright (c) 2016 Dmitry "Dima" Korolev <dmitry.korolev@...
4
3
1
[{"id": "G0", "claim": "In Blocks/MMQ/mmpq.h the comment about shortening a few lines should be flipped to sit with (above) the function it describes rather than after the `using` declaration it followed.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
C5T__Current__662
C5T/Current
662
defect
fe0107aa688471ef2d6f4e0442b2b871810796b0
b9e829017148e0bf251df5951d7e5be84908b5c4
Incorporated MMPQ into RipCurrent.
- Every `|` in RipCurrent is an MMPQ now. (Which made RipCurrent multithreaded). - Extending the RipCurrent publishing interface: - `emit` is now `emit<MessageType>(constructor, parameters, if, needed, ...)`. - `post`, which is `emit` at certain timestamp, for non-`Now()` timestamps. - `schedule`, which is `Publ...
diff --git a/Bricks/sync/test.cc b/Bricks/sync/test.cc index 24e7d4074..09cf598aa 100644 --- a/Bricks/sync/test.cc +++ b/Bricks/sync/test.cc @@ -267,6 +267,20 @@ TEST(WaitableAtomic, Smoke) { EXPECT_EQ(copy_of_object.y + 1u, object.MutableUse([](Object& object) { return ++object.y; })); } +TEST(WaitableAtomic, Pr...
9
8
0
[{"id": "G0", "claim": "The template declaration of `BasicImpl` should have a space after the `template` keyword (and follow the indent style).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer quipped that the new `OnThreadUnsafe*` me...
null
C5T__Current__667
C5T/Current
667
defect
669c1b6c0e9fd5188ac415f5054d2caa8110e0ee
691b8662553f010b6462bd0ac2d376d9d9e36322
`operator+` in RipCurrent.
A few shortcuts here and there, but should be good enough for the review. Thanks Max!
diff --git a/RipCurrent/ripcurrent.h b/RipCurrent/ripcurrent.h index dad2050b9..1d55a17ab 100644 --- a/RipCurrent/ripcurrent.h +++ b/RipCurrent/ripcurrent.h @@ -24,31 +24,32 @@ SOFTWARE. // RipCurrent dataflow definition language. -// When defining the RipCurrent with `|` and `+` C++ operators, each sub-expression...
4
4
0
[{"id": "G0", "claim": "The pull request leaves a commented-out `BlockOutgoingInterface` base-class clause in `SubCurrentScope`, and the reviewer asks whether it was left there intentionally.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ne...
null
C5T__Current__669
C5T/Current
669
defect
50ff062bf9208d12009647c40774ed0fef72d7d9
7bb4ce30f922fb3cc31a033e2815f564b5fa887b
Extending the JSON schema inference tool.
Dirty-ish, mostly in namespace and function naming, and the `#if 1 // Dirty hack.`. Still worth your look IMHO. Thanks, Dima
diff --git a/Bricks/file/file.h b/Bricks/file/file.h index d287999be..8834458da 100644 --- a/Bricks/file/file.h +++ b/Bricks/file/file.h @@ -88,6 +88,22 @@ struct FileSystem { } } + template <typename F> + static inline void ReadFileByLines(const std::string& file_name, F&& f) { + try { + std::ifstr...
4
4
0
[{"id": "G0", "claim": "The comment 'Takes a free-form, and, ...' is missing what it takes (free-form JSON) and should be completed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment misspells 'JSON-infied' where it should read 'JSON-ifie...
null
C5T__Current__681
C5T/Current
681
defect
c1fea6f4dae6d0a36367194dc5ba3a58a46a57fd
4efee21e5d79918b70ff2d4afc581830f76110a8
More robust locking in Stream => SS => Persister.
A continuation of the #673 CC @dkorolev @mzhurovich
diff --git a/Blocks/Persistence/file.h b/Blocks/Persistence/file.h index 2b1cf2586..571c9c5ea 100644 --- a/Blocks/Persistence/file.h +++ b/Blocks/Persistence/file.h @@ -32,16 +32,17 @@ SOFTWARE. #define BLOCKS_PERSISTENCE_FILE_H #include <atomic> -#include <functional> #include <fstream> +#include <functional> ...
5
4
0
[{"id": "G0", "claim": "The persister's mutex member should be renamed to reflect that it is a reference to an external mutex object (e.g. `mutex_ref` / `external_mutex_ref`).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It is inconsistent tha...
null
C5T__Current__687
C5T/Current
687
defect
21f957361a814b0171a1d5b9658eb02c0b480324
c7920fc74c7237e01b0ba3ec53dc7eeae32b3652
FnCAS: Allowed member function optimization.
Hi @mzhurovich, Added member functions optimization alongside the existing optimization of static functions. Some refactoring as well, but nothing beyond just keeping this 3+ years code in line with our modern guide. Also, ran the integration and performance test (both under `deprecated_test/`). They both pass...
diff --git a/FnCAS/LICENSE b/FnCAS/LICENSE index d832d0f28..b3789db97 100644 --- a/FnCAS/LICENSE +++ b/FnCAS/LICENSE @@ -1,6 +1,7 @@ The MIT License (MIT) Copyright (c) 2013 Dmitry Korolev ("Dima Korolev"). + (c) 2014 Maxim Zhurovich. Permission is hereby granted, free of charge, to any person obtaining...
3
1
0
[{"id": "G0", "claim": "The optimizer-parameter variables declared as locals at the top of each Optimize() implementation (e.g. step_factor, grad_eps) should be declared const.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test name FNCAS.Opt...
null
C5T__Current__709
C5T/Current
709
defect
a5e09922f67e2f7a2b10c51d91fe9eaa75e34efb
6beb6aad00ee3418af30a4e58d437a86e459c4ef
ML-aware Irises demo.
Yo! After https://github.com/C5T/Current/pull/708. Check out this visualization from Wikipedia: https://upload.wikimedia.org/wikipedia/commons/5/56/Iris_dataset_scatterplot.svg Here's the output of `step2`, `http://localhost:3000`: ![image](https://cloud.githubusercontent.com/assets/2159447/21538997/4d0c1f7...
diff --git a/Blocks/HTTP/docu/server/docu_03httpserver_03_test.cc b/Blocks/HTTP/docu/server/docu_03httpserver_03_test.cc index a20cffb63..e51575a1a 100644 --- a/Blocks/HTTP/docu/server/docu_03httpserver_03_test.cc +++ b/Blocks/HTTP/docu/server/docu_03httpserver_03_test.cc @@ -40,7 +40,7 @@ const auto port = FLAGS_docu_...
6
4
0
[{"id": "G0", "claim": "It is unclear why the newly added `original_f` parameter is needed in `RunOptimize` — whether it is used only for `TrackIteration` and how the 'original' f differs from the non-original one for the same point.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced...
null
C5T__Current__724
C5T/Current
724
defect
8f5c8dcdc3bb7e86df5119276d2f7670d3d5bbda
13c8e6ff23d273187e4677552440e12131fcafc0
HTTP headers fix, two small pre-CORS steps.
Hi @mzhurovich, Here's what I have hanging from the weekend. Considering leaving it as is for now. What do you think? :) CC @sompylasar Thanks, Dima
diff --git a/Blocks/HTTP/request.h b/Blocks/HTTP/request.h index f207ea78e..c1029575c 100644 --- a/Blocks/HTTP/request.h +++ b/Blocks/HTTP/request.h @@ -109,7 +109,7 @@ struct Request final { current::net::HTTPServerConnection::ChunkedResponseSender SendChunkedResponse( net::HTTPResponseCodeValue code = HTTPR...
3
1
0
[{"id": "G0", "claim": "Running the test PosixHTTPServerTest.InvalidHEXAsChunkSizeDoesNotKillServer terminates the test process with an abort (libc++abi terminating, Abort trap: 6) instead of the server surviving an invalid hex chunk size.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": ...
null
C5T__Current__731
C5T/Current
731
defect
5b66c53f5f7df7b55a194de42e0e68b9978af0a1
af027cd0b9c492061497166c2e4376a9016c3d7f
Ignored trailing spaces and tabs before and after the HTTP header field values.
According to rfc7230: ``` header-field = field-name ":" OWS field-value OWS ``` where: ``` OWS = *( SP / HTAB ) ; optional whitespace ```
diff --git a/Bricks/net/http/constants.h b/Bricks/net/http/constants.h index 57de461c6..d07fa276e 100644 --- a/Bricks/net/http/constants.h +++ b/Bricks/net/http/constants.h @@ -43,7 +43,7 @@ constexpr char kDefaultHTMLContentType[] = "text/html; charset=utf-8"; constexpr char kDefaultSVGContentType[] = "image/svg+xml;...
3
3
1
[{"id": "G0", "claim": "The trimming loop uses `::isspace`, which may match more characters than SP and HTAB (e.g. VTAB), so the header-value parsing is not strictly conforming to the RFC; explicit space and tab comparisons are preferred.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "...
null
C5T__Current__737
C5T/Current
737
defect
2ef59aec10509d1ebc531ca48327fd074ee842f8
b149569ed04369329a65eaa4e672776d09d7d82c
ScanDirRecursive
@mzhurovich @grixa @dkorolev Please take a look. The gist: - `ScanDirItemInfo` replaces `std::string filename` to pass additional fields to the `ScanDirUntil` and `ScanDir` callbacks. - `ScanDirUntil` and `ScanDir` takes `ScanDirRecursive::Yes` to scan directories recursively. Please also suggest how to mi...
diff --git a/Blocks/HTTP/impl/posix_server.h b/Blocks/HTTP/impl/posix_server.h index 0ec764d42..8700ca706 100644 --- a/Blocks/HTTP/impl/posix_server.h +++ b/Blocks/HTTP/impl/posix_server.h @@ -206,17 +206,17 @@ class HTTPServerPOSIX final { HTTPRoutesScope scope; current::FileSystem::ScanDir( dir, - ...
8
7
0
[{"id": "G0", "claim": "The members of ScanDirItemInfo should not have const qualifiers; const-ness is normally controlled per instance, not per member.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fields should follow the basename/pathname naming ...
null
C5T__Current__738
C5T/Current
738
defect
45be7ffd34320c801e413db401a30cc2f7d4abbd
dc62cace00a63f64bbb685704045ce26c65d4115
`ServeStaticFilesFrom` improvements to serve static frontends.
1. Serve directory recursively. 2. Serve index files and directory URLs. Redirect no-trailing-slash to trailing-slash directory URLs for proper browser relative URL resolution in static frontends. 3. Do not serve files and directories named with a dot (hidden for POSIX). ---- Prerequisite changes: - Bricks/net...
diff --git a/Blocks/HTTP/impl/posix_server.h b/Blocks/HTTP/impl/posix_server.h index fc91b981e..dca2be80a 100644 --- a/Blocks/HTTP/impl/posix_server.h +++ b/Blocks/HTTP/impl/posix_server.h @@ -75,16 +75,56 @@ struct HandlerDoesNotExistException : current::net::HTTPException { using current::net::HTTPException::HTTPE...
6
6
1
[{"id": "G0", "claim": "URLs always use forward slashes, so the `URLPathSeparator` constant and `GetURLPathSeparator()` getter (their use as the default serve path and the dedicated getter test) are unnecessary indirection and should be dropped in favour of a literal '/'.", "category": "design", "verdict": "supported",...
null
C5T__Current__740
C5T/Current
740
defect
9f1849f2058391c749cbee38b1c3a8aeb0e6f28b
50c37007978cfbb92429f5d94aee96647a63dad9
Blocks/HTTP: ServeStaticFilesFrom: Fixed slash in subdirectory, added tests.
Unfortunately, a bug leaked through, wasn't covered by the tests. CC @dkorolev
diff --git a/Blocks/HTTP/impl/posix_server.h b/Blocks/HTTP/impl/posix_server.h index e327c86d8..eb0b39fa2 100644 --- a/Blocks/HTTP/impl/posix_server.h +++ b/Blocks/HTTP/impl/posix_server.h @@ -262,7 +262,8 @@ class HTTPServerPOSIX final { if (!content_type.empty()) { // `url_dirname` has no trai...
1
1
0
[{"id": "G0", "claim": "Extra parentheses should be added so that the `||` condition visibly sits to the left of the `?` in the ternary appended to `options.url_base`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
C5T__Current__741
C5T/Current
741
defect
9f1849f2058391c749cbee38b1c3a8aeb0e6f28b
3a680204de91b83bae75669fe06a3c4e0c1a8a66
Support compile time warnings for the `current::strings::Printf`
Use `__attribute__(__format__,...)` to enable printf-like warnings. Unfortunately, there is no an alternative for Windows: msvc2015 has `SAL Annotations` and `_Printf_format_string_` option, but it works only with `/analyze` option (or through `Run Code Analysis on Solution`).
diff --git a/Bricks/net/http/impl/server.h b/Bricks/net/http/impl/server.h index 42765ad1e..c079938e6 100644 --- a/Bricks/net/http/impl/server.h +++ b/Bricks/net/http/impl/server.h @@ -63,7 +63,13 @@ SOFTWARE. #include "../../../strings/printf.h" #include "../../../util/singleton.h" -#define CURRENT_BRICKS_LOG_HTTP...
3
3
2
[{"id": "G0", "claim": "The inner loop counter was changed to uint64_t while the outer loops (chunks/length) stay size_t, so the outer look should be made uint64_t too to fix the 32-bit overflow without confusing mixed types.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"},...
null
C5T__Current__756
C5T/Current
756
defect
f532da63ba586747023656208b24c51be580a196
a1eb2f9a6901c5d00cf8aa1e0482a4c3b6769fad
Ran `make indent` for the files changed by @sompylasar.
``` git clone git@github.com:dkorolev/Current cd Current git remote add upstream git@github.com:C5T/Current git fetch upstream git checkout -b make_indent_for_sompylasar git merge upstream/master for i in $(git diff master --name-only) ; do clang-format-3.6 -i $i ; done git add --all git commit -m 'Ran `make ...
diff --git a/Blocks/HTTP/impl/posix_server.h b/Blocks/HTTP/impl/posix_server.h index 90b538a0a..370d264a8 100644 --- a/Blocks/HTTP/impl/posix_server.h +++ b/Blocks/HTTP/impl/posix_server.h @@ -100,9 +100,9 @@ struct ServeStaticFilesFromOptions { explicit ServeStaticFilesFromOptions(std::string route_prefix_in = "/",...
4
2
0
[{"id": "G0", "claim": "The CI build failures look flaky, e.g. Karl.ChangeDependenciesInClaire aborting with an InconsistentTimestampException and Time.SmokeTest exceeding its allowed skew (53475 vs 53000).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim"...
null
C5T__Current__761
C5T/Current
761
defect
ceff61f03b61f6f637de51cc5ed967e3828d7343
cabcd3d35c8cb3f4c158cf53097987126ae9b081
TypeSystem: Added schema export to TypeScript.
TypeScript file passes TypeScript compiler check in Atom. Probably this should be also tested in code, as a unit test; needs TypeScript runtime. Maps need to be treated differently based on whether they have primitive or composite key to make them compatible with the generated JSON. The hard thing is: TypeScript onl...
diff --git a/TypeSystem/Evolution/type_evolution.h b/TypeSystem/Evolution/type_evolution.h index 33c29dc5e..09dbd08f0 100644 --- a/TypeSystem/Evolution/type_evolution.h +++ b/TypeSystem/Evolution/type_evolution.h @@ -60,13 +60,13 @@ template <typename FROM_NAMESPACE, typename FROM_TYPE, typename EVOLVER = Natura struc...
7
5
1
[{"id": "G0", "claim": "Add tests for SanitizeTypeScriptSymbol (as well as the end-to-end one), since the golden output does not exercise the reserved-word quoting.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `!= 0u` in the `PrimitiveTypesList()....
null
C5T__Current__762
C5T/Current
762
defect
ceff61f03b61f6f637de51cc5ed967e3828d7343
0835a7e91e76ae944a5305753ddb692eeb48e65a
Supported "unsafe" iterators in the persisters.
Iterate the data in the file persister in an "unsafe" way Questions: 1. Do we need fake "unsafe" iterators for the `MemoryPersister`? Or is it better just leave them unimplemented? 2. If we would use `Chunk` instead of `std::string` as the result of the `operator*` and store last few lines of the file inside the ite...
diff --git a/Blocks/Persistence/file.h b/Blocks/Persistence/file.h index 3793efbf3..d61a5534b 100644 --- a/Blocks/Persistence/file.h +++ b/Blocks/Persistence/file.h @@ -249,117 +249,187 @@ class FilePersister { const std::string& filename) : file_persister_impl_(mutex_ref, namespace_nam...
6
4
0
[{"id": "G0", "claim": "MemoryPersister should perhaps just be retired.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "A wrapper type (e.g. \"ShortLivedChunk\"/\"WeakChunk\") should perhaps be introduced for Chunk-s.", "category": "design", "verdict": "u...
null
C5T__Current__776
C5T/Current
776
defect
6a572d8d1ccce9ebd9e88f71ccbe81254f9702c2
4413074db68dae731f33e1633b1eb8b52e901e17
TypeSystem/Schema: For autogenerated TypeScript schemas, fix Variant types.
Previously, Variant types were encoded as unions of the respective types, but in the JSON serialized structure the Variant case is an object with a key equal to the type name, and an empty-string key with the type identifier. I had to restructure the entire TypeScript schema generator to support that.
diff --git a/TypeSystem/Schema/c5t-current-schema-ts/test/test.ts b/TypeSystem/Schema/c5t-current-schema-ts/test/test.ts index ff41778a4..3b66d024f 100644 --- a/TypeSystem/Schema/c5t-current-schema-ts/test/test.ts +++ b/TypeSystem/Schema/c5t-current-schema-ts/test/test.ts @@ -11,14 +11,42 @@ import * as smoke_test_stru...
3
3
0
[{"id": "G0", "claim": "The tests passing is not enough to make a proper release of the next major version of the public npm package, so what is enough should be done.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The README example of the peer...
null
C5T__Current__805
C5T/Current
805
defect
d01534d7878a7fc90ec986f007a17e7f9c34f239
9536347db1b998fa7dce3415386527197ca601af
Several minor tweaks.
Hi @mzhurovich, @grixa, A couple minor tweaks on the way to: 1. Refactoring class `Response` to support JSON format selection (otherwise the user has to manually set the origin header for each `JSON<JSONFormat::Minimalistic>`, which sucks, and 2. The journaled file system and its applications. On the bright s...
diff --git a/blocks/http/chunked_demo.cc b/blocks/http/chunked_demo.cc index 7fdc9511a..c34b9bad9 100644 --- a/blocks/http/chunked_demo.cc +++ b/blocks/http/chunked_demo.cc @@ -157,7 +157,7 @@ int main() { LayoutItem row; layout.col.push_back(row); r(layout, - ...
3
2
0
[{"id": "G0", "claim": "The new header-removal method should be named `Remove` rather than `Clear`, since `Clear` usually means remove-all and takes no arguments.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The author should explain why the r...
null
C5T__Current__809
C5T/Current
809
defect
7700bb2ad654b97158e0fb3b6b002aee39c16fd7
497c1171afb567d57817959596aef7b2373ed21f
A yet another relatively useless C++ HTML-generating library.
Hi @mzhurovich, I had to do it again ... and decided to make the code generic, and have it belong here. CCs, and it's probably OK to only look at the test: * @grixa because metaprogramming. * @sompylasar because it's f*cking HTML, that, yes, no one generates manually these days. * @idej because you're the re...
diff --git a/3rdparty/gtest/gtest-main-with-dflags.h b/3rdparty/gtest/gtest-main-with-dflags.h index 11ff74f0b..3ad454e3f 100644 --- a/3rdparty/gtest/gtest-main-with-dflags.h +++ b/3rdparty/gtest/gtest-main-with-dflags.h @@ -35,6 +35,8 @@ SOFTWARE. #include "gtest.h" +#include "../../bricks/dflags/dflags.h" // Mu...
3
1
0
[{"id": "G0", "claim": "The comment on the scopes exception should read \"intersecting\" instead of \"interesting\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The library should be built around a Virtual DOM data structure (built with a simpl...
null
C5T__Current__811
C5T/Current
811
defect
7700bb2ad654b97158e0fb3b6b002aee39c16fd7
3b2b909a05fcbadb7f056c96013d607101b1a8ff
Making `std::tuple<>`-s [almost] first-class citizens of Current's type system.
CC @nyospe @grixa @sompylasar. I didn't bother with `TypeID`-s (yet), mostly worked on JSON support and a few helper methods Max asked for. Thanks, Dima
diff --git a/Current.vcxproj b/Current.vcxproj index 25999581b..a98518e13 100644 --- a/Current.vcxproj +++ b/Current.vcxproj @@ -283,7 +283,7 @@ <ClInclude Include="Bricks\template\combine.h" /> <ClInclude Include="Bricks\template\decay.h" /> <ClInclude Include="Bricks\template\enable_if.h" /> - <ClIn...
3
2
0
[{"id": "G0", "claim": "The `using namespace serialization_test;` added at the top of the CPPTypes test looks unnecessary and, if needed at all, should instead follow the explicit `serialization_test::`-qualified references used in the test below.", "category": "maintainability", "verdict": "uncertain", "priority": "P3...
null
C5T__Current__820
C5T/Current
820
defect
05cdd776d6d847d480c62fbc453e7569fd1ca5c6
659ea8962710225e7154f9ade3c46d6cf6c67efe
Minor tweaks to the string utility functions.
Hi @mzhurovich, Minor tweaks to our `strings` library (and an even minor extension to the `chrono` one). Thanks, Dima
diff --git a/bricks/strings/chunk.h b/bricks/strings/chunk.h index 83df958b8..1d3e035f3 100644 --- a/bricks/strings/chunk.h +++ b/bricks/strings/chunk.h @@ -63,8 +63,8 @@ SOFTWARE. #include <algorithm> #include <cmath> #include <cstring> -#include <unordered_map> #include <string> +#include <unordered_map> names...
1
1
0
[{"id": "G0", "claim": "Fix the missing space in `end -begin` in the new Chunk(begin, end) constructor initializer.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
C5T__Current__821
C5T/Current
821
defect
d38e4af8c876d92be948a89c22310231981f14db
9eda374bd179279f71268c6b48beae8ef4bd5e4d
Wrappers over cals to `::popen`, `::system`, and `::dl{open,sym,close}`.
The `dlopen`-related are essential, but I've wrapped them all just in case. Thanks, Dima
diff --git a/bricks/dot/graphviz.h b/bricks/dot/graphviz.h index fb1bc88f0..6fbc1aba5 100644 --- a/bricks/dot/graphviz.h +++ b/bricks/dot/graphviz.h @@ -36,6 +36,7 @@ SOFTWARE. #include "../util/singleton.h" #include "../file/file.h" #include "../strings/printf.h" +#include "../system/syscalls.h" #include "../../...
3
2
0
[{"id": "G0", "claim": "The default 1 MiB buffer/`max_line_length` used by the popen read pipe is too large; typical buffer sizes for file/network operations are 1-16K, so the default should be smaller.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
C5T__Current__846
C5T/Current
846
defect
1139ebcb4b4186013d0473f4e28c6d314d6aab31
2be60c2ebf450675c5ad5b6798a40c830584e18e
CURRENT_USE_BASE_CONSTRUCTORS
Hi @dkorolev, CC @mzhurovich I added new macro `CURRENT_USE_BASE_CONSTRUCTORS` to fix that `using SUPER::SUPER` problem we had discussed before. It works on both Windows and Linux, although I have several concerns: * Naming, as usual. `CURRENT_EXPOSE_BASE_CONSTRUCTORS` or `CURRENT_FORWARD_BASE_CONSTRUCTORS` might ...
diff --git a/typesystem/serialization/test.cc b/typesystem/serialization/test.cc index bdff52edf..86b605bdd 100644 --- a/typesystem/serialization/test.cc +++ b/typesystem/serialization/test.cc @@ -1562,10 +1562,16 @@ CURRENT_STRUCT_T(TemplatedBase) { }; CURRENT_STRUCT(EmptyDerivedFromNonTemplatedBase, NonTemplatedB...
2
2
0
[{"id": "G0", "claim": "A comment explaining why the simple `using SUPER::SUPER` solution doesn't work on other platforms should be added to the new CURRENT_USE_BASE_CONSTRUCTORS implementations.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A on...
null
C5T__Current__861
C5T/Current
861
defect
170196f842724962a7b5a86998ab383812c8d3ec
30567701ec3fa234487513ac7774e0e46e664b76
Streamed sockets
Hi Max, Shaped the streamed sockets benchmarking code. Here's the teaser: ![image](https://user-images.githubusercontent.com/2159447/64912965-0ec61800-d6ec-11e9-834b-de10d4f19738.png) --- I have also used it to confirm the per-instance EC2 AWS network capacity numbers are as advertised by Amazon. They match...
diff --git a/examples/streamed_sockets/speedtest/Makefile b/examples/streamed_sockets/speedtest/Makefile new file mode 120000 index 000000000..082e345c4 --- /dev/null +++ b/examples/streamed_sockets/speedtest/Makefile @@ -0,0 +1 @@ +../../../scripts/Makefile \ No newline at end of file diff --git a/examples/streamed_so...
1
1
0
[{"id": "G0", "claim": "The PR should keep `const` on the left-hand side of declarations, as previously agreed (e.g. `const std::chrono::microseconds` instead of `std::chrono::microseconds const`).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
C5T__Current__883
C5T/Current
883
defect
a73ef9088a4b13ede737bcb70534a9466b8a209e
7df9f8285d735115dac124cbfcff9c7a6572476b
`ChunkedPOST` in addition to `ChunkedGET`.
Hi @mzhurovich -- this is missing tests, but may well be good to go "as is", as I've confirmed it does the job (with `HTTP` examples from the [Docker API](https://docs.docker.com/engine/api/sdk/examples/)).
diff --git a/blocks/http/test.cc b/blocks/http/test.cc index 07e363764..93a334b00 100644 --- a/blocks/http/test.cc +++ b/blocks/http/test.cc @@ -91,6 +91,11 @@ CURRENT_STRUCT(HTTPAPITestObject) { CURRENT_DEFAULT_CONSTRUCTOR(HTTPAPITestObject) : number(42), text("text"), array({1, 2, 3}) {} }; +CURRENT_STRUCT(HTTP...
4
4
0
[{"id": "G0", "claim": "The `Feed` overload's parameter should be spelled `const char*` instead of `char const*`, for consistency.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `OnLine` line-callback API takes `const char*` while the other ...
null
C5T__Current__997
C5T/Current
997
defect
7f6ab3477db42b28525e6448f0ca24f156533285
d75864297970d3a28dd77b89d11cc7c68afa6dea
Simple async replication based on vector clock
[WIP] Notes: 1. Implemented minimalistic vector clock (sending and storing only 1 timestamp, not full vector) (is it correct?) 2. Binary serialization for replication delivery Do not forget: 1. Need to validate reuse port (it doesn't work with 3+ nodes) 4. After the review we can move the container class to blo...
diff --git a/examples/async_replication/Makefile b/examples/async_replication/Makefile new file mode 120000 index 00000000..fd8a38c9 --- /dev/null +++ b/examples/async_replication/Makefile @@ -0,0 +1 @@ +../../scripts/Makefile \ No newline at end of file diff --git a/examples/async_replication/README.md b/examples/asyn...
4
4
1
[{"id": "G0", "claim": "The reader thread blocks on a single accepted connection, so once one connection is established no further node can connect on the same port (the FIXME asks how to accept multiple connections with SO_REUSEADDR/REUSEPORT).", "category": "correctness", "verdict": "supported", "priority": "P1", "sc...
null
CESNET__libyang__1181
CESNET/libyang
1,181
defect
1deb5be9cc55020de2443456ed5c5df2f7c208e4
8dd5676474fc6a00a79df504b7cc2f0cb91ab22c
Unify return types
Some of the functions were mixing the return code of -1 for failure and positive values to return some information. Instead, make them return LY_ERR value and the information is returned via an optional output parameter.
diff --git a/src/context.c b/src/context.c index 27b98222f8..250c0e930b 100644 --- a/src/context.c +++ b/src/context.c @@ -97,7 +97,7 @@ ly_ctx_set_searchdir(struct ly_ctx *ctx, const char *search_dir) return LY_EEXIST; } } - if (ly_set_add(&ctx->search_paths, new_dir, LY_S...
2
2
1
[{"id": "G0", "claim": "In ly_set_new the memory-failure check should be `!(*set_p)` instead of `!set_p`, since set_p can never be NULL after the argument check.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Refactor ly_path_check_predicate's error...
null
CESNET__libyang__1241
CESNET/libyang
1,241
defect
8678fa4b692c25e107676ef4777821d5d976d384
981fa0b0a699c1f53a4340f4afd838c1f1a39514
schema CHANGE rename lys_atomize_xpath() and the connected options
Unify name of lys_atomize_xpath() with the connected lys_find_xpath(). The function is now named lys_find_xpath_atoms() and the options used in both functions are LYS_FIND_XP* (thei internally maps to a bigger group of options LYXP_*). Unifying all the names should make API usage more easier.
diff --git a/src/tree_schema.c b/src/tree_schema.c index f1a170f243..05d712cf04 100644 --- a/src/tree_schema.c +++ b/src/tree_schema.c @@ -228,7 +228,7 @@ lys_find_child(const struct lysc_node *parent, const struct lys_module *module, } API LY_ERR -lys_atomize_xpath(const struct lysc_node *ctx_node, const char *xpa...
2
2
0
[{"id": "G0", "claim": "The LYS_FIND_XP flag (formerly LYXP_SCNODE) does not need to be public; the internal LYXP_SCNODE value is enough and the public define can be removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Remove the documentation line ...
null
CESNET__libyang__1356
CESNET/libyang
1,356
defect
b657a057111600d2d740d7ae293ebe7a63929049
88c6314dc57e2bd8cc1d14013c97767499f0dccd
support plugin to skip parsing special extension instance.
Hi, This PR is for the issue #1345 , however, it is a little more complex than I expected. Please have a look and give some suggestions, thanks. @rkrejci I will still work on this to add some tests if there is no major problems in this code.
diff --git a/src/parser.c b/src/parser.c index fd346c9469..50230c21fb 100644 --- a/src/parser.c +++ b/src/parser.c @@ -3975,3 +3975,112 @@ lyp_get_yang_data_template(const struct lys_module *module, const char *yang_dat return ret; } + +int +lyp_get_ext_list(struct ly_ctx *ctx, void *elem, LYEXT_PAR elem_type, ...
10
9
2
[{"id": "G0", "claim": "The `finish:` label in resolve_extension is unnecessary since it is used only once, and besides formatting the whole `rt == 2` specific part can stay at the `goto finish` site.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ne...
null
CESNET__libyang__1501
CESNET/libyang
1,501
defect
619dc2388d3f76355842a21c1e56c2c098339ef2
88ae816e3a7eb69d625bc9bfda1a5571064102f3
remove private_destructor parameter from ly_ctx_destroy()
The mechanism was not reliable and not used often. libyang provides a function to traverse the schema and free the set data manually or the caller can maintain some information to free the set data directly. The difference of the API in contrast to 1.x (and so far to 2.0) shouldn't be a big issue since the parameter...
diff --git a/doc/transition.dox b/doc/transition.dox index 0dbc8fdc66..f72eca69d2 100644 --- a/doc/transition.dox +++ b/doc/transition.dox @@ -103,6 +103,11 @@ * introduce some kind of context lock to completely abandon any change of the YANG modules after starting work with the * instantiated data. * + * Another...
1
1
0
[{"id": "G0", "claim": "The transition-table row the PR adds for ly_ctx_destroy() ends its note with 'see .' — the link it refers to is missing.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
CESNET__libyang__1522
CESNET/libyang
1,522
defect
e0cd6d99877afab77e80a1feedb95298fb305fd4
70f9f1630d1c79d08df213540e08f2bdc8bce402
printer tree FEATURE added various features
Features: 1. printing subtree or node 2. printing submodule (yanglint also changed) 3. line length option added to yanglint 4. printing yang-data (extra changes in _context_, _schema_compile_, _tree_schema_tree_, _tree_schema_internal_)
diff --git a/src/printer_internal.h b/src/printer_internal.h index 65d2424205..43c9e1ca3b 100644 --- a/src/printer_internal.h +++ b/src/printer_internal.h @@ -129,6 +129,18 @@ LY_ERR yin_print_parsed_submodule(struct ly_out *out, const struct lysp_submodul LY_ERR tree_print_module(struct ly_out *out, const struct lys_...
3
3
0
[{"id": "G0", "claim": "The new helper counting how deep a node is in the tree should be named with `depth` instead of `immersion`, which took a few seconds to understand.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G9", "claim": "Keep the same format of do...
null
CESNET__libyang__1555
CESNET/libyang
1,555
defect
dcfac2c080eb1aeb02e362cd6267243163f327e6
c2f2794b700dc91c97eb0f19eceef8a03fc71419
libyang BUGFIX ly_getutf8 return code must be checked
For all uses of the ly_getutf8 function, the return code must be checked.
diff --git a/src/common.c b/src/common.c index a434235283..565c7dd59d 100644 --- a/src/common.c +++ b/src/common.c @@ -101,22 +101,22 @@ ly_strntou8(const char *nptr, size_t len, uint8_t *ret) return LY_SUCCESS; } -uint32_t -ly_value_prefix_next(const char *str_begin, const char *str_end, ly_bool *is_prefix, co...
1
1
0
[{"id": "G0", "claim": "The new @param name `bytes` is unclear on its own and should be renamed to `len`, which obviously means length.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
CESNET__libyang__1578
CESNET/libyang
1,578
defect
45c4b1a19f4ab9d97d2522648dbb48b583ca4c33
c6ee2780a3e79d3514b760f914a89d0b0cee2754
printer tree BUGFIX implicit case in compiled tree
Fix #1574
diff --git a/src/context.h b/src/context.h index f208c9536f..e9334c964e 100644 --- a/src/context.h +++ b/src/context.h @@ -184,6 +184,8 @@ struct ly_ctx; #define LY_CTX_PREFER_SEARCHDIRS 0x20 /**< When searching for schema, prefer searchdirs instead of user callback. */ #define LY_CTX_SET_PRIV_PARSED 0x40 /**< For al...
2
2
1
[{"id": "G0", "claim": "The implicit case node could just use the descendant's prefix/name instead of leaving ret.name.module_prefix unsupported with a TODO, which per RFC 8340 would print augmented nodes without their module prefix.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intro...
null
CESNET__libyang__1634
CESNET/libyang
1,634
defect
c5722f39afc494d5c465ecdbad216f0e329b37c3
f0de8cedb3eeffeaa4e354489c3e237569ede3da
parse BUGFIX releasing sets in ::lys_parser_ctx
Also added collision tests for grouping. This PR fixes issue 35192 from oss-fuzz.
diff --git a/src/parser_yang.c b/src/parser_yang.c index 80d0efe3e8..7ac6107ee0 100644 --- a/src/parser_yang.c +++ b/src/parser_yang.c @@ -4678,6 +4678,8 @@ yang_parse_module(struct lys_yang_parser_ctx **context, struct ly_in *in, struct LOG_LOCBACK(0, 0, 0, 1); if (ret) { lysp_module_free(mod_p); + ...
2
2
1
[{"id": "G0", "claim": "The two ly_set_erase calls for tpdfs_nodes and grps_nodes should be moved into the parser context free functions (so each free call frees the whole context of its kind), which would also make the now-redundant cleanup block in lys_parse_in removable.", "category": "maintainability", "verdict": "...
null
CESNET__libyang__1655
CESNET/libyang
1,655
defect
35a3b1d6dbd3c2e773ee96cf8f26d48e51b0ab28
fafbe3f06fab0b1f67871db855d83dd36445aa17
Testing multiple/chained error messages
Use the ability of libyang to provide a chain of error messages and check for all/more the messages in unit tests.
diff --git a/src/tree_schema.c b/src/tree_schema.c index 6ecdf6c153..b405ff72f6 100644 --- a/src/tree_schema.c +++ b/src/tree_schema.c @@ -1203,6 +1203,11 @@ lys_parse_submodule(struct ly_ctx *ctx, struct ly_in *in, LYS_INFORMAT format, s return LY_SUCCESS; error: + if (!submod || !submod->name) { + L...
2
1
1
[{"id": "G0", "claim": "The flag should be named something like `module_in_ctx` and set after the module is added to the context a few lines below, since \"module is created\" is unclear.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The formatti...
null
CESNET__libyang__1895
CESNET/libyang
1,895
defect
f873598b33f5d3b0ae48278d07a77184d94ab218
fb5156d294d72f12808badba9d9f75daab02f4b7
Printing features in a new format in yanglint
Added the ability to print all features in a format, which can later be used to specify, which features a model should use, for both interactive and non-interactive versions of yanglint. Interactive version also supports doing this for all implemented modules at once.
diff --git a/tools/lint/cmd_add.c b/tools/lint/cmd_add.c index ff025dbdf4..4003d3465b 100644 --- a/tools/lint/cmd_add.c +++ b/tools/lint/cmd_add.c @@ -39,6 +39,7 @@ cmd_add_help(void) " explicitly specified).\n" " -F FEATURES, --features=FEATURES\n" " ...
16
15
2
[{"id": "G0", "claim": "The description lines in the feature help text can be aligned in the same column (e.g. \"Print features ...\" with the \"Generate features ...\" line below it).", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A newline shoul...
null
CESNET__libyang__1928
CESNET/libyang
1,928
defect
fe1c13fe33a4e4ba85c8ac7c299332fe3e58556d
b29d50fed1ebba779ad82e3d4ed5616a13ccbe5f
Printer tree and mount-point
This pull request partly refactored PR #1901. Printer tree and mount-point tests have also been added. The biggest change concerns the printing of the shared-schema tree based on parent-references. Individual paths to parent-reference nodes are not printed, but instead are combined into a single tree if they have a c...
diff --git a/src/plugins_exts/schema_mount.c b/src/plugins_exts/schema_mount.c index 866189433c..26c2f2cfac 100644 --- a/src/plugins_exts/schema_mount.c +++ b/src/plugins_exts/schema_mount.c @@ -692,7 +692,7 @@ lyplg_ext_schema_mount_get_parent_ref(const struct lysc_ext_instance *ext, struc { LY_ERR res; str...
2
2
0
[{"id": "G0", "claim": "In lyplg_ext_schema_mount_get_parent_ref the error variable should follow the codebase convention and be named `rc` instead of adding another name `res`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The duplicated err...
null
CESNET__libyang__2030
CESNET/libyang
2,030
defect
9a4e5b2ce30b9696116d6e654ee55caab5aafed8
d2daf1d40456df158389d7c33bb5712a4b1682f9
Feature/xpath in leafref
This feature introduces allowing usage of XPath functions within leafref paths. It also fixes minor compilation errors
diff --git a/src/context.h b/src/context.h index 331a89f4b3..b695248ee8 100644 --- a/src/context.h +++ b/src/context.h @@ -196,6 +196,8 @@ struct ly_ctx; #define LY_CTX_ENABLE_IMP_FEATURES 0x0100 /**< By default, all features of newly implemented imported modules of a module th...
22
20
5
[{"id": "G0", "claim": "Supporting XPath functions such as deref() in leafref paths contradicts RFC 7950's path-arg definition, so the extension should not be added.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "If this non-standard extension lands, it sh...
null
CESNET__libyang__2054
CESNET/libyang
2,054
defect
54131450292f85cd4890d987a2c5300c4954753b
4f49f7e2731b263e41a6b11359842a3a3981ae0a
change of yanglint and yangre
yanglint - printing features simplified, small bugfixes, tests moved to the 'tests/yanglint' directory yangre - new tcl tests, refactoring, change return codes tcl tests - more modular
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 6f36f31d45..259ef34cd2 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -45,6 +45,8 @@ if(ENABLE_TESTS) add_subdirectory(style) add_subdirectory(fuzz) endif() + add_subdirectory(yanglint) + add_subdirectory(yangre...
1
1
0
[{"id": "G0", "claim": "The warning message in tests/yangre/CMakeLists.txt should say the yangre tests (not yangre itself) will not be available when tclsh is not found.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
CESNET__libyang__2093
CESNET/libyang
2,093
defect
b5992f57b48835308dac4523504ad23234f17f7e
a90d5757f733fda8f6cd01dea06ecd92fef05632
Windows: accept backslashes in file names
Without this patch, a warning gets printed for any .yang files that are read using native path names: ``` libyang[1]: File name "D:\a\oopt-gnpy-libyang\oopt-gnpy-libyang\tests\yang\ietf-network@2018-02-26.yang" does not match module name "ietf-network". ```
diff --git a/compat/compat.c b/compat/compat.c index 24f235c117..35facc9aa7 100644 --- a/compat/compat.c +++ b/compat/compat.c @@ -347,3 +347,23 @@ setenv(const char *name, const char *value, int overwrite) #error No setenv() implementation for this platform is available. #endif #endif + +/** + * @brief Equivalent o...
4
2
0
[{"id": "G0", "claim": "Prefer not to change `compat` and instead put a platform-dependent `FILENAME_SLASH` macro into `config.h.in`, then use it in a dedicated function for getting the file name from a path.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
CESNET__libyang__2122
CESNET/libyang
2,122
defect
7e5ea21030fe6632b6faad30c0de8d9669503773
52cb740e06aaf675b6207f8afaf524e73b9ceb0b
Fixing segfault due to usage of invalid node within deref function
This patch fixes segfault, which was caused by not validating all steps done within compiling of deref functions It also adds specific tests for those cases.
diff --git a/src/path.c b/src/path.c index 516fe57204..d6e0354f8c 100644 --- a/src/path.c +++ b/src/path.c @@ -1068,7 +1068,17 @@ ly_path_compile_deref(const struct ly_ctx *ctx, const struct lysc_node *ctx_node LY_CHECK_GOTO(ret = ly_path_compile_leafref(ctx, ctx_node, top_ext, &expr2, oper, target, format, prefix...
3
2
0
[{"id": "G0", "claim": "Reword the error message so it reads \"... is not a leafref.\" instead of \"is not having leafref type\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The removal of `ctx_node = (*path)[LY_ARRAY_COUNT(*path) - 1].node;` a...
null
CESNET__libyang__2213
CESNET/libyang
2,213
defect
8ef803cba7b5373cc9d9aea18a4395c257ccad4e
5369cd45d1fd2c2f747a40b51aad54bc324f55b5
Adding context based extensions plugins support
This patch adds ability to load plugins directly from memory without need to create shared library by using lyplg_add_plugin() API. It also allows to associate plugin directly with context, so given plugin will not affect all contexts, just given context
diff --git a/src/context.c b/src/context.c index e023f31d4e..307dde7627 100644 --- a/src/context.c +++ b/src/context.c @@ -1384,7 +1384,11 @@ ly_ctx_destroy(struct ly_ctx *ctx) /* LYB hash lock */ pthread_mutex_destroy(&ctx->lyb_hash_lock); - /* plugins - will be removed only if this is the last context ...
2
1
1
[{"id": "G0", "claim": "The in-memory plugin-loading API should be split into two functions, one per plugin type, so that `recs` can be a specific record type instead of `void *`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "With the typed-record appro...
null
CESNET__libyang__2344
CESNET/libyang
2,344
defect
03e294d83b610f89e8ba7b2156a80dc0ad534443
9ba71bf71bf77d4c660dabd1b05b5e5cda77cecf
data: option to allow json int/bool as strings
Prior to v1.0.212 the default behavior was to allow numbers and boolean values to be in quotes, which is technically a violation of the spec. This adds a new `LYD_PARSE_JSON_STRING_DATATYPES` parse option which will restore the prior behavior when enabled. SONiC is using v1.0.73 currently and has a large insta...
diff --git a/src/parser_data.h b/src/parser_data.h index d7fbe18150..c6371ea4a3 100644 --- a/src/parser_data.h +++ b/src/parser_data.h @@ -179,7 +179,10 @@ struct ly_in; #define LYD_PARSE_JSON_NULL 0x4000000 /**< Allow using JSON empty value 'null' within JSON input, such nodes are ...
7
6
1
[{"id": "G0", "claim": "The new option should be a JSON parsing flag instead of a context flag.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "A new valhint such as LYD_VALHINT_JSON_LOOSE_DATATYPES is unnecessary; LYD_PARSE_JSON_LOOSE_DATATYPES should suffi...
null
CESNET__libyang__2360
CESNET/libyang
2,360
defect
529a594aafd191bb879e13492014136d9be8ddca
7e3672c4b9863d2ea82546751c25d44a066a5ec1
validate: unions with leafrefs may return misleading error codes
When a leafref is not found in a union, it should not return an error indicating the value for the leafref wouldn't match the restrictions for a target but instead just say the leafref target wasn't found. The only data that should indicate the error message for data type restrictions is data associated with the tar...
diff --git a/src/plugins_types/union.c b/src/plugins_types/union.c index 61dde35d9d..e1bb1a26d4 100644 --- a/src/plugins_types/union.c +++ b/src/plugins_types/union.c @@ -150,6 +150,31 @@ lyb_parse_union(const void *lyb_data, size_t lyb_data_len, uint32_t *type_idx, c } } +static void +union_lref_error_rewrite(...
6
6
2
[{"id": "G0", "claim": "The added `if (type->basetype == LY_TYPE_LEAFREF)` guard at the second call site is redundant because the helper already performs that check internally.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The helper should bui...
null
CESNET__libyang__2368
CESNET/libyang
2,368
defect
64c0b0fbff6002a4e297abc5b5c7ffb06b325ea9
9ef7aa9f1021425b96228cb9fba34ccedd76535c
ly_path_parse OPTIMIZE fail faster on invalid path
`ly_path_parse()` is called from various functions like `lyplg_type_store_node_instanceid()` and `lyplg_type_lypath_new()` with the `LY_PATH_BEGIN_ABSOLUTE` flag set. This means that the path is expected to start with a '/' character. If it doesn't, this could mean that the value is not a valid path. This can hap...
diff --git a/src/path.c b/src/path.c index 548b149941..5efde79ecb 100644 --- a/src/path.c +++ b/src/path.c @@ -339,6 +339,16 @@ ly_path_parse(const struct ly_ctx *ctx, const struct lysc_node *ctx_node, const LOG_LOCSET(ctx_node, NULL); } + /* check if path begins with '/' if expected to and fail earl...
5
3
3
[{"id": "G0", "claim": "It is unclear why this new early absolute-path check is needed, and if the situation is really possible an error message should always be reported rather than only when path_len is set.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c...
null
CESNET__libyang__2424
CESNET/libyang
2,424
defect
965c93ca6550f8833320361dab69cfe1a798675e
03ebf07b98fec448165d0f67ddc75a8ba85883c4
Fixed missing leafref linking
This patch fixes the problem of missing leafref linking in case of using leafref within union types
diff --git a/src/tree_data.c b/src/tree_data.c index f98150a85a..02b0bfe8cc 100644 --- a/src/tree_data.c +++ b/src/tree_data.c @@ -3825,17 +3825,67 @@ lyd_link_leafref_node(const struct lyd_node_term *node, const struct lyd_node_te return LY_SUCCESS; } +/** + * @brief Traverse through data tree node suitable ty...
2
2
0
[{"id": "G0", "claim": "The union_node variable duplicates leafref_node and is redundant.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The leading underscore should be dropped from the function name _lyd_leafref_link_node_tree_type.", "categor...
null
CESNET__libyang__2429
CESNET/libyang
2,429
defect
deae604e36953bc9ca9b57f8c614438ccabc55f7
179f3d598ac8de530d17ad58529d16179018e971
plugin types BUGFIX correct handling of union type
This bugfix corrects the behavior or union type plugin when used with LYPLG_TYPE_STORE_ONLY flag
diff --git a/src/plugins_types/union.c b/src/plugins_types/union.c index 2e5c693fa9..33abe3b54d 100644 --- a/src/plugins_types/union.c +++ b/src/plugins_types/union.c @@ -486,9 +486,6 @@ lyplg_type_store_union(const struct ly_ctx *ctx, const struct lysc_type *type, c ret = lyb_fill_subvalue(ctx, type_u, value,...
1
1
1
[{"id": "G0", "claim": "The reviewer's patch was not applied properly in lyplg_type_store_union — the author should apply it as given so that the tests pass.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
CESNET__libyang__2431
CESNET/libyang
2,431
defect
cdffc2a99b1b418ec87e0c42d2d85bf3cfaa3326
578357b9846d7b049002233e1d10b3946b7b7540
xpath UPDATE to support usage of union types as deref targets
This patch introduces ability to use union types, which internally uses leafrefs to be used as deref target nodes. This fullfils the last statement of RFC 7950 section 10.3.1. This behavior is also allowed within leafref paths which uses deref function in it. This patch also fixes segfault in case of using cyclic de...
diff --git a/src/path.c b/src/path.c index 74d4fe1f9f..18433f9b84 100644 --- a/src/path.c +++ b/src/path.c @@ -1020,6 +1020,95 @@ ly_path_append(const struct ly_ctx *ctx, const struct ly_path *src, struct ly_pa return ret; } +/** + * @brief Compile deref XPath function into ly_path structure. + * + * @param[in]...
2
2
0
[{"id": "G0", "claim": "The `path2 = NULL;` line the PR adds after `ly_path_free(path2);` in the cleanup block of ly_path_compile_deref() in src/path.c seems redundant.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `top_type` parameter of x...
null
CESNET__libyang__2432
CESNET/libyang
2,432
defect
cdffc2a99b1b418ec87e0c42d2d85bf3cfaa3326
4c9e18f8a7fcad52124bd184f2c00af2db52236f
parsing BUGFIX invalid backward parent pointer
This patch fixes the issue if extensions are used within subsequent refine or typedef statements
diff --git a/src/parser_yang.c b/src/parser_yang.c index 928533022e..cd56093e97 100644 --- a/src/parser_yang.c +++ b/src/parser_yang.c @@ -2722,9 +2722,17 @@ parse_refine(struct lysp_yang_ctx *ctx, struct lysp_refine **refines) size_t word_len; enum ly_stmt kw; struct lysp_refine *rf; + LY_ARRAY_COUNT...
2
1
0
[{"id": "G0", "claim": "The fix is a workaround and instead the parent should be corrected right when it becomes invalid, when grouping content is copied into the uses, going through all direct substatements of the grouping and correcting parents in all extensions, also handling an extension directly under the grouping...
null
CESNET__libyang__2458
CESNET/libyang
2,458
defect
8ad04584376981fad3b2de0a7264a508703ceb22
15f0c3cd13a37deba56c9d2d96675f74ed2c5f03
Add LYD_PARSE_ANYDATA_STRICT option
Add an option to enable strict parsing for anydata subtrees in json and xml parsers. The option is exposed in yanglint command line as -A, --anydata-strict.
diff --git a/src/parser_data.h b/src/parser_data.h index 2d0c1aa369..a54c87c82a 100644 --- a/src/parser_data.h +++ b/src/parser_data.h @@ -197,6 +197,11 @@ struct ly_in; number type values enclosed in quotes. */ #define LYD_PARSE_OPTS_MASK 0xFFFF0000 /**< Ma...
4
4
1
[{"id": "G0", "claim": "The LYD_PARSE_ANYDATA_STRICT macro definition should be moved before LYD_PARSE_OPTS_MASK in src/parser_data.h.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Tests for the new LYD_PARSE_ANYDATA_STRICT flag should be added...
null
CESNET__libyang__2508
CESNET/libyang
2,508
defect
f302d86cd6083c2bfe16fc2122bc6d4be69ce7a2
94b7201e3e0511b27de399126994cc2598e4cbd6
Unicode block bug
libyang supports patterns that further restrict a string leaf's set of values. The YANG RFC [1] allows the use of Unicode blocks [2] in patterns (e.g. Basic Latin, Cyrillic). libyang, due to a coding error, interprets every Unicode block pattern as Latin-1 Supplement, if multiple Unicode blocks are present in the same ...
diff --git a/src/ly_common.c b/src/ly_common.c index b24dd1f387..a9bfbccc90 100644 --- a/src/ly_common.c +++ b/src/ly_common.c @@ -813,7 +813,7 @@ ly_pat_compile_xmlschema_chblocks_xmlschema2perl(const char *pattern, char **reg {NULL, NULL} }; - size_t idx, idx2, start, end; + size_t idx, idx2, st...
2
1
0
[{"id": "G0", "claim": "The idx variable used in the if (idx) bracket check in src/ly_common.c should also be renamed to ublock, for naming consistency with the newly added variable.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The continuatio...
null
CESNET__libyang__378
CESNET/libyang
378
defect
023086238351a7eff09fc0bd697fefb404829b96
c0596c1290ac1d50d1f421c494a21ea43b8dbcf6
testcase and solution for an augment resolution issue
Hi, the pull request contains a test case which triggers an issue in augment resolution and provides a possible solution for it. Description: --------------- A grouping has been defined in a module's sub-module. It uses a further grouping from an imported module and augments it by a relative path. This fails, b...
diff --git a/src/resolve.c b/src/resolve.c index 62f25085d8..f366883bdb 100644 --- a/src/resolve.c +++ b/src/resolve.c @@ -1764,7 +1764,8 @@ resolve_schema_nodeid(const char *nodeid, const struct lys_node *start, const st /* descendant-schema-nodeid */ if (is_relative) { - cur_module = start_mod = st...
1
1
1
[{"id": "G0", "claim": "In resolve_schema_nodeid() the descendant-schema-nodeid branch should obtain the module with lys_node_module(start) rather than lys_main_module(start->module), because wherever a module is needed the functions returning the main module should not be used here.", "category": "correctness", "verdi...
null
CESNET__libyang__875
CESNET/libyang
875
defect
73fc574c476022d602fa01a44eda792b74be04cc
3700cb8c58981198bd877b48ed89ddc231c25e56
libyang2: yin parser FIXES of extension parsing
* Map prefixes of extension elements to URI in element names. * Parse arguments of known extension instance subelemnts without adding unnecessary information. * Add missing checks at the end of module and submodule parsing.
diff --git a/src/common.h b/src/common.h index 9a41a5d32a..fbe77d06f6 100644 --- a/src/common.h +++ b/src/common.h @@ -567,7 +567,7 @@ LY_ERR ly_strcat(char **dest, const char *format, ...); if (ARRAY){free((uint32_t*)(ARRAY) - 1);} /** - * @brief insert item into linked list. + * @brief Insert item into li...
2
2
0
[{"id": "G0", "claim": "LY_LIST_NEW_RET should take a RETVAL parameter so the macro's error return code can be set by callers, as LY_ARRAY_NEW_RET does, instead of hard-coding LY_EMEM.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The name yin_parse_a...
null
CESNET__libyang__954
CESNET/libyang
954
defect
54cd043f036e151ce8599d9141210746b504d846
a8a682b7de4ca30d396eea7f4f40bc3eae3d4407
fixed issue printing xml where namespace was printed multiple times on anydata
when output xml and the data structure is anydata, with multiple namespaces, in addition to using a single namespace, the printer would output the same xmlns multiple times. -- created test to verify fix -- valgrind passes all tests
diff --git a/src/printer_xml.c b/src/printer_xml.c index f4b0c436a2..45c013e1fa 100644 --- a/src/printer_xml.c +++ b/src/printer_xml.c @@ -36,6 +36,7 @@ struct mlist { struct mlist *next; struct lys_module *module; + uint8_t printed; }; static int @@ -54,19 +55,30 @@ modlist_add(struct mlist **mlist, ...
1
1
0
[{"id": "G0", "claim": "Lines in src/printer_xml.c are indented with a TAB instead of spaces, and other lines have the same tab-indentation issue.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
CGAL__cgal__2576
CGAL/cgal
2,576
defect
21bd9e40d4d2719944465b323a96cbf439f58ed8
3bf34e96c01c1ebeffcf58b67efadfc7b3988f01
Aos_2: data traits construct opposite
This cleans the code of the `Arr_curve_data_traits_2<Tr, ...>` class template and fixes a bug in the code. Any instance of this template is a model of the `ArrangementTraits_2` concept and serves as a decorator class that allows the extension of curves defined by the base traits-class (the `Tr` parameter). The fix adds...
diff --git a/Arrangement_on_surface_2/include/CGAL/Arr_curve_data_traits_2.h b/Arrangement_on_surface_2/include/CGAL/Arr_curve_data_traits_2.h index 58c0f2d57d2e..91a823fec193 100644 --- a/Arrangement_on_surface_2/include/CGAL/Arr_curve_data_traits_2.h +++ b/Arrangement_on_surface_2/include/CGAL/Arr_curve_data_traits_2...
2
1
0
[{"id": "G0", "claim": "The Aos_2 testsuite results were bad and it could be because of this PR: the PR's own new test_data_traits fails with \"Construct opposite failed: 1234 != 32577\" (construct_opposite apparently not preserving the curve data).", "category": "correctness", "verdict": "uncertain", "priority": "P0",...
null
CGAL__cgal__5895
CGAL/cgal
5,895
defect
95a3b100f8ea2f29c339cede2ea6d1af4f08687e
0cb88ed07d846075034cbf0cb9cb0f3189083398
add function to refine a mesh along an isocurve
Add a function in PMP to refine a mesh along an isolevel curve. ## Release Management * Affected package(s): PMP * Issue(s) solved (if any): fix #5885 * Feature/Small Feature (if any): [here](https://cgal.geometryfactory.com/CGAL/Members/wiki/Features/Small_Features/Refine_mesh_at_function_isolevel) * Link to ...
diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/refine_mesh_at_isolevel.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/refine_mesh_at_isolevel.h new file mode 100644 index 000000000000..f4b0f7cc6497 --- /dev/null +++ b/Polygon_mesh_processing/include/CGAL/Po...
22
13
4
[{"id": "G0", "claim": "The reviewer asks where Eigen is actually needed, questioning the newly added Eigen3 link of the test in CMakeLists.txt.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The edge_is_constrained_map parameter description missp...
null
CGAL__cgal__6088
CGAL/cgal
6,088
defect
47132b441b41280a8c29af74c962cbec21f45f1a
80ff6bfb67bf73fe3f85f6291a2099826f47613c
Add functions to compute discrete curvatures
## Summary of Changes Add functions to compute discrete curvatures. Tentative TODO: - [ ] discrete curvature for boundary vertices - [ ] not naive way of computing curvatures when computed at all the vertices of a mesh ## Release Management * Affected package(s): `Polygon_mesh_processing` * Issue(s) solv...
diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/curvature.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/curvature.h new file mode 100644 index 000000000000..7b976fee3a60 --- /dev/null +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/intern...
5
4
2
[{"id": "G0", "claim": "Plug the new discrete curvature functions into the demo's display plugin so the curvatures can be visualized.", "category": "feature", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `experimental` namespace is missing: the header opens only `CGAL` an...
null
CGAL__cgal__6450
CGAL/cgal
6,450
defect
98408f4115a25fac6e4c8109f64eb1708cec8a06
d1ba40e21c1dd0bbe1a37f1e8e8d8c8e061a5fca
PMP::triangulate_hole(): Add Visitor
## Summary of Changes As hole filling can take up to `O(n^3)` time for a hole with `n` vertices it is useful to track progress and cancel. ## Release Management * Affected package(s): PMP * Feature/Small Feature (if any): [link](https://cgal.geometryfactory.com/CGAL/Members/wiki/Features/Small_Features/Hole...
diff --git a/Polygon_mesh_processing/examples/Polygon_mesh_processing/hole_filling_example_SM.cpp b/Polygon_mesh_processing/examples/Polygon_mesh_processing/hole_filling_example_SM.cpp index 699a7e9118a7..e1e325b8dcd2 100644 --- a/Polygon_mesh_processing/examples/Polygon_mesh_processing/hole_filling_example_SM.cpp +++ ...
2
2
1
[{"id": "G0", "claim": "The visitor parameters should be passed by reference instead of by value.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G3", "claim": "The documentation has not been updated for the new visitor feature.", "category": "documentation", "verdict":...
null
CGAL__cgal__6739
CGAL/cgal
6,739
defect
696ec4f21aa7d5c88a84b456dc992264216c7a52
24267f881e99204f16f9598c324f941e668ce3aa
SMSP: Fix cone initialization of edge sources
## Summary of Changes For sources located on edges, a cone was created targeting the opposite vertex (on either side if non-border), but nothing targeted the vertices at the extremities of the edge. This PR fixes that by reworking cone creations for edge sources, closer to what is done for face sources. Tests ...
diff --git a/Surface_mesh_shortest_path/examples/Surface_mesh_shortest_path/shortest_path_sequence.cpp b/Surface_mesh_shortest_path/examples/Surface_mesh_shortest_path/shortest_path_sequence.cpp index adb49aa71304..98340eb00006 100644 --- a/Surface_mesh_shortest_path/examples/Surface_mesh_shortest_path/shortest_path_se...
1
1
1
[{"id": "G0", "claim": "When renaming the argument of point() from 'vertex' to 'v', the documentation was not updated: the doc comment still says '\\param vertex', which makes the doc build warn and leaves the new parameter undocumented, so the documentation should be updated too.", "category": "documentation", "verdic...
null
CGAL__cgal__7095
CGAL/cgal
7,095
defect
02306fdc4c4d01fe8a3c6fc30b2ad9406b64c6bb
699454ae84d76afd4f0198fffe65d2392ef98fa1
STL Extensions: Correct spelling
## Summary of Changes dereferencable -> dereferenceable I deprecated the function but kept it. I do not test the deprecated version, and I do not put it into the changelog. ## Release Management * Affected package(s): STL_extension * Issue(s) solved (if any): fix #6834
diff --git a/Combinatorial_map/include/CGAL/Compact_container_with_index.h b/Combinatorial_map/include/CGAL/Compact_container_with_index.h index 37d555793b6b..7cbd54e5c946 100644 --- a/Combinatorial_map/include/CGAL/Compact_container_with_index.h +++ b/Combinatorial_map/include/CGAL/Compact_container_with_index.h @@ -7...
1
1
0
[{"id": "G0", "claim": "Have the old deprecated owns_dereferencable call the new owns_dereferenceable instead of duplicating its code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null