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
vbpf__prevail__758
vbpf/prevail
758
defect
8be58285624cf9ed191174494431518049ad9af1
e7c50136cb2698b4f6980c9e78ec73c46d625954
Restrict comparisons with pointers to legal operations
This pull request includes several key changes to the `src/assertions.cpp` and `src/test/ebpf_yaml.cpp` files, focusing on enhancing the handling of condition checks and adding new options for assertions. The most important changes are summarized below: ### Enhancements to Condition Handling: * [`src/assertions.c...
diff --git a/src/assertions.cpp b/src/assertions.cpp index 6904c2a0f..933117801 100644 --- a/src/assertions.cpp +++ b/src/assertions.cpp @@ -137,6 +137,31 @@ class AssertExtractor { // no need to check for valid access, it must be a number res.emplace_back(TypeConstraint{cond.left, Typ...
7
3
0
[{"id": "G0", "claim": "Consider using a lookup table to simplify the switch statement that maps each condition operation to whether pointer comparisons are allowed in src/assertions.cpp.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Consider a...
null
vbpf__prevail__775
vbpf/prevail
775
defect
7616c29300acaa5ccfea4d0f8c83c25170f1304a
9958fe6687c878ea8be21c86c39ef6ab966913d4
Simplify configuration options
Resolves: #774 This pull request includes several changes aimed at improving the configuration and usage of options in the eBPF verifier code. The most important changes involve refactoring the way options are passed and used throughout the codebase, as well as simplifying the configuration structure. ### Refacto...
diff --git a/src/asm_cfg.cpp b/src/asm_cfg.cpp index 46b3bef40..550af9d22 100644 --- a/src/asm_cfg.cpp +++ b/src/asm_cfg.cpp @@ -360,15 +360,14 @@ std::map<std::string, int> collect_stats(const cfg_t& cfg) { } // ISSUE: 774 - Rationalize the list of bools being passed to prepare_cfg. -cfg_t prepare_cfg(const Instru...
17
4
1
[{"id": "G0", "claim": "Give the new options parameter a default (options = prepare_cfg_options{}) so prepare_cfg can be called without passing options explicitly.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add documentation to the prepare_cfg_option...
null
vbpf__prevail__776
vbpf/prevail
776
defect
7616c29300acaa5ccfea4d0f8c83c25170f1304a
83dfee59cd07dc8745e4f9e16ae96527683482ef
Simplify/remove templates
* Use linear_expression_t where both numbers and variables are needed. * remove unused functions. * Move CLI11.hpp to a subfolder - It helps with the "Mark directory as excluded" in CLion. * Use struct for EquivalenceKey, instead of tuple. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> #...
diff --git a/external/CLI11.hpp b/external/CLI11/CLI11.hpp similarity index 100% rename from external/CLI11.hpp rename to external/CLI11/CLI11.hpp diff --git a/scripts/.check-license.ignore b/scripts/.check-license.ignore index 90c3875be..70b7f31d7 100644 --- a/scripts/.check-license.ignore +++ b/scripts/.check-license...
13
2
1
[{"id": "G0", "claim": "timed_execution would be more precise and clearer if it used std::chrono::high_resolution_clock instead of clock() and declared an explicit return type.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The old external/CLI1...
null
vbpf__prevail__778
vbpf/prevail
778
defect
0669c85a0fa0873b2273e67cfe1df013898bd885
9d029038d15963dd67befe6f7e221e6c3eb086d1
Const all the things
Also some modernization. Essentially, variable, parameters and methods should be const by default. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Enhanced const-correctness in various functions and loops, preventing unintended modifications to va...
diff --git a/src/asm_cfg.cpp b/src/asm_cfg.cpp index f53268874..501c97692 100644 --- a/src/asm_cfg.cpp +++ b/src/asm_cfg.cpp @@ -50,7 +50,7 @@ static void add_cfg_nodes(cfg_t& cfg, const label_t& caller_label, const label_t // and store a copy in the CallLocal instruction since the instruction-specific // lab...
26
7
0
[{"id": "G0", "claim": "main() should not take `const int argc`; the standard main signature `int main(int argc, char** argv)` should be kept instead.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add [[nodiscard]] to the thresholds_t constructor to pre...
null
vbpf__prevail__779
vbpf/prevail
779
defect
bd55b339aafd16723624f9773a8d21e992d2cc94
21add5e84051b70fd35e7a604f76f5e3faa87e68
Make the assertions part of a generalized instruction
Each GuardedInstruction is a pair (`Instruction`, `vector<Assertion>`). Jump instructions are retained in the nondeterministic graph, since they store the preconditions of the jump <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Featur...
diff --git a/scripts/format-code b/scripts/format-code index 476406f2a..d1e443344 100644 --- a/scripts/format-code +++ b/scripts/format-code @@ -169,15 +169,15 @@ check_clang-format() cf=$(command -v clang-format 2> /dev/null) if [[ ! -x ${cf} ]]; then echo "clang-format is not installed"...
33
3
0
[{"id": "G0", "claim": "Rename the marshal function's parameter from ins to cmd now that it takes a Command.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add documentation in spec_type_descriptors.hpp explaining the new Command-plus-Assertion ...
null
vbpf__prevail__801
vbpf/prevail
801
defect
e4750ee30efe6b3634621735f63038d7d8d3ae05
4ddc74a28d9e9c1c172daeff710d0f5422d90351
Fixes for multiple bpf2bpf stack levels
* Make read_elf() with a desired_section work correctly, including updating the BTF line_info * Update test Fixes #792 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced handling of subprograms and ELF file parsing for improved effi...
diff --git a/ebpf-samples b/ebpf-samples index 33f01fafa..d8ae59857 160000 --- a/ebpf-samples +++ b/ebpf-samples @@ -1 +1 @@ -Subproject commit 33f01fafa414520ad56ab219db343422bb655b32 +Subproject commit d8ae598573421b336260502459b6e9e164e75eb3 diff --git a/src/asm_files.cpp b/src/asm_files.cpp index 27e987e7f..7ed35a0...
8
3
0
[{"id": "G0", "claim": "Add a comment documenting the purpose of the resolved_subprograms flag and its relationship to subprogram resolution.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Replace the linear search in find_subprogram with a map in...
null
vbpf__prevail__815
vbpf/prevail
815
defect
3f788080b5ef461b129ef13513b962b32007de1a
72a1c2872352fb72083b32448b15922eb3d1dea1
Add Program class, containing a cfg_t class
Extract code from cfg_t class so it only deals with control flow structure. The new class Program holds cfg_t and mapping labels to instructions and from labels to assertions (a cache, essentially). The class GuardedInstruction is removed, as it only clutters the code. <!-- This is an auto-generated comment: relea...
diff --git a/src/asm_cfg.cpp b/src/asm_cfg.cpp index d2cdd9129..acaf689f9 100644 --- a/src/asm_cfg.cpp +++ b/src/asm_cfg.cpp @@ -7,31 +7,32 @@ #include <string> #include <vector> -#include "asm_syntax.hpp" #include "config.hpp" #include "crab/cfg.hpp" #include "crab/wto.hpp" +#include "asm_syntax.hpp" +#includ...
12
2
1
[{"id": "G0", "claim": "Implement the TODO by adding a program_info field to the Program class to complete the class definition.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Extract the identical label-existence check and error handling shared by the c...
null
vbpf__prevail__820
vbpf/prevail
820
defect
46344ae4bdc179ebec19edea3ce51d02e8c6d581
a864629318c566fb292fc15e238ee0fea1f934fe
Add support for 64bit immediate with type 2
``` From the ISA RFC: 5.4. 64-bit immediate instructions Instructions with the IMM 'mode' modifier use the wide instruction encoding defined in Instruction encoding (Section 3), and use the 'src_reg' field of the basic instruction to hold an opcode subtype. The following table defines a set of {I...
diff --git a/external/libbtf b/external/libbtf index 3c0cbd6ca..6aba1609c 160000 --- a/external/libbtf +++ b/external/libbtf @@ -1 +1 @@ -Subproject commit 3c0cbd6ca0920e4d5df6fb88a892f0b5ac5425d7 +Subproject commit 6aba1609ce53e11639cecb4fa8750dd01d5ce209 diff --git a/src/asm_cfg.cpp b/src/asm_cfg.cpp index acaf689f9....
27
16
2
[{"id": "G0", "claim": "Remove the redundant forward declaration of is_map_section that the pull request adds above read_elf.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Validate the map file descriptor and offset before constructing the Load...
null
vbpf__prevail__925
vbpf/prevail
925
defect
6c09c3693662345ae49ecc3177eeb51fa5642d9a
282875a6ee88038741da4673fc3be0219464a655
Test that conformance tests are tested
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Expanded the conformance suite with additional cases to improve coverage across endianness and move operations. * Minor test organization and readability improvements. * **Chores** * Added a CI ve...
diff --git a/src/test/test_conformance.cpp b/src/test/test_conformance.cpp index a40b12de9..bc816ef4e 100644 --- a/src/test/test_conformance.cpp +++ b/src/test/test_conformance.cpp @@ -12,9 +12,12 @@ #endif #endif +static void collect_test(std::string name); + static void test_conformance(const std::string& filena...
4
4
2
[{"id": "G0", "claim": "The forward declaration of collect_test should take the string parameter by const reference instead of by value.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The definition of collect_test should take the string parameter b...
null
vbpf__prevail__932
vbpf/prevail
932
defect
e0b7058a82ecc6849ebfae260da2de81cd8211d3
be41d635fbf5980ac8fbaabfd893ac5db6aee652
Consolidate verification logic, fail-fast printing
This PR refactors the verification architecture to create a cleaner separation between analysis execution and result representation. The analyzer now builds up an `AnalysisResult` directly, and complex verification logic has been moved out of the result object into the analyzer where it belongs. * `-i` flag removed ...
diff --git a/README.md b/README.md index 38e01647b..4671969cf 100644 --- a/README.md +++ b/README.md @@ -143,13 +143,12 @@ Features: Verbosity: --simplify, --no-simplify{false} - Simplify the CFG before analysis by merging chains of - instructions ...
18
14
1
[{"id": "G0", "claim": "Remove the unused <functional> include from src/crab_utils/lazy_allocator.hpp, since the file's factory pattern uses raw function pointers and nothing there uses std::function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
vbpf__prevail__942
vbpf/prevail
942
defect
ef861aa93dcc92d35cfc7f732d606e92faeac27b
3a2ce815f9df890770264a000e704deac84d5ea9
Updating StringInvariant to use moves vs copies - and updating callsites
My toolset was crashing so I wasn't able to build & verify locally. Will check the CI pipeline. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Added and enabled move semantics in string/constraint types and their usage to reduce copies and alloc...
diff --git a/src/crab/bitset_domain.cpp b/src/crab/bitset_domain.cpp index 79b874300..80291122a 100644 --- a/src/crab/bitset_domain.cpp +++ b/src/crab/bitset_domain.cpp @@ -1,6 +1,7 @@ // Copyright (c) Prevail Verifier contributors. // SPDX-License-Identifier: MIT #include <ostream> +#include <string> #include "c...
4
3
2
[{"id": "G0", "claim": "Changing top() to return StringInvariant{} makes it set maybe_inv to nullopt, so top() is indistinguishable from bottom() and should return StringInvariant{std::set<std::string>()} instead.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1"...
null
vbpf__prevail__946
vbpf/prevail
946
defect
5085fb926b0929fb63ba74476fc2005c48502308
b1b29f938742b2b9a31fa1d0e38e75cd83792fb1
Implement checks for the --line-info flag and move program selection into read_elf
This PR aims to improve the execution time and memory usage of PREVAIL by modifying read_elf. 1) The user can specify --line-info to print debugging information. These structures were always computed in read_elf without checking if they were needed. As a result, PREVAIL spent extra time and memory copying btf_line_i...
diff --git a/src/elf_loader.cpp b/src/elf_loader.cpp index 2627f6925..23b5f14ca 100644 --- a/src/elf_loader.cpp +++ b/src/elf_loader.cpp @@ -862,9 +862,13 @@ std::string ProgramReader::append_subprograms(RawProgram& prog) { return err; } const size_t base = subprog...
4
3
1
[{"id": "G0", "claim": "std::vector<RawProgram>{std::move(cur)} dispatches the initializer_list constructor, so the RawProgram is copied rather than moved when narrowing to a single result; use a move-only path (emplace_back with std::move) instead.", "category": "performance", "verdict": "supported", "priority": "P2",...
null
vbpf__prevail__965
vbpf/prevail
965
defect
7deba02a7e47a73236a10abca320dec0ac954162
45b31ee408c0d6c365a22a23e6e31e8f82a70969
Enable prevail installation as an external library
Enable Prevail to be used as an external library by adding CMake install logic and generating package configuration files. This allows external projects to integrate Prevail via `find_package(prevail)`. * Set project version to 0.1.0. * Install public headers, including necessary dependencies like `libbtf` and `elf...
diff --git a/.github/workflows/test-installation.yml.example b/.github/workflows/test-installation.yml.example new file mode 100644 index 000000000..61d849f60 --- /dev/null +++ b/.github/workflows/test-installation.yml.example @@ -0,0 +1,52 @@ +# Copyright (c) Prevail Verifier contributors. +# SPDX-License-Identifier: ...
13
7
4
[{"id": "G0", "claim": "Using `lukka/get-cmake@latest` can lead to unexpected CI breakages when the action updates; pin a specific version tag for reproducibility.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Reconsider forcing GSL_INSTALL wit...
null
vbpf__prevail__976
vbpf/prevail
976
defect
664c409d3e22c4add1dbb7a853ad8c2e32a76a66
fce01c230390e64e831430d37ea30cc5c68c8694
Add observation/invariant consistency checks + YAML support
Addresses vbpf/prevail#728. **Purpose** Add a small, test-oriented API to check whether a runtime observation (expressed as string constraints) is consistent with Prevail’s computed abstract invariants at a specific program point. This is intended as a semantic cross-check for validating transfer functions/invariant c...
diff --git a/docs/proposal-issue-728-compare-abstract-to-concrete-state.md b/docs/proposal-issue-728-compare-abstract-to-concrete-state.md new file mode 100644 index 000000000..0f3b61f94 --- /dev/null +++ b/docs/proposal-issue-728-compare-abstract-to-concrete-state.md @@ -0,0 +1,187 @@ +# Proposal: Observation–Invarian...
11
11
3
[{"id": "G0", "claim": "The two bare URLs in the proposal document (the uBPF reference-harness link and the prior-art PR #729 link) should be written as markdown links to render cleanly and satisfy markdownlint MD034.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id"...
null
vbpf__prevail__992
vbpf/prevail
992
defect
d43b2f54e3e304b3814c5f351bb583c42ab235c4
ea3f5de8ccada741ba9415af857c0b865815ccb6
Fix SplitDBM unstable vertex detection and add widen closure test
## Summary This PR fixes a critical bug in the SplitDBM unstable vertex detection logic and adds a comprehensive test case to verify the fix works correctly. ## Key Changes - **Bug Fix**: Corrected the `UnstableWrap::operator[]` logic in `split_dbm.cpp` to properly identify unstable vertices by inverting the containme...
diff --git a/src/crab/splitdbm/split_dbm.cpp b/src/crab/splitdbm/split_dbm.cpp index f2dbd8c38..940206240 100644 --- a/src/crab/splitdbm/split_dbm.cpp +++ b/src/crab/splitdbm/split_dbm.cpp @@ -194,7 +194,7 @@ void SplitDBM::normalize() { struct UnstableWrap { const VertSet& vs; explicit UnstableW...
1
1
0
[{"id": "G0", "claim": "The struct should be renamed (e.g. UnstableWrap -> IsStable) or given an inline comment, because after the fix its operator[] returns true for stable vertices while its name says unstable, and the name/semantics mismatch is what caused the original inversion and could invite a future revert.", "...
null
vbuch__node-signpdf__11
vbuch/node-signpdf
11
defect
dc1fa0990e4f0d0b6975604d13a2b52ec333a950
c7b5d69b44db1d9c019898c27fb1b02db3d61bbd
Feature/ add verify method
Add support for verifying pdf files that contain a ByteRange placeholder.
diff --git a/src/helpers.js b/src/helpers.js new file mode 100644 index 00000000..3598a18f --- /dev/null +++ b/src/helpers.js @@ -0,0 +1,121 @@ +import {DEFAULT_BYTE_RANGE_PLACEHOLDER} from './signpdf'; +import SignPdfError from './SignPdfError'; + +export const hexStr = (input) => { + let output = ''; + for (let...
11
8
0
[{"id": "G0", "claim": "Make sure the pull request reaches 100% test coverage.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Keep the new code readable and consistent with the repo's stated purpose.", "category": "maintainability", "verdict": "uncertai...
null
vbuch__node-signpdf__112
vbuch/node-signpdf
112
defect
14b1b84bea952ff7c9d4847bf7d77cab28cbd09e
d9e7f471a134ec2b6411b5f15adc2069d9e7b63e
function plainAddPlaceholder remove metadata of pdf (#36)
Fix for: function plainAddPlaceholder remove metadata of pdf (#36)
diff --git a/dist/helpers/plainAddPlaceholder/createBufferTrailer.js b/dist/helpers/plainAddPlaceholder/createBufferTrailer.js index e60e7a56..c982767b 100644 --- a/dist/helpers/plainAddPlaceholder/createBufferTrailer.js +++ b/dist/helpers/plainAddPlaceholder/createBufferTrailer.js @@ -14,7 +14,7 @@ const createBufferT...
2
2
1
[{"id": "G0", "claim": "The hardcoded '/Info 15 0 R' reference in the trailer buffer should not be hardcoded.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Ensure test coverage remains at 100% before merging.", "category": "testing", "verdict": "su...
null
vbuch__node-signpdf__140
vbuch/node-signpdf
140
defect
5f784b9ef4100e1e58d1a8a81bcc951fb1d2a210
3cd856f0fa834e53ea314287fa367c8c45fc145e
Add support for overriding signature SubFilter value
To confirm to the PAdES standard PDF signatures need to have the `SubFilter` value of `ETSI.CAdES.detached` not `adbe.pkcs7.detached` > l) The Signature Dictionary shall contain a value of ETSI.CAdES.detached for the key SubFilter. [1] This PR allows consumers of this library to define the SubFilter as required ...
diff --git a/src/helpers/__snapshots__/pdfkitAddPlaceholder.test.js.snap b/src/helpers/__snapshots__/pdfkitAddPlaceholder.test.js.snap index a63cadc6..a122cda6 100644 --- a/src/helpers/__snapshots__/pdfkitAddPlaceholder.test.js.snap +++ b/src/helpers/__snapshots__/pdfkitAddPlaceholder.test.js.snap @@ -8,6 +8,14 @@ Arra...
3
3
2
[{"id": "G0", "claim": "Rename the new sigType option to subFilter (or another name describing the signature SubFilter it sets), because sigType is too generic and might lead to mismatches in the future.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Swi...
null
vcmi__vcmi__4323
vcmi/vcmi
4,323
defect
37cf7880797247ac456d17b961710b691af1e0b6
4e83deca9256669406865906f79e7648fd601c00
Battle ai fixes
Feels like it is ready for review. Managed to fix retaliation issue in dragon breath mechanics when dragon hits dragon back from top. Compared also behavior with original HoMM3. See unit tests. Now AI also correctly calculates dragon breath and dragon breath retaliation. Waited attack fixed.
diff --git a/AI/BattleAI/BattleEvaluator.cpp b/AI/BattleAI/BattleEvaluator.cpp index 3fccb5e8cc1..a0f0c01af9e 100644 --- a/AI/BattleAI/BattleEvaluator.cpp +++ b/AI/BattleAI/BattleEvaluator.cpp @@ -189,7 +189,7 @@ BattleAction BattleEvaluator::selectStackAction(const CStack * stack) else { activeActio...
1
1
1
[{"id": "G0", "claim": "With the double-wide second-hex breath branch commented out, the client shows dragon breath hitting hexes that the server logic never actually attacks, so the branch needs to be handled rather than disabled.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introdu...
null
vcmi__vcmi__4563
vcmi/vcmi
4,563
defect
1e0f131d7fab7b514b6171130d8c447a18206919
57bd3629225e17826032c03a13441c526172572c
Improvements to the artifact creation
- CMap removed from CArtifactSet level - ArtifactUtils::createArtifact ArtifactUtils::createNewArtifactInstance united. - Introduced cheat code "vcmiscrolls". Puts scrolls with all available spells on the selected hero.
diff --git a/client/Client.h b/client/Client.h index 5c1d53ca8fa..3fa2be4f3b1 100644 --- a/client/Client.h +++ b/client/Client.h @@ -184,7 +184,8 @@ class CClient : public IGameCallback, public Environment void removeAfterVisit(const CGObjectInstance * object) override {}; bool swapGarrisonOnSiege(ObjectInstanceI...
2
2
1
[{"id": "G0", "claim": "In loadArtifactToSlot the artifact is now created unconditionally while addNewArtifactInstance is only called when the slot check passes, so this will now result in a memory leak when the artifact cannot be put at the slot; probably needs a delete in the else block.", "category": "correctness", ...
null
vcmi__vcmi__6831
vcmi/vcmi
6,831
defect
3fceb7a3d6973a8963aeeb0113ee2ebe868d26ff
af65ce28bba10ee7b8c4f6e9957ed9c502b97049
[1.7.2] Fixes and german update
- Fix vmap translation (handle two different translation systems at a same time is a pain...) - Fix campaign scenario info: don't show scrollbar if it fit's in window (standard OH3 text) - Update german @by003 Can you do an intensive test if there aren't any regressions to 1.7.1 anymore?
diff --git a/Mods/vcmi/Content/config/german.json b/Mods/vcmi/Content/config/german.json index b62a3170ce6..8571e14a936 100644 --- a/Mods/vcmi/Content/config/german.json +++ b/Mods/vcmi/Content/config/german.json @@ -107,7 +107,7 @@ "vcmi.spellBook.search" : "suchen...", "vcmi.spellBook.tab.hover" : "%szauber", "...
3
2
1
[{"id": "G0", "claim": "Do not detect map-editor mode with a global variable; pass the flag through the loading calls instead, e.g. set a local flag on CMapLoaderJson when the callback is the editor's.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "When ...
null
vcmi__vcmi__7021
vcmi/vcmi
7,021
defect
f176c6d7002b64dad7be64e963999b5cb668c088
584bbb6c5b7b14b65df898bb9ced26798e5232e1
reworks battleAI preliminary spell target choice
So in short, that method caused indirectly a big performance issue for BattleAi. <img width="1145" height="95" alt="532959323-79c3f08e-785d-4d6b-9531-0723b438e554" src="https://github.com/user-attachments/assets/78abb6e7-47a0-47d5-acd1-30b2570f299c" /> Despite the name and the comment, it did not return all possibl...
diff --git a/AI/BattleAI/BattleEvaluator.cpp b/AI/BattleAI/BattleEvaluator.cpp index f506bee5823..de089fe5a6b 100644 --- a/AI/BattleAI/BattleEvaluator.cpp +++ b/AI/BattleAI/BattleEvaluator.cpp @@ -14,6 +14,7 @@ #include "StackWithBonuses.h" #include "EnemyInfo.h" #include "tbb/parallel_for.h" +#include "SpellTargets...
12
9
0
[{"id": "G0", "claim": "The new code should use the terms \"affected\" or \"targetable\" instead of \"susceptible\" when naming what a spell reaches.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Multi-destination spells such as teleport and sa...
null
vcmi__vcmi__7204
vcmi/vcmi
7,204
defect
2f752d4945aeb1db03afe48ba987c8af63c12f50
6a8ef93f891a7ace71dc7f1a2bfc65b1290f16d0
[1.7.4?] Add LONG_WEAPON bonus
### LONG_WEAPON The affected unit can perform a melee attack from two hexes away if there is exactly one empty hex between attacker and target (`attacker -> empty hex -> victim`). - If attacker is adjacent to the defender, this bonus does **not** extend range and attack is resolved as normal melee. - Attacks per...
diff --git a/client/battle/BattleAnimationClasses.cpp b/client/battle/BattleAnimationClasses.cpp index 1042b342c8c..43ea273bbe7 100644 --- a/client/battle/BattleAnimationClasses.cpp +++ b/client/battle/BattleAnimationClasses.cpp @@ -296,7 +296,30 @@ ECreatureAnimType MeleeAttackAnimation::selectGroup(bool multiAttack) ...
11
9
4
[{"id": "G0", "claim": "Null attacker or null defender passed to isLongWeaponAttack is incorrect API usage by the caller and should throw rather than silently return false.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Double-wide units are blocked from...
null
vczh-libraries__GacUI__110
vczh-libraries/GacUI
110
defect
e7bb8df15567ce7580ef4c8cce9106742b50bb12
7125cca2f12a7804eee1e5cffe5a272f68b7c0a4
Partially fix performance issue when loading super large text into one single paragraph when RichText control is enabled with styles
## Known Issue that out of my current release scope - `GuiDocumentViewer` loading super large text without empty line (~0.2M lines) too slow - Demo: `https://github.com/vczh-libraries/GacUI/blob/master/Test/Resources/UnitTestSnapshots/Controls/Ribbon/GuiRibbonButtons/Dropdowns.json` - Paragraph mode plus no em...
diff --git a/Source/Controls/TextEditorPackage/GuiDocumentCommonInterface.cpp b/Source/Controls/TextEditorPackage/GuiDocumentCommonInterface.cpp index 3c7da3a6c..8c35c919d 100644 --- a/Source/Controls/TextEditorPackage/GuiDocumentCommonInterface.cpp +++ b/Source/Controls/TextEditorPackage/GuiDocumentCommonInterface.cpp...
3
1
0
[{"id": "G0", "claim": "Adding paragraphDistance to the comparison (y < top + size.y + paragraphDistance) changes the boundary calculation logic and could cause incorrect paragraph selection when y falls within the distance gap between paragraphs.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "...
null
vdutor__SphericalHarmonics__16
vdutor/SphericalHarmonics
16
defect
415dc6c82a5e1682f34bdd671c21a8ce9bae15a0
ae700e1abc323446f8e495bc888f01c4fdd12410
Switch to beartype to accommodate pep-585 and increment version to 0.0.2 to simplify dependency-handling
Motivation: it was giving the following warning in [GeometricKernels](https://github.com/GPflow/GeometricKernels/pull/107). ```python BeartypeDecorHintPep585DeprecationWarning: PEP 484 type hint typing.List deprecated by PEP 585. This hint is scheduled for removal in the first Python version released after October 5t...
diff --git a/dev_requirements.txt b/dev_requirements.txt index 6a0eb56..dc5d5a3 100644 --- a/dev_requirements.txt +++ b/dev_requirements.txt @@ -2,6 +2,7 @@ matplotlib tensorflow tensorflow-probability +tf-keras black flake8 diff --git a/setup.py b/setup.py index 834b28e..c01cdc5 100644 --- a/setup.py +++ b/set...
1
1
0
[{"id": "G0", "claim": "The version in setup.py should be 0.0.2a0 rather than 0.0.2, per the reviewer's suggestion block.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
vechain__thor__1009
vechain/thor
1,009
defect
ac14125e7515da5a187b3971288efa0d560414dd
99ea6b428ad66b49ce68c6647efec8ab0b1cacf9
Vanja/chore/optimize event logs query
# Description Optimize event logs query, remove subqueries, ensure indexes are used Fixes # (issue) ## Type of change Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [x] Breaking cha...
diff --git a/logdb/logdb.go b/logdb/logdb.go index 492cdab9d2..090ad7b897 100644 --- a/logdb/logdb.go +++ b/logdb/logdb.go @@ -18,7 +18,9 @@ import ( ) const ( - refIDQuery = "(SELECT id FROM ref WHERE data=?)" + refIDQuery = "(SELECT id FROM ref WHERE data=?)" + defaultOffset = 0 + defaultLimit = 200 ) typ...
10
10
5
[{"id": "G0", "claim": "The defaults for the filter should be handled in the api/events caller before FilterEvents, not inside logdb FilterEvents.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "FilterTransfers should get the same query optimization as Fi...
null
vechain__thor__1017
vechain/thor
1,017
defect
f2d4cacf28af02f160c54b9825dd7c5e0c4c7770
0e0cd0070c99b5025bc0ec3e72a0b3ce36d26e87
Fuzz tests
# Description This PR introduces fuzz testing for transaction, block and header encoding/decoding. [GHIssue](https://github.com/vechain/protocol-board-repo/issues/464) # Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [x] I have comme...
diff --git a/Makefile b/Makefile index af31e11f10..b7e94a09de 100644 --- a/Makefile +++ b/Makefile @@ -60,6 +60,11 @@ clean: #@ Clean the test and build cache and remove binaries test:| go_version_check #@ Run the tests @go test -cover $(PACKAGES) +fuzz:| go_version_check #@ Run the fuzz tests + @go test -fuzz=Fuz...
2
1
0
[{"id": "G0", "claim": "Keep the tests in the external `block_test` package so that method visibility through the public API is also checked.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Places that still compare maxFeePerGas()/maxPriorityFeePerGas() ag...
null
vechain__thor__1019
vechain/thor
1,019
defect
a4b8c999c1feb20b00c3983ab2c6a68827f8f8fb
ea00e00e9e499edd1f6930878ae04a0fa777b3b7
Rename baseGas to baseFeePerGas as per VIP
# Description This PR renames the base fee value to `baseFeePerGas` when exposed via api [GHIssue](https://github.com/vechain/protocol-board-repo/issues/489) # Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [x] I have commented my co...
diff --git a/api/blocks/blocks_test.go b/api/blocks/blocks_test.go index f9a2fd8373..1bcf557ac3 100644 --- a/api/blocks/blocks_test.go +++ b/api/blocks/blocks_test.go @@ -291,7 +291,7 @@ func checkCollapsedBlock(t *testing.T, expBl *block.Block, actBl *blocks.JSONCol for i, tx := range expBl.Transactions() { asser...
2
1
0
[{"id": "G0", "claim": "The pull request renames the attributes exposed by the APIs but may not cover the same attributes elsewhere, for instance within Extension — is that enough?", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The fees/history endpoi...
null
vechain__thor__1020
vechain/thor
1,020
defect
ab03adaed1abd4737b587c6abb5337adeaddf0ba
6a0a8ec2c7bfb5e74dee4f0ae3ef4f1f5b642147
update encoding and signing hash func for tx
# Description + Move typed tx encode/decode function to txbody + **Update signing hash function** + Return default value for incompatible functions ## Type of change - [x] **Breaking change: tx signing hash changed to include tx type byte** # Checklist: - [x] My code follows the style guidelines of t...
diff --git a/tx/transaction.go b/tx/transaction.go index fb3f42a87d..50bdbde35a 100644 --- a/tx/transaction.go +++ b/tx/transaction.go @@ -75,13 +75,15 @@ type txData interface { maxPriorityFeePerGas() *big.Int dependsOn() *thor.Bytes32 nonce() uint64 - reserved() reserved + reserved() *reserved signature() []b...
2
1
0
[{"id": "G0", "claim": "The stub methods on legacyTransaction should carry the added comment stating that they return 0 as they are not meant to be used anywhere else.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The legacyTransaction encode/dec...
null
vechain__thor__1028
vechain/thor
1,028
defect
66026816bc504292825a57ed25eb91ee77866b5e
4ee79cdb31c644dcbcc6798d76ff9758cc174bb7
feat: rewards in `fee/history`
# Description This PR adds support to: - `rewardPercentiles` (request): List of percentiles (for instance, `20,50,90`) to organise the rewards to request. - `reward` (response): Array of arrays with the rewards by percentile (in the example above, it will be an array of 3-element arrays) It is based on [this]...
diff --git a/api/doc/thor.yaml b/api/doc/thor.yaml index 993c75eb77..10ec234d16 100644 --- a/api/doc/thor.yaml +++ b/api/doc/thor.yaml @@ -768,6 +768,7 @@ paths: parameters: - $ref: '#/components/parameters/BlockCountInQuery' - $ref: '#/components/parameters/NewestBlockInQuery' + - $ref:...
2
2
0
[{"id": "G0", "claim": "If the only reason blockCount is passed by pointer is so it can be adjusted, validateNewestBlock should return the adjusted count instead of mutating it silently.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "More unit tests for ...
null
vechain__thor__1039
vechain/thor
1,039
defect
0de2ecd13af7684c6e7b5b5ee388894d46e3d369
8190fe9fc4a5013912b2d78f9b89a57d9351d791
refactor: legacy base gas price retrieval within `ValidateGalacticaTxFee`
# Description Since we always use the state value for `baseGasPrice` to validate the fees, this PR aims for atomising the functionality within the `ValidateGalacticaTxFee` function.
diff --git a/consensus/fork/galactica.go b/consensus/fork/galactica.go index 0b46f3f143..3774bc0a82 100644 --- a/consensus/fork/galactica.go +++ b/consensus/fork/galactica.go @@ -13,6 +13,8 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/math" "github.com/vechain/thor/...
2
2
0
[{"id": "G0", "claim": "Having ValidateGalacticaTxFee take *state.State pushes state handling into the fork package and forces its tests to set up state; the reviewer prefers the function to use simple types and suggests extracting the core validation logic into a private method taking simple values.", "category": "des...
null
vechain__thor__1061
vechain/thor
1,061
defect
88a97139be99e3c19b348adfc25001bf6d98bcd8
fa3b85957da6ff7666e79f5f9ae3377e928b75a5
Sort by price and timeAdded
# Description If the price is equal sort by time added Fixes # (issue) ## Type of change Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [x] Breaking change (fix or feature that woul...
diff --git a/txpool/tx_object.go b/txpool/tx_object.go index 500a27c4d6..9dfb6c3aba 100644 --- a/txpool/tx_object.go +++ b/txpool/tx_object.go @@ -7,7 +7,7 @@ package txpool import ( "math/big" - "sort" + "slices" "time" "github.com/pkg/errors" @@ -122,8 +122,18 @@ func (o *txObject) Executable(chain *chain....
2
2
0
[{"id": "G0", "claim": "Drop the unnecessary else in the timeAdded tie-break of sortTxObjsByOverallGasPriceDesc, returning -1 directly after the if, per the unnecessary-else style rule.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rewrite sort...
null
vechain__thor__1070
vechain/thor
1,070
defect
27d2ac9b4508d2b72aa0fa25b248c6b849b4f1a7
7ecea78942c51076b340021ff5512f8c30de5583
move tx basic checks into runtime for re-use
# Description This PR moves tx basic checks into `runtime/ResolveTransaction` meaning to be used in `txpool.Add`, packing and consensus verification. # Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [x] I have commented my code, particu...
diff --git a/runtime/resolved_tx.go b/runtime/resolved_tx.go index e0b6c55dde..77e00c308a 100644 --- a/runtime/resolved_tx.go +++ b/runtime/resolved_tx.go @@ -8,7 +8,6 @@ package runtime import ( "math/big" - "github.com/ethereum/go-ethereum/common/math" "github.com/pkg/errors" "github.com/vechain/thor/v2/buil...
2
1
0
[{"id": "G0", "claim": "The PR should also remove the exported error ErrMaxFeeLessThanPriorityFee from tx/transaction.go, since it is only used once and the same refactor removed the other one-off exported fee errors to follow that pattern.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sco...
null
vechain__thor__1083
vechain/thor
1,083
defect
c855800321012362b400999d61439165ea6a0a80
54cf92ea7e9a9aea69946f76ee1da115c768d812
add metrics for legacy and dynamic transactions
# Description Added metrics for the legacy and dynamic fees transactions Fixes https://github.com/vechain/protocol-board-repo/issues/596 ## Type of change Please delete options that are not relevant. - [x] New feature (non-breaking change which adds functionality) # How Has This Been Tested? Tested...
diff --git a/txpool/metrics.go b/txpool/metrics.go index 7137929ca0..7e9a0694e1 100644 --- a/txpool/metrics.go +++ b/txpool/metrics.go @@ -11,3 +11,5 @@ import ( var metricTxPoolGauge = metrics.LazyLoadGaugeVec("txpool_current_tx_count", []string{"source", "total"}) var metricTxPoolExecutablesGauge = metrics.LazyLo...
4
4
3
[{"id": "G0", "claim": "In housekeeping, totalDynamic is computed by incrementing but never read or reported anywhere, so it is an unused variable.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Instead of adding two new gauge metrics for legacy and...
null
vechain__thor__1092
vechain/thor
1,092
defect
da696951537e2707344f323f0d56025a85af6283
e2f98e190b27cd57c4a267954900a0007e8d965c
bug(delegations): first iteration is set incorrectly
# Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have add...
diff --git a/builtin/staker/delegations.go b/builtin/staker/delegations.go index f12fbc6fbf..8f14ef094b 100644 --- a/builtin/staker/delegations.go +++ b/builtin/staker/delegations.go @@ -73,22 +73,27 @@ func (d *delegations) Add( delegationID := thor.BytesToBytes32(id.Bytes()) + firstIteration := validator.Comple...
2
1
0
[{"id": "G0", "claim": "The reviewer could not see `firstIteration` being modified after line 82 and asked whether `exitIteration` and `firstIteration` are the same.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The repeated `validator.CompleteIter...
null
vechain__thor__1124
vechain/thor
1,124
defect
cd406f22921d838b6c933cd276850659589984cb
9919216784086628066fdc6078eb6751181a3105
Add bad tx metric
# Description Add bad tx metric Fixes # (issue) ## Type of change Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [x] Breaking change (fix or feature that would cause existing functi...
diff --git a/txpool/metrics.go b/txpool/metrics.go index adcdb1da6e..6860130154 100644 --- a/txpool/metrics.go +++ b/txpool/metrics.go @@ -10,4 +10,5 @@ import ( ) var metricTxPoolGauge = metrics.LazyLoadGaugeVec("txpool_current_tx_count", []string{"source", "type"}) +var metricBadTxGauge = metrics.LazyLoadGaugeVec...
2
2
1
[{"id": "G0", "claim": "The -1 decrement of the bad_tx_count gauge in add() looks unintended and the reviewer asks whether the gauge should really be decremented there.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The bad-tx metric line should reu...
null
vechain__thor__1140
vechain/thor
1,140
defect
aae89ebd369ce0654e28bddafc10b9a38adf314e
a65655d3df029f740dd0bbfe787b2c5788d6bd58
LogIndex and TransferIndex per block instead of per transaction
# Description This PR changes the LogIndex and TransferIndex to be enumerated per block instead of per transaction. Fixes # [(issue)](https://github.com/vechain/thor/issues/1117) ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) # Checklist: - [x] My code follows the style g...
diff --git a/api/doc/thor.yaml b/api/doc/thor.yaml index 0c622ee156..ba5e02dc48 100644 --- a/api/doc/thor.yaml +++ b/api/doc/thor.yaml @@ -1506,7 +1506,7 @@ components: nullable: true example: 1 logIndex: - description: The index of the log in the receipt's outputs. This is an ov...
1
1
0
[{"id": "G0", "claim": "The logIndex/transferIndex definitions in the API doc also need to be updated to match the new per-block indexing (the logIndex description's final clause should read \"overall index among all transactions\" instead of \"all clauses\").", "category": "documentation", "verdict": "supported", "pri...
null
vechain__thor__1174
vechain/thor
1,174
defect
4444267f232f36da0dcab2999e186fb88fe67240
3ccd000de276f626c891082a266541ae69999e18
rename withdraw to withdrawStake
# Description # Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings ...
diff --git a/Makefile b/Makefile index 36d7124733..e707a6dd49 100644 --- a/Makefile +++ b/Makefile @@ -31,8 +31,10 @@ disco:| go_version_check #@ Build the `disco` executable @go build -v -o $(CURDIR)/bin/$@ -ldflags "-X main.version=$(DISCO_VERSION) -X main.gitCommit=$(GIT_COMMIT) -X main.gitTag=$(GIT_TAG) -X main.c...
1
1
0
[{"id": "G0", "claim": "The other withdraw-named function native_getWithdraw in builtin/staker_native.go (staker_native.go#L74) should also be renamed to match the pull request's renaming (the reviewer suggests getWithdrawStake).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_e...
null
vechain__thor__1183
vechain/thor
1,183
defect
5616eeafc1a1b3eca8c79f122111be3f722ecaad
0bb717c99171f5e87a9e776ac03eade7f16184d6
feat: finality based on weight
# Description Implements finality based on weight. Tests adapted so they run using both the previous fork config and Hayabusa.
diff --git a/bft/engine.go b/bft/engine.go index 614eb521eb..4c387ab957 100644 --- a/bft/engine.go +++ b/bft/engine.go @@ -5,6 +5,7 @@ package bft import ( + "math/big" "sort" "sync/atomic" @@ -305,7 +306,6 @@ func (engine *Engine) computeState(header *block.Header) (*bftState, error) { js = (entry.Value)....
2
2
2
[{"id": "G0", "claim": "The height check `h.Number() > HAYABUSA+HAYABUSA_TP` in computeState is wrong as a PoS-activity gate because hayabusa does not have to switch at that height; staker.IsPoSActive() would be safer.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id":...
null
vechain__thor__1213
vechain/thor
1,213
defect
281b854ef1ce1d2464f026dba7637759615f66d9
b6a5ebe619375672f518b7d3f7fff62123c13674
chore: init staker params once
# Description - This reduces reads to state. The params only get debugged once, instead of every time the staker is initialised - It also ensures params cannot be set by an outside package - reduce gas usage for all transactions and calls by 1000 # Checklist: - [x] My code follows the style guidelines of thi...
diff --git a/builtin/native_calls_test.go b/builtin/native_calls_test.go index 1ba39a4fdb..ade7c739ae 100644 --- a/builtin/native_calls_test.go +++ b/builtin/native_calls_test.go @@ -2031,13 +2031,13 @@ func TestStakerContract_Native_CheckStake(t *testing.T) { caller: builtin.Staker.Address, } - test.Case("addVa...
3
2
0
[{"id": "G0", "claim": "The new Get() gas charging may bill a full slot of SLOAD gas even when the read finds nothing (len(raw) == 0), so should gas still be charged if nothing was read?", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The configVar cod...
null
vechain__thor__1221
vechain/thor
1,221
defect
49c59042b5e7810cc126fb118990778ced7394d6
d06e95fb6dac542ac0fbbbff008c124e4e41d742
Optimize solidity mapping perf
# Description This PR optimizes the generic `Mapping[K, V]` implementation by cutting down on allocations and CPU overhead in both `Get` and `Set`: - **Pooled RLP buffers/readers** via `sync.Pool` to avoid per-call allocations of `bytes.Buffer` and `bytes.Reader`. - **Fixed double-encode bug** in `Set` (now retu...
diff --git a/builtin/solidity/mapping.go b/builtin/solidity/mapping.go index 253e1e782d..395420c6ce 100644 --- a/builtin/solidity/mapping.go +++ b/builtin/solidity/mapping.go @@ -6,7 +6,9 @@ package solidity import ( + "bytes" "reflect" + "sync" "github.com/ethereum/go-ethereum/rlp" @@ -29,34 +31,83 @@ func...
3
3
0
[{"id": "G0", "claim": "The bytes.Reader pool will bring only minor improvements since the major allocation is in the raw byte slice and the reader is just a container for it (so it is not worth keeping).", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
vechain__thor__1234
vechain/thor
1,234
defect
7569ab44857d55330a58301541d2d5accf35134a
836309ace1d1201ed431421934065e0a6aa44b30
Vanja/feat/700 staker refactor methods
# Description Break get validation and get delegation functions to make them more granular Fixes # (issue) ## Type of change Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [x] Break...
diff --git a/builtin/gen/compiled/Staker.abi b/builtin/gen/compiled/Staker.abi index b18eabef91..b5c8381be7 100644 --- a/builtin/gen/compiled/Staker.abi +++ b/builtin/gen/compiled/Staker.abi @@ -1 +1 @@ -[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"validator","type":"address"},{"indexe...
2
2
0
[{"id": "G0", "claim": "getValidatorStake should also return the validator's queued stake.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "getValidatorPeriodDetails should also return completed periods and the separate getCompletedPeriods function should ...
null
vechain__thor__1249
vechain/thor
1,249
defect
23106e0301f53480c2460bdc2b05fc0de8188b90
701bd8763bab75afab5afb80a27aab9b0e1e1360
feat(staker): enfore correct block beneficiary if set in staker contract
# Description - staker: allow endorsors to set a beneficiary address via the staker contract - consensus: enforce correct block beneficiary if set in the contract - E2E: https://github.com/vechain/hayabusa-e2e/pull/94 - E2E Test Run: https://github.com/vechain/hayabusa-e2e/actions/runs/16910291472 # Checklist:...
diff --git a/builtin/gen/compiled/Staker.abi b/builtin/gen/compiled/Staker.abi index 542afa980c..a76e0b9257 100644 --- a/builtin/gen/compiled/Staker.abi +++ b/builtin/gen/compiled/Staker.abi @@ -1 +1 @@ -[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"validator","type":"address"},{"indexe...
2
1
1
[{"id": "G0", "claim": "Setting the beneficiary to nil (via a zero beneficiary) may cause an issue downstream when rewards are distributed.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The staker.sol setBeneficiary wrapper passes the arguments to ...
null
vechain__thor__1255
vechain/thor
1,255
defect
5c9c6e12f5d428d1c088b618e40beea77af05885
a7f06dbb18728cf480d8f10987ec9a2da72e0185
Vanja/feat/706 validator probability weight to 1 instead of 2 when no delegation applied
# Description Refactor validator multiplier, if there are no delegations validator weight multiplier is 1, 2 otherwise Fixes # (issue) ## Type of change Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds...
diff --git a/bft/engine_pos_test.go b/bft/engine_pos_test.go index 7c69a104d6..b0a8e220ec 100644 --- a/bft/engine_pos_test.go +++ b/bft/engine_pos_test.go @@ -398,7 +398,7 @@ func TestJustifierPos(t *testing.T) { if forkCfg.HAYABUSA != thor.NoFork.HAYABUSA { assert.Equal(t, uint32(180), vs.checkpoint) - ...
2
1
1
[{"id": "G0", "claim": "SignalExit should not add the validator's own stake (valStake) to the aggregation's exiting weight — the reviewer thinks the aggregation should represent only the sum of delegators, and suggests carrying the extra weight only in the weight field.", "category": "design", "verdict": "uncertain", "...
null
vechain__thor__1256
vechain/thor
1,256
defect
b8585eb77b83b4913078a5c63ef5ba40049a1fe8
a11a29017c6857d8ba6228cf40ecae6db99e851e
feat(staker): panic on error, handle specific revert error
# Description - return validation errors - handle the error if builtin panics # Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have made corresponding chan...
diff --git a/builtin/gen/compiled/Staker.bin-runtime b/builtin/gen/compiled/Staker.bin-runtime index 2943c62c54..2a8f591c55 100644 --- a/builtin/gen/compiled/Staker.bin-runtime +++ b/builtin/gen/compiled/Staker.bin-runtime @@ -1 +1 @@ -6080604090808252600490813610156100a8575b5036156100665734610061576020606492519162461b...
3
3
1
[{"id": "G0", "claim": "Instead of requiring callers to cross-reference the reverts package (RequireError), add a Revert helper on the xenv Environment (similar to UseGas) that encodes the revert message and panics in one call.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"...
null
vechain__thor__1283
vechain/thor
1,283
defect
a9abf9af46339de22b44d3dae546f463d0da8002
ea408000c4fd85eacd11338756e485369044cbd2
Return master/signer address in admin API
# Description 1. Add Master and Beneficiary address to '/health' endpoint. 2. Update 'health_api_test.go' test code. ## Type of change - [x] New feature (non-breaking change which adds functionality) # Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-revie...
diff --git a/api/admin/admin.go b/api/admin/admin.go index d601140c58..c04dbf1011 100644 --- a/api/admin/admin.go +++ b/api/admin/admin.go @@ -15,16 +15,17 @@ import ( "github.com/vechain/thor/v2/api/admin/apilogs" "github.com/vechain/thor/v2/api/admin/loglevel" + "github.com/vechain/thor/v2/cmd/thor/node" he...
2
2
0
[{"id": "G0", "claim": "The master/beneficiary variables need no explicit nil initialisation and the beneficiary check could be nested inside the master != nil check, simplifying the code as suggested.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
vechain__thor__1288
vechain/thor
1,288
defect
0ffe8bccb7c6c8edd4364080bbcfba3c6e3b1964
bd3bafe80a2e123ada89b426ccc994fdb8b37541
fix: authority balance check in packer
# Description Fix: packer is not checking the endorsers balance correctly. It only checks the accounts current balance and does not check if that account has queued their validator in the staker # Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my ...
diff --git a/builtin/authority/authority.go b/builtin/authority/authority.go index c8f738a02a..f4bcb15b1f 100644 --- a/builtin/authority/authority.go +++ b/builtin/authority/authority.go @@ -6,8 +6,6 @@ package authority import ( - "math/big" - "github.com/ethereum/go-ethereum/rlp" "github.com/vechain/thor/v2...
1
1
1
[{"id": "G0", "claim": "Asks whether existing queued VET should suffice when the min stake equals the endorsement and, if not, whether the condition should instead be balance + validation.QueuedVET, since the queued VET credited is not tied to the endorser whose balance was checked.", "category": "correctness", "verdic...
null
vechain__thor__1303
vechain/thor
1,303
defect
6805a7336a3e4251af11609420d45717d83cb17a
c0abc5616a2a509497257188a1c775c79ae54a75
update gas usage of raw
# Description # Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warning...
diff --git a/builtin/solidity/bytes32.go b/builtin/solidity/bytes32.go deleted file mode 100644 index 8ac89ead01..0000000000 --- a/builtin/solidity/bytes32.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) 2025 The VeChainThor developers -// -// Distributed under the GNU Lesser General Public License v3.0 software li...
1
1
0
[{"id": "G0", "claim": "Use Raw.Upsert instead of the manual empty-check with Insert/Update when persisting locked totals in ApplyRenewal.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vechain__thor__1304
vechain/thor
1,304
defect
7d156184216df9b72aae973d7a91a6506773b52c
6a0f6f11bb5cb43e2f3b9c9f6314036545bf4bf2
Vanja/chore/dead code cleanup
# Description Remove dead code, fix underflow issues Fixes # (issue) ## Type of change Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [x] Breaking change (fix or feature that would ...
diff --git a/builtin/staker/aggregation/aggregation.go b/builtin/staker/aggregation/aggregation.go index 5e25b95022..8c737cf28a 100644 --- a/builtin/staker/aggregation/aggregation.go +++ b/builtin/staker/aggregation/aggregation.go @@ -6,6 +6,8 @@ package aggregation import ( + "errors" + "github.com/vechain/thor/...
2
2
1
[{"id": "G0", "claim": "The guard's error message contains a stray escaped double quote and should read \"exiting weight cannot exceed locked weight\".", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The guard should compare a.ExitingVET against a.Lo...
null
vechain__thor__1319
vechain/thor
1,319
defect
0a06e98f18230a46f27d12eba8674523b763be9a
7fab4e2e8dfde90ba4de14d1c9962295036a7c83
fix: invalidate cache after beneficiary set events
# Description - bug: consensus cache is not invalidated after beneficiary events. - refactor: only write to cache within `Consensus.validate`. This prevents `NewRuntimeForReplay` from writing to cache - [x] - fix for E2E # Checklist: - [x] My code follows the style guidelines of this project - [x] I have p...
diff --git a/builtin/staker/staker.go b/builtin/staker/staker.go index 52de45972e..694205974b 100644 --- a/builtin/staker/staker.go +++ b/builtin/staker/staker.go @@ -23,12 +23,13 @@ import ( "github.com/vechain/thor/v2/thor" ) -// TODO: Do these need to be set in params.sol, or some other dynamic way? -var ( - lo...
1
1
0
[{"id": "G0", "claim": "Add a comment above the staker-address check explaining that after HAYABUSA authorities are allowed to migrate to the staker contract, so any staker contract event (AddValidation, StakeIncreased/Decreased/Withdrawn) needs to invalidate the cache.", "category": "documentation", "verdict": "suppor...
null
vechain__thor__1354
vechain/thor
1,354
defect
7bccbf010723035ad707b4d3a4ea93df715aec43
d0f633e2ae061482ce2e9e628b69e3f8670664ee
Vanja/feat/813 add withdrawable vet to the globalstats
# Description Track withdrawable, add tests Fixes # (issue) ## Type of change Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [x] Breaking change (fix or feature that would cause exi...
diff --git a/builtin/staker/delegation/delegation.go b/builtin/staker/delegation/delegation.go index 162fa0d0d1..78982e735c 100644 --- a/builtin/staker/delegation/delegation.go +++ b/builtin/staker/delegation/delegation.go @@ -34,6 +34,10 @@ func (d *Delegation) Started(val *validation.Validation, currentBlock uint32) ...
6
4
1
[{"id": "G0", "claim": "The added early return in Started (CompletedPeriods == 0 && Status == StatusExit) looks wrong — the reviewer questions whether a validation can have zero completed periods and be exited.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "...
null
vechain__thor__1355
vechain/thor
1,355
defect
40be0bedd811c073d04afe50dc6da06b615368c1
f999465bcd93a9711914593fd1f6963ff82e5125
Vanja/feat/813 add withdrawable vet to the globalstats
# Description Track cooldown VET in global stats Fixes # (issue) ## Type of change Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [x] Breaking change (fix or feature that would caus...
diff --git a/builtin/staker/globalstats/service.go b/builtin/staker/globalstats/service.go index d93e94bece..c4fdf5f4a6 100644 --- a/builtin/staker/globalstats/service.go +++ b/builtin/staker/globalstats/service.go @@ -19,6 +19,7 @@ var ( slotLocked = thor.BytesToBytes32([]byte(("total-weighted-stake"))) slot...
1
1
0
[{"id": "G0", "claim": "Add a AssertGlobalCooldown(stake) assertion before the withdraw and AssertGlobalCooldown(0) after it in TestValidation_WithdrawBeforeAfterCooldown.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vechain__thor__1358
vechain/thor
1,358
defect
f2ae67b3f926f2573e698e46b9c8b608cfc0cdc8
d9e59a945c2b9b603bb05ff010f8d23c42258f7f
improve globalstats
# Description + Tidy up `globalstatus` + Add overflow check in `WeightedStake` + Add `Validation.CooldownEnded` + Fixed a bug in `Validation.renew()`, which is PendingUnlock and Queued is not correctly reflected in `renewal`. # Checklist: - [x] My code follows the style guidelines of this project - [x] I...
diff --git a/builtin/staker/aggregation/aggregation.go b/builtin/staker/aggregation/aggregation.go index 2bfa0de7a1..87caa09b88 100644 --- a/builtin/staker/aggregation/aggregation.go +++ b/builtin/staker/aggregation/aggregation.go @@ -59,17 +59,18 @@ func (a *Aggregation) renew() (*globalstats.Renewal, error) { queue...
5
4
0
[{"id": "G0", "claim": "The two-line `err = a.Locked.Sub(a.Exiting); if err != nil` in Aggregation.renew should be collapsed into `if err := a.Locked.Sub(a.Exiting); err != nil` as a nit.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The two-li...
null
vechain__thor__1384
vechain/thor
1,384
defect
180c5ba3553f41b0b815079cd818bb9292e86767
dab5f7bd1ee469259dcb8c628e495a7a07d7c939
No delegations when exiting validator
# Description Delegations are no longer allowed to validations that have signaled exit. Fixes # (issue) # Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [x] ...
diff --git a/builtin/staker/globalstats/service.go b/builtin/staker/globalstats/service.go index b2f4a5fa8c..13d2931b4e 100644 --- a/builtin/staker/globalstats/service.go +++ b/builtin/staker/globalstats/service.go @@ -94,8 +94,15 @@ func (s *Service) ApplyExit(validation *Exit, aggregation *Exit) error { return err...
1
1
1
[{"id": "G0", "claim": "In Test_Increase_WhileValidatorExiting, the IncreaseStake call made after SignalExit should error: the test should assert an error (it currently asserts NoError) and its comment should say 'should fail' rather than 'should be okay'.", "category": "correctness", "verdict": "supported", "priority"...
null
vechain__thor__1422
vechain/thor
1,422
defect
6d29c7513818d515f4ad9f8f18d92d79e03d145c
b2f6da867bc7231aa3fda6cff257c55d3bf1bda0
Increase and Decrease are only on active validators
# Description Increase and Decrease stake are only applicable to active validators. Fixes # [(issue)](https://github.com/vechain/otherviews-workboard/issues/221) ## Type of change - [x] Breaking change (fix or feature that would cause existing functionality to not work as expected) # Checklist: - [x] ...
diff --git a/builtin/staker/staker.go b/builtin/staker/staker.go index 2cace4e7a4..c834227853 100644 --- a/builtin/staker/staker.go +++ b/builtin/staker/staker.go @@ -313,7 +313,10 @@ func (s *Staker) IncreaseStake(validator thor.Address, endorser thor.Address, am if val.Status == validation.StatusExit { return Ne...
1
1
0
[{"id": "G0", "claim": "The revert error message in IncreaseStake should read \"can't increase stake while validator not active\" instead of the garbled \"can't increase stake exit while validator not active\" (suggestion block provided).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope":...
null
vechain__thor__1433
vechain/thor
1,433
defect
b4c914fe573ed6141daa159fa293e9193a96d74f
3c92853ab7a98cf9e0b6b59e1373cb51bbb7aa24
Custom encoding for Energy Stop Growth Time
# Description Custom encoding for Energy Stop Growth Time to reduce rlp operation cost. ``` Performance Comparison Results Encoding Performance Operation Standard Optimized Improvement Timestamp (1698000000) 48.02 ns 17.95 ns 2.7x faster Zero value...
diff --git a/builtin/energy/benchmark_test.go b/builtin/energy/benchmark_test.go new file mode 100644 index 0000000000..567e196f74 --- /dev/null +++ b/builtin/energy/benchmark_test.go @@ -0,0 +1,145 @@ +package energy + +import ( + "testing" + + "github.com/ethereum/go-ethereum/rlp" +) + +// Benchmark encoding operatio...
7
7
2
[{"id": "G0", "claim": "decodeUint64RLP should return io.EOF instead of 0, nil for empty input, to align with the rlp package.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The short-string boundary check should be written as data[0] < 0xb8 instead...
null
vechain__thor__1499
vechain/thor
1,499
defect
116ec9cf407069cdc4f0fc190faad4f6fcc08f0d
7133bcbd5513748926c103c2ead845e637b30000
start solo with galactica and hayabusa defaulted to 0
# Description This PR enables Galactica and Hayabusa forks by default when running Thor in solo mode. Fixes issue #[231](https://github.com/vechain/otherviews-workboard/issues/231) # Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [x]...
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 710e0cb58c..c7b95a3a09 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -66,7 +66,6 @@ jobs: matrix: args: - 'solo' - - 'solo --hayabusa' - 'solo --o...
1
1
0
[{"id": "G0", "claim": "In TestAdoptTypedTxs, changing the local to thor.SoloFork (a value copy) instead of reusing the existing struct would reuse the struct; the reviewer asks to check whether the original intent was to defer creating a new pointer.", "category": "correctness", "verdict": "supported", "priority": "P2...
null
vechain__thor__1531
vechain/thor
1,531
defect
caf136450572ec99b4cad8a8717b9ab1387c057d
d3c8b6ce1878c4ce572b2d41e466ab8fd3f270a5
Log enhancement
# Description Log enhancements plus WAL checkpointing. Fixes # [(issue)](https://github.com/vechain/protocol-board-repo/issues/879) ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) **Test Configuration**: * Go Version: * Hardware: * Docker Version: # Checklist: - [x] ...
diff --git a/api/events/events.go b/api/events/events.go index 7d5124034c..c901a45a01 100644 --- a/api/events/events.go +++ b/api/events/events.go @@ -19,6 +19,8 @@ import ( "github.com/vechain/thor/v2/logdb" ) +const MaxCriteriaCount = 10 + type Events struct { repo *chain.Repository db *logdb.LogDB @@ -...
4
2
0
[{"id": "G0", "claim": "The MaxCriteriaCount constant is duplicated in the events and transfers packages and should be defined in a single place (the logdb package, or per libotony, the API config).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
vechain__thor__1590
vechain/thor
1,590
defect
dd625de3dcfff7ce6f51f657fadb47e474fb2647
4280e6e0d1c2587a2eee8d81b681b103a8b9a336
eip-6780: SELFDESTRUCT only in same transaction
# Description - Implement EIP-6780. SELFDESTRUCT only in same transaction - Add opSuicide6780 for Cancun fork. - Add new testcase for opSuicide6780 ## Type of change - [x] New feature (non-breaking change which adds functionality) # Checklist: - [x] My code follows the style guidelines of this project ...
diff --git a/.github/workflows/test-rosetta.yaml b/.github/workflows/test-rosetta.yaml index a9d65efc55..f582cf6f0f 100644 --- a/.github/workflows/test-rosetta.yaml +++ b/.github/workflows/test-rosetta.yaml @@ -127,4 +127,4 @@ jobs: - name: Run e2e tests working-directory: rosetta - run: npm ru...
10
9
3
[{"id": "G0", "claim": "The new comments in runtime/runtime.go contain typos ('CLOUSER', 'contarct') that make the warning harder to read and search; please correct them.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "SetContractStatus runs before...
null
vechain__thor__1593
vechain/thor
1,593
defect
faa33e8be101a991e3e9a4c7fb8f0760817be1f1
3d53b22b43f4f1948d624df35457a8e25f9fe0c5
implement eip-7939: count leading zeros opcode
# Description Add CLZ opcode. EIP: https://eips.ethereum.org/EIPS/eip-7939 GHIssue: https://github.com/vechain/protocol-board-repo/issues/1074 # Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [x] I have commented my code, particularly...
diff --git a/vm/instructions.go b/vm/instructions.go index 13ff29ee56..1da99a49dc 100644 --- a/vm/instructions.go +++ b/vm/instructions.go @@ -233,6 +233,13 @@ func opSAR(_ *uint64, _ *EVM, _ *Contract, _ *Memory, stack *Stack) ([]byte, err return nil, nil } +// opCLZ implements EIP-7939: count leading zero bits i...
1
1
1
[{"id": "G0", "claim": "The CLZ operation's gas cost should be constGasFunc(GasFastStep) instead of constGasFunc(GasFastestStep) in NewOsakaInstructionSet.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
vechain__thor__724
vechain/thor
724
defect
88baecd2520cab3eaa113e0cf210081ce1f0cd57
e525ff08d1ce9a436de17984bc4b83da4e7a22ac
Cleanup p2p thor + add tests
# Description Connected with https://github.com/vechain/protocol-board-repo/issues/165 . It was hard to follow the expected behaviour when combining (`allowed-peers`, `bootnodes`, and stored cached peers). This was mainly due to the use of flag value retrieval, directory setup, and a few other operations being mi...
diff --git a/cmd/thor/main.go b/cmd/thor/main.go index 5e3c054dbd..a0c8bd5215 100644 --- a/cmd/thor/main.go +++ b/cmd/thor/main.go @@ -187,7 +187,7 @@ func defaultAction(ctx *cli.Context) error { txPool := txpool.New(repo, state.NewStater(mainDB), txpoolOpt) defer func() { log.Info("closing tx pool..."); txPool.Clo...
4
2
1
[{"id": "G0", "claim": "BootstrapNodes and KnownNodes serve different purposes and should not be mixed together, so the removal of the BootstrapNodes option (folding discovery bootstrapping into KnownNodes) should be undone.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"...
null
vechain__thor__734
vechain/thor
734
defect
e61c650836fe25452696dfc5c5f0aeee9e882217
8c464d9bdc1d05632486937f4f50a2934c9aff1c
Adding api-logs-enabled flag
# Description Part of the Replay feature functionality - Ticket https://github.com/vechain/protocol-board-repo/issues/183 This flag adds the ability to log incoming requests. Logs are also displayed if the log level is set to debug. It defaults to NOT ENABLED. Fixes # (issue) ## Type of change Please d...
diff --git a/api/api.go b/api/api.go index 48f30f516e..ab4173ea53 100644 --- a/api/api.go +++ b/api/api.go @@ -42,6 +42,7 @@ func New( pprofOn bool, skipLogs bool, allowCustomTracer bool, + reqLogger *RequestLogger, forkConfig thor.ForkConfig, ) (http.HandlerFunc, func()) { origins := strings.Split(strings.T...
12
6
0
[{"id": "G0", "claim": "The flag should perhaps be a cli.StringFlag letting the user specify the log file location instead of a boolean with a fixed directory.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The rotation logic should not be pulled in as a...
null
vechain__thor__740
vechain/thor
740
defect
95aed6947d59d1eb5df951e508d6d96d82c4c02e
5d1cd55c79cc62e8d6db46c00e7491559f7b2cae
Selectable block interval on solo
Tackles the following [issue](https://github.com/orgs/vechain/projects/22/views/1?filterQuery=label%3A%22App%3A+Thor%22%2C%22App%3A+VIP%22%2C%22App%3A+Thorest%22++solo&pane=issue&itemId=53228366). In this PR I basically added the option to use a command-line argument specifically for solo to allow the developer to choo...
diff --git a/cmd/thor/flags.go b/cmd/thor/flags.go index 7b47380b03..fdeb7d5702 100644 --- a/cmd/thor/flags.go +++ b/cmd/thor/flags.go @@ -128,6 +128,11 @@ var ( Name: "on-demand", Usage: "create new block when there is pending transaction", } + blockInterval = cli.IntFlag{ + Name: "block-interval", + Value...
4
4
1
[{"id": "G0", "claim": "soloAction should throw an error when the given block interval is invalid (zero) instead of silently logging and falling back to the default of 10.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new --block-interval flag ...
null
vechain__thor__799
vechain/thor
799
defect
e6c91cb9c175e58c1e74d9e5e5228acd1625f43b
1993bfb79ccb2bb955989421203052da435f152a
Ability to change log verbosity while the node is running
This PR adds a new server running on a separate port (default 2113) bound to localhost and disabled by default. It implements a route `/admin` and uses query parameters to get the new verbosity level. To use it you can run thor with the following arguments: ```bash ./thor solo --on-demand --enable-admin ``` and ...
diff --git a/admin/admin.go b/admin/admin.go new file mode 100644 index 0000000000..b5a35d28a2 --- /dev/null +++ b/admin/admin.go @@ -0,0 +1,38 @@ +// Copyright (c) 2024 The VeChainThor developers + +// Distributed under the GNU Lesser General Public License v3.0 software license, see the accompanying +// file LICENSE ...
14
8
2
[{"id": "G0", "claim": "The JSON log handler should also be updated to use the slog.LevelVar so JSON log verbosity can be changed at runtime, like the terminal handler.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The admin log-level endpoint shou...
null
vechain__thor__828
vechain/thor
828
defect
f1aa5ae733617d0366500b3210895415c7068f20
9e7925c04fc035dd6ba039d83fac0e044aaa0081
Debug thor solo with different genesis
# Description There's a small bug when starting thor solo with a different genesis. PoA is still in use when the genesis is different from devnet genesis. This fixes it by changing the PoA use check. To replicate issue: ``` curl -X GET http://localhost:8669/blocks/1 {"number":1,"id":"0x00000001a054ddd4f2...
diff --git a/api/api.go b/api/api.go index 0ac399295f..704119774f 100644 --- a/api/api.go +++ b/api/api.go @@ -51,6 +51,7 @@ func New( enableMetrics bool, logsLimit uint64, allowedTracers map[string]interface{}, + isSolo bool, ) (http.HandlerFunc, func()) { origins := strings.Split(strings.TrimSpace(allowedOri...
1
1
0
[{"id": "G0", "claim": "The boolean parameter this PR adds to api.New is misleadingly named: isSolo feels wrong and should be renamed (darrenkel suggested skipPoA, libotony later preferred soloMode, so that callers outside the api package pass solo mode rather than the internal skipPoA concept).", "category": "maintain...
null
vechain__thor__836
vechain/thor
836
defect
062c0d907e9ce9bfe7b8116d368b8cb13a81b393
19db51aa21b0201537db8fa4e1b8a38109b12b6f
Adding Health endpoint
# Description A health check service that lives inside the node as an API endpoint. I think it's a good illustrative start for a PR, there are a few tech choices made that I consider would be worth discussing, such as: - Should this endpoint live in the Admin API ? - Should this be a singleton service ? - Is t...
diff --git a/api/api.go b/api/api.go index ea33a0c16c..d524f4b577 100644 --- a/api/api.go +++ b/api/api.go @@ -17,6 +17,7 @@ import ( "github.com/vechain/thor/v2/api/debug" "github.com/vechain/thor/v2/api/doc" "github.com/vechain/thor/v2/api/events" + "github.com/vechain/thor/v2/api/health" "github.com/vechain/...
13
11
5
[{"id": "G0", "claim": "Once chainSynced is set to true it can never be reset, so the health status would keep signalling the node is in sync even after it falls out of sync and needs to re-sync.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The he...
null
vechain__thor__850
vechain/thor
850
defect
5bc66a81216a80aed430c379ea0b6c454d050107
f07dc434f550262e13a6bfc3b3cc0f6b942f3e52
Add transaction signer
# Description There seems to be a lot of repetition around the build and the signing of transactions. Most recognizable by the fact that different tests have built different helpers to make these operations faster. This PR enhances the tx package to help in this case: - Introduces the following methods: `M...
diff --git a/api/accounts/accounts_test.go b/api/accounts/accounts_test.go index 16f08e2524..76c6e52402 100644 --- a/api/accounts/accounts_test.go +++ b/api/accounts/accounts_test.go @@ -19,9 +19,9 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/et...
2
1
0
[{"id": "G0", "claim": "Add require.NoError(t, err) for the error returned by the new BuildAndSign/BuildAndSignWithDelegator calls in the test helpers instead of discarding it with _.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The delegator-signing ...
null
vechain__thor__865
vechain/thor
865
defect
175050cfac0b9ae36e2ec3abcc6272fd09b82911
82b2a6724e3020403f9cb0ae2d5ffc048e14477b
Darren/logdb remove leading zeros
# Description This changes reduces the storage size for the LogDB by removing leading zeros from topics. Eg, instead of storing topic 1 equal to: ``` 0000000000000000000000006d95e6dca01d109882fe1726a2fb9865fa41e7aa ``` We store: ``` 6d95e6dca01d109882fe1726a2fb9865fa41e7aa ``` This saves over 0.5 GB of...
diff --git a/.github/workflows/on-pull-request.yaml b/.github/workflows/on-pull-request.yaml index 57cee70ee4..6c6300109a 100644 --- a/.github/workflows/on-pull-request.yaml +++ b/.github/workflows/on-pull-request.yaml @@ -3,7 +3,7 @@ name: Pull Request CI on: pull_request: branches: - - master + - '...
5
3
0
[{"id": "G0", "claim": "The comment in removeLeadingZeros reads \"ensure at lease 1 byte\" and should read \"ensure at least 1 byte\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks why the ensure-at-least-1-byte guard (returning...
null
vechain__thor__924
vechain/thor
924
defect
dcea741d1a907ee5a3ca90bb8b26b86cb2ce0781
6f39d9217f317c9d00b982330556dc2df2dff019
extract cachestats to record cache stats
# Description This PR moves cachestats to a standalone file to make it available globally and applies cachestats to muxdb and chain to track cache miss/hit. A notable change here is this PR changes the metric type in package chain to `GaugeVec` ## Type of change Please delete options that are not relevant....
diff --git a/chain/cache.go b/chain/cache.go index c1e9aae067..48ba24d238 100644 --- a/chain/cache.go +++ b/chain/cache.go @@ -18,14 +18,14 @@ func newCache(maxSize int) *cache { return &cache{c} } -func (c *cache) GetOrLoad(key interface{}, load func() (interface{}, error)) (interface{}, error) { +func (c *cache)...
1
1
0
[{"id": "G0", "claim": "The new CacheStats utility should perhaps be placed in the metrics directory instead of the thor package.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
vechain__thor__956
vechain/thor
956
defect
b21dc943c01afe62c4ce8b9bdd1617522fe6d9bd
26732245f40fad784ce4e6dcaf393033f7e6a051
feat(solo): keep thor solo genesis ID consistent for all forks
# Description Define a new `ForkConfig` for solo so the genesis ID does not change. # Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have made corresponding...
diff --git a/api/accounts/accounts_test.go b/api/accounts/accounts_test.go index 8630bea4b3..aa317c03b7 100644 --- a/api/accounts/accounts_test.go +++ b/api/accounts/accounts_test.go @@ -280,7 +280,7 @@ func getStorageWithNonExistingRevision(t *testing.T) { } func initAccountServer(t *testing.T, enabledDeprecated b...
4
3
0
[{"id": "G0", "claim": "The fork config should be encapsulated in genesis.NewDevnet() itself (as libotony suggested, letting NewDevnet() carry the dev fork config) instead of the PR making every call site pass thor.SoloFork explicitly; M002 questions why the test genesis uses thor.SoloFork.", "category": "design", "ver...
null
vechain__thor__979
vechain/thor
979
defect
555ee726d3eb9f8647e0f57d800b430dc11c3c73
2a7219c1f83f7d1ccbd94eb0be273f233e334325
feat: extension v3, initial commit
# Description Implement extension v3, exposing clause count and current index to the EVM - [ ] Extension function `txExpiration` increases gas cost from 388 to 410 after extension updates to v3, not sure whats happening here. It may be due to an increase in contract size? # Checklist: - [x] My code follows...
diff --git a/.github/workflows/test-e2e.yaml b/.github/workflows/test-e2e.yaml index 4df0e61447..c424ee50b6 100644 --- a/.github/workflows/test-e2e.yaml +++ b/.github/workflows/test-e2e.yaml @@ -38,7 +38,7 @@ jobs: THOR_IMAGE: vechain/thor:${{ github.sha }} name: Run Tests steps: - # Main: https:/...
1
1
0
[{"id": "G0", "claim": "Move the extension V3 SetCode allocation into its own branch below the ETH_IST block and update the '// alloc precompiled contracts' comment to '// alloc precompiled and builtin contracts'.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vechain__thor__988
vechain/thor
988
defect
36c540a60ed77cde2f87a97dd9f89dd92a2fdb42
1d249f86f2b9d8201ad3ae24b97c9ef7787fbfca
feat: flag `min-effective-priority-fee` in transactions
# Description New flag `--min-effective-priority-fee` that enforces the use of an effective priority fee (the minimum between the `maxPriorityFeePerGas` and `maxFeePerGas` minus the block base fee) greater than 0 in order to submit new transactions. Closes https://github.com/vechain/protocol-board-repo/issues/41...
diff --git a/api/subscriptions/pending_tx_test.go b/api/subscriptions/pending_tx_test.go index 3cc16dda9d..c40d4023ea 100644 --- a/api/subscriptions/pending_tx_test.go +++ b/api/subscriptions/pending_tx_test.go @@ -126,7 +126,7 @@ func TestPendingTx_DispatchLoop(t *testing.T) { } func addNewBlock(repo *chain.Reposi...
4
2
1
[{"id": "G0", "claim": "The flag and its priority-fee check may also need to be propagated into transaction validation in consensus (consensus/validator.go), since the check currently exists only in the packer.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
vechain__thor__995
vechain/thor
995
defect
e3dbf8bee66b7a577548a24b119821eab931cd5e
18f0583eea72807945de27761b5dd56d09788c47
refactor: `fees/priority` after load tests
# Description Using the approach of applying as a tip the 5% of the `next` block base fee has been proven effective while running the k6 load tests. It assumes that transactions are built like: ``` // These 2 values are coming from the API calls to the fees endpoints tip := suggestion.MaxPriorityFee...
diff --git a/api/fees/data.go b/api/fees/data.go index 301b7cbb4a..d7de5b3f18 100644 --- a/api/fees/data.go +++ b/api/fees/data.go @@ -6,61 +6,29 @@ package fees import ( - "container/heap" "math/big" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/vechain/thor/v2/cache" "github.com/vechain/t...
1
1
0
[{"id": "G0", "claim": "Config field `PriorityPercentile` should be renamed (e.g. `deltaIncrease`/`increasePercentage`) since it is no longer a percentile, and it could be a plain `int` instead of `int64`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vectara__vectara-ingest__329
vectara/vectara-ingest
329
defect
ae51739f85ac42008eef3cad232829ecbbc7cb5d
2613c683f8bf3f0616e1cf14332a25b2d1b57b59
Split oversized structured sections to avoid 400 errors
## Summary - Structured document sections exceeding 16,384 characters now auto-split into multiple sections within the same document - Splits on paragraph boundaries first, then sentence boundaries, with hard character cut as fallback - Fixes 400 (Bad Request) errors when indexing large web pages via `index_url` → `ind...
diff --git a/core/document_builder.py b/core/document_builder.py index 9bd96571..5ccec286 100644 --- a/core/document_builder.py +++ b/core/document_builder.py @@ -1,10 +1,13 @@ import hashlib import logging +import re from typing import Dict, List, Any, Optional, Sequence from core.utils import create_row_items ...
5
3
2
[{"id": "G0", "claim": "MAX_SECTION_CHARS is introduced while _build_core_document still hard-codes 16384 for the core-indexing size check, duplicating the limit so it can drift; use MAX_SECTION_CHARS there as well.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"...
null
vectara__vectara-ingest__331
vectara/vectara-ingest
331
defect
08fcc1e9230dcc8eb9154e480adca870ed3fec29
db2954cf4e09f29d01ef8ea2fb84d11fba65151f
Retry with split_oversized on 400 and greedy table splitting
## Summary - On 400 BAD_REQUEST, retry document indexing with `split_oversized=True` to split oversized text sections and tables - Table splitting now uses greedy row-by-row accumulation (measuring each row's actual JSON size) instead of average row size, fixing failures on tables with unevenly sized rows (e.g. one row...
diff --git a/core/document_builder.py b/core/document_builder.py index 9cdfd99e..e5241b8f 100644 --- a/core/document_builder.py +++ b/core/document_builder.py @@ -6,7 +6,7 @@ logger = logging.getLogger(__name__) -MAX_SECTION_CHARS = 12000 +MAX_SECTION_CHARS = 16000 class DocumentBuilder: @@ -29,11 +29,12 @@ d...
3
2
2
[{"id": "G0", "claim": "Reset `_last_response_status` (e.g. to None at the start of `index_document()` or on early-return failure paths) because it retains a previous value (including 400) when an attempt fails before a response, which can incorrectly trigger the split-and-retry logic.", "category": "correctness", "ver...
null
vectara__vectara-ingest__332
vectara/vectara-ingest
332
defect
9c15dec6c9f7260c54925a5534f86948fcc2113c
624c19685ce2e3bbce955c84df9b85dc97637b7c
Add Wolken KB crawler
## Summary - New crawler for indexing Knowledge Base articles from Wolken ServiceDesk using the [public KB REST API](https://developer-beta.wolkensoftware.com/kb/docs.html) - Uses standard REST endpoints: categories → articles → article details → index to Vectara - Configurable content field extraction (introduction, c...
diff --git a/README.md b/README.md index 91440a6b..77778c5c 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ Vectara is the trusted GenAI platform providing simple [APIs](https://docs.vecta * RSS feeds * Jira tickets * Notion notes +* Wolken KB articles * Docusaurus documentation sites * Slack * And many ...
6
4
3
[{"id": "G0", "claim": "The README secrets snippet is not valid TOML as shown because it lacks a profile table header, and the keys should be shown inside a profile section to avoid copy/paste errors.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
vectara__vectara-ingest__333
vectara/vectara-ingest
333
defect
9c15dec6c9f7260c54925a5534f86948fcc2113c
bca9c16dca64b9773c68cbae181eae600ffb5039
Gdrive abac
Support for ABAC (Attribute based access control) in Google Drive Crawler
diff --git a/config/vectara-gdrive.yaml b/config/vectara-gdrive.yaml index d24e909e..0e2d2d66 100644 --- a/config/vectara-gdrive.yaml +++ b/config/vectara-gdrive.yaml @@ -1,37 +1,85 @@ -vectara: - corpus_key: gdrive - reindex: true - create_corpus: false - -crawling: - crawler_type: gdrive - -gdrive_crawler...
4
4
4
[{"id": "G0", "claim": "The Sheets-as-xlsx test never patches or asserts `process_dataframe_file`, so `crawl_file()` hits the real function on a non-existent /tmp path (silently caught) and the assertions can pass without verifying the intended dataframe routing; patch it and assert it was called while `index_file` is ...
null
vectordotdev__vector__18506
vectordotdev/vector
18,506
defect
f5cd27afd0bd6aa93ac1b18f508f0ecedaa87489
9e4530f2ca3a61ef75493ecf3d9ef634a53c6b9a
enhancement(file sink, aws_s3 sink, gcp_cloud_storage): configurable filename timezone
The PR will make timezone for timestamp in filenames configurable. It will use the global timezone from the SinkContext (`cx.globals.timezone`) but can be overridden in the sinks. As an example, ```toml timezone = "Asia/Singapore" [sources.in] type = "file" data_dir = "./data_dir/" include = ["./events/*.log"...
diff --git a/Cargo.lock b/Cargo.lock index 9fa26494257ad..40134a584930d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -9602,6 +9602,7 @@ dependencies = [ "bytes 1.5.0", "bytesize", "chrono", + "chrono-tz", "cidr-utils", "clap 4.4.2", "codecs", diff --git a/Cargo.toml b/Cargo.toml index 6c9f563678453..3e6eb7bd...
11
11
2
[{"id": "G0", "claim": "The aws_s3 sink config should import `TimeZone` from `vector_common` rather than from `vrl::compiler`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Applying the timezone offset to the key prefix belongs in `S3SinkConfig...
null
vectordotdev__vector__18672
vectordotdev/vector
18,672
defect
6ced6ca22546d1033c66029dbe3b920868824134
f22b8980edc5bb30eaaecb1596c47a304aeb5b64
chore(deps): Update VRL to 0.7.0
* Update `vrl` version to `0.7.0` * Also, bumped `mlua` to `0.9.1` to resolve dep conflict * Updated VRL function docs * Added doc for the new `community_id` VRL function * Fix lib/vector-vrl test runner paths Closes: https://github.com/vectordotdev/vector/issues/18670
diff --git a/Cargo.lock b/Cargo.lock index a4a9e90d3c5a66..9eb8d5c51a624e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -307,12 +307,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "arrayvec" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23b62fc65de8e4e...
3
3
1
[{"id": "G0", "claim": "The word `sublocation` in the parse_aws_vpc_flow_log docs example is not a recognized spelling and should be allowed or reworded.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The words `sublocation_id`/`sublocation_type` in...
null
vectordotdev__vector__18761
vectordotdev/vector
18,761
defect
539a40f2190ec4e0fe701691b33ade93a1baca15
992321980d82a5cc5afcf532f9beed0142bbd556
chore(datadog_metrics sink): support and migrate to the `v2` series API endpoint
This change adds support for the `datadog_metrics` sink to encode Series metrics to the Datadog Series `v2` API endpoint and changes the encoder to use that endpoint by default. Tests were updated to cover the case of the v2 endpoint, which encodes metrics as ProtoBuf, similar to Sketches. This PR lightly refactored th...
diff --git a/.github/workflows/changes.yml b/.github/workflows/changes.yml index 653d3395bdfda..f480bac6265e4 100644 --- a/.github/workflows/changes.yml +++ b/.github/workflows/changes.yml @@ -56,8 +56,14 @@ on: value: ${{ jobs.int_tests.outputs.clickhouse }} databend: value: ${{ jobs.int_tests...
8
7
3
[{"id": "G0", "claim": "The comment in series_to_proto_message misspells \"endpoint\" as \"endoint\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test tag value \"ikr\" is not a recognized word and should be renamed to something readable in...
null
vectordotdev__vector__18865
vectordotdev/vector
18,865
defect
0568d7a50e0a0e8b899edf83333d88a2cd752b04
9796dd7200f9ceae350974a898412e185ad34803
feat(aws_cloudwatch_logs sink): add configurable log retention
Fixes #12038
diff --git a/src/sinks/aws_cloudwatch_logs/config.rs b/src/sinks/aws_cloudwatch_logs/config.rs index 0be371f8b67cd7..0514c8558aaa99 100644 --- a/src/sinks/aws_cloudwatch_logs/config.rs +++ b/src/sinks/aws_cloudwatch_logs/config.rs @@ -2,6 +2,7 @@ use aws_sdk_cloudwatchlogs::Client as CloudwatchLogsClient; use aws_smit...
12
11
8
[{"id": "G0", "claim": "After the retention-policy calls in the group-exists path the state machine should move to State::DescribeStream so the already-existing stream is checked, instead of unconditionally creating it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"...
null
vectordotdev__vector__19086
vectordotdev/vector
19,086
defect
d4189e06bd7f8efa1b0daf68f5e1a57eb5b489af
8b08aa7e948a89610d3ca7760f93b0a9dd390e70
feat(splunk_hec_logs splunk_hec_metrics humio sink) Allow host and timestamp key fields to be namespaceable
Allows the `host_key` and `timestamp_key` configuration fields to reference namespaced fields outside of the main event namespace (e.g. a timestamp key using the new `%vector.ingest_timestamp` field, host key using other custom namespaced fields, etc). This is linked to the discussion in #18867. <!-- **Your PR titl...
diff --git a/src/sinks/humio/logs.rs b/src/sinks/humio/logs.rs index 552eab36d7214..4e649eea94f43 100644 --- a/src/sinks/humio/logs.rs +++ b/src/sinks/humio/logs.rs @@ -1,6 +1,6 @@ use vector_lib::codecs::JsonSerializerConfig; use vector_lib::configurable::configurable_component; -use vector_lib::lookup::lookup_v2::{...
8
5
3
[{"id": "G0", "claim": "The pull request's code is not formatted by rustfmt, so the format check is failing; the formatting change should be made and the other checks run.", "category": "maintainability", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The metrics-side namespaci...
null
vectordotdev__vector__19107
vectordotdev/vector
19,107
defect
ec31d03d1b5630a49a4852cf66a747a4b14db75c
e12c9db63dca0fd44d01d7561ace5829991832f1
feat(unittests): add vrl as test input
Add VRL as a valid input for unittests, this makes it possible to define test inputs as such: ``` [[tests.inputs]] type = "vrl" insert_at = "my_transform" source = ''' . = { "message": "foo bar baz", "timestamp": now(), "tags": { "foo": "bar", "fizz": "buzz" } } ''' ``` And it kinda ...
diff --git a/src/config/mod.rs b/src/config/mod.rs index b7754bbf0078c6..dc8b8e0672a878 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -505,7 +505,7 @@ pub struct TestInput { /// The type of the input event. /// - /// Can be either `raw`, `log`, or `metric. + /// Can be either `raw`, `vrl`,...
4
3
2
[{"id": "G0", "claim": "The compile-error handling in build_input_event should use map_err with ? instead of the match, making it more concise.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The documentation should be updated to describe the ne...
null
vectordotdev__vector__19108
vectordotdev/vector
19,108
defect
89cd32ed4f604f20d66c3e30c57cf3e63b7cba70
aa0097bd56d27ef821bddc8cf499e47d33d00f2a
fix(aws_kinesis_firehose sink): add workaround for batching
add workaround for aws_kinesis_firehose sink to avoid problem with batching with only one event inside. Cost of firehose depends on amount of PutRecordBatch requests and current batches for firehose is not working and as a result we send only 1 event per batch which increase price significantly. This is a workaroun...
diff --git a/src/sinks/aws_kinesis/config.rs b/src/sinks/aws_kinesis/config.rs index 341063a0f2f19..0fcba2391a982 100644 --- a/src/sinks/aws_kinesis/config.rs +++ b/src/sinks/aws_kinesis/config.rs @@ -65,6 +65,12 @@ pub struct KinesisSinkBaseConfig { skip_serializing_if = "crate::serde::skip_serializing_if_def...
5
4
2
[{"id": "G0", "claim": "The PR should add integration tests covering the partition key for the firehose sink, modelled on the streams partition-key int tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Since the partition key field moved into the ba...
null
vectordotdev__vector__19141
vectordotdev/vector
19,141
defect
5a53173ef6de6c2d19a02372748a951c7cb90628
12a1ba5ca5b7442bd718b55bc5b76e17a82d334e
ehancement(sources): Add `keepalive.max_connection_age_secs` config option to HTTP-server sources
Clients often use indefinitely persistent connections. Given that we recommend network-level load balancers, this can result in sub-par balancing as the worker pool grows due to a lack of rebalancing. To resolve this, sources with a HTTP server now support a configurable option to send a `Connection: close` header a...
diff --git a/src/http.rs b/src/http.rs index 646b8074d392f..087e65532a541 100644 --- a/src/http.rs +++ b/src/http.rs @@ -1,6 +1,7 @@ #![allow(missing_docs)] use std::{ fmt, + net::SocketAddr, task::{Context, Poll}, time::Duration, }; @@ -17,8 +18,11 @@ use hyper::{ }; use hyper_openssl::HttpsConn...
9
5
1
[{"id": "G0", "claim": "Fix the misspelling of \"connection\" as \"connectin\" in the doc comments of MaxConnectionAgeLayer and MaxConnectionAgeService.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Avoid the `0` sentinel value for `max_connectio...
null
vectordotdev__vector__19728
vectordotdev/vector
19,728
defect
ad8a8690b7707540dd24a85e8ada8c51bab150fe
2e843a9cc88f685b0927ad0d08515411f9fa5042
feat(opentelemetry source): support trace ingestion
This PR supports ingesting trace data in opentelemetry-protocol Here's the example config: ```yaml sources: foo: type: opentelemetry grpc: address: 0.0.0.0:4317 http: address: 0.0.0.0:4318 keepalive: max_connection_age_jitter_factor: 0.1 max_connection_age_s...
diff --git a/.gitignore b/.gitignore index 24b0593d51d6c..65279205dd3de 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ node_modules tests/data/wasm/*/target heaptrack.* massif.* +.vscode # tilt tilt_modules/ diff --git a/lib/opentelemetry-proto/build.rs b/lib/opentelemetry-proto/build.rs index a5eddb...
6
6
4
[{"id": "G0", "claim": "The docs should gain a section explaining the new trace support and labelling it as experimental (a \"how it works\"-style note).", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Editor-specific entries like .vscode belong in...
null
vectordotdev__vector__20048
vectordotdev/vector
20,048
defect
6731b44d2ff7c91b37120bb6e7b0433f540d23aa
51248a7d46087366be2a7f2ea4e9febf9c3a58f0
feat(vrl): add `uuid_v7` function
This PR introduces the following changes: * add remap behavioral test for VRL `uuid_v7()` function * provided cue website documentation for `uuid_v7()` function * depends on vectordotdev/vrl/pull/738
diff --git a/lib/vector-vrl/tests/src/docs.rs b/lib/vector-vrl/tests/src/docs.rs index 8e08ef39b17cff..ec694ce316f6e6 100644 --- a/lib/vector-vrl/tests/src/docs.rs +++ b/lib/vector-vrl/tests/src/docs.rs @@ -16,6 +16,7 @@ const SKIP_FUNCTION_EXAMPLES: &[&str] = &[ "type_def", // Not supported on VM runtime "ra...
1
1
1
[{"id": "G0", "claim": "Asks whether the `urls.uuidv7` reference used by the new uuid_v7.cue docs file is actually defined (at S1 it is not defined in website/cue/reference/urls.cue).", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
vectordotdev__vector__20244
vectordotdev/vector
20,244
defect
36d9ccebf621bf969841245a66f292c15f83dda1
12e79e8fecd960038b70520aa3479377fbe017b6
feat(databend sink): service use databend-client
* Change to use databend-client from databend rust driver: https://github.com/datafuselabs/bendsql/ * Change config `endpoint` default to DSN style.
diff --git a/Cargo.lock b/Cargo.lock index 85b3bc21bdeaf..9245ffb21786d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2708,6 +2708,27 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5c297a1c74b71ae29df00c3e22dd9534821d60eb9af5a0192823fa2acea70c2a" +[[package]] +name ...
2
2
0
[{"id": "G0", "claim": "Rewrite the auth description line so it says 'The username and password to authenticate with, overrides the username and password in DSN.'", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rewrite the database description line...
null
vectordotdev__vector__20422
vectordotdev/vector
20,422
defect
73d7caacb7ad8d28177291c49ebd8894eb5b666a
75acf9f1ba2a43aa2e4d3ca5371ba4785ef9be79
chore(config)!: Remove deprecated `--strict-env-vars` flag
<!-- **Your PR title must conform to the conventional commit spec!** <type>(<scope>)!: <description> * `type` = chore, enhancement, feat, fix, docs * `!` = OPTIONAL: signals a breaking change * `scope` = Optional when `type` is "chore" or "docs", available scopes https://github.com/vectordotdev/vector/...
diff --git a/changelog.d/remove_strict_env_vars.breaking.md b/changelog.d/remove_strict_env_vars.breaking.md new file mode 100644 index 0000000000000..9f2321d9f262e --- /dev/null +++ b/changelog.d/remove_strict_env_vars.breaking.md @@ -0,0 +1,5 @@ +The deprecated `--strict-env-vars` flag has been removed. has been chan...
3
3
0
[{"id": "G0", "claim": "The comment in src/config/vars.rs misspells \"unused\" as \"unusued\".", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The always-empty `warnings` variable should be removed if it is genuinely unused.", "category": "mainta...
null
vectordotdev__vector__20834
vectordotdev/vector
20,834
defect
0a72db7b74f935f4040d18273d4a78dedc25c5a1
b2d1f5a26bcf77bff9974fd5370f6c122c779390
feat(new sink): Add possibility to use nats jetstream in nats sink
<!-- **Your PR title must conform to the conventional commit spec!** <type>(<scope>)!: <description> * `type` = chore, enhancement, feat, fix, docs * `!` = OPTIONAL: signals a breaking change * `scope` = Optional when `type` is "chore" or "docs", available scopes https://github.com/vectordotdev/vector/...
diff --git a/src/sinks/nats/config.rs b/src/sinks/nats/config.rs index a9f52f4ec88c0..661c5ba3ef0aa 100644 --- a/src/sinks/nats/config.rs +++ b/src/sinks/nats/config.rs @@ -1,3 +1,4 @@ +use bytes::Bytes; use futures_util::TryFutureExt; use snafu::ResultExt; use vector_lib::codecs::JsonSerializerConfig; @@ -76,6 +77,...
8
5
0
[{"id": "G0", "claim": "Current async-nats no longer needs the manual flush after each publish, so the call can be dropped.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The jetstream field needs a descriptive doc comment instead of falling back on...
null
vectordotdev__vector__21331
vectordotdev/vector
21,331
defect
f99e052b54fc9c32731694f258b30360e28b68ac
a47b7e1187aa3cc50d8dcf0f407ca5b2c5363f83
enhancement(greptimedb): add optional new_naming strategy for greptimedb sink
This patch adds an option `new_naming` to use `greptime_value` and `greptime_timestamp` for value and timestamp fields, in order to keep consistency with greptime's convention. To maintain backward-compatibility, the new option is `false` by default. It will not affect any previous user.
diff --git a/changelog.d/21331-new-greptimedb-metric-option.enhancement.md b/changelog.d/21331-new-greptimedb-metric-option.enhancement.md new file mode 100644 index 0000000000000..800cf32d1ecf5 --- /dev/null +++ b/changelog.d/21331-new-greptimedb-metric-option.enhancement.md @@ -0,0 +1 @@ +Add an option `new_naming` t...
3
3
0
[{"id": "G0", "claim": "The new_naming description added in greptimedb.cue should use proper capitalization and punctuation (\"Greptime's\", \"GreptimeDB's\", sentence-ending periods).", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new_naming ...
null
vectordotdev__vector__21676
vectordotdev/vector
21,676
defect
b5de16c0c12d1c2270f54dd2d6aeef1ef3bdd25b
02b1240d1f62301809d07141dc43917ed78e5f5f
feat(elasticsearch sink): Support Amazon OpenSearch Serverless
## Summary The elasticsearch sink can now write to Amazon OpenSearch Serverless collections by signing requests with AWS Signature V4 algorithm, specifying the `aoss` service. ## Change Type - [ ] Bug fix - [X] New feature - [ ] Non-functional (chore, refactoring, docs) - [ ] Performance ## Is this a breakin...
diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt index ee59a88835c25..0771c8aaad929 100644 --- a/.github/actions/spelling/expect.txt +++ b/.github/actions/spelling/expect.txt @@ -6,6 +6,7 @@ amz amzn anchore andy +aoss apievent apipodspec apk @@ -605,6 +606,7 @@ wtime wtimeo...
2
2
0
[{"id": "G0", "claim": "The `aws_service` field on ElasticsearchCommon could be an enum instead of a String, to make invalid states unrepresentable.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hardcoded API version 8 used for OpenSearch Serverless...
null
vectordotdev__vector__21999
vectordotdev/vector
21,999
defect
1fe415263b5fc779a331730c7ca3684f47bb129a
5ebb457178a2a06439b26bd838284ffb12d60ccd
feat(aws_s3 sink): add option to use virtual addressing
<!-- Your PR title must conform to the conventional commit spec: https://www.conventionalcommits.org/en/v1.0.0/ <type>(<scope>)!: <description> * `type` = chore, enhancement, feat, fix, docs, revert * `!` = OPTIONAL: signals a breaking change * `scope` = Optional when `type` is "chore" or "docs", ...
diff --git a/changelog.d/21999-add-option-to-use-virtual-addressing.feature.md b/changelog.d/21999-add-option-to-use-virtual-addressing.feature.md new file mode 100644 index 0000000000000..5149bebb686aa --- /dev/null +++ b/changelog.d/21999-add-option-to-use-virtual-addressing.feature.md @@ -0,0 +1,3 @@ +Adds a `force_...
4
3
1
[{"id": "G0", "claim": "An integration test that uses the virtual addressing style should be added, since localstack supports it.", "category": "testing", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new documentation line should read that the bucket name is 'in the hostnam...
null
vectordotdev__vector__22148
vectordotdev/vector
22,148
defect
029a2ffc33c66fe1d8b755ad309b695317b1f542
292bc4a89b07451b7caeb784214ce07f6bdac6ed
feat(pulsar sink): support tls options
<!-- Your PR title must conform to the conventional commit spec: https://www.conventionalcommits.org/en/v1.0.0/ <type>(<scope>)!: <description> * `type` = chore, enhancement, feat, fix, docs, revert * `!` = OPTIONAL: signals a breaking change * `scope` = Optional when `type` is "chore" or "docs", ...
diff --git a/changelog.d/pulsar_sink_source_support_tls_options.feature.md b/changelog.d/pulsar_sink_source_support_tls_options.feature.md new file mode 100644 index 0000000000000..0761859b6b5b9 --- /dev/null +++ b/changelog.d/pulsar_sink_source_support_tls_options.feature.md @@ -0,0 +1,3 @@ +Tls options to set custom ...
4
4
3
[{"id": "G0", "claim": "The new PulsarTlsOptions struct should reuse the existing TLS config struct (lib/vector-core/src/tls/settings.rs) if the pulsar client supports the same options, or at the least match the existing option names (e.g. certificate_chain_file should be ca_file).", "category": "design", "verdict": "s...
null
vectordotdev__vector__22243
vectordotdev/vector
22,243
defect
681f08dc027e8b88e032cb86109bf52eff6b7ecf
26047bd2e18cca041d63aeb02ca1741c07aab628
feat(amqp sink): add priority property
<!-- Your PR title must conform to the conventional commit spec: https://www.conventionalcommits.org/en/v1.0.0/ <type>(<scope>)!: <description> * `type` = chore, enhancement, feat, fix, docs, revert * `!` = OPTIONAL: signals a breaking change * `scope` = Optional when `type` is "chore" or "docs", ...
diff --git a/changelog.d/add_priority_amqp_sink.enhancement.md b/changelog.d/add_priority_amqp_sink.enhancement.md new file mode 100644 index 0000000000000..ce0cb32c5a389 --- /dev/null +++ b/changelog.d/add_priority_amqp_sink.enhancement.md @@ -0,0 +1,3 @@ +Support was added for `priority` on the `amqp` sink, to set a ...
2
1
0
[{"id": "G0", "claim": "The priority property would ideally be a Template so it can be calculated dynamically per event, though parsing the template's string output to a uint would be error-prone for non-numeric or out-of-bounds results.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introd...
null
vectordotdev__vector__22274
vectordotdev/vector
22,274
defect
b4aaaa88fe96ef23d3e8c4e40a8c2045aa9f56c5
f175abac5c6a9558733caf03e861e6db8723c1cf
feat (sink: aws_cloudwatch_logs) #11185: Allow specifying a KMS key and tags for newly created AWS CloudWatch log groups.
<!-- Your PR title must conform to the conventional commit spec: https://www.conventionalcommits.org/en/v1.0.0/ <type>(<scope>)!: <description> * `type` = chore, enhancement, feat, fix, docs, revert * `!` = OPTIONAL: signals a breaking change * `scope` = Optional when `type` is "chore" or "docs", ...
diff --git a/Cargo.lock b/Cargo.lock index 37009f736e69a..19488e954b91a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -969,6 +969,28 @@ dependencies = [ "tracing 0.1.41", ] +[[package]] +name = "aws-sdk-kms" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "374513bec90...
1
1
0
[{"id": "G0", "claim": "Add rustdocs for the new configuration fields and then run `make generate-components-docs`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vectordotdev__vector__22678
vectordotdev/vector
22,678
defect
f5674617ad5d14186a092e379b8712bb9b8918ae
109ad337ed0d8b650dd7126f3960c139fdf3dd7e
enhancement(config): Implement components selection in diff.rs and tests
<!-- Your PR title must conform to the conventional commit spec: https://www.conventionalcommits.org/en/v1.0.0/ <type>(<scope>)!: <description> * `type` = chore, enhancement, feat, fix, docs, revert * `!` = OPTIONAL: signals a breaking change * `scope` = Optional when `type` is "chore" or "docs", ...
diff --git a/src/app.rs b/src/app.rs index 283ba707c8ae9..38b8547c13133 100644 --- a/src/app.rs +++ b/src/app.rs @@ -352,12 +352,7 @@ async fn handle_signal( ) .await; - reload_config_from_result( - topology_controller, - new_config, - ...
4
4
2
[{"id": "G0", "claim": "The `reuse_buffers` iterator catches the components that were initially supposed to be reloaded and therefore aren't; the author asks pront for a way to ensure those components are not present in this iterator.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intr...
null
vectordotdev__vector__22706
vectordotdev/vector
22,706
defect
2c038c3b2600c24520be6d8e63be0f6cb57de9c0
2347802c7784a630daabb57f42f7703ade4ee678
enhancement(http_client source): allow VRL in query parameters
## Summary <!-- Please provide a brief summary about what this PR does. This should help the reviewers give feedback faster and with higher quality. --> This PR adds support for VRL in query parameters within the http client source. This is useful for making GET requests with dynamic parameters e.g. a `start_tim...
diff --git a/.github/workflows/semantic.yml b/.github/workflows/semantic.yml index 40957c5c766059..9b202500a3e08b 100644 --- a/.github/workflows/semantic.yml +++ b/.github/workflows/semantic.yml @@ -145,7 +145,7 @@ jobs: gcp_pubsub source heroku_logs source host_metrics source - ...
8
5
4
[{"id": "G0", "claim": "Rename `process_query_value` to `evaluate_query_parameter` so the name says the function evaluates dynamic VRL expressions.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a test case for scenarios where the VRL expres...
null
vectordotdev__vector__23316
vectordotdev/vector
23,316
defect
64e26937616e5f71321a97d1e61beb297a96ac97
ebad14e10f0cbe74af7e658326ca9d47f84a8cab
chore(deps): Bump lapin from 2.5.3 to 4.3.0
Bumps [lapin](https://github.com/amqp-rs/lapin) from 2.5.3 to 3.0.0. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/amqp-rs/lapin/blob/main/CHANGELOG.md">lapin's changelog</a>.</em></p> <blockquote> <h3>3.0.0 (2025-06-12)</h3> <h4>Breaking changes</h4> <ul> <li><code>Erro...
diff --git a/Cargo.lock b/Cargo.lock index 5549a709bd580a..bf054bc69c438c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -139,23 +139,23 @@ checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" [[package]] name = "amq-protocol" -version = "7.2.1" +version = "8.1.2" source = "registry+https://g...
1
1
0
[{"id": "G0", "claim": "The `// This is a wrapper around an Arc, cloning is cheap` comment on the `status.clone()` line in the recycle error branch should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vectordotdev__vector__24170
vectordotdev/vector
24,170
defect
dc09a9a8f06c01897493f301522dbbf95225fcef
78468cfa76e8f7a114a5d7114df4d7c1cad1676f
enhancement(http_client source): add support for request body
## Summary <!-- Please provide a brief summary about what this PR does. This should help the reviewers give feedback faster and with higher quality. --> This PR allows a request body to be sent via the `http_client` source with additional support for VRL. ## Vector configuration <!-- Include Vector configuration...
diff --git a/changelog.d/14758_http_client_body.enhancement.md b/changelog.d/14758_http_client_body.enhancement.md new file mode 100644 index 0000000000000..247842fec66c4 --- /dev/null +++ b/changelog.d/14758_http_client_body.enhancement.md @@ -0,0 +1,3 @@ +The `http_client` source now supports the `body` parameter. VR...
6
5
2
[{"id": "G0", "claim": "The rewrite of base URI construction to fail fast instead of falling back to default scheme/authority is a breaking change for users of URLs like `url: example.com` without a protocol, and pront recommends splitting it out of this PR into its own PR with a dedicated changelog entry.", "category"...
null