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
XLSForm__pyxform__794
XLSForm/pyxform
794
defect
c2bf6bcf12887a92fd13adec677e05eb75e315b2
d89ec3d42ba66ad35c7ec902e2a2c20bb7a6701d
791: fix support for a source referencing an ancestor repeat target
Closes #791 #### Why is this the best possible solution? Were any other approaches considered? See commit messages for details. Considered keeping lowest_common_ancestor behaviour of identifying other node relationship types but the name of the function is about common ancestors and it's only used for that pur...
diff --git a/pyxform/survey.py b/pyxform/survey.py index e07c6060..8b3aaf71 100644 --- a/pyxform/survey.py +++ b/pyxform/survey.py @@ -113,8 +113,8 @@ def is_repeat(e: SurveyElement) -> bool: if reference_parent: # The LCAR may or may not be the closest ancestor repeat for source or target, # but...
1
1
0
[{"id": "G0", "claim": "The new tests for a source under a target repeat use default expressions like `${t}[1]/s` that reference an `s` which is not a direct child of the target repeat `t`, so the assertions are correct but confusingly point at non-existent nodes; the tests would benefit from referencing real nodes mat...
null
XLSForm__pyxform__801
XLSForm/pyxform
801
defect
8288ba5bbf0a438c993cc7c9e01cd1a0831f5513
90d2f8de8106f7d88bfa7f08010c02e6a0895b25
785: remove warning for group (or loop) without label
Closes #785 #### Why is this the best possible solution? Were any other approaches considered? See commit message for details. Generally simplifies the label check code, applies the change to both groups and loops, and improves test coverage to help avoid regressions about this requirement in future. As mentio...
diff --git a/pyxform/aliases.py b/pyxform/aliases.py index 017a5e14..ff440b2a 100644 --- a/pyxform/aliases.py +++ b/pyxform/aliases.py @@ -148,17 +148,6 @@ "FALSE": False, "false()": False, } -label_optional_types = [ - "calculate", - "deviceid", - "end", - "phonenumber", - "simserial", - "...
1
1
0
[{"id": "G0", "claim": "Since the no-label warning now applies only to repeats, the `row.get(constants.MEDIA) is None` check is redundant because repeats cannot have media, and it could be removed too.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
XLSForm__pyxform__827
XLSForm/pyxform
827
defect
689c67156667466c42019d5df5e293589b5cd924
88c9a22e1c26dd986a1fa88a285e4ed8600f73f0
fix: entity refs with n saveto/vars in different groups/scopes
Closes #822 Closes #823 Closes #825 Closes #826 #### Why is this the best possible solution? Were any other approaches considered? Satisfies existing tests and new cases from the bug reports. - addresses issues where: - savetos for one list were in multiple groups - variable refs were in multiple vali...
diff --git a/pyxform/entities/entities_parsing.py b/pyxform/entities/entities_parsing.py index 0940299d..6a619676 100644 --- a/pyxform/entities/entities_parsing.py +++ b/pyxform/entities/entities_parsing.py @@ -33,6 +33,9 @@ class ContainerPath: nodes: tuple[ContainerNode, ...] + def __str__(self): + ...
1
1
1
[{"id": "G0", "claim": "In the reviewer's allocation-order example (e1 declared before e2, e1's label referencing ${q1} in group g1, e2 having a saveto in g1), the new row-number-ordered allocator assigns e2 to the deeper container g2 before g1, so e1's label expression fails to resolve, whereas swapping the entities-s...
null
XPU-Forces__mojo_opset__10
XPU-Forces/mojo_opset
10
defect
3d57a88d11f7ed9f7a47b45f883abce08636f006
d5e464fae317e3958b2bab43988ebff719e1eb9c
add general APIs with ref forward and attr for TND/BNSD
**变更描述** * 新增通用API,完善forward_ref实现并明确输入布局 * 在`mojo_prefill_gqa.py`等文件中添加`forward_ref`方法。 * 明确`is_varlen`不同值对应的输入布局,不符则报错。 * 增加公式注释和参数校验。
diff --git a/example_models/mojo_qwen3_dense.py b/example_models/mojo_qwen3_dense.py index 42cec0e0b..5dbc9380e 100644 --- a/example_models/mojo_qwen3_dense.py +++ b/example_models/mojo_qwen3_dense.py @@ -166,17 +166,17 @@ def repeat_kv(hidden_states: torch.Tensor, n_rep: int) -> torch.Tensor: class Qwen3RMSNorm(n...
2
1
1
[{"id": "G0", "claim": "The added non-None assertions and float32 casts in forward_diff seem unnecessary and should be justified or dropped.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The Huawei-specific kv_layout attr should not live in the generic mo...
null
XPU-Forces__mojo_opset__127
XPU-Forces/mojo_opset
127
defect
9f850cb5c262d250b1819583fb68a9b5fd38f107
395beaa0a8726adb2f702fb98281d4163885cedb
feat: Add torch_npu ops to replace plugin
feat:Added TorchOps: npu_fused_infer_attention_score、npu_swiglu、npu_add_rms_norm、npu_quant_matmul_reduce_sum、npu_grouped_matmul, passes unit tests
diff --git a/mojo_opset/backends/torch_npu/operators/activation.py b/mojo_opset/backends/torch_npu/operators/activation.py index 640f2faa7..cc9299713 100644 --- a/mojo_opset/backends/torch_npu/operators/activation.py +++ b/mojo_opset/backends/torch_npu/operators/activation.py @@ -39,4 +39,4 @@ class TorchNpuSwiGLU(Mojo...
8
8
1
[{"id": "G0", "claim": "TorchNpuSwiGLU.forward was changed into an implementation identical to the torch reference, and the reviewer asks whether such torch-ref-identical ops can be omitted entirely since the fallback mechanism already covers them.", "category": "design", "verdict": "supported", "priority": "P2", "scop...
null
XPU-Forces__mojo_opset__156
XPU-Forces/mojo_opset
156
defect
77643c51a511c7eb654cc2e0682876441cc04ddc
b1af25ca2e21984a957ea02eb71a1315cf56a7df
Add mlu backend
* add mlu backend * add mlu perf * add mlu layernorm
diff --git a/mojo_opset/backends/__init__.py b/mojo_opset/backends/__init__.py index 436155f59..089ba20ae 100644 --- a/mojo_opset/backends/__init__.py +++ b/mojo_opset/backends/__init__.py @@ -3,8 +3,9 @@ platform = get_platform() -_SUPPORT_TTX_PLATFROM = ["npu"] +_SUPPORT_TTX_PLATFROM = ["npu", "mlu"] if platf...
15
8
5
[{"id": "G0", "claim": "The `import torch_npu` in mojo_opset/backends/ttx/kernels/utils.py is unused in this code and raises an error in the mlu environment, so it should be deleted.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The profiling loo...
null
XPU-Forces__mojo_opset__157
XPU-Forces/mojo_opset
157
defect
77643c51a511c7eb654cc2e0682876441cc04ddc
e1c1fdd839adf8253109df905d604579e83721bd
feat: add MOJO_DETERMINISTIC env var, refine RoPE.
- add MOJO_DETERMINISTIC env var, rmsnorm bwd pref result: shape = (640, 16384) dtype = torch.bfloat16 MOJO_DETERMINISTIC=1 latency: 152us MOJO_DETERMINISTIC=0 latency: 102us - refine RoPE When the half RoPE dimension satisfies the SRAM byte-alignment requirement, we use a more efficient extension API to perfor...
diff --git a/.github/workflows/ascend_accuracy_ci.yml b/.github/workflows/ascend_accuracy_ci.yml index 5e017bd1b..3311c4d3e 100644 --- a/.github/workflows/ascend_accuracy_ci.yml +++ b/.github/workflows/ascend_accuracy_ci.yml @@ -60,6 +60,11 @@ jobs: echo "ASCEND_RT_VISIBLE_DEVICES: $ASCEND_RT_VISIBLE_DEVICES...
3
2
1
[{"id": "G0", "claim": "The README's MOJO_DETERMINISTIC section should state that the variable currently only takes effect for the ttx backend.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A dedicated deterministic-computation test case (batch-i...
null
XPU-Forces__mojo_opset__192
XPU-Forces/mojo_opset
192
defect
adec54eb40ab8a378c6f0301b36b5fb7e462a027
015d558fec8ee02047c627f075aafc0b3db3e0bd
feat: support qkv & swiglu mlp parallel.
## 背景 为 M8 MoE 模型添加 TP8/EP8 分布式推理支持。M8 使用 GQA 注意力 + MoE FFN + shared expert 结构,分布式推理时需要: - 注意力层做 tensor parallel(Q 按 head 均分,KV 在 num_kv_heads < tp_size 时做 repeat) - MoE FFN 做 expert parallel(每个 rank 持有 1/8 的专家) - shared expert(MojoSwiGLUMLP)做 tensor parallel(fc1 按 gate/up 交错切分,fc2 按列切分) 在实现过程中,发现现有基础设施存在以下不足,...
diff --git a/mojo_opset/distributed/parallel/__init__.py b/mojo_opset/distributed/parallel/__init__.py index e11847eb6..8c040ca2e 100644 --- a/mojo_opset/distributed/parallel/__init__.py +++ b/mojo_opset/distributed/parallel/__init__.py @@ -1,6 +1,13 @@ -from .mojo_parallel import MojoRegisterableParallelStyle, MojoDis...
4
3
1
[{"id": "G0", "claim": "The new SwiGLU and QKV parallel styles should be integrated through the existing registration mechanism (registering a partition function and desired layouts) rather than derived subclasses that hand-roll their own apply plumbing.", "category": "design", "verdict": "supported", "priority": "P2",...
null
XPU-Forces__mojo_opset__200
XPU-Forces/mojo_opset
200
defect
5c157d9883acc2f1d0ccee79a69ff596569da6d3
adf8badc77bf7fd7c7eb8d7349bf557922903229
enhance:move runtime utils from modeling
## Summary - reorganize `mojo_opset/modeling` into model-specific packages: `seed_oss`, `qwen3`, and `deepseekv3` - move the corresponding modeling files into the new subdirectories and update example, test, and README references - keep `mojo_opset.modeling` as a plain package so imports follow the directory structu...
diff --git a/README.md b/README.md index 2c6ff1707..0613f0828 100644 --- a/README.md +++ b/README.md @@ -133,12 +133,12 @@ You can build the model using Mojo Opset in the following ways: 1. Build model from mojo opset - You can also build your modeling by mojo opset directly, [Mojo qwen3 dense modeling](./mojo_...
1
1
0
[{"id": "G0", "claim": "The nested if-statement checking args.model_path and the QWEN3_MODEL_PATH environment variable can be combined into a single condition to improve readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
XPU-Forces__mojo_opset__242
XPU-Forces/mojo_opset
242
defect
813d66f630780008976aa8c09ea02d9cfee7b3bd
9bf11d24ec2832b0fa1e0434d0bb54e4881a9643
feat: support out-of-tree plugins autoloading
Support out-of-tree plugins autoloading like torch & torch_npu.[Ref](https://github.com/meta-pytorch/torchcodec/pull/1151) Made with gpt5.4
diff --git a/mojo_opset/__init__.py b/mojo_opset/__init__.py index 7172a2fa4..d4c0808e9 100755 --- a/mojo_opset/__init__.py +++ b/mojo_opset/__init__.py @@ -10,3 +10,36 @@ with rewrite_assertion(__name__): from mojo_opset.backends import * from mojo_opset.core import * + + +def _is_plugin_autoload_enabled() ...
1
1
0
[{"id": "G0", "claim": "Changing the log level from debug to info for every operator registration causes log noise during module initialization, and granular registration details should stay at the debug level.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
XPU-Forces__mojo_opset__246
XPU-Forces/mojo_opset
246
defect
01c9eee5ac5c5ab55414b682c6d36787c62cff8f
77cec0e76474b113372ab0b27c9a98d2cbe9d58b
[ilu/ixformer] Add IxformerPagedPrefillGQA and IxformerPagedDecodeGQA…
On iluvatar platform, add the ixformer backend operator IxformerPagedPrefillGQA and IxformerPagedDecodeGQA . Several points warrant attention: (1)To achieve higher performance, it can eliminate some redundant operations in the forward pass. For example, precomputing max_context_len as mentioned in the PR. Anthor pot...
diff --git a/mojo_opset/backends/ixformer/operators/attention.py b/mojo_opset/backends/ixformer/operators/attention.py new file mode 100644 index 000000000..a5856fb3d --- /dev/null +++ b/mojo_opset/backends/ixformer/operators/attention.py @@ -0,0 +1,251 @@ +from __future__ import annotations + +from typing import Optio...
9
8
5
[{"id": "G0", "claim": "The forward signature of IxformerPagedPrefillGQA is incompatible with the base class MojoPagedPrefillGQA (block_tables is the 8th positional argument instead of the 5th, and cu_seqlens_kv/max_seqlen_q/max_seqlen_k are not part of the base positional arguments), which will cause a TypeError or in...
null
XPU-Forces__mojo_opset__254
XPU-Forces/mojo_opset
254
defect
01c9eee5ac5c5ab55414b682c6d36787c62cff8f
b04e87b0006c5aa542ba5cfbb78f8a615b27a376
Expose backend registry accessors
## Summary - add public registry/backend implementation accessors to MojoOperator and MojoFunction - normalize requested backend names before lookup - support meta_device fallback priority and cover public API dispatch tests ## Validation - python -m pytest mojo_opset/tests/base/test_backend_dispatch.py - python -m co...
diff --git a/mojo_opset/core/backend_registry.py b/mojo_opset/core/backend_registry.py index 895cd5bac..b4e1fe9b5 100644 --- a/mojo_opset/core/backend_registry.py +++ b/mojo_opset/core/backend_registry.py @@ -13,6 +13,7 @@ "npu": ["ttx", "torch_npu", "torch"], "ilu": ["ixformer", "ttx", "torch"], "mlu": ...
2
1
1
[{"id": "G0", "claim": "The get_registry and get_backend_impl methods added identically to MojoOperator and MojoFunction should be moved to a common base class or mixin to adhere to the DRY principle.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
XPU-Forces__mojo_opset__269
XPU-Forces/mojo_opset
269
defect
25d099f48c608cf1769070e623aab51daaf6ad7f
99e17c777fc5962158b85737e34d9050152b90b5
[ilu/ixformer] Add PA(prefill/decode) cudagraph implement, SWA(prefill/decode) both eager and cudagraph supported.
Ixformer backend on iluvatar platform, these ops supported: 1.Paged SWA(Sliding Window Attention), developed from the Paged Attention. 2.CudaGraph inference for both PA and SWA.
diff --git a/mojo_opset/backends/ixformer/operators/attention.py b/mojo_opset/backends/ixformer/operators/attention.py index 6f327dac8..f3248618a 100644 --- a/mojo_opset/backends/ixformer/operators/attention.py +++ b/mojo_opset/backends/ixformer/operators/attention.py @@ -10,7 +10,9 @@ from ixformer.contrib import vll...
5
2
1
[{"id": "G0", "claim": "The .item()/.any() checks inside the forward path trigger host-device synchronization when the tensors are on GPU, which is incompatible with CUDA Graph capture and will cause capture to fail or significantly impact performance, so these data-dependent checks should be avoided during graph captu...
null
XPU-Forces__mojo_opset__272
XPU-Forces/mojo_opset
272
defect
39ba5bc29546a79f180e110a5a6f2b4ce856c555
66d4b43f5b47c3aebae2a944b2a792c1867ea06b
fix: fix semantics of quant-linear and quant-moe
* rename DynamicQuantize's smooth_scale to inv_smooth_scale * refactor gemm_dequant and quant_moe
diff --git a/mojo_opset/core/__init__.py b/mojo_opset/core/__init__.py index 9fc35bbb2..c11dc4bc2 100644 --- a/mojo_opset/core/__init__.py +++ b/mojo_opset/core/__init__.py @@ -44,6 +44,7 @@ from .operators.gemm import MojoGroupGemm as MojoGroupLinear from .operators.gemm import MojoQuantGroupLinearReduceSum from .o...
2
2
1
[{"id": "G0", "claim": "The pull request removed the append of an empty tensor for token-less experts in both forward loops of MojoQuantExperts, so if all experts receive no tokens the result list is empty and torch.cat can crash; empty tensors should flow through (be appended) instead of being skipped.", "category": "...
null
XPU-Forces__mojo_opset__284
XPU-Forces/mojo_opset
284
defect
c220acff29a64750b19f2227cafcec4125363431
f94feeb06e4940c7fb6784b1d31212552c74ae06
[ilu/ttx] Add CUDAGraph implements for PA and SWA.
On Iluvatar backend,PagedAttention with CUDAGraph implements added.
diff --git a/mojo_opset/backends/ttx/kernels/__init__.py b/mojo_opset/backends/ttx/kernels/__init__.py index 2c9f8f167..a17f12ceb 100644 --- a/mojo_opset/backends/ttx/kernels/__init__.py +++ b/mojo_opset/backends/ttx/kernels/__init__.py @@ -230,9 +230,13 @@ def paged_attention_prefill( gqa_interleave: bool, ...
3
2
1
[{"id": "G0", "claim": "The `l_safe = tl.where(q_valid, l_i, 1.0)` logic can still divide by zero: if `q_valid` is true but `l_i` is 0 (all attention scores masked), `l_safe` is 0 and `acc / l_safe` produces NaN; `l_safe` should be chosen by whether `l_i` is positive.", "category": "correctness", "verdict": "supported"...
null
XPU-Forces__mojo_opset__287
XPU-Forces/mojo_opset
287
defect
271eaedb0659be44e40aef419039d93e21ae1636
75a15a149b0c211dc42aeddfaab6ce0afa5c95cd
feat & breaking change: Refactor paged KV store to chunk metadata
改善 store paged kv cache triton后端的性能, 分核逻辑改变, 避免 纯 decode/pd混合 下的overhead warning: 涉及到 MojoStorePagedKVCache 接口的改变 性能提升: 对于prefill batch而言, 提升大约3%, 对于decode提升很明显, 70%左右
diff --git a/mojo_opset/backends/ttx/kernels/__init__.py b/mojo_opset/backends/ttx/kernels/__init__.py index 2c9f8f167..7952729e9 100644 --- a/mojo_opset/backends/ttx/kernels/__init__.py +++ b/mojo_opset/backends/ttx/kernels/__init__.py @@ -777,18 +777,14 @@ def store_paged_kv( value_states: torch.Tensor, ...
9
4
0
[{"id": "G0", "claim": "The four per-chunk scalar tl.load calls for chunk metadata in the ttx ilu and npu kernels should be vectorized into a single load to reduce the number of load instructions and improve memory-access efficiency.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "intro...
null
XPU-Forces__mojo_opset__300
XPU-Forces/mojo_opset
300
defect
937e8c74ddc6da8efff02aa0ff37c0bae9933763
d97caa5af74e7a94c9aef94777f01f84035cff41
[ilu/ixformer] Support ixformer quant paged prefill via F16 flash att…
…ention [ilu/ixformer] only dequantize used KV cache blocks in paged prefill quant swa [ilu/ixformer] Optimize kv cache dequantization functions
diff --git a/mojo_opset/backends/ixformer/operators/attention.py b/mojo_opset/backends/ixformer/operators/attention.py index 997c1439d..5af8209b4 100644 --- a/mojo_opset/backends/ixformer/operators/attention.py +++ b/mojo_opset/backends/ixformer/operators/attention.py @@ -12,6 +12,8 @@ from mojo_opset.core import Mojo...
6
2
0
[{"id": "G0", "claim": "The per-batch Python loops that populate the `keep` mask in `_swa_window_block_ids` should be vectorized with PyTorch ops, without pre-computing full mapping matrices, to improve performance.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
XPU-Forces__mojo_opset__307
XPU-Forces/mojo_opset
307
defect
bec95db91a1bcfcbac1281875571e5061e9fc343
73b76c10b2d294ede7807c8ce2967c0f5c8621f0
[ilu/ttx] opt ilu triton n gram prefill and decode impl
Vectorize G Dimension — One Program per Token Eliminate Prefill Host-Side Precomputation via In-Kernel Binary Search
diff --git a/mojo_opset/backends/ttx/kernels/ilu/over_encoding/n_gram.py b/mojo_opset/backends/ttx/kernels/ilu/over_encoding/n_gram.py index 123c01253..c0ea52bc8 100644 --- a/mojo_opset/backends/ttx/kernels/ilu/over_encoding/n_gram.py +++ b/mojo_opset/backends/ttx/kernels/ilu/over_encoding/n_gram.py @@ -13,9 +13,9 @@ ...
2
1
0
[{"id": "G0", "claim": "The host-side precomputation of batch_ids and seq_positions in n_gram_prefill_impl is now redundant because the kernel determines batch index and sequence position by its own binary search, so removing these unused tensors would save GPU memory and reduce host-side overhead during prefill.", "ca...
null
XPU-Forces__mojo_opset__311
XPU-Forces/mojo_opset
311
defect
3591a3ade0ebd1cd8a89dbbfb0452016619f274e
ae935982ed0ea0d5bec9e19c7a0472ce4efc7381
[ilu/ixformer] IxformerPagedPrefillGQAWithKVDequant/IxformerPagedPref…
…illSWAWithKVDequant dequant part use ixformer kernel.
diff --git a/mojo_opset/backends/ixformer/operators/attention.py b/mojo_opset/backends/ixformer/operators/attention.py index 2ed993ebe..ead0e622d 100644 --- a/mojo_opset/backends/ixformer/operators/attention.py +++ b/mojo_opset/backends/ixformer/operators/attention.py @@ -22,131 +22,73 @@ {32, 64, 80, 96, 128, 160...
4
2
1
[{"id": "G0", "claim": "The dequantization call hardcodes scale_layout to PAGED_KV_SCALE_LAYOUT_PER_CHANNEL, so per-token quantization scales that _check_int8_paged_kv_cache allows would fail or produce incorrect results; scale_layout should be determined dynamically from the dimensionality of the scale tensor.", "cate...
null
XPU-Forces__mojo_opset__75
XPU-Forces/mojo_opset
75
defect
e72b0c96cb5bc45d628b27497758ff0dbcaa3a6a
50d0b0fa95a07740f00d7aef2540f75f66814c2c
feat: add reject sampling, magic reject sampling and join-prob reject sampling.
1. Impl reject sampler & join-prob reject sampler 2. impl triton version for this two reject sampler 3. add accuary & perf test for reject sampler & join prob sampler
diff --git a/mojo_opset/backends/reference/operators/sampling.py b/mojo_opset/backends/reference/operators/sampling.py index 03187debc..ceb349917 100644 --- a/mojo_opset/backends/reference/operators/sampling.py +++ b/mojo_opset/backends/reference/operators/sampling.py @@ -10,6 +10,8 @@ from mojo_opset.core import Mojo...
3
1
0
[{"id": "G0", "claim": "The mojo operators' fwd-diff utility already resets the seed automatically before the two functions, so the test's manual torch.manual_seed(42) seeding may be unnecessary.", "category": "testing", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The triton...
null
XPU-Forces__mojo_opset__96
XPU-Forces/mojo_opset
96
defect
e888fe571acf5929d674a59e9634e3261b6f1930
f46b6e4bbde2c9bc74d0cad6fd347f577addbc61
feat: add causal_conv1d_update_bdt ttx and torch backend kernel for inference BDT layout
1. Add causal_conv1d_update_kernel_bdt_fwd TTX kernel for BDT input layout 2. Add accuracy UT test for this kernel 3. Optimzed the kernel to reach 1.0-1.2x speedup compare to single op
diff --git a/mojo_opset/backends/ttx/kernels/npu/__init__.py b/mojo_opset/backends/ttx/kernels/npu/__init__.py index aad09f854..d92fa6b75 100644 --- a/mojo_opset/backends/ttx/kernels/npu/__init__.py +++ b/mojo_opset/backends/ttx/kernels/npu/__init__.py @@ -1,3 +1,4 @@ +from .convolution import causal_conv1d_update_bdt_...
3
1
0
[{"id": "G0", "claim": "The reviewer asks whether the kernel's block sizes (hard-coded T_CHK_SIZE capped at 512 and D_CHK_SIZE = 16) could be made larger.", "category": "performance", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should also add a perf test.", "...
null
XRPLF__rippled__4352
XRPLF/rippled
4,352
defect
ebbf4b64a57d2673d54a6b25def7726601d99bf9
0fe0afbc55f08a54d447a39a84c97b4bd28e23a0
Add NFTokenPages to account_objects RPC
<!-- This PR template helps you to write a good pull request description. Please feel free to include additional useful information even beyond what is requested below. --> ## High Level Overview of Change Fix #4347 NFTokenPages consume owner count and therefore should be returned by the `account_objects` RPC...
diff --git a/src/ripple/rpc/handlers/AccountObjects.cpp b/src/ripple/rpc/handlers/AccountObjects.cpp index 6424c3afd3a..687b8717970 100644 --- a/src/ripple/rpc/handlers/AccountObjects.cpp +++ b/src/ripple/rpc/handlers/AccountObjects.cpp @@ -204,6 +204,7 @@ doAccountObjects(RPC::JsonContext& context) } static c...
6
5
2
[{"id": "G0", "claim": "The code dereferences the optional npm without checking whether it is set (ck = *npm), and that dereference must be guarded.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The comment ('we do this by shifting the accountid le...
null
XRPLF__rippled__4459
XRPLF/rippled
4,459
defect
8687b5c3c993a89ff9a1731e187b99ef71616701
6fe82114a558a850dda651235898fd6129d7b6da
Parse flags in account_info method
## High Level Overview of Change This PR resolves #2457. It adds an object `account_flags` at the top level of the [account_info response](https://xrpl.org/account_info.html). This new object contains relevant flags of an account. ### Context of Change ``` ./ripped account_info rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633...
diff --git a/src/ripple/protocol/jss.h b/src/ripple/protocol/jss.h index 1c5bf8463b0..3932349c82a 100644 --- a/src/ripple/protocol/jss.h +++ b/src/ripple/protocol/jss.h @@ -114,6 +114,7 @@ JSS(account); // in/out: many JSS(accountState); // out: LedgerToJson JSS(accountTreeHash); // ou...
2
2
2
[{"id": "G0", "claim": "The account_info flag parsing needs to support the new DisallowIncoming flags.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The DisallowIncoming flags should only be returned in the account_flags response when the DisallowI...
null
XRPLF__rippled__4703
XRPLF/rippled
4,703
defect
f259cc1ab6ed4e59a35b153a4225bc953050bf5b
1607c559d5136106c942b7cc41b6a5162c802425
Add RPC for `server_definitions` to rippled
## High Level Overview of Change Add a new RPC / WS call: `server_definitions`, which returns an SDK-compatible `definitions.json` generated from the `rippled` instance currently running. This will alleviate definitions juggling, especially with side chains which may have exotic features and serialized fields. Softw...
diff --git a/src/ripple/app/main/Main.cpp b/src/ripple/app/main/Main.cpp index 0ce8b085971..fd56c8e9179 100644 --- a/src/ripple/app/main/Main.cpp +++ b/src/ripple/app/main/Main.cpp @@ -169,6 +169,7 @@ printHelp(const po::options_description& desc) " peer_reservations_list\n" " ripple ......
30
24
2
[{"id": "G0", "claim": "The `namesAndTypes_` map in KnownFormats should go: its accessor returns an unnecessary copy, its `char const*` keys are not guaranteed to stay valid after `add` returns, and iterating the `KnownFormats` instance itself gives all the needed information.", "category": "correctness", "verdict": "s...
null
XRPLF__rippled__5096
XRPLF/rippled
5,096
defect
cc0177be8712ca367134aa6599b7328bbc5e6bc5
a8a21bfe4c00ef79802d0b92f44463092bd39e91
updates to book_changes RPC command
<!-- This PR template helps you to write a good pull request description. Please feel free to include additional useful information even beyond what is requested below. If your branch is on a personal fork and has a name that allows it to run CI build/test jobs (e.g. "ci/foo"), remember to rename it BEFORE openi...
diff --git a/src/test/rpc/BookChanges_test.cpp b/src/test/rpc/BookChanges_test.cpp new file mode 100644 index 00000000000..55ffae4d641 --- /dev/null +++ b/src/test/rpc/BookChanges_test.cpp @@ -0,0 +1,103 @@ +//------------------------------------------------------------------------------ +/* + This file is part of r...
3
2
1
[{"id": "G0", "claim": "BookChanges.h is missing required include directives and should include them directly rather than relying on transitive includes.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The switch from getLedgerByContext to look...
null
XRPLF__rippled__5825
XRPLF/rippled
5,825
defect
0fd2f715bbe9d45a81bc6163cc24f25447dadbf3
3db5026d4777f14be579b7efac0462d444821a15
fix permission delegation vulnerability
- New Amendment: Introduces the `featurePermissionDelegationV1_1` amendment. - Amendment Replacement: This new amendment is designed to supersede both `featurePermissionDelegation` and `fixDelegateV1_1`, which should be considered deprecated. - Error Code Correction: The checkPermission function will now return `...
diff --git a/include/xrpl/protocol/TER.h b/include/xrpl/protocol/TER.h index 9ace6b80f8b..f2c1eaff156 100644 --- a/include/xrpl/protocol/TER.h +++ b/include/xrpl/protocol/TER.h @@ -225,8 +225,9 @@ enum TERcodes : TERUnderlyingType { terQUEUED, // Transaction is being held in TxQ until fee drops terPRE_T...
11
4
2
[{"id": "G0", "claim": "The AccountDelete feature guard was changed from uint256{} to featureDeletableAccounts, so delegation behavior across the feature boundary should be verified.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Returning terNO_DELEG...
null
XRPLF__rippled__5857
XRPLF/rippled
5,857
defect
5d79bfc5317093b00b787dfd5e50ce3bee1de0ca
fd178c550b434534209d84e700ffa0c7ebdfca74
Enforce reserve when creating trust line or MPToken in `VaultWithdraw`
<!-- This PR template helps you to write a good pull request description. Please feel free to include additional useful information even beyond what is requested below. If your branch is on a personal fork and has a name that allows it to run CI build/test jobs (e.g. "ci/foo"), remember to rename it BEFORE openi...
diff --git a/src/test/app/Vault_test.cpp b/src/test/app/Vault_test.cpp index 159bfd07963..cb91cd254b1 100644 --- a/src/test/app/Vault_test.cpp +++ b/src/test/app/Vault_test.cpp @@ -1888,6 +1888,37 @@ class Vault_test : public beast::unit_test::suite env(tx, ter(tecNO_AUTH)); } + ...
8
7
2
[{"id": "G0", "claim": "The new test case should derive its XRP amounts from the ledger's accountReserve and increment (e.g. acctReserve + (incReserve - 1) or something similar) instead of hardcoded values.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
XRPLF__rippled__6134
XRPLF/rippled
6,134
defect
f059f0beda746b444d191a207b343ac457fd58db
04df32104379afa0a5ceb8502f8bc3a2345b2084
Fix invariant checks for Permissioned Domains
## High Level Overview of Change Fixed typo in invariant checks, found by Immunefi ### Type of Change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to no...
diff --git a/include/xrpl/protocol/detail/features.macro b/include/xrpl/protocol/detail/features.macro index 5c8d2aa1985..54294ca0c11 100644 --- a/include/xrpl/protocol/detail/features.macro +++ b/include/xrpl/protocol/detail/features.macro @@ -15,7 +15,7 @@ // Add new amendments to the top of this list. // Keep it...
8
7
3
[{"id": "G0", "claim": "sleStatus_ should be a vector rather than a pair of optionals, in case more than one permissioned domain is affected by a transaction; if that is supposed to be impossible, finalize should check sleStatus_.size() > 1 as one of its first checks.", "category": "correctness", "verdict": "supported"...
null
XRPLF__rippled__6151
XRPLF/rippled
6,151
defect
5e808794d875b9ea3fe894d17995a6f348dea148
10fdbf269313df7f64d052522363ddf8075af5af
fix: Fix ubsan flagged issues
## High Level Overview of Change Fix UBSan-flagged unsigned integer overflow issues in rippled source code and clean up the ubsan.supp suppressions file by replacing broad per-file suppressions with targeted ones. **Depends on:** [#5996](https://github.com/XRPLF/rippled/pull/5996) (Add sanitizers to CI builds) ### C...
diff --git a/.github/scripts/strategy-matrix/generate.py b/.github/scripts/strategy-matrix/generate.py index 0e44b1be54e..0c095cd0caa 100755 --- a/.github/scripts/strategy-matrix/generate.py +++ b/.github/scripts/strategy-matrix/generate.py @@ -242,21 +242,23 @@ def generate_strategy_matrix(all: bool, config: Config) -...
19
15
3
[{"id": "G0", "claim": "In the new adjustCounter helper the else-branch subtracts the negation of n (counter -= static_cast<std::size_t>(-n)), which looks the same as an addition - the reviewer questions whether this arithmetic is right.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope"...
null
XRPLF__rippled__6217
XRPLF/rippled
6,217
defect
96d17b7f664e593fb8e7c10dfa65a3d655a1011d
aa12210fcd504f501388266d9a9e030fb4fd7f0d
Add rounding to Vault invariants
This PR relaxes Vault Deposit, Withdraw and Clawback invariants for IOUs to allow minimal discrepancy between various balance changes. <!-- This PR template helps you to write a good pull request description. Please feel free to include additional useful information even beyond what is requested below. If your...
diff --git a/src/test/app/Invariants_test.cpp b/src/test/app/Invariants_test.cpp index 9f70538778d..8051ab1cbe9 100644 --- a/src/test/app/Invariants_test.cpp +++ b/src/test/app/Invariants_test.cpp @@ -20,6 +20,11 @@ #include <boost/algorithm/string/predicate.hpp> +#include "xrpld/app/tx/detail/InvariantCheck.h" + ...
8
7
3
[{"id": "G0", "claim": "Round-to-nearest could round vaultDeltaAssets up while tx[sfAmount] is not rounded, so a still-valid deposit could fail the invariant; the reviewer suggests rounding both values.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
XRPLF__rippled__6374
XRPLF/rippled
6,374
defect
db2734cbc96329f64c23ea68fadc2fc898696510
7822b9733b8a2c1f7b320f26f84defce274e6e83
feat: Add GRPC TLS support
<!-- This PR template helps you to write a good pull request description. Please feel free to include additional useful information even beyond what is requested below. If your branch is on a personal fork and has a name that allows it to run CI build/test jobs (e.g. "ci/foo"), remember to rename it BEFORE openi...
diff --git a/cfg/xrpld-example.cfg b/cfg/xrpld-example.cfg index 995d4e65ffc..549cc646ff1 100644 --- a/cfg/xrpld-example.cfg +++ b/cfg/xrpld-example.cfg @@ -1416,6 +1416,10 @@ # in this section to a comma-separated list of the addresses # of your Clio servers, in order to bypass xrpld's rate limiting. # ...
18
14
8
[{"id": "G0", "claim": "The temporary directory name is based on std::time(nullptr) at seconds resolution, which can collide under parallel test execution or rapid re-runs and cause flaky failures; prefer a higher-entropy unique directory name.", "category": "testing", "verdict": "supported", "priority": "P2", "scope":...
null
XRPLF__rippled__6635
XRPLF/rippled
6,635
defect
8b986e4ab0bceae1310f10ee43bcbce35034f4c6
73cea92a527e43cfc65e56f8c98fbdbe8f1065c8
fix: Prevent deletion of MPTokens with active escrow
<!-- This PR template helps you to write a good pull request description. Please feel free to include additional useful information even beyond what is requested below. If your branch is on a personal fork and has a name that allows it to run CI build/test jobs (e.g. "ci/foo"), remember to rename it BEFORE openi...
diff --git a/src/libxrpl/ledger/helpers/MPTokenHelpers.cpp b/src/libxrpl/ledger/helpers/MPTokenHelpers.cpp index cbf37a06a86..296caf1e8bc 100644 --- a/src/libxrpl/ledger/helpers/MPTokenHelpers.cpp +++ b/src/libxrpl/ledger/helpers/MPTokenHelpers.cpp @@ -153,7 +153,8 @@ authorizeMPToken( { auto cons...
6
6
2
[{"id": "G0", "claim": "The change must be gated behind a new fix amendment (e.g. fixSecurity_1_3_1) because the affected behaviour has already been released with Supported::yes.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add blank lines around ...
null
XRPLF__rippled__6644
XRPLF/rippled
6,644
defect
2c765f6eb090866a5225257b2fd374ee6f652460
e5b2d9a682a01c24468e9a519c18d2c6d0801727
fix: Enforce aggregate MaximumAmount in multi-send MPT
rippleSendMultiMPT used a read-only SLE snapshot (view.read) to check MaximumAmount per iteration. Since rippleCreditMPT updates a separate mutable copy (view.peek), the snapshot's sfOutstandingAmount was stale after the first iteration, allowing the aggregate to exceed MaximumAmount. Replace the per-iteration check...
diff --git a/src/libxrpl/ledger/helpers/TokenHelpers.cpp b/src/libxrpl/ledger/helpers/TokenHelpers.cpp index 9eb1b4bf11d..36912e78c86 100644 --- a/src/libxrpl/ledger/helpers/TokenHelpers.cpp +++ b/src/libxrpl/ledger/helpers/TokenHelpers.cpp @@ -1155,57 +1155,74 @@ rippleSendMultiMPT( beast::Journal j, WaiveTr...
11
4
3
[{"id": "G0", "claim": "Because the pre-fix code reads sfOutstandingAmount from a never-updated view.read() snapshot, aggregate issuance can exceed MaximumAmount on multi-destination sends; ensure fixSecurity3_1_3 is activated promptly on production networks, audit other multi-destination send paths (e.g. accountSendMu...
null
XRPLF__rippled__6645
XRPLF/rippled
6,645
defect
2c765f6eb090866a5225257b2fd374ee6f652460
cdecd5d36da5a941c6393162815d253958f7494c
fix: Check trustline limits for share-denominated vault withdrawals
VaultWithdraw preclaim skipped the canWithdraw trustline limit check when the withdrawal amount was specified in shares (MPT) rather than assets. Convert shares to the equivalent asset amount before calling canWithdraw so that the destination's trustline limit is enforced regardless of denomination. Gated behind fix...
diff --git a/src/libxrpl/tx/transactors/vault/VaultWithdraw.cpp b/src/libxrpl/tx/transactors/vault/VaultWithdraw.cpp index e4c671b4624..8c85b6d78fa 100644 --- a/src/libxrpl/tx/transactors/vault/VaultWithdraw.cpp +++ b/src/libxrpl/tx/transactors/vault/VaultWithdraw.cpp @@ -43,10 +43,10 @@ VaultWithdraw::preclaim(Preclai...
6
4
2
[{"id": "G0", "claim": "Verify that `sharesToAssetsWithdraw` rounds up (conservative) when the share-denominated amount is converted for the trustline check — rounding down could allow a boundary-case withdrawal that slightly exceeds the trust-line limit post-amendment.", "category": "correctness", "verdict": "uncertai...
null
XRPLF__rippled__6646
XRPLF/rippled
6,646
defect
2c765f6eb090866a5225257b2fd374ee6f652460
1dbf8dd62a36a4e53792ee5a35ab918849054f41
fix: Clamp VaultClawback to assetsAvailable for zero-amount clawback
Zero-amount clawback (meaning "clawback all") returned early without clamping to assetsAvailable, allowing more assets to be recovered than available when there was an outstanding loan. Move the zero-amount path inside the try block so it shares the same clamping logic as non-zero clawback. The old early-return beha...
diff --git a/src/libxrpl/tx/transactors/vault/VaultClawback.cpp b/src/libxrpl/tx/transactors/vault/VaultClawback.cpp index a650aed310a..d70c78b3139 100644 --- a/src/libxrpl/tx/transactors/vault/VaultClawback.cpp +++ b/src/libxrpl/tx/transactors/vault/VaultClawback.cpp @@ -13,6 +13,7 @@ #include <xrpl/tx/transactors/va...
9
4
1
[{"id": "G0", "claim": "setupVault re-memoizes the account under the same name \"vault\" on every call, silently overwriting prior entries, and should use a unique name per call (e.g. include the keylet key).", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
XRPLF__rippled__6712
XRPLF/rippled
6,712
defect
02fa55df8d13be61d2d66e5c1905a0883d404d7d
54b4919f0c297a82bb452183cf182c45597022b6
fix: Disallow MPTClearRequireAuth if is set
- If domain exists, issuer MUST never clear the `RequireAuth` flag for MPT. - some `XRPL_ASSERT` should not replaced by returning tefINTERNAL to avoid node crash when new features added in the future. <!-- This PR template helps you to write a good pull request description. Please feel free to include additional ...
diff --git a/src/libxrpl/ledger/helpers/MPTokenHelpers.cpp b/src/libxrpl/ledger/helpers/MPTokenHelpers.cpp index 31c1d543f59..8b44e54e597 100644 --- a/src/libxrpl/ledger/helpers/MPTokenHelpers.cpp +++ b/src/libxrpl/ledger/helpers/MPTokenHelpers.cpp @@ -332,9 +332,10 @@ requireAuth( auto const maybeDomainID = sleIs...
3
2
1
[{"id": "G0", "claim": "Changing the asserts to returning `tefINTERNAL` is a consensus-visible behaviour change that requires an amendment.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer is wary of replacing the assert with a check that...
null
XRPLF__rippled__6724
XRPLF/rippled
6,724
defect
42cbecb9e40aa71b3d9b214cffb00d3870616d1b
978b027aa22f85558c95f17c19a7e1c6bb314086
Fix STJson and multiple emitted transactions
## High Level Overview of Change This PR updates the `xrplf/smart-contracts` branch to a) avoid crashing client listeners when they receive non-UTF-8 characters (by displaying STJson keys as hex instead of decoding the hex) and b) properly handle multiple emitted txns from the same `ContractCall` tx. ### Context ...
diff --git a/include/xrpl/tx/wasm/ContractContext.h b/include/xrpl/tx/wasm/ContractContext.h index 8c214057843..a66bfed6fa8 100644 --- a/include/xrpl/tx/wasm/ContractContext.h +++ b/include/xrpl/tx/wasm/ContractContext.h @@ -1,5 +1,6 @@ #pragma once +#include <xrpl/ledger/OpenView.h> #include <xrpl/ledger/Sandbox.h...
5
2
1
[{"id": "G0", "claim": "The failure log prints `contractCtx.result.exitCode`, which is initialized to -1 and never set on this codepath, making the log misleading; it should log `ret` (and/or the exit reason) instead.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ...
null
XRPLF__rippled__6815
XRPLF/rippled
6,815
defect
f85b917acef587ccb9284518941d294437567825
2b5cddfbd31db1553ff1d64f64c961883d66bf71
release: Add various fixes - part 2
This change adds the commits from the following PRs into the 3.1.3 staging branch: * [fix: removeEmptyHolding / authorizeMPToken Delete MPToken With Active Escrow (sfLockedAmount > 0) #6635](https://github.com/XRPLF/rippled/pull/6635) * [fix: Check trustline limits for share-denominated vault withdrawals #6645](htt...
diff --git a/.github/scripts/levelization/results/ordering.txt b/.github/scripts/levelization/results/ordering.txt index e17bd14bbc0..6c42159102c 100644 --- a/.github/scripts/levelization/results/ordering.txt +++ b/.github/scripts/levelization/results/ordering.txt @@ -93,6 +93,7 @@ test.overlay > test.toplevel test.ov...
5
3
0
[{"id": "G0", "claim": "With fixSecurity3_1_3 disabled, LoanManage's noop (no-flags) path no longer calls associateAsset, which may be a legacy-path behavior change affecting ledger replay/metadata; the reviewers ask to restore the associateAsset calls on the noop-success path when the amendment is not enabled.", "cate...
null
XRPLF__rippled__6858
XRPLF/rippled
6,858
defect
e2e537b3bb6e70d57c00e95462bc922a59017648
3d5afc9937d9960e8f19aacce9ac9205be6fecf3
feat: Add `--definitions` flag and artifact
<!-- This PR template helps you to write a good pull request description. Please feel free to include additional useful information even beyond what is requested below. If your branch is on a personal fork and has a name that allows it to run CI build/test jobs (e.g. "ci/foo"), remember to rename it BEFORE openi...
diff --git a/.github/workflows/reusable-build-test-config.yml b/.github/workflows/reusable-build-test-config.yml index 57112ed96a1..044efd20128 100644 --- a/.github/workflows/reusable-build-test-config.yml +++ b/.github/workflows/reusable-build-test-config.yml @@ -207,6 +207,20 @@ jobs: retention-days: 3 ...
12
9
3
[{"id": "G0", "claim": "Refactor the new getStaticServerDefinitions to use a shared helper so there is only one static ServerDefinitions variable instead of two.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The #include <xrpld/rpc/handlers/Han...
null
XRPLF__rippled__6859
XRPLF/rippled
6,859
defect
5229ff5a45a7c78d6273ccf8261eed3315d7ce5f
bf121cffbfe2daffafca0edf60dd48e61a8a9058
Support compact AND-composed sigma proof
This PR is to integrate the new changes from `mpt-crypto` SDK `mpt_utility`: The `mpt_utility` SDK change can be found here: https://github.com/XRPLF/mpt-crypto/pull/24 For reference, the updated proof sizes per transaction are: `ConfidentialMPTConvert`: 64 byte. `ConfidentialMPTSend`: 192 byte compact sigma ...
diff --git a/conan.lock b/conan.lock index 3616e4a8ec2..073ff0ffc33 100644 --- a/conan.lock +++ b/conan.lock @@ -12,7 +12,7 @@ "protobuf/6.33.5#d96d52ba5baaaa532f47bda866ad87a5%1774467363.12", "openssl/3.6.1#e6399de266349245a4542fc5f6c71552%1774458290.139", "nudb/2.0.9#11149c73f8f2baff9a0198f...
2
1
0
[{"id": "G0", "claim": "The new proof-length constants should drop \"compact\" from their names, since these are going to be the standard proof sizes from now on.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rewriting the ConvertBack negative-...
null
XRPLF__rippled__6945
XRPLF/rippled
6,945
defect
eefa1d03bfd16f13c62c217db4f3ed2ae4040296
05b2a5ac2bcfcb10524e36dfed1ed46300f0b81e
fix: Check for empty `sfAdditionalBooks` array in hybrid offer invariant (#6716)
This change adds the commits from the following PR into the 3.1.3 staging branch: * [fix: Hybrid offer invariant sfAdditionalBooks empty check](https://github.com/XRPLF/rippled/pull/6716)
diff --git a/src/test/app/Invariants_test.cpp b/src/test/app/Invariants_test.cpp index 25fa9db7c49..aee2d965bf5 100644 --- a/src/test/app/Invariants_test.cpp +++ b/src/test/app/Invariants_test.cpp @@ -1724,6 +1724,32 @@ class Invariants_test : public beast::unit_test::suite STTx{ttOFFER_CREATE, [&](STObjec...
5
3
0
[{"id": "G0", "claim": "The pre-fixSecurity3_1_3 branch of offerInDomain should perhaps also check that the sfAdditionalBooks array size is exactly 1.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The duplicated hybrid-malformation conditionals in Va...
null
XRPLF__rippled__6958
XRPLF/rippled
6,958
defect
eefa1d03bfd16f13c62c217db4f3ed2ae4040296
634ac1323b72cd0c858f35b7756ee4c7b151973e
fix: Improve invariant check for Permissioned Domains (#6134)
## High Level Overview of Change Add more checks to permissioned domains invariant. Original [PR #6134](https://github.com/XRPLF/rippled/pull/6134)
diff --git a/include/xrpl/protocol/detail/features.macro b/include/xrpl/protocol/detail/features.macro index c07b6788651..ab0b03b4567 100644 --- a/include/xrpl/protocol/detail/features.macro +++ b/include/xrpl/protocol/detail/features.macro @@ -32,6 +32,7 @@ // Add new amendments to the top of this list. // Keep it s...
3
2
1
[{"id": "G0", "claim": "The `withFix_` feature set does not enable `fixPermissionedDomainInvariant`, so the fix-enabled double-runs in `run()` test the same configuration as `withFeature_` and never exercise the fix; it should include `fixPermissionedDomainInvariant`.", "category": "testing", "verdict": "supported", "p...
null
XRPLF__rippled__6979
XRPLF/rippled
6,979
defect
ea023121f5fcc9c8fcb7d2dbf664402880648661
3303daf862ac3ecd3bdf063565f3beb816ec6b2e
fix: Remaining clang-tidy unchecked optionals
## High Level Overview of Change This PR fixes remaining issues from `bugprone-unchecked-optional-access`. ### API Impact No impact.
diff --git a/.clang-tidy b/.clang-tidy index 10aa8c625f6..a171acfe0ef 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -66,7 +66,7 @@ Checks: "-*, bugprone-terminating-continue, bugprone-throw-keyword-missing, bugprone-too-small-loop-variable, - # bugprone-unchecked-optional-access, # see https://github.com/XRPL...
7
4
0
[{"id": "G0", "claim": "Replace the assert+NOLINT around the *refHash uses in getOrAcquireLedger with a real runtime check/early-return error path before using *refHash, because the XRPL_ASSERT compiles out under NDEBUG so *refHash can be dereferenced when empty in release builds (UB/crash).", "category": "correctness"...
null
XRPLF__rippled__6988
XRPLF/rippled
6,988
defect
f08121de3525da0c2c970ca0b97d9336469abe88
456db6649c2d1764720fcf94b34b617fa12bab67
Add destination tag to ConfidentialMPTSend
<!-- This PR template helps you to write a good pull request description. Please feel free to include additional useful information even beyond what is requested below. If your branch is on a personal fork and has a name that allows it to run CI build/test jobs (e.g. "ci/foo"), remember to rename it BEFORE openi...
diff --git a/include/xrpl/protocol/detail/transactions.macro b/include/xrpl/protocol/detail/transactions.macro index c2103bab58d..fcf1caaf993 100644 --- a/include/xrpl/protocol/detail/transactions.macro +++ b/include/xrpl/protocol/detail/transactions.macro @@ -1138,6 +1138,7 @@ TRANSACTION(ttCONFIDENTIAL_MPT_SEND, 88, ...
2
1
0
[{"id": "G0", "claim": "Use `!= 0u` when testing the lsfRequireDestTag flag in ConfidentialMPTSend::preclaim, as other transactors do.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "It would be good to also check bob's and carol's balances after...
null
XRPLF__rippled__6992
XRPLF/rippled
6,992
defect
7c7c1894b917e8ec09c6833a3b9614f7e2303dd7
f05f726c860615d84273b9f2e098a6bd32c03d3a
fix: More clang-tidy issues
## High Level Overview of Change Title pretty much says it all No change in functionality, just clang-tidy things ### Context of Change Ran into several of these in PRs ### API Impact N/A
diff --git a/include/xrpl/basics/Buffer.h b/include/xrpl/basics/Buffer.h index 02926e9420b..52c092981c2 100644 --- a/include/xrpl/basics/Buffer.h +++ b/include/xrpl/basics/Buffer.h @@ -92,7 +92,7 @@ class Buffer { // Ensure the slice isn't a subset of the buffer. XRPL_ASSERT( - s.size(...
5
5
1
[{"id": "G0", "claim": "CredentialHelpers.cpp uses std::move but no longer includes <utility> after this change; add an explicit <utility> include instead of relying on transitive includes.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "NFTokenMint....
null
XRPLF__rippled__7041
XRPLF/rippled
7,041
defect
9bfd78e2fc3377fbe25d6a0038cfa2ea55c7ad3a
637ca02f1f10ea69d652a9dc7e5d5e7fc0486545
fix: add credential amendment check and more refactoring
<!-- This PR template helps you to write a good pull request description. Please feel free to include additional useful information even beyond what is requested below. If your branch is on a personal fork and has a name that allows it to run CI build/test jobs (e.g. "ci/foo"), remember to rename it BEFORE openi...
diff --git a/include/xrpl/tx/transactors/token/ConfidentialMPTSend.h b/include/xrpl/tx/transactors/token/ConfidentialMPTSend.h index 957cff50422..7a3ef02554a 100644 --- a/include/xrpl/tx/transactors/token/ConfidentialMPTSend.h +++ b/include/xrpl/tx/transactors/token/ConfidentialMPTSend.h @@ -39,6 +39,9 @@ class Confide...
2
1
0
[{"id": "G0", "claim": "checkExtraFeatures only checks featureCredentials, and the reviewer is worried that when a future feature needing a check here is added it will be very easy to forget, so asks whether there are other features that need to be checked or this is it.", "category": "design", "verdict": "opposed", "p...
null
XRPLF__rippled__7048
XRPLF/rippled
7,048
defect
9bfd78e2fc3377fbe25d6a0038cfa2ea55c7ad3a
d09352af5950f928ed9e249ac1f5bfd1d00d96d2
add defensive checks
<!-- This PR template helps you to write a good pull request description. Please feel free to include additional useful information even beyond what is requested below. If your branch is on a personal fork and has a name that allows it to run CI build/test jobs (e.g. "ci/foo"), remember to rename it BEFORE openi...
diff --git a/src/libxrpl/tx/invariants/MPTInvariant.cpp b/src/libxrpl/tx/invariants/MPTInvariant.cpp index 229f5572c06..7633b6e45d6 100644 --- a/src/libxrpl/tx/invariants/MPTInvariant.cpp +++ b/src/libxrpl/tx/invariants/MPTInvariant.cpp @@ -448,10 +448,13 @@ ValidConfidentialMPToken::visitEntry( bool const h...
2
2
0
[{"id": "G0", "claim": "The two consecutive consistency checks should be merged into a single condition `if (hasHolderInbox != hasHolderSpending || hasHolderInbox != hasIssuerBalance)` for cleaner code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
XSAM__otelsql__26
XSAM/otelsql
26
defect
83759c09aa3c7c7fcef3478509884585df8a21de
2a229f205f407f70f9dc1a5dc86942a4b1a45df9
SpanOption DisableQuery
Hi, this PR attempts to cover the DisableQuery functionality, this time as opposed #25, it makes only the attribute not set. It tries to cover the expected functionality by #22
diff --git a/config.go b/config.go index 52295b41..0ed28385 100644 --- a/config.go +++ b/config.go @@ -64,6 +64,9 @@ type SpanOptions struct { // DisableErrSkip, if set to true, will suppress driver.ErrSkip errors in spans. DisableErrSkip bool + // DisableQuery if set to true, will suppress db.statement in spans ...
3
3
0
[{"id": "G0", "claim": "CHANGELOG.md should be updated and `make precommit` run before committing.", "category": "process", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new CHANGELOG.md entry should be merged into the existing '### Added' section rather than adding a seco...
null
XSAM__otelsql__334
XSAM/otelsql
334
defect
46fa45c8c038dd67c033e845814f59b5af08a513
54e0d554c1927560524cc7e921f44b7a1e8040ab
add config.InstrumentAttributesGetter to optionally append attrs to `latency` instrument
This allows setting custom attributes from query context onto latency metric, like this: ```go otelsql.Register(databaseDriver, otelsql.WithInstrumentAttributesGetter(func(ctx context.Context, method otelsql.Method, query string, args []driver.NamedValue) []attribute.KeyValue { attrs := []attribute.KeyValue{ s...
diff --git a/config.go b/config.go index 884a8781..2d7cc2b5 100644 --- a/config.go +++ b/config.go @@ -40,6 +40,9 @@ type SpanNameFormatter func(ctx context.Context, method Method, query string) st // AttributesGetter provides additional attributes on spans creation. type AttributesGetter func(ctx context.Context, me...
2
2
0
[{"id": "G0", "claim": "The InstrumentAttributesGetter doc comments (on the type in config.go, the config field in config.go, and WithInstrumentAttributesGetter in option.go) should read 'recording metrics to instruments' rather than just 'recording metrics', since instrument is the concrete OpenTelemetry metrics type....
null
XSAM__otelsql__389
XSAM/otelsql
389
defect
e9f8e31a8621f2e1794ad665e6cefa129fdc1b3e
c070d6e8726fa5b3245ba0820c4db97b664366cf
Add DisableSkipErrMetrics to disable ErrSkip metrics
DisableSkipErrMetrics will skip the recoding of any SkipErr metric if enabled. Since SkipErr results in a retry, the actual database interaction will still be recorded. Closes #386
diff --git a/CHANGELOG.md b/CHANGELOG.md index 47255073..4de2a769 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## [Unreleased] +### Added + +- `DisableSkipErrMetrics` option skips the recording of `driver.ErrSkip` eve...
3
3
1
[{"id": "G0", "claim": "Rename the new option from DisableSkipErrMetrics to DisableSkipErrMeasurement (in config.go, option.go, option_test.go and the CHANGELOG) and reword its comments to use OpenTelemetry measurement terminology, as suggested.", "category": "design", "verdict": "supported", "priority": "P2", "scope":...
null
XSAM__otelsql__419
XSAM/otelsql
419
defect
c754e5bc974d6dd88e673a50f858fd6aed3fc6f9
7bca7c110f6ed4396369141ba289ace3bcc4d5e9
Add AttributesFromDSN method
Part of #399. This method makes the best effort to retrieve values for `server.address` and `server.port` attributes from DSN.
diff --git a/CHANGELOG.md b/CHANGELOG.md index e39e5778..3a018e45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## [Unreleased] +### Added + +- `AttributesFromDSN` method to generate `server.address` and `server.port` ...
1
1
1
[{"id": "G0", "claim": "The conversion of the signed 64-bit integer returned by strconv.ParseInt to a lower bit size type int has no upper bound check.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
XSAM__otelsql__440
XSAM/otelsql
440
defect
15e99e94dd14d7f863e67612ad274b721d6baa1e
ccf10128ba7b9c8a7fff8f45bc6e5a3a29446e89
Add error attribute to metrics labels
This PR allows you to add specific information about an error to a metric when it occurs. For instance the mysql error code. An example implementation of the `ErrorAttributesGetter` function for mysql: ``` // For information on MySQL errors and mappings, see https://dev.mysql.com/doc/mysql-errors/5.7/en/server-e...
diff --git a/config.go b/config.go index 67741e24..c88b7857 100644 --- a/config.go +++ b/config.go @@ -43,6 +43,9 @@ type AttributesGetter func(ctx context.Context, method Method, query string, arg // InstrumentAttributesGetter provides additional attributes while recording metrics to instruments. type InstrumentAttr...
7
6
1
[{"id": "G0", "claim": "Rename ErrorAttributesGetter (the type, the config field and the option) to InstrumentErrorAttributesGetter for consistency with InstrumentAttributesGetter.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a doc comment to the n...
null
XSAM__otelsql__540
XSAM/otelsql
540
defect
1aa536d14db1d2c6fd81f868f19d9a713c2abb71
53a45c346ced30d1db0a545e2cd802c8f489fd85
Allow configuring a TextMapPropagator for SQLCommenter
This allows users to not rely on the global TextMapPropagator. It might be enough to close https://github.com/XSAM/otelsql/issues/192 because then users are free to implement a custom propagator which is specific for the SQLCommenter use case without polluting the global TextMapPropagator.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6128e0ab..a757aa51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## [Unreleased] +### Added + +- `WithTextMapPropagator` allows customization of the OTel text map propagat...
4
3
1
[{"id": "G0", "claim": "Add tests covering the new options with SQL commenter enabled, including a test case for the newly added WithTextMapPropagator option in TestOptions in option_test.go.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Update the cha...
null
XSAM__otelsql__576
XSAM/otelsql
576
defect
a22bd53e345251316bb515dd5416cd024f1a6fe3
0f6290d128d612386ac9cecefb5bb5a58d7e2e4a
Change WithAttributes to append instead of replace attributes
Modified WithAttributes option to accumulate attributes across multiple calls rather than replacing them. This allows users to build up attribute sets incrementally, making the API more flexible and intuitive. Changes: - Updated WithAttributes implementation to use append instead of assignment - Enhanced TestOptio...
diff --git a/option.go b/option.go index f8beb854..cd4614e6 100644 --- a/option.go +++ b/option.go @@ -47,7 +47,7 @@ func WithTracerProvider(provider trace.TracerProvider) Option { // WithAttributes specifies attributes that will be set to each span and measurement. func WithAttributes(attributes ...attribute.KeyValu...
2
2
1
[{"id": "G0", "claim": "The WithAttributes doc comment should be updated to make the new behavior clear, i.e. that it adds attributes and that multiple WithAttributes calls extend rather than overwrite.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
XSAM__otelsql__619
XSAM/otelsql
619
defect
852a8a9edf049dd8fa502078cc770f3d5f9368a2
75dde6ba4220c1066a0a99fe312f595443b453ef
implement driver.Validator on otConn
This is my proposed fix for #618. I implement `driver.Validator` on `*otConn`. I have an alternate version of this locally (which I am happy to push if you'd like), which adds `IsValid()` to the existing mockConn instead of introducing a separate mock type, if you like. But that would make it a little tricky to test...
diff --git a/conn.go b/conn.go index 93df6cc1..cebfe029 100644 --- a/conn.go +++ b/conn.go @@ -34,6 +34,7 @@ var ( _ driver.ConnBeginTx = (*otConn)(nil) _ driver.SessionResetter = (*otConn)(nil) _ driver.NamedValueChecker = (*otConn)(nil) + _ driver.Validator = (*otConn)(nil) ) type otConn...
2
2
0
[{"id": "G0", "claim": "The changelog file should be updated with an entry reflecting this change.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new changelog entry should end with the pull request reference (#619).", "category": "documentati...
null
XSAM__otelsql__66
XSAM/otelsql
66
defect
8747cb557e00be4f09a9c502e207e39c361950c6
81a74a07def22a70ed3fda0af1613ae75375be68
Covering connect method with span
Covering connect method with span for better insights on how long acquiring a connection takes. This PR is in reference to [comment](https://github.com/XSAM/otelsql/issues/36#issuecomment-1068459275) on #36
diff --git a/.gitignore b/.gitignore index 528d05ed..f0f7c7f7 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ Thumbs.db *.so coverage.* bin/ +vendor/ diff --git a/connector.go b/connector.go index 6275a763..ba0ada60 100644 --- a/connector.go +++ b/connector.go @@ -17,6 +17,8 @@ package otelsql import ( "...
2
2
0
[{"id": "G0", "claim": "MethodConnConnect should be renamed to MethodConnectorConnect with the value \"sql.connector.connect\" because the method belongs to otConnector.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "CHANGELOG.md should be updat...
null
XTLS__Xray-core__3751
XTLS/Xray-core
3,751
defect
c0a98f74fc9bc9ff2fcbc27903a942600d4fb220
5920a56776088f7feccda4cb923886cef94a8039
Config: Remove global `transport`
尝试移除全局TransportConfig 本来以为会有点史不过还是挺干净的 代码里分的很明显叫TransportConfig和StreamConfig 也只在处理config时候作用没影响别的part
diff --git a/infra/conf/transport.go b/infra/conf/transport.go index 7957ee7d3875..2f660ff4055a 100644 --- a/infra/conf/transport.go +++ b/infra/conf/transport.go @@ -2,9 +2,7 @@ package conf import ( "github.com/xtls/xray-core/common/errors" - "github.com/xtls/xray-core/common/serial" "github.com/xtls/xray-core...
3
3
1
[{"id": "G0", "claim": "Removing support for the global transport config must not silently ignore existing uses: configs that carry the removed field should fail with an error (at minimum when the field contains meaningful content).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_ex...
null
XTLS__Xray-core__5124
XTLS/Xray-core
5,124
defect
cced1477a0acc12eaf22e01447e97319987ab050
57b5fd2f1473e7b3ee3b145ad34550a41226672f
Config: Outbound proxy config no need to be nested
对 https://github.com/XTLS/Xray-core/pull/5101/commits/eda8be601f56c788b1ad176c7d68d8e2ce22c7ca 依葫芦画瓢的产物 现在在**不影响原有配置方式**的基础上,允许出站配置 `outbounds` 的 `settings` **如同 VLESS 配置一样直接写**,而无需在 JSON 中写大量括号嵌套/在 YAML 中写大量列表标记,对绝大多数仅需一个出口的情况下够用: ``` json { "outbounds": [ { "protocol": "http", ...
diff --git a/infra/conf/http.go b/infra/conf/http.go index 7f59bd7982b5..d4092f887179 100644 --- a/infra/conf/http.go +++ b/infra/conf/http.go @@ -51,12 +51,27 @@ type HTTPRemoteConfig struct { } type HTTPClientConfig struct { - Servers []*HTTPRemoteConfig `json:"servers"` - Headers map[string]string `json:"heade...
4
3
1
[{"id": "G0", "claim": "The fields inside the flattened outbound config structs should be reordered back to the original order, because as written they look messy.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The outbound servers/vnext arrays ...
null
XTLS__Xray-core__5502
XTLS/Xray-core
5,502
defect
d9025857fee8636dc9aed68cf3e8fce83ea7e7c1
68cdc1fb23ea2cbff0d8ff31e3693974af24b01f
Tests: Improve geosite & geoip tests
https://github.com/XTLS/Xray-core/pull/5488#issuecomment-3711843548
diff --git a/app/router/condition_geoip_test.go b/app/router/condition_geoip_test.go index b712db9e1f68..0810f35a3916 100644 --- a/app/router/condition_geoip_test.go +++ b/app/router/condition_geoip_test.go @@ -1,40 +1,15 @@ package router_test import ( - "fmt" - "os" - "path/filepath" + "runtime" "testing" "...
2
1
1
[{"id": "G0", "claim": "Unit-test logic must not be placed in common/platform/windows.go (it belongs in _test.go files only), and detecting tests via flag.Lookup(\"test.v\") suggests the code design is bad for unit testing.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id":...
null
Xceptance__XLT__174
Xceptance/XLT
174
defect
eb52d902405f1219a974e1d9636cdad2581130ff
286cde24a2ff28932aab59696d66d52cd1635c67
57: Hide credentials passed in the URL in the load test report
- introduce new property to control whether or not to remove user-info from request URL - remove user-info from request URL if need to do so before writing timer data to CSV - added tests for new method 'removeUserInfo' of utility class 'com.xceptance.xlt.engine.util.UrlUtils' - added documentation of new property t...
diff --git a/samples/testsuite-performance/config/default.properties b/samples/testsuite-performance/config/default.properties index d8b407cef..6c0e2c13d 100644 --- a/samples/testsuite-performance/config/default.properties +++ b/samples/testsuite-performance/config/default.properties @@ -332,6 +332,12 @@ com.xceptance....
2
2
1
[{"id": "G0", "claim": "A second overload of UrlUtils.removeUserInfo() should be provided that takes a URL and builds the user-less URL string from the URL's already parsed components, so the URL does not have to be converted to a string and parsed again.", "category": "performance", "verdict": "supported", "priority":...
null
Xceptance__XLT__264
Xceptance/XLT
264
defect
a79a2435d37ce3e05a68637b3a268522783c8e95
c571dd5f72b45c47b626d8ae7239e51a2998fd7e
#263: Firefox timer recorder: Wrong request method recorded
- determine the correct request method for redirected requests and record that one - added a test case to create certain redirect scenarios for verification purposes
diff --git a/samples/app-server/webapps/testpages/redirect/redirect.jsp b/samples/app-server/webapps/testpages/redirect/redirect.jsp new file mode 100644 index 000000000..73b0e84d2 --- /dev/null +++ b/samples/app-server/webapps/testpages/redirect/redirect.jsp @@ -0,0 +1,35 @@ +<% + response.setHeader("Cache-Control"...
2
2
1
[{"id": "G0", "claim": "Do not skip setting the request method at the headersReceived/beforeRedirect/responseStarted/completed listeners, because removeRequestEntry does not set it in every case; either set it only when not already set (request.method = request.method || details.method) or, if it stays commented out, p...
null
Xceptance__XLT__409
Xceptance/XLT
409
defect
c6609f0cd9315217727d44b3166f705acc4da0b4
ca686b80cb95741e21cf24ee9f714d95570b75fb
#400: Implement chunked downloads of results
- Use a series of partial GETs to download an archive file in chunks. - Fall back to a full download in case the agent controller does not support chunked download yet. - Retry downloading a file (chunk) in case of I/O errors. - Made chunk size and download attempts per chunk configurable. - Changed name of Chromiu...
diff --git a/build.properties b/build.properties index dac729755..63eb4f2f2 100644 --- a/build.properties +++ b/build.properties @@ -31,7 +31,7 @@ resultbrowser.dir.source = resultbrowser/dist resultbrowser.dir.target = ${classes.dir}/com/xceptance/xlt/engine/resultbrowser/assets # Linux -timerrecorder.chrome.execu...
13
11
2
[{"id": "G0", "claim": "The download attempts property should be renamed to com.xceptance.xlt.mastercontroller.download.maxRetries and its description adjusted, since a download is always attempted at least once and only retried on error.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "intro...
null
Xceptance__XLT__422
Xceptance/XLT
422
defect
b20395ec45db45a5d7e1961904dbdeb593dc6410
99acd5e7ed5b86b0cdc788279d430bfecc1dc9d5
421 mergerule processing split
* fixed missing hashCode caching in XltCharBuffer * removed single instance concept of request merge rule processors, each thread has its own merge processor and its own cache * FastHashMap compares the hashcode first before it equals the key to safe some recurring operations We gain about 1 min for a test report ...
diff --git a/src/main/java/com/xceptance/common/collection/FastHashMap.java b/src/main/java/com/xceptance/common/collection/FastHashMap.java index 6fdc29076..8cf78c5e3 100644 --- a/src/main/java/com/xceptance/common/collection/FastHashMap.java +++ b/src/main/java/com/xceptance/common/collection/FastHashMap.java @@ -79,...
6
6
0
[{"id": "G0", "claim": "The methods `put` and `remove` of FastHashMap might benefit from a similar hashcode-before-equals improvement as the one applied to `get`.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the added `t.printStackTrace()` ...
null
Xceptance__XLT__568
Xceptance/XLT
568
defect
e6d0257d267dcb4a9152b7a2dacf59e328a5407f
f69b451b411a65befff764303e46a3968743c4f7
#567: Java 21
* Compile XLT and all internal test suites with Java 21. * Use latest asm and javassist for Java 21 support. * Need to open more modules for reflective access when running unit tests. * It's no longer possible to make static final fields non-final via reflection, so we have to make them non-final right from the star...
diff --git a/.classpath b/.classpath index 1753ed3f3..828e1de12 100644 --- a/.classpath +++ b/.classpath @@ -9,6 +9,7 @@ <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"> <attributes> <attribute name="maven.pomderived" value="true"/> + <attribute name="optional" val...
3
3
2
[{"id": "G0", "claim": "The javac task invoked by the test.compile target in ant-scripts/test.xml should also have its source and target parameters adjusted (to 21) as part of the Java 21 migration.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In ...
null
Xceptance__XLT__597
Xceptance/XLT
597
defect
361bc0ebc1c5a0217754fd888e45e3f396f22391
0cb08ae8b37343c0f3d188274b78717eed8ddbeb
#487 Enabled DNS IP Address Overrides
See: https://github.com/Xceptance/XLT/issues/487 **Note:** I renamed the exiting class "XltDnsResolverTest" to "XltDnsResolverDebugger" (since its actually a test class) and created a new class "XltDnsresolverTest" for the unit tests of "XltDnsResolver".
diff --git a/src/main/java/com/xceptance/common/util/ParseUtils.java b/src/main/java/com/xceptance/common/util/ParseUtils.java index 6af4d1e6a..d1267eee8 100644 --- a/src/main/java/com/xceptance/common/util/ParseUtils.java +++ b/src/main/java/com/xceptance/common/util/ParseUtils.java @@ -15,14 +15,17 @@ */ package c...
6
5
1
[{"id": "G0", "claim": "parseIpAddresses should accept other separators besides commas (e.g. whitespace and semicolons) and should ignore consecutive separators and empty values, as XLT's other list parsers do.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
Xceptance__XLT__607
Xceptance/XLT
607
defect
e0a5f5e048374d5e30838c89b6ce23ce3c7024ef
a3f3b940fa77dee4424d780f25de087e81cc7049
#606: Custom cookies may not be working with OkHttp
* Sanitize values of the passed HtmlUnit cookie for use with OkHttp: * domain: must not be empty * name: must be non-null and trimmed * value: must be non-null and trimmed * path: must be non-null and start with "/" * expiresAt: don't set if null * Add unit tests to check correct behavior * E...
diff --git a/src/main/java/com/xceptance/xlt/engine/htmlunit/okhttp3/CookieJarImpl.java b/src/main/java/com/xceptance/xlt/engine/htmlunit/okhttp3/CookieJarImpl.java index 4cd1227d9..187bb77dd 100644 --- a/src/main/java/com/xceptance/xlt/engine/htmlunit/okhttp3/CookieJarImpl.java +++ b/src/main/java/com/xceptance/xlt/en...
5
5
1
[{"id": "G0", "claim": "The expected-exception helper should use Assert.assertThrows plus MatcherAssert.assertThat instead of try/fail/catch, since MatcherAssert produces a more helpful failure message showing actual and expected values.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "intro...
null
Xceptance__XLT__65
Xceptance/XLT
65
defect
ec12133778000e6f140a3c51e4b4c427afd2ba2c
2b38713ac8a567281016b339536000ac7ca8112b
Allow for subclassing of master controller Main
- made methods of master controller Main non-static and protected so we can inherit from Main and overwrite these methods as needed - moved any System.exit() to the new run() method so the JVM does not quit by accident when subclasses call any of the other methods - adjusted test case
diff --git a/src/main/java/com/xceptance/xlt/mastercontroller/Main.java b/src/main/java/com/xceptance/xlt/mastercontroller/Main.java index 84e2aec98..2eeedad1c 100644 --- a/src/main/java/com/xceptance/xlt/mastercontroller/Main.java +++ b/src/main/java/com/xceptance/xlt/mastercontroller/Main.java @@ -75,12 +75,12 @@ pub...
4
4
0
[{"id": "G0", "claim": "The setupHttpsProxy method should be declared protected instead of private so subclasses can override it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The getHessianProxyFactory method should be declared protected instead of pri...
null
Xceptance__XLT__654
Xceptance/XLT
654
defect
c71843e2cc3a8a9c6737f6a08844a21e8725cc25
b55f3bc443d8983048b04af696b974ae048307c1
464 hll migration
# HLL Library Migration: java-hll to Apache DataSketches Replaced the unmaintained `java-hll` library with **Apache DataSketches** for distinct URL counting. ## Key Changes ### 1. Dependencies - **Removed**: `net.agkn:hll` - **Added**: `org.apache.datasketches:datasketches-java:7.0.1` ### 2. Code Implemen...
diff --git a/doc/3rd-party-licenses/datasketches-java/LICENSE b/doc/3rd-party-licenses/datasketches-java/LICENSE new file mode 100644 index 000000000..9dc298fd9 --- /dev/null +++ b/doc/3rd-party-licenses/datasketches-java/LICENSE @@ -0,0 +1,80 @@ +Apache License + Version 2.0, January 2004 + ...
8
8
2
[{"id": "G0", "claim": "The field carries two stacked javadoc blocks: the old comment 'Using a memory efficient HyperLogLog algorithmm for counting distinct urls' (with its 'algorithmm' typo) should be removed since the updated comment below it already documents the sketch.", "category": "documentation", "verdict": "su...
null
Xeeynamo__sotn-decomp__1854
Xeeynamo/sotn-decomp
1,854
defect
43a75ee47c91de04ea5567e005df5a12b7b17808
545d794d9f71fc20e921072d5eeb83062a406ac1
tt_002 func_us_80175730 and func_us_80175A78
These are essentially dupes of each other, but uses a slightly different offset for a u8 counter and params for the create factory and event functions. PSX: https://decomp.me/scratch/ghT05 PSP: https://decomp.me/scratch/lts6D
diff --git a/src/servant/tt_002/3678.c b/src/servant/tt_002/3678.c index d1794bd827..07d7201f2d 100644 --- a/src/servant/tt_002/3678.c +++ b/src/servant/tt_002/3678.c @@ -23,6 +23,10 @@ extern s32 s_TargetLocationX_calc; extern s32 s_TargetLocationY; extern s32 s_TargetLocationY_calc; +extern u8 D_80097A1A[]; +exte...
2
2
0
[{"id": "G0", "claim": "The faerie struct field used at 3678.c:459 (self->ext.faerie.pad8C[0]) should get a proper name instead of one starting with 'pad', which implies it is only alignment padding.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
Xeeynamo__sotn-decomp__1863
Xeeynamo/sotn-decomp
1,863
defect
a860e7bc4913480fa5cd27b81b72b4f7bee643d2
86989d4fa5b37ca84a1f2f765dfe2b063405095a
Decompile tt_002 func_us_80176178 and func_us_80175DBC
A lot of these update functions are code revolving around the faerie using items (which makes sense, that's what the familiar does). This means that these update functions share a lot of code. In fact, entity update steps 0, 1, 4,5,6 are mostly shared between the update functions. Steps 2 and 3 vary in what they do ...
diff --git a/include/sfx.h b/include/sfx.h index 5dafe07150..74367b7234 100644 --- a/include/sfx.h +++ b/include/sfx.h @@ -254,9 +254,6 @@ enum SfxModes { #define SFX_RBO3_UNK_802 0x802 #define SFX_RBO3_UNK_804 0x804 -// SERVANT TT_002 - Faerie -#define SFX_TT_002_UNK_675 0x675 - // SHARED SOUNDS // These are sou...
1
1
0
[{"id": "G0", "claim": "Replace the hand-written `0x37 + (D_us_80172494[self->params * 4 + 2] << 0x10)` argument (and the equivalent call in func_us_80176178) with the FACTORY macro for readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Xeeynamo__sotn-decomp__1867
Xeeynamo/sotn-decomp
1,867
defect
5bbe6f7cce6a5b2e8b051f7be2f5ab7c7820634e
fa6570353f81e796f04991a6d2a27af4528728e0
Decompile `no0` Ouija Table components sub-entity
Also split into a separate entity file for Ouija Table Matching both PSX: https://decomp.me/scratch/oph7c PSP: https://decomp.me/scratch/MTVot I'll probably extract the data on this one shortly just to round it out
diff --git a/config/splat.us.stno0.yaml b/config/splat.us.stno0.yaml index f3c3b971e0..6bcd468c72 100644 --- a/config/splat.us.stno0.yaml +++ b/config/splat.us.stno0.yaml @@ -74,7 +74,8 @@ segments: - [0x4171C, .rodata, e_slinger] - [0x41738, .rodata, 57C20] - [0x4178C, .rodata, e_axe_knight] - ...
1
1
1
[{"id": "G0", "claim": "Add a static_assert covering the parent pointer and the item after it in ET_OuijaTableContents to make sure the struct aligns.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Xeeynamo__sotn-decomp__1870
Xeeynamo/sotn-decomp
1,870
defect
95d91584b410d698c013b0d952d04295b2e10fb7
2f98bbab4a5ad759b7f9a3f62b92ffb3c7ecfff2
Decompile `no0` `EntityFleaMan` functions
`CheckFieldCollisionY` / `func_us_801DC64C` with thanks to @mrmidi who had done most of the work here. Matching both PSX: https://decomp.me/scratch/Ga3ax PSP: https://decomp.me/scratch/ki27x `EntityFleaMan` / `func_us_801DC788` Matching both PSX: https://decomp.me/scratch/Vu3Zx PSP: https://decomp.me/scrat...
diff --git a/config/splat.us.stno0.yaml b/config/splat.us.stno0.yaml index 6bcd468c72..ab713152a8 100644 --- a/config/splat.us.stno0.yaml +++ b/config/splat.us.stno0.yaml @@ -60,6 +60,7 @@ segments: - [0x2268, data] - [0x2478, .data, e_axe_knight] - [0x25CC, data] + - [0x2618, .data, e_flea_ma...
2
2
0
[{"id": "G0", "claim": "CheckFieldCollisionY is only used within this file, so it should be marked `static`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "SetFacingLeft is likewise only used within this file and should be marked `static`.", "ca...
null
Xeeynamo__sotn-decomp__1950
Xeeynamo/sotn-decomp
1,950
defect
b5c88e7d589bfbe58a04488ea730c4ded86a3559
b8fc3ed4a50d34c528f09e8d9251259d3550c847
decompiling func_us_80174FD0
Nothing too crazy. This is the 0xD2 update function. Still unsure what it is. It looks like it is the "seek enemy" mode when it rolls attack. 0xD3 will likely confirm or reject that theory. Full match both psp: https://decomp.me/scratch/yEZu5 psx: https://decomp.me/scratch/w055D
diff --git a/config/symbols.us.tt_003.txt b/config/symbols.us.tt_003.txt index 47179eaeb5..dd23f513ea 100644 --- a/config/symbols.us.tt_003.txt +++ b/config/symbols.us.tt_003.txt @@ -4,6 +4,7 @@ g_DemonAttackStats = 0x801719F0; g_DemonAbilityStats = 0x80171A68; g_DemonClut = 0x80171C24; s_PassthroughFunctions = 0x80...
3
3
0
[{"id": "G0", "claim": "The raw hex fixed-point constants in func_us_80174FD0 (0x200000/-0x200000, 0x7FFFF/0xFFFF, 0x2000/-0x2000) should be written with the FIX macro.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comparison against 0x7FFF...
null
Xeeynamo__sotn-decomp__1964
Xeeynamo/sotn-decomp
1,964
defect
54fcdd57ac52bb1f80464a2d6deb0805718c244e
78b24843b238eac01f5fd9a919e8b8f7bc0965c5
Decompile `tt_003` func_us_80175D20
PSX: https://decomp.me/scratch/yOO7A PSP: https://decomp.me/scratch/o4uKM (not a full match) Many thanks to @Onenutmcgee and @mrmidi for help getting a match for PSX
diff --git a/include/entity.h b/include/entity.h index 7f99c32849..e9a0b8c805 100644 --- a/include/entity.h +++ b/include/entity.h @@ -630,7 +630,7 @@ typedef struct { /* 0x0 */ s16 flag; /* 0x2 */ s16 animIndex; /* 0x4 */ s16 sfxId; -} FaerieSfxEventDesc; +} ServantSfxEventDesc; typedef struct { ...
2
2
0
[{"id": "G0", "claim": "The raw entity ID 0xD1 assigned to self->entityId should be replaced with the named enum DEMON_MODE_DEFAULT_UPDATE.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The raw entity ID 0xD9 passed to SearchForEntityInRange an...
null
Xeeynamo__sotn-decomp__2020
Xeeynamo/sotn-decomp
2,020
defect
746f10d734ce7db9b7009905cd79ee22e41e0864
01f2a136190fbb19a61538b8aa2a614f74a8b692
Update/document game logic for handling elemental resistances, absorbs, etc
Lots of cleanups here with renaming stuff, creating enums, and more. This was the kind of thing where I kept on having a cycle where I would improve all the uses of a certain field, then in doing so, I'd see where it was used, rename the function, notice more fields, and so on. But I think in the end I tied up the l...
diff --git a/config/saturn/game_user_syms.txt b/config/saturn/game_user_syms.txt index e97cd041aa..112e3ab1f4 100644 --- a/config/saturn/game_user_syms.txt +++ b/config/saturn/game_user_syms.txt @@ -2,7 +2,7 @@ _g_randomNext = 0x0605D748; _DAT_00292000 = 0x00292000; _DAT_06085c70 = 0x06085c70; _DAT_06099811 = 0x0609...
2
1
0
[{"id": "G0", "claim": "The collider effects linter was apparently rewriting ELEMENT_* names back to EFFECT_UNK_* earlier, so something should be written into the linter to prevent that going forwards (explicitly not blocking this PR).", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": ...
null
Xeeynamo__sotn-decomp__2063
Xeeynamo/sotn-decomp
2,063
defect
f7086b647f4503a3873730e17d6a13b38d382f46
2bee05de3f5a2d13cf186db186df066885fd9bdb
Decompile `no1` EntityMistDoor
PSX: https://decomp.me/scratch/KHdpC PSP: https://decomp.me/scratch/RdP5H
diff --git a/src/st/no1/e_init.c b/src/st/no1/e_init.c index 114a840f33..fbee57414c 100644 --- a/src/st/no1/e_init.c +++ b/src/st/no1/e_init.c @@ -93,7 +93,7 @@ void func_us_801D563C(Entity* self); void func_us_801D582C(Entity* self); void func_us_801D5808(Entity* self); void func_us_801B6198(Entity* self); -void fu...
2
2
0
[{"id": "G0", "claim": "The entity `E_SAVE_GAME_POPUP` should be renamed `E_MESSAGE_BOX`, since it serves as a generic message box in its other usage too.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hardcoded playable-character checks in ...
null
Xeeynamo__sotn-decomp__2090
Xeeynamo/sotn-decomp
2,090
defect
79b49f995eeec79b99278353a1ba685989af56f4
a78df224b4b48e148a78860f370b5f9c6f7cd6cd
Decompiled ancillary skeleton ape functions
Matched func_us_801D4F18, func_us_801D5008, and func_us_801D544C for no1 skeleton ape.
diff --git a/config/symbols.us.stno1.txt b/config/symbols.us.stno1.txt index 64af416f62..390b712d58 100644 --- a/config/symbols.us.stno1.txt +++ b/config/symbols.us.stno1.txt @@ -23,7 +23,6 @@ GetDistanceToPlayerX = 0x801C4458; GetDistanceToPlayerY = 0x801C4494; GetSideToPlayer = 0x801C44C8; MoveEntity = 0x801C450C;...
4
4
1
[{"id": "G0", "claim": "Run `make format` to fix the linting of the pull request.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The second argument to EntityExplosionSpawn is a SFX and should be mapped using the enum in sfx.h: 0x655 should be S...
null
Xeeynamo__sotn-decomp__2145
Xeeynamo/sotn-decomp
2,145
defect
1db3e0b31c9eb7d61539942248a4d43551e590b6
6307bf1dc76f4162d2f9725652e777c96dc0d21f
Decompiled func_us_801B9028/func_psp_0925C628
func_us_801B9028: PSX: https://decomp.me/scratch/JQFp5 PSP: https://decomp.me/scratch/yoD7v
diff --git a/src/st/no1/no1.h b/src/st/no1/no1.h index c8974ca331..ede6accd3d 100644 --- a/src/st/no1/no1.h +++ b/src/st/no1/no1.h @@ -96,7 +96,7 @@ extern EInit D_us_80180A1C; // extern EInit D_us_80180A28; // extern EInit D_us_80180A34; extern EInit D_us_80180A40; -// extern EInit D_us_80180A4C; +extern EInit D_us...
1
1
0
[{"id": "G0", "claim": "The step-2 debug logic inlined in func_us_801B9028 duplicates src/st/pad2_anim_debug.h, and the existing include could be used there instead of copying its code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Xeeynamo__sotn-decomp__2253
Xeeynamo/sotn-decomp
2,253
defect
5b9ded144beace7dbe57e89037e3c5f8af6ae353
00e217c031e63f43b9c85f45d5ea8399ab402157
Decompiled `lib` func_us_801BB8DC/func_psp_09255D78
PSX: https://www.decomp.me/scratch/oWf8p PSP: https://www.decomp.me/scratch/BzLiq
diff --git a/include/entity.h b/include/entity.h index 49a6d05ca8..aa8035840d 100644 --- a/include/entity.h +++ b/include/entity.h @@ -2657,6 +2657,16 @@ typedef struct { /* 0x87 */ u8 unk87; /* 0x88 */ struct Entity* unk88; /* 0x8C */ u16 unk8C; + /* 0x90 */ s32 : 32; + /* 0x94 */ s32 : 32; + /...
2
2
0
[{"id": "G0", "claim": "The hardcoded palette constant for the lesser demon's flash should use the project's overlay palette macro — ultimately PAL_OVL(0x19F) rather than a raw 0x819F or PAL_DRA(0x819F) — since PAL_OVL already ORs in 0x8000 and marks the palette as belonging to the overlay, in both the PSX and PSP copi...
null
Xeeynamo__sotn-decomp__2255
Xeeynamo/sotn-decomp
2,255
defect
5b9ded144beace7dbe57e89037e3c5f8af6ae353
6e271319dd64b03ae3a86a1cff977892abdf6f43
Decompiled `lib` func_us_801BBEB0/func_psp_092564B8
PSX: https://www.decomp.me/scratch/GMRIl PSP: https://www.decomp.me/scratch/E72B1
diff --git a/config/symbols.pspeu.stlib.txt b/config/symbols.pspeu.stlib.txt index 2b487264fe..17b54a673c 100644 --- a/config/symbols.pspeu.stlib.txt +++ b/config/symbols.pspeu.stlib.txt @@ -106,6 +106,7 @@ func_us_801BB53C = 0x09254288; EntityBreakable = 0x092546D0; EntityChair = 0x09254DC0; func_us_801BB8DC = 0x09...
2
2
0
[{"id": "G0", "claim": "The spit entity should store the primitive in `self->ext.lesserDemon.unk7C` instead of `self->ext.prim`, since the lesserDemon extension is already used elsewhere in the file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
Xeeynamo__sotn-decomp__2256
Xeeynamo/sotn-decomp
2,256
defect
5b9ded144beace7dbe57e89037e3c5f8af6ae353
42cf292634cdbed0791a6d49432161835c8abb76
Decompiled `lib` func_us_801BC28C/func_psp_09256AC0
PSX: https://www.decomp.me/scratch/5RK7F PSP: https://www.decomp.me/scratch/TXHRR
diff --git a/config/symbols.pspeu.stlib.txt b/config/symbols.pspeu.stlib.txt index 2b487264fe..c0b86450ea 100644 --- a/config/symbols.pspeu.stlib.txt +++ b/config/symbols.pspeu.stlib.txt @@ -106,6 +106,7 @@ func_us_801BB53C = 0x09254288; EntityBreakable = 0x092546D0; EntityChair = 0x09254DC0; func_us_801BB8DC = 0x09...
3
3
3
[{"id": "G0", "claim": "The PSP branch of the case-1 clut/b3 code should be made to match the PSX behaviour instead of diverging under #ifdef VERSION_PSP.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The inverted PSX #else branch of the clut selec...
null
Xeeynamo__sotn-decomp__2275
Xeeynamo/sotn-decomp
2,275
defect
7b48998ad4ad9184a2c87cb0266a3c2f556c51df
bc055587ba6b7318a1016ec3107c124e74868e81
Update `st0` PSP for sharing of Cutscene entities
Brought in the PSP side for this file Made a few refactors to some types, and a couple of changes to the PSX code required to match on PSP
diff --git a/Makefile.psp.mk b/Makefile.psp.mk index b5952a26a9..6e3a746306 100644 --- a/Makefile.psp.mk +++ b/Makefile.psp.mk @@ -50,7 +50,7 @@ $(BUILD_DIR)/stlib.elf: $(BUILD_DIR)/stlib.ld $(addprefix $(BUILD_DIR)/src/st/li ST_NO4_MERGE = $(BUILD_DIR)/stno4.elf: $(BUILD_DIR)/stno4.ld $(addprefix $(BUILD_DIR)/src/st...
1
1
0
[{"id": "G0", "claim": "The SVECTOR members should be presented as signed (negative) decimal values rather than hex values starting with FF.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Xeeynamo__sotn-decomp__2279
Xeeynamo/sotn-decomp
2,279
defect
17694f1a505b97bccf56219486c0120cc1c9f0e7
5cc1cce404f386944c52bb35835e0934bd8d34b8
Decompile `lib` func_us_801AFA80
PSX: https://decomp.me/scratch/xfX36 PSP: https://decomp.me/scratch/JiR1o
diff --git a/config/splat.us.stlib.yaml b/config/splat.us.stlib.yaml index 3c81f58c2b..0925cd9250 100644 --- a/config/splat.us.stlib.yaml +++ b/config/splat.us.stlib.yaml @@ -45,8 +45,7 @@ segments: - [0xAD8, .data, e_lock_camera] - [0xB58, data] - [0xDC0, .data, e_library_bg] - - [0xDF0, data...
1
1
0
[{"id": "G0", "claim": "Use the PRIM_GT4 macro instead of the magic number 4 in the g_api.func_800EDB58 call in func_us_801AFA80.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Xeeynamo__sotn-decomp__2331
Xeeynamo/sotn-decomp
2,331
defect
b74982b437a19d0be78470e4b4a7112ea44b5596
f199a1d0e8d48afee72d727e7069544e12f8067f
Decompile final `no1` funcs
These should be the final 3 funcs from `no1` all done. First two were imported based off scratches from @hohle and @ser-pounce from a couple months back `func_us_801B9184` PSX: https://decomp.me/scratch/uMgSW PSP: https://decomp.me/scratch/etKbL `func_us_801B8D30` PSX: https://decomp.me/scratch/kKgwh PSP: h...
diff --git a/include/entity.h b/include/entity.h index 357dee6f9e..e3d3371e39 100644 --- a/include/entity.h +++ b/include/entity.h @@ -2892,6 +2892,17 @@ typedef struct { /* 0xA0 */ f32 unkA0; } ET_Clouds; +typedef struct { + /* 0x7C */ Primitive* prim; + /* 0x80 */ s16 unk80; +} ET_801B8D30; + +typedef s...
1
1
1
[{"id": "G0", "claim": "The PSP and non-PSP branches should assign `unk80 = posX * 64` in both versions, matching the original code (the PSP `posX << 6` form and the non-PSP conditional-negate form must agree).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Xeeynamo__sotn-decomp__2348
Xeeynamo/sotn-decomp
2,348
defect
a6b4a7745c09f3570e3503bc1eb560ea0c6e828d
bde8e276bca867044cff4995c470df7d4e2cf398
Add sotn str s3 type
This adds another sotn_str type to fix the half-width katakana accents like: ``` Cadáveres frescos. -> Cadフveres frescos. ``` Since the compiler expects shift-jis we replace the correct accents with the half-width characters. I only did one accent as a POC since there's a ton of editing involved.
diff --git a/src/st/lib_psp/e_shop.c b/src/st/lib_psp/e_shop.c index d9f15a6196..1ecf518029 100644 --- a/src/st/lib_psp/e_shop.c +++ b/src/st/lib_psp/e_shop.c @@ -407,7 +407,7 @@ static char* D_psp_0929B4A0[] = { "Destruido por Richter ", "Resucita gracias a huesos", "Calavera giratoria", - "Cadフveres...
5
3
1
[{"id": "G0", "claim": "The utf8_to_byte_literals_escaped tests added by the pull request are commented out instead of being active.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should clarify when the _S and _S3 string macro encoding...
null
Xeeynamo__sotn-decomp__2350
Xeeynamo/sotn-decomp
2,350
defect
909c26a9a9c74b2df251c2c9a3e8bafaf2cf261c
80259d9b7b54583f86db91a5068d588cf568a2b7
Rename functions related to revealing secret passages
There are a handful of functions that are related to drawing pixels on the map to indicate hidden passageways that the player has revealed (like the breakable wall and floor in Alchemy Lab). The array at `D_800A2BC0` lists out the possible points and what castle flags they pertain to. There does not appear to be an ...
diff --git a/include/castle_flags.h b/include/castle_flags.h index c54ac8a1c8..67f519c128 100644 --- a/include/castle_flags.h +++ b/include/castle_flags.h @@ -102,9 +102,7 @@ typedef enum { /* 0x98 */ RTOP_SECRET_WALL_1_BROKEN = 152, // Lower right of large room /* 0x99 */ RTOP_SECRET_WALL_2_BROKEN = 153, // ...
3
3
0
[{"id": "G0", "claim": "The function pointer renamed in include/game.h should be spelled with a capital R (RevealSecretPassageAtPlayerPositionOnMap) per the coding standard.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The function renamed in ...
null
Xeeynamo__sotn-decomp__2432
Xeeynamo/sotn-decomp
2,432
defect
768e14ff4cbf4dafd4c85deab6b0c3279c36b7d8
22e59115bd38668aa81966a6e941ce37db8cbd14
Decompile PSP language management initialization function
Was going to include more on this PR but not sure how my decomp availability will look. This one will end up having an absolute ton of data to pull in at some point eventually.
diff --git a/config/splat.pspeu.dra.yaml b/config/splat.pspeu.dra.yaml index 92251e6701..412787e493 100644 --- a/config/splat.pspeu.dra.yaml +++ b/config/splat.pspeu.dra.yaml @@ -51,8 +51,8 @@ segments: - [0x66B0, c, dra/5F60C] # O0 - [0xA710, c, dra_psp/A710] # O4 - [0xE6A8, c, dra_psp/E6A8] + ...
1
1
0
[{"id": "G0", "claim": "The language switch cases in func_psp_090F5560 should use the existing language enum constants (e.g. LANG_EN) instead of raw numeric values.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Xeeynamo__sotn-decomp__2525
Xeeynamo/sotn-decomp
2,525
defect
a0f98f84ab362d831e46389d9edb0fbef30670f6
912228520fa54f654ef18b883e8ec147bba991a1
Match NO4 func_us_801c86f4 (aka EntityBreakableCrystalFloor)
In room ID 1 of Underground Caverns (which I call Hidden Crystal Entrance), there is a breakable floor at the bottom made of crystal (or maybe it's ice?). After striking it three times, the tiles completely break away, leaving a hole that the player can fall through to enter the room below. The function references a...
diff --git a/include/entity.h b/include/entity.h index 0f7ab791ef..4cf9ec42f1 100644 --- a/include/entity.h +++ b/include/entity.h @@ -1841,6 +1841,13 @@ typedef struct { /* 0x9C */ s16 rotSpeed; } ET_BreakableWallDebris; +// NO4 Room 1, Bottom, Breakable Crystal Floor +typedef struct { + /* 0x7C */ char pad...
4
4
0
[{"id": "G0", "claim": "The newly added code should call g_api.PlaySfx and reference the function as g_api.<name> instead of g_api_PlaySfx / g_api_func_800F1FC4.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The literal entity id 2 used in the two ...
null
Xeeynamo__sotn-decomp__2571
Xeeynamo/sotn-decomp
2,571
defect
ef32d209382af21537f4228c2605d22b7cb44a6a
fe47d14e470fc245b865808922beceac00bad589
Moved st_debug segments inline and removed st_debug.h
Adjusted st_debug.h to use only ObjInit2 and to allow all current overlays to use it.
diff --git a/src/st/st_debug.h b/src/st/st_debug.h index adfd36265b..988bc3eb46 100644 --- a/src/st/st_debug.h +++ b/src/st/st_debug.h @@ -1,24 +1,39 @@ // SPDX-License-Identifier: AGPL-3.0-or-later -extern ObjInit OVL_EXPORT(BackgroundBlockInit)[]; +// This conditional is up here just to keep the code block cleaner...
1
1
0
[{"id": "G0", "claim": "EntityBackgroundBlock should be inlined in the respective overlay C files instead of living in the shared st_debug.h behind per-overlay conditionals, because conditionally included/duplicated code hurts readability and the ObjInit2/ObjInit structs are a hack that this solution makes more complic...
null
Xeeynamo__sotn-decomp__2619
Xeeynamo/sotn-decomp
2,619
defect
34417f9fb0733e72a16c85134c1d21cdd927faaf
48958264044070ee99c17be510e6b2f2373d952e
NO3 Fire Warg: Data, PSP codeshare, etc
Lots of code, but no huge surprises. None of the data was in; that's now fixed up. Two functions are totally resistant to codesharing, but thankfully the differences are small and localized so they were easy to ifdef.
diff --git a/config/splat.pspeu.stno3.yaml b/config/splat.pspeu.stno3.yaml index 49cb3f75a7..ed721b03e6 100644 --- a/config/splat.pspeu.stno3.yaml +++ b/config/splat.pspeu.stno3.yaml @@ -71,13 +71,14 @@ segments: - [0xF6B8, c, no3_psp/e_stage_name] - [0x10538, c, no3/e_red_door] - [0x11840, c, no3/...
3
3
2
[{"id": "G0", "claim": "Two functions placed in e_fire_warg.c (func_801CC5A4, func_801CC90C) duplicate ones in the warg file and belong to the warg, since RNO3 contains only fire_warg so the fire warg symbols are unambiguous.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id...
null
Xeeynamo__sotn-decomp__2622
Xeeynamo/sotn-decomp
2,622
defect
43928988e8286383817681ca4659649be8672988
4fa2e776a0a05424495927e8cf7892ac44ddd03f
Give "opacity" name to Entity.unk6C
Turns out this was already discovered in a comment in `ghost.c`. Named now, both the entity member and the draw flag. Mostly a find and replace, but not a fully automatic one; I checked as I went to make sure the member didn't get renamed in any other structs, so this should just be entities.
diff --git a/include/game.h b/include/game.h index 961dd2976b..d0437e3298 100644 --- a/include/game.h +++ b/include/game.h @@ -306,8 +306,7 @@ typedef enum { FLAG_DRAW_ROTX = 0x01, FLAG_DRAW_ROTY = 0x02, FLAG_DRAW_ROTZ = 0x04, - FLAG_DRAW_UNK8 = 0x08, // Salem Witch uses this for shadows - ...
2
2
0
[{"id": "G0", "claim": "The '// a lifetime counter' comment left on entity->opacity = 0x80 is now wrong (the field is opacity) and the same stale comment appears in several places, so it should be removed or corrected.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id...
null
Xeeynamo__sotn-decomp__2632
Xeeynamo/sotn-decomp
2,632
defect
8b15d522b79a834889d3997bb3480563a5a830ea
1ad277e3d1e009558d655ea1b54cba4d993346bc
Added DAI for us and pspeu
All symbols, text segments, and rodata segments were automatically generated.
diff --git a/config/check.pspeu.sha b/config/check.pspeu.sha index 3b1d238e34..2c0a225ad3 100644 --- a/config/check.pspeu.sha +++ b/config/check.pspeu.sha @@ -1,10 +1,11 @@ 2ba697c152e240ee0d69619f4a460d145fae04c0 build/pspeu/dra.bin -9fd233b8334468c1c750547d0b772a8d58357f8c build/pspeu/ric.bin d50f2c928f7a01fb4896...
5
4
0
[{"id": "G0", "claim": "The rodata/file layout (EntityRelicOrb immediately following BlitChar, contiguous with e_collect) strongly suggests BlitChar and EntityRelicOrb should be moved into e_collect rather than kept as separate files in this PR.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "...
null
Xeeynamo__sotn-decomp__2667
Xeeynamo/sotn-decomp
2,667
defect
c8ed0e5ef0f252c606153bd836c9c544a6fa439a
7fbe9ad902ca527364d6b193b6c645795c3922aa
Begin cleaning up data for NO3 PSP
With NO3 PSP fully decompiled, I'm now beginning to clean up the data and most importantly, get the two versions sharing everything. I've done what I can here; most (if not all) of the remaining material is handled by the asset manager, which needs some slight tweaking, as mentioned in Discord. Once the asset tool i...
diff --git a/config/splat.pspeu.stno3.yaml b/config/splat.pspeu.stno3.yaml index 552c9dcc5c..de02f53007 100644 --- a/config/splat.pspeu.stno3.yaml +++ b/config/splat.pspeu.stno3.yaml @@ -93,18 +93,18 @@ segments: - [0x33EA8, data] - [0x33FB0, .data, no3_psp/cutscene_data] - [0x347E0, data] + -...
1
1
0
[{"id": "G0", "claim": "Give the unnamed sound constant 0x7C3 in g_WaterSounds a placeholder name in the enum so it can be tracked.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Xeeynamo__sotn-decomp__2671
Xeeynamo/sotn-decomp
2,671
defect
c8ed0e5ef0f252c606153bd836c9c544a6fa439a
846cb03c146121517bef421fe7c7d7122994c8ae
Decompiled, imported, and merged `dai` `e_bone_pillar`
EntityBonePillarHead PSX: https://decomp.me/scratch/Ta5tY PSP: https://decomp.me/scratch/v9dIV EntityBonePillarSpikeBall PSX: https://decomp.me/scratch/R6Nbi PSP: https://decomp.me/scratch/8a5E9 EntityBonePIllarFireBreath PSX: https://decomp.me/scratch/fC1P3 PSP: https://decomp.me/scratch/jvQxB EntityBon...
diff --git a/config/splat.pspeu.stdai.yaml b/config/splat.pspeu.stdai.yaml index 438e5e0c86..4f9a97b723 100644 --- a/config/splat.pspeu.stdai.yaml +++ b/config/splat.pspeu.stdai.yaml @@ -59,6 +59,8 @@ segments: - [0xF2E8, c, dai_psp/e_mist_door] - [0xF570, c, dai/popup] - [0xFB68, c, dai_psp/unk_FB...
12
8
2
[{"id": "G0", "claim": "The spike-ball entity should use a second spiked-ball E_ID instead of E_SEALED_DOOR, since something may be slightly off with the E_IDs in dai.h.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The sensor arrays passed to UnkCollis...
null
Xeeynamo__sotn-decomp__2677
Xeeynamo/sotn-decomp
2,677
defect
08ea0c4d1324abc417bb134000ed0450cb58db6d
67502be717671c9617e0af9725a8c7a8c30d87bc
Failing Lints & AttackElement Lint
Adds two new "failing" lints which identify problems but do not automatically fix them. The first identifies automatic symbols with addresses that are within the `Entity` table. The second finds RODATA strings being passed as global variables to `FntPrint`. These will cause `make format` to fail with file and line numb...
diff --git a/Makefile b/Makefile index 9516a36cb1..44d62209d5 100644 --- a/Makefile +++ b/Makefile @@ -193,9 +193,14 @@ help: ##@ Print listing of key targets with their descriptions format: ##@ Format source code, clean symbols, other linting format: format-src format-tools format-symbols format-license + +.PHONY:...
1
1
0
[{"id": "G0", "claim": "The EntityRangeLinter's error message \"global should be entity\" is confusing; it should name the variable and say it should index into g_Entities (e.g. \"Variable X should index into g_Entities\").", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Xeeynamo__sotn-decomp__2678
Xeeynamo/sotn-decomp
2,678
defect
acf59827efffd8f3334217027738089e1943317f
90799311cad40a4c1eec5c32bbc4171d28deee1f
Pulled in code and merged known segments for DAI
I have also decompiled e_cutscene, but I'm leaving that for a separate PR since e_cutscene has a lot going on. I want to say that I did very little work for this comparatively. This is 99% just pulling in what has already been done, so thank you to anybody who decompiled any of the code in these .h files.
diff --git a/config/splat.pspeu.stdai.yaml b/config/splat.pspeu.stdai.yaml index 4f9a97b723..34315b472c 100644 --- a/config/splat.pspeu.stdai.yaml +++ b/config/splat.pspeu.stdai.yaml @@ -45,26 +45,27 @@ segments: subalign: 8 subsegments: - [0x80, c, dai/create_entity] - - [0x1028, c, dai_psp/e_bat...
3
2
0
[{"id": "G0", "claim": "The palette macro `SEALED_DOOR_PALETTE` should perhaps be named `DaiPalette` for consistency with the `DaiPalette` enum introduced in dai.h.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The palette enum values used in t...
null
Xeeynamo__sotn-decomp__2708
Xeeynamo/sotn-decomp
2,708
defect
0a0bd03b78710cb234709472a7a6ade4affac3ed
241a524f236b61fbfd72a66afe6c452ce7269055
Imported `dai` `e_stage_name` data
I realized that I missed importing e_stage_name data. I also moved pspeu EntityStageNamePopup to e_stage_name.c since it had ovl based ifdefs in it.
diff --git a/config/assets.pspeu.yaml b/config/assets.pspeu.yaml index 18330b037b..cd9b515e1e 100644 --- a/config/assets.pspeu.yaml +++ b/config/assets.pspeu.yaml @@ -218,6 +218,11 @@ files: vram: 0x09237700 assets: - [0x80, skip] + #- [0x23A18, cmpgfx, stage_name_en, 128, 128, 4] ...
3
2
2
[{"id": "G0", "claim": "The pull request should not import giant blobs of copyrighted data in the repo; instead the commented-out cmpgfx entries for the stage_name assets should be enabled in config/assets.pspeu.yaml.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1",...
null
Xeeynamo__sotn-decomp__2710
Xeeynamo/sotn-decomp
2,710
defect
bb952e64bf22be9e382f56d0109b6ef692772e45
a9e0cc219fdf523a4b196d1a730f33659d41cb3c
Decompile PSP NP3 st_init_np3.c
Good start - no big surprises compared to the existing overlays. Only hangup was that there was a fake function identified in the middle of InitEntityIds; after a while of staring at the compiled code I figured out what was going wrong and made it work the normal way.
diff --git a/config/splat.pspeu.stnp3.yaml b/config/splat.pspeu.stnp3.yaml index 827f687465..a6c0732095 100644 --- a/config/splat.pspeu.stnp3.yaml +++ b/config/splat.pspeu.stnp3.yaml @@ -42,7 +42,8 @@ segments: align: 128 subalign: 8 subsegments: - - [0x80, c, np3_psp/first_c_file] + - [0x80, c...
1
1
0
[{"id": "G0", "claim": "InitEntityIds should assign the enum names (e.g. E_ID_11) instead of hardcoded hex literals, and so on for the rest of the assignments.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Xeeynamo__sotn-decomp__2730
Xeeynamo/sotn-decomp
2,730
defect
eebaf0965357ac3ebfc7dc2d6f995e05b8879e4a
e9b022c049b3a78eac82f08383dba8d6a6505c5a
Document Jewel Sword drops
Note that the item IDs used in the table for MAD are different. They appear to be off by 4 entries. I don't know of a way to verify the Jewel Sword behavior in MAD since there are no enemies in the stage, but I believe the new item IDs correspond to Lapis Lazuli, Ring of Ares, Gold Ring, and Silver Ring. I also remo...
diff --git a/config/symbols.us.stlib.txt b/config/symbols.us.stlib.txt index 7164876d1a..f4f89cc32d 100644 --- a/config/symbols.us.stlib.txt +++ b/config/symbols.us.stlib.txt @@ -32,7 +32,7 @@ g_testCollvCoords = 0x80181FD4; g_testCollElementLookup = 0x80181FDC; g_testColliFrames = 0x80181FF0; g_testCollPrizeTable =...
3
2
0
[{"id": "G0", "claim": "The DROPPED_ITEM_ prefix on the new enum constants in include/game.h is a little lengthy; a shorter prefix (e.g. DROPPED_XXX, or something even shorter) would be enough.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
Xeeynamo__sotn-decomp__2769
Xeeynamo/sotn-decomp
2,769
defect
e125af7e04bb6f76a00e7960b6363b9067a3c812
4b43a5682576de4f7bff8a1f8235dfa5ab8385ca
NO2 functions
Decompiles : - func_us_801B5368 - func_us_801B5578 - func_us_801B56A4 - func_us_801B5750 - func_us_801B5948 - func_us_801B72E8 - func_us_801B7580
diff --git a/include/entity.h b/include/entity.h index 7817c2c645..960651b867 100644 --- a/include/entity.h +++ b/include/entity.h @@ -3317,6 +3317,16 @@ typedef struct { /* 0x84 */ s16 unk84; } ET_801B6E34; +typedef struct { + /* 0x7C */ s32 : 32; + /* 0x80 */ u8* animData; +} ET_801B72E8; + +typedef str...
6
6
0
[{"id": "G0", "claim": "Use `if (newEnt != NULL)` instead of the bare `if (newEnt)` checks on `AllocEntity` results, to stay consistent.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The redundant `return` statements in these switch cases are u...
null