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
HKUDS__LightRAG__2930
HKUDS/LightRAG
2,930
defect
5a2694e6038b8f41243790f90946af04620cba63
ce044ca9ca36df656342d40521dd48c2ef7e972c
fix(graph): return 0 for missing node/edge degree instead of None
## Summary - Fix `node_degree` and `edge_degree` in `PGGraphStorage` to return `0` instead of `None` when the node/edge is not found - Fix `node_degree` in `NetworkXStorage` to return `0` instead of raising `NetworkXError` for missing nodes - Add unit tests covering both backends for missing and existing node/edge degr...
diff --git a/lightrag/kg/networkx_impl.py b/lightrag/kg/networkx_impl.py index 8a59e45e06..a44dcadd8b 100644 --- a/lightrag/kg/networkx_impl.py +++ b/lightrag/kg/networkx_impl.py @@ -110,7 +110,9 @@ async def get_node(self, node_id: str) -> dict[str, str] | None: async def node_degree(self, node_id: str) -> int:...
1
1
0
[{"id": "G0", "claim": "The tests assert against local coroutine copies of the degree methods instead of exercising the real PGGraphStorage/NetworkXStorage implementations, so a future regression in the real methods would still leave the suite green.", "category": "testing", "verdict": "supported", "priority": "P2", "s...
null
HKUDS__OpenHarness__12
HKUDS/OpenHarness
12
defect
54bf610016e60a4ffbc51412d5a969018137522f
759b2ebf3ee55cc5ef7ec00805a4353eacd9fa60
fix(memory): parse YAML frontmatter in scan and improve search relevance
## Problem The memory scanner (`memory/scan.py`) treats the first non-empty line of each file as the description. For files with YAML frontmatter — the format encouraged by Claude-style workflows and already parsed by the skill loader — this returns the raw `---` delimiter as the description. This silently degrades s...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d58a6b03..75d66c457 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,12 @@ The format is based on Keep a Changelog, and this project currently tracks chang ### Added - GitHub Actions CI workflow for Python linting, tests, and frontend TypeScript checks. + +### ...
7
4
2
[{"id": "G0", "claim": "When a file has no frontmatter, body_preview is built from lines[body_start:] and so includes the same line that was used to populate description, letting that text count both as metadata and as body content during scoring and over-weighting the first paragraph; the chosen description line shoul...
null
HKUDS__RAG-Anything__195
HKUDS/RAG-Anything
195
defect
4bec8f56869755181391ae028d2b6d4293951b07
836b5e452c3aa5483f91cced89ae787d3cd61deb
feat(parser): add remote URL support for DoclingParser
- Implemented URL detection and secure downloading in Parser base class. - Added temporary file handling with automatic cleanup in DoclingParser. - Added user-agent headers to prevent 403 errors during document retrieval. - Included verification script for automated URL parsing tests. - add docling v2.72.0 to requi...
diff --git a/raganything/parser.py b/raganything/parser.py index a07443e24..b698a6b98 100644 --- a/raganything/parser.py +++ b/raganything/parser.py @@ -18,6 +18,10 @@ import subprocess import tempfile import logging +import urllib.parse +import urllib.request +import shutil +import os from pathlib import Path fro...
4
4
3
[{"id": "G0", "claim": "The temp file created before the network read is never deleted when urlopen or copyfileobj fails, because parse_document only tracks downloaded_temp_file after _download_file returns, so failed URL downloads leak files in /tmp.", "category": "correctness", "verdict": "supported", "priority": "P1...
null
HKUDS__RAG-Anything__199
HKUDS/RAG-Anything
199
defect
4bec8f56869755181391ae028d2b6d4293951b07
1419979230b9e82499c0c3a5d6e82b1afafd0dd4
feat(parser): add optional PaddleOCR backend
## Description This PR adds an optional PaddleOCR parser backend to RAG-Anything while keeping default MinerU/Docling behavior unchanged. The change is intentionally minimal and focused on: - adding `parser="paddleocr"` support, - preserving optional dependency behavior (lazy imports), - keeping output compatible with...
diff --git a/README.md b/README.md index 6535f108a..ad8368ab7 100644 --- a/README.md +++ b/README.md @@ -336,7 +336,7 @@ async def main(): # Create RAGAnything configuration config = RAGAnythingConfig( working_dir="./rag_storage", - parser="mineru", # Parser selection: mineru or docling + ...
5
5
4
[{"id": "G0", "claim": "check_installation() only verifies paddleocr while PDF parsing also hard-depends on pypdfium2 in _extract_pdf_page_inputs, creating a false-positive health check that lets BatchParser/RAGAnything accept the parser before it fails with ImportError on the first PDF.", "category": "correctness", "v...
null
HKUDS__RAG-Anything__210
HKUDS/RAG-Anything
210
defect
bc960ffc4e84fdd668b33c0b415cec6bdd5f3241
ad9ce856c7b16c53c2500be798412643d277e0b6
feat: support environment variables in parsers
support environment variables in parsers ## Checklist - [x] Changes tested locally - [x] Code reviewed - [ ] Documentation updated (if necessary) - [x] Unit tests added (if applicable) ## Additional Notes you can set environment variables for Mineru and Docling. for example, you can set `CUDA_VISIBLE_...
diff --git a/raganything/parser.py b/raganything/parser.py index 14e9919f8..d7e1eee5f 100644 --- a/raganything/parser.py +++ b/raganything/parser.py @@ -12,6 +12,7 @@ from __future__ import annotations +import os import json import argparse import base64 @@ -604,6 +605,7 @@ def _run_mineru_command( dev...
2
1
1
[{"id": "G0", "claim": "The new **kwargs in MineruParser._run_mineru_command makes unknown arguments silently ignored instead of failing fast, which could lead to 'runs successfully but config not applied' scenarios; validate and explicitly reject unsupported kwargs (or at least log a warning), add light validation for...
null
HKUDS__Vibe-Trading__57
HKUDS/Vibe-Trading
57
defect
249630bef114e5e83ffd9842ceaad0539caa3b38
9954e838a99499f122868606db6a04ad043db665
feat: add model and data source settings UI
## Summary - Add a Settings page for configuring LLM provider, model, endpoint, API key, generation limits, and reasoning effort. - Add data source settings for Tushare token management and BaoStock availability/status display. - Add backend settings endpoints, Tushare placeholder-token handling, and API regression te...
diff --git a/agent/.env.example b/agent/.env.example index 16f9a8716c..1928f5dffd 100644 --- a/agent/.env.example +++ b/agent/.env.example @@ -80,7 +80,7 @@ TIMEOUT_SECONDS=120 MAX_RETRIES=2 # Enable reasoning on relays that require opt-in (e.g. OpenRouter thinking models). -# Forwarded as extra_body.reasoning.effo...
6
6
4
[{"id": "G0", "claim": "GET /settings/* should be side-effect free: they currently call _ensure_agent_env_file() and can create agent/.env from .env.example just by reading settings.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Documented placehol...
null
HKUDS__Vibe-Trading__63
HKUDS/Vibe-Trading
63
defect
3ccfa10deb3aaf94dd8274e299c770c553e9decb
c6afc4d39f7e5de2d04f8763cfef79344f41d26a
feat(skill): add ashare-pre-st-filter — A股 ST/*ST 风险预测框架
## 以下内容为人类手打 ### 什么时候用?什么情况用? - 这是一个基础的SKILL,它告诉Agent如何预测一只股票在下个年报季是否会被ST。 - 对于指数型满仓策略,由于该策略头寸固定,需全年优先执行此策略进行风险防控。 - 对于短期操作策略(如缠论和聪明钱策略),使用者需在每年4月1日至4月28日期间执行该策略以规避风险。 - 对于大部分超短线用户, 每年春节后至年报发布完成后一周内,利用该策略调整头寸进行做: - 示例1: 策略可与双针探底等蜡烛图形态学策略配合使用:当预判股票可能被ST后,提前减仓,待其被ST后出现二次圆弧底形态时再介入 - 示例2: 反向使用本策略, 预测一只ST多大可能...
diff --git a/agent/src/skills/ashare-pre-st-filter/SKILL.md b/agent/src/skills/ashare-pre-st-filter/SKILL.md new file mode 100644 index 0000000000..5e3b080efa --- /dev/null +++ b/agent/src/skills/ashare-pre-st-filter/SKILL.md @@ -0,0 +1,511 @@ +--- +name: ashare-pre-st-filter +description: A 股 ST/*ST 风险预测框架 — 基于最新中报/三季...
8
3
2
[{"id": "G0", "claim": "main() only catches invalid date args, so an invalid --ts-code raises ValueError from _validate_stockid() and crashes the script with a traceback, contradicting the documented/scripted contract that failures return {\"source\": \"unavailable\", \"error\": ...} JSON instead of raising; the review...
null
HKUDS__Vibe-Trading__64
HKUDS/Vibe-Trading
64
defect
3ccfa10deb3aaf94dd8274e299c770c553e9decb
bbbef46ad087349a9d53053f1765af9061224556
Feat/correlation heatmap
## Summary - Add a **Correlation Matrix** page (`/correlation`) displaying a heatmap of pairwise Pearson/Spearman correlations across multiple assets - Introduce a backend `GET /correlation` endpoint with a reusable `compute_correlation_matrix()` engine that auto-infers market (crypto, a-share, us_equity, hk_equity...
diff --git a/agent/api_server.py b/agent/api_server.py index 66ce10394e..f9ebd78ec8 100644 --- a/agent/api_server.py +++ b/agent/api_server.py @@ -996,6 +996,36 @@ async def health_check(): ) +@app.get("/correlation") +async def get_correlation_matrix( + codes: str = Query(..., description="Comma-separated ...
4
4
4
[{"id": "G0", "claim": "Frontend CI is failing because frontend/src/router.tsx has an extra `);` after the Correlation lazy import, causing TS1128: Declaration or statement expected.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "CorrelationMatrix l...
null
HKUDS__nanobot__2382
HKUDS/nanobot
2,382
defect
41843b0fb06008aa970fe48816d223fd67e3ba25
38e561c37531fdcb48bcf8fb6d39c53d03bcd04b
feat(feishu): 飞书频道流式输出(CardKit 流式 API)
## Summary 为飞书 (Feishu/Lark) 频道实现流式输出 (`send_delta`),使用 **CardKit 流式能力**:创建卡片实体 → `card_element.content` 全量文本 + 递增 `sequence`(打字机效果)→ **`card.settings` 关闭 `streaming_mode`**。**未使用**对单条 IM 消息做 PATCH 的旧方案。 ### 核心变更 - **CardKit 流式 API**:`cardkit.v1.card.create` + `cardkit.v1.card_element.content`;流式结束后调用 `cardkit.v1.ca...
diff --git a/README.md b/README.md index 321b9d8496e..84df1ad860d 100644 --- a/README.md +++ b/README.md @@ -505,7 +505,10 @@ Uses **WebSocket** long connection — no public IP required. **1. Create a Feishu bot** - Visit [Feishu Open Platform](https://open.feishu.cn/app) - Create a new app → Enable **Bot** capabilit...
6
5
2
[{"id": "G0", "claim": "The cardkit:card:write permission looks newly added so existing users may not have it, and documentation needs to be added explaining this.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "docs/CHANNEL_PLUGIN_GUIDE.md is mean...
null
HKUDS__nanobot__2668
HKUDS/nanobot
2,668
defect
c8c520cc9a4dbe619eb3f21200dc40971a36b665
8f126b6c9fa97721381f07f61e6a597aa120848b
fix: restore GitHub Copilot auth flow
Implement the real GitHub device flow and Copilot token exchange for the GitHub Copilot provider. Also route github-copilot models through a dedicated backend and strip the provider prefix before API requests. Add focused regression coverage for provider wiring and model normalization. Generated with GitHub Co...
diff --git a/nanobot/cli/commands.py b/nanobot/cli/commands.py index cacb61ae68d..6af880235af 100644 --- a/nanobot/cli/commands.py +++ b/nanobot/cli/commands.py @@ -415,6 +415,9 @@ def _make_provider(config: Config): api_base=p.api_base, default_model=model, ) + elif backend == "gi...
2
2
2
[{"id": "G0", "claim": "In GitHubCopilotProvider.__init__ the async method self._get_copilot_access_token is passed as api_key to AsyncOpenAI, which will stringify it into an invalid Authorization header and fail auth at runtime; since _get_copilot_access_token is never called on the request path, chat() and chat_strea...
null
HKUDS__nanobot__2718
HKUDS/nanobot
2,718
defect
63d646f731a505731e97909d114ce257c6de36bc
3e10e787365e6c10361af53d79c0a1981b7ddfbc
feat(cron): add deliver parameter to support silent jobs
问题: 创建定时任务时,无法指定 deliver 参数选择是否推送任务结果 解决方案: 支持指定 deliver 参数,可创建静默定时任务
diff --git a/nanobot/agent/tools/cron.py b/nanobot/agent/tools/cron.py index 00f726c08f5..850ecdc4952 100644 --- a/nanobot/agent/tools/cron.py +++ b/nanobot/agent/tools/cron.py @@ -97,9 +97,14 @@ def parameters(self) -> dict[str, Any]: f"(e.g. '2026-02-12T10:30:00'). Naive values default to {se...
1
1
0
[{"id": "G0", "claim": "The newly added `deliver` schema block in CronTool.parameters has one extra space of indentation, extending to the properties closing brace and the `required` line.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
HKUDS__nanobot__2788
HKUDS/nanobot
2,788
defect
7229a81594f8baaec503bc435a0d015004237803
356269e7bb4bddbacb306ba2ee07e4b6b56ec83b
feat(providers): add GPT-5 model family support
## Summary - Set `supports_max_completion_tokens=True` on the OpenAI provider spec so `max_completion_tokens` is sent instead of `max_tokens` (which GPT-5 models reject) - Add `_supports_temperature()` helper to conditionally omit `temperature` for reasoning models (o1/o3/o4) and when `reasoning_effort` is active, matc...
diff --git a/nanobot/providers/openai_compat_provider.py b/nanobot/providers/openai_compat_provider.py index 4fa057b9085..e29e6705657 100644 --- a/nanobot/providers/openai_compat_provider.py +++ b/nanobot/providers/openai_compat_provider.py @@ -222,6 +222,21 @@ def map_id(value: Any) -> Any: # Build kwargs # ...
1
1
1
[{"id": "G0", "claim": "The docstring and comment say GPT-5 models reject temperature, but _supports_temperature() only excludes o1/o3/o4 and not GPT-5, so GPT-5 requests may still send temperature and get rejected; the token check should be aligned with the Azure provider (or the comment adjusted).", "category": "corr...
null
HKUDS__nanobot__2960
HKUDS/nanobot
2,960
defect
1e3057d0d6d2c94da18e3db22c59fbeb3b5dec97
6d216966d4f68188653211aab72e6ddefa61da21
feat(channel): add proxy support for Discord channel
## Summary - Add `proxy`, `proxy_username`, `proxy_password` configuration fields to `DiscordConfig` - Pass `proxy` and `proxy_auth` (aiohttp.BasicAuth) to `discord.Client` - Proxy auth is only built when both username and password are provided - Add 5 new test cases covering all proxy configuration scenarios ...
diff --git a/nanobot/channels/discord.py b/nanobot/channels/discord.py index 9e68bb46be0..c50b4ff197d 100644 --- a/nanobot/channels/discord.py +++ b/nanobot/channels/discord.py @@ -22,6 +22,7 @@ DISCORD_AVAILABLE = importlib.util.find_spec("discord") is not None if TYPE_CHECKING: + import aiohttp import dis...
2
2
1
[{"id": "G0", "claim": "DiscordChannel.start() silently ignores partial proxy credentials (only username or only password) and also builds proxy_auth even when proxy is unset; the reviewer asks for explicit warnings for these misconfigurations and to construct aiohttp.BasicAuth only when a proxy is configured.", "categ...
null
HKUDS__nanobot__881
HKUDS/nanobot
881
defect
c8089021a51e8579ed208fc95a63264ad4a26816
755e42412717c0c4372b79c4d53f0dcb050351f7
fix(loop): serialize /new consolidation and preserve session on archival failure
## Summary - serialize memory consolidation per session across both normal background path and `/new` - keep strong references to in-flight consolidation tasks until completion - require successful archival result before `/new` clears the live session (prevents data loss when consolidation returns failure) - switch...
diff --git a/nanobot/agent/loop.py b/nanobot/agent/loop.py index 3016d92ff06..7806fb8fc2c 100644 --- a/nanobot/agent/loop.py +++ b/nanobot/agent/loop.py @@ -21,7 +21,6 @@ from nanobot.agent.tools.message import MessageTool from nanobot.agent.tools.spawn import SpawnTool from nanobot.agent.tools.cron import CronTool ...
2
2
1
[{"id": "G0", "claim": "session.clear() runs even when archival fails, because _consolidate_memory() logs and swallows its own exceptions, so /new still reports success and erases the live session, defeating the PR's 'preserve session on archival failure' behavior; _consolidate_memory() should return/raise failure so c...
null
HMCL-dev__HMCL__4128
HMCL-dev/HMCL
4,128
defect
c3a3881cfc1e5b0480b5757dba442f32b0f1a132
fa988fe0d7bbb0982d42bc6ada196b3453221b6d
Update version check logic to support version like "26-ea"
When getting system property `java.version`, there is an edge case that version string only contains dash but no dot. This patch fixes the behavior in such situation.
diff --git a/HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java b/HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java index af1ef361f6e..0429fce89db 100644 --- a/HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java +++ b/HMCLBoot/src/main/java/org/jackhuang/hmcl/Main.java @@ -28,40 +28,53 @@ public final class Main { ...
4
1
0
[{"id": "G0", "claim": "EA versions are not officially supported, so the version check logic should avoid using EA versions such as \"26-ea\" rather than recognizing them as supported.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Java 1.x branch as...
null
HMCL-dev__HMCL__4329
HMCL-dev/HMCL
4,329
defect
421f9a3b2b8b446e7c4e7537e0053fbb02a97c2e
9bb4891ee2d3cdfa65e397f0bea76c02ffef53c7
将 URI 中的错误代理对编码为 U+FFFD
相比 `?`(`%3F`),U+FFFD (replacement character) 更能明确表示这是一个错误字符。
diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/util/io/NetworkUtils.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/util/io/NetworkUtils.java index 595e53631f8..515e41c0a96 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/util/io/NetworkUtils.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/util/io/N...
1
1
1
[{"id": "G0", "claim": "Using U+FFF0 (0xfff0) as the replacement character for invalid surrogate pairs is non-standard; the code should use the official Unicode replacement character U+FFFD (0xfffd) instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
HMCL-dev__HMCL__4361
HMCL-dev/HMCL
4,361
defect
5af6858d4c861dd9f970a3225a8cc7087198bbb6
216b7cb70f98e65f028171573daa0c404411d4df
优化文言文翻译
1. 支持翻译版本号 2. 使用文言文格式的日期/时间 3. fix #4358 (进一步的优化会和 #4324 一起解决)
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/download/VersionsPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/download/VersionsPage.java index 73476d12f43..3185f1ebd3c 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/download/VersionsPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/download/V...
4
1
0
[{"id": "G0", "claim": "Using String.valueOf() on the VersionNumber returned by getEaVersion() may not produce the expected digit-by-digit translation, so the PRE and RC branches should call release.getEaVersion().toString() explicitly.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "in...
null
HMCL-dev__HMCL__4379
HMCL-dev/HMCL
4,379
defect
10e5e7bc9c93332799bd659c59da91cf357cee64
6388e50261184b4ee6711e062714979620ebf76c
增强本地化支持
1. 添加新的环境变量 `HMCL_LANGUAGE` 用于设置启动器语言; 2. 实现 `LocalizedText` 3. 实现基于语言环境的字体查找 4. 优化对中文变体的支持
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/game/HMCLGameLauncher.java b/HMCL/src/main/java/org/jackhuang/hmcl/game/HMCLGameLauncher.java index f7265458aaa..f83fdd0b4e5 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/game/HMCLGameLauncher.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/game/HMCLGameLauncher....
3
1
1
[{"id": "G0", "claim": "The TypeAdapter's write method uses jsonWriter.jsonValue() for a plain string, which is incorrect since that method expects a pre-formatted JSON string; use jsonWriter.value(localizedText.value) instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"...
null
HMCL-dev__HMCL__4458
HMCL-dev/HMCL
4,458
defect
913ce55d4306e92f6365e56be3829c4ada62bf9a
844cdcc686b51a5ae9245e4519d6f00d600a2457
新增辅助方法 `GameVersionNumber#isAtLeast(String, String)`
HMCL 里经常需要测试一个版本号是否不小于另一个版本号,从而确认这个版本是否包含某些功能。 大部分功能是由某个快照版引入的,理想情况下我们应当测试当前游戏版本号是否不小于这个快照版,但在正式版版本号和快照版版本号之间比较需要读取一个内置版本号表,并通过查表实现,开销很大。 为了解决这个问题,我引入了一个新的辅助方法:`GameVersionNumber#isAtLeast(String, String)`。这个方法同时接受一个正式版本号和一个快照版本号。如果当前版本是正式版(或 rc/pre 版),则只需要通过与第一个参数进行数值比较,否则会与第二个快照版本号参数。 新的方法也能帮助其他人在阅读代码时快速了解到这...
diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/util/versioning/GameVersionNumber.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/util/versioning/GameVersionNumber.java index b1c5ac90909..7700445cd00 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/util/versioning/GameVersionNumber.java +++ b/HMCLCore/src...
3
1
1
[{"id": "G0", "claim": "Parameter validation in the new isAtLeast(String, String, boolean) is inconsistent - snapshotVersion is validated via Snapshot.parse (which can throw) while releaseVersion validation differs based on the strictReleaseVersion flag; both parameters should be validated upfront or the different vali...
null
HMCL-dev__HMCL__4480
HMCL-dev/HMCL
4,480
defect
c2d5a07053a634be3a60f608abb4459f1eff6c75
dfea1be11d0f194914cb7bdfe3d9c6f297454dfa
创建 OSVersion 工具类
我删除了 `OperatingSystem.WINDOWS_VERSION`,转而提供一个对所有系统都适用的 `OperatingSystem.SYSTEM_VERSION`。 现在可以直接用 `OperatingSystem.SYSTEM_VERSION.isAtLeast(OSVersion.WINDOWS_7)` 这样的方式来检测当前系统是否是 Windows 且版本是否大于等于 Windows 7,不再需要判空。
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/Launcher.java b/HMCL/src/main/java/org/jackhuang/hmcl/Launcher.java index 3b1b6b925b1..35e428fb5d9 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/Launcher.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/Launcher.java @@ -243,8 +243,8 @@ public static void main(Str...
1
1
1
[{"id": "G0", "claim": "The Get-WmiObject condition is inverted: isAtLeast(WINDOWS_7) selects Get-WmiObject for Windows 7 and later, whereas versions before Windows 7 are the ones that should use Get-WmiObject.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
HMCL-dev__HMCL__4917
HMCL-dev/HMCL
4,917
defect
ed4fec6c42ca8ea6f73bea25cf9930f6b8be9357
913543ba85748df1c12042ccdbb27809ebb6c3db
更新 GameVersionNumber 解析规则
1. 支持 [Minecraft 新版本号方案](https://www.minecraft.net/en-us/article/minecraft-new-version-numbering-system) 2. 支持对版本号进行归一化处理。
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/game/HMCLGameRepository.java b/HMCL/src/main/java/org/jackhuang/hmcl/game/HMCLGameRepository.java index a859aa28438..bec53d561cd 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/game/HMCLGameRepository.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/game/HMCLGameRep...
4
4
2
[{"id": "G0", "claim": "The loop variable in testSortVersions is misspelled \"radomSeed\" and should be \"randomSeed\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the version-alias loading loop, the code reads parts[1] instead of parts[i]...
null
HMCL-dev__HMCL__5035
HMCL-dev/HMCL
5,035
defect
e0360c2b389a5ecf42d4ead4dfc65bf2f614ae4c
912beec403ee13f8f33345652a5ae9a41e2267d0
在非 Windows 平台也将 `:` 视为非法字符
[minecraft-exported-crash-info-2025-12-21T10-53-32.zip](https://github.com/user-attachments/files/24275980/minecraft-exported-crash-info-2025-12-21T10-53-32.zip) Linux 下 `:` 是 classpath 的分隔符,实例名称包括 `:` 会导致无法定位游戏
diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/util/io/FileUtils.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/util/io/FileUtils.java index 0a7043f236f..c7adb07a094 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/util/io/FileUtils.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/util/io/FileUtils....
1
1
0
[{"id": "G0", "claim": "Implement the colon detection inside the existing validation if-condition above, instead of as a separate standalone if statement.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
HMCL-dev__HMCL__5449
HMCL-dev/HMCL
5,449
defect
5839382c6446f1062128f7eb86c139d21b6511de
a016f69bddc19eaaaf9bb73f58a012bd6173b11a
修复 SVG 图标对齐错误的问题
`SVG` 类中的图标都基于 view box `0 0 24 24`,但 `SVGPath` 不支持指定 view box,布局时实际会根据其几何形状计算出一个包围框,并根据这个包围框来进行布局。 比如对于图标 `Visibility Off`,它的包围框是 `1 2.8 22 19.8`,其中心点约为 `(12, 12.7)` 而不是 `(12, 12)`,这导致如果以中心对齐的方式放置此图标的话,此图标在 Y 轴位置会略微偏上。 为了解决这个问题,本 PR 在所有 `SVG` 路径前加上了 `M0 0ZM24 24Z`,这样会在绘制 SVG 时将路径点先移动到 `(0, 0)` 和 `(24, 24)`,从而让 `...
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/SVG.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/SVG.java index c1abb725f04..79ea100729b 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/SVG.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/SVG.java @@ -50,7 +50,7 @@ public enum SVG { CHECKROOM("M3 ...
3
1
0
[{"id": "G0", "claim": "The empty `//` comment in the SVG constructor should either be removed or replaced with a meaningful explanation, e.g. why the prefix is added to the path.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The rewritten TEXTUR...
null
HMCL-dev__HMCL__5601
HMCL-dev/HMCL
5,601
defect
b6fcbb831cdbe3f3b812da599da1813d28771978
41b0b8f29a912f8c7a6aa095cda0713b63ce1507
feat: 下载页面折叠快照 Minecraft 版本
很少有人在快照版使用模组,防止部分模组的下载页面被快照版占领,耗费更多时间找想要下载的版本。 如果选择的实例是快照版本,推荐是正常的(如图)。 PCL 等启动器也做了类似的操作。 <img width="2560" height="1600" alt="image" src="https://github.com/user-attachments/assets/83d1f521-5450-4594-92eb-bf8042d322fa" />
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadPage.java index 278223a37ba..fc7f7ecf5dc 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/D...
6
2
0
[{"id": "G0", "claim": "The assertion assertEquals(\"1.21.11\", getReleaseOfSnapshot(\"1.21.11-pre3\")) is a duplicate of the one on the previous line, and the reviewer asks to remove it.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "getReleaseOfSnapsh...
null
HMIProject__open62541__259
HMIProject/open62541
259
defect
7ab1e18c6d4640ce9c13d59d615b565ba1e2c765
254a4317bbfb2a34cab49c3cdd6501454f69ff45
test: Add full client/server test
This is a side effect of upgrading to open62541 [master](https://github.com/open62541/open62541/tree/master) (to be 1.5 eventually): we now run an integration test that spawns up a server, then uses the client to connect to it and read a value. This mirrors the low-level test of the same interaction in https://githu...
diff --git a/.github/workflows/latest-dependencies.yaml b/.github/workflows/latest-dependencies.yaml index 69b8e0d1..5c1ed049 100644 --- a/.github/workflows/latest-dependencies.yaml +++ b/.github/workflows/latest-dependencies.yaml @@ -104,6 +104,9 @@ jobs: build --locked - name: Run tests (bins/lib/...
1
1
0
[{"id": "G0", "claim": "The test should invoke `client.disconnect().await` to clean up asynchronously instead of dropping the client synchronously, as recommended by the docs.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
HMIProject__open62541__329
HMIProject/open62541
329
defect
2b39529e5546c983c095f38d383de15c9ba99f64
fe74d2b2a004b6f87f06e55a8a734c68ac6582de
AsyncClient: Terminate background task only after cancelled
Adjusts `AsyncClient` shutdown behavior so the background event-loop thread does not terminate prematurely on transient connection interruptions, and instead terminates only after an explicit cancellation mode is set. Otherwise, after the background thread has finished no more requests could be serviced and async ca...
diff --git a/src/async_client.rs b/src/async_client.rs index 53fc0912..2c0cee3b 100644 --- a/src/async_client.rs +++ b/src/async_client.rs @@ -1,9 +1,9 @@ use std::{ ffi::c_void, - slice, + panic, slice, sync::{ Arc, Weak, - atomic::{AtomicBool, Ordering}, + atomic::{AtomicU8, Or...
13
13
2
[{"id": "G0", "claim": "The comment in disconnect() still says the background task is not aborted before blocking, but the code now cancels it (gracefully) before awaiting, so the comment should be updated to describe the new cancellation semantics.", "category": "documentation", "verdict": "supported", "priority": "P2...
null
HPI-Information-Systems__Metanome__164
HPI-Information-Systems/Metanome
164
defect
3f364e35165dc197fb62ca992ade936e1dfb60cf
9b0292d6addc6866eae3e706a0df6487c183691e
fixed a bug in Sub/SuperSetGraph
Fixed a bug in the getExistingSubsets/Supersets and containsSubset/Superset methods that occurs when the graph is empty. I also added 4 testcases that triggers the bug in each method. Merging this fork into the master will resolve issue #163.
diff --git a/algorithm_helper/src/main/java/de/uni_potsdam/hpi/metanome/algorithm_helper/data_structures/SubSetGraph.java b/algorithm_helper/src/main/java/de/uni_potsdam/hpi/metanome/algorithm_helper/data_structures/SubSetGraph.java index 2d98f94c8..91554ee77 100644 --- a/algorithm_helper/src/main/java/de/uni_potsdam/h...
4
4
0
[{"id": "G0", "claim": "In SubSetGraphTest.testGetExistingSubsetsOnEmptyGraph, the javadoc should split the method link and the description into separate lines.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In SubSetGraphTest.testContainsSubset...
null
HPI-Information-Systems__Metanome__253
HPI-Information-Systems/Metanome
253
defect
8691257c202f5b63dbae4f669c9363c3144484c2
98e2b565c7b5e0910a00b946596b483c58c5e71e
added pattern tableau for conditional unique column combinations
added pattern tableaus as display type for conditional uniques Small fix in ColumnCombinationBitset where a ImmutableList was expected but the current Implementation is a List. Missing change after refactoring in the main repository. Add a clone() method for PositionListIndex, which is a deep copy.
diff --git a/algorithm_helper/src/main/java/de/metanome/algorithm_helper/data_structures/ColumnCombinationBitset.java b/algorithm_helper/src/main/java/de/metanome/algorithm_helper/data_structures/ColumnCombinationBitset.java index 2a99db4ae..f59b6c9d1 100644 --- a/algorithm_helper/src/main/java/de/metanome/algorithm_he...
4
3
0
[{"id": "G0", "claim": "The new test in PositionListIndexTest should have method documentation (javadoc).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The methods newly added to the ColumnCondition interface should have method documentation (jav...
null
HTTP-RPC__Sierra__43
HTTP-RPC/Sierra
43
defect
0153f7d6824c15f5a1bd3626f4abb8271e211639
d43c69c8122950a67799fefe54e81198392dd2be
use UILoader info to populate Sierra attributes in autocomplete
Better refining of which autocomplete options show up Clean up test case and remove System.out call from debugging
diff --git a/sierra-tools/previewer/src/main/java/org/httprpc/sierra/tools/previewer/SierraXMLCompletionProvider.java b/sierra-tools/previewer/src/main/java/org/httprpc/sierra/tools/previewer/SierraXMLCompletionProvider.java index 3246ced6..819831cd 100644 --- a/sierra-tools/previewer/src/main/java/org/httprpc/sierra/t...
4
4
0
[{"id": "G0", "claim": "The `sierraAttributeDefinitions` field should use the parameterized `Class<?>` type instead of the raw `Class` type to avoid a raw type warning.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Sierra attribute definiti...
null
HabitRPG__habitica__13588
HabitRPG/habitica
13,588
defect
74a8b3aff2c5c922cd0f46dc52bf6b44450a5629
f2e44afcb07906c6bf99ac2921dd5fe617ea9657
fix: I18n string update
Fix for #9210 ### Changes - Reviewed files in `website/common/locales/en/` for duplicates and/or redundant strings - Updated all files where duplicate and/or redundant strings occurred - Affected directories: - `test/api/v3/integration/` - `test/api/v4/user/` - `website/client/src/compents/` - `websi...
diff --git a/test/api/v3/integration/shops/GET-shops_backgrounds.test.js b/test/api/v3/integration/shops/GET-shops_backgrounds.test.js index ed9d65a429e..387a3bf40f3 100644 --- a/test/api/v3/integration/shops/GET-shops_backgrounds.test.js +++ b/test/api/v3/integration/shops/GET-shops_backgrounds.test.js @@ -14,7 +14,7 ...
5
4
3
[{"id": "G0", "claim": "The translation key should be 'userId' with no leading capital in the heroes table header.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The same leading-capital translation key should be fixed in patrons.vue.", "category": ...
null
HabitRPG__habitica__13696
HabitRPG/habitica
13,696
defect
c92d3cc374d0cd68f3c2d7dff5b59cb39e67ab3d
7e0069a80fd20bc54d13cec4f83e072ad20d6610
Purge Facebook
This is the second PR matching with #13683. This actually removes most code references to Facebook and removes it as an option for social auth. It does not delete the database structure, since we probably want to keep that until we are sure everything works correctly and no issues would arise from deleting that data...
diff --git a/config.json.example b/config.json.example index 04c1c535b4a..fbf18f1b829 100644 --- a/config.json.example +++ b/config.json.example @@ -32,8 +32,8 @@ "LOGGLY_SUBDOMAIN": "example-subdomain", "LOGGLY_TOKEN": "example-token", "MAINTENANCE_MODE": "false", - "NODE_DB_URI": "mongodb://localhost:27017/...
14
14
1
[{"id": "G0", "claim": "The appFooter.vue change (reordered report-bug link attributes) is unrelated to removing Facebook and should not be in this PR.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The bugReportModal.vue changes are unrelated t...
null
HabitRPG__habitica__14186
HabitRPG/habitica
14,186
defect
6e19a0ef2ed7aa90773e1d3f826c9e197a10cce9
5f33022c95530e0613299c28c95beb7d9700eab2
Group category update issue
[//]: # (Note: See https://habitica.fandom.com/wiki/Using_Your_Local_Install_to_Modify_Habitica%27s_Website_and_API for more info) [//]: # (Put Issue # here, if applicable. This will automatically close the issue if your PR is merged in) Fixes #11162 ### Changes [//]: # (Describe the changes that were made in d...
diff --git a/test/api/v3/integration/groups/PUT-groups.test.js b/test/api/v3/integration/groups/PUT-groups.test.js index 36bdfdd7d4d..e9b445012c1 100644 --- a/test/api/v3/integration/groups/PUT-groups.test.js +++ b/test/api/v3/integration/groups/PUT-groups.test.js @@ -11,6 +11,12 @@ describe('PUT /group', () => { co...
1
1
0
[{"id": "G0", "claim": "The change should make existing bad data self-repairing, so that any outstanding duplicate group category entries collapse down to a single copy on edit instead of requiring users to manually delete them one at a time.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope...
null
HabitRPG__habitica__14267
HabitRPG/habitica
14,267
defect
12b045093a433ea9a3207a6a90111297407129a4
08249c73bddea4bf46ffd04a7e0f4710750338e3
Establish lock to avoid race scenario in subscriptions
We've been having an issue where, particularly with Google Play subscriptions, a number of operations done during subscription processing are happening twice. Messages sent to Slack, analytics events, and so on. This PR adds a custom lock property, similar to our "cron signature", so that as a first step when creati...
diff --git a/website/server/libs/payments/subscriptions.js b/website/server/libs/payments/subscriptions.js index 2052dc4c9ab..d00f24e0e82 100644 --- a/website/server/libs/payments/subscriptions.js +++ b/website/server/libs/payments/subscriptions.js @@ -11,6 +11,7 @@ import { // eslint-disable-line import/no-cycle mo...
2
2
1
[{"id": "G0", "claim": "The tests are still failing, likely because the 'errors when a user is already subscribed' test creates its user with `new User()` without ever saving it to the collection.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The singl...
null
HabitRPG__habitica__14289
HabitRPG/habitica
14,289
defect
22a0c72f6e84a1e7492ec00d1d8ab3245ef5f36d
4e33bc2c650700cb785e1942c1bf61517b0bfbed
improve transactions logs + split createSubscription
This fixes the following issues: * If an admin uses the 'Reset cron to yesterday' button in the timestamps section of admin panel, this will add a +0 Hourglasses event to the transaction log of the user they reset. * If account X gifts a sub that rewards Hourglasses(ie 3-month sub) to account Y, then the awar...
diff --git a/test/api/unit/libs/payments/payments.test.js b/test/api/unit/libs/payments/payments.test.js index 48d6325546e..65b42b42f30 100644 --- a/test/api/unit/libs/payments/payments.test.js +++ b/test/api/unit/libs/payments/payments.test.js @@ -11,10 +11,13 @@ import { generateGroup, } from '../../../../helpers...
1
1
0
[{"id": "G0", "claim": "The standalone `// eslint-disable-line import/no-cycle` line added in groupPayments.js does nothing on a line by itself and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
HabitRPG__habitica__14303
HabitRPG/habitica
14,303
defect
22a0c72f6e84a1e7492ec00d1d8ab3245ef5f36d
6a4b08203ff34e814ca51bb255b1d383220c71b7
Allow sub upgrades/downgrades on iOS
Allows for iOS subscriptions to be up/downgraded. - removed check that errors the call if a user is already subscribed - use `originalTransactionId` to get the id of the original/initial purchase - added check to make sure that the transactionId matches the one the user might already have - added check to make sure...
diff --git a/website/server/libs/payments/apple.js b/website/server/libs/payments/apple.js index 8c0fd44184b..b6d50626a9e 100644 --- a/website/server/libs/payments/apple.js +++ b/website/server/libs/payments/apple.js @@ -106,10 +106,6 @@ api.verifyGemPurchase = async function verifyGemPurchase (options) { }; api.su...
2
2
2
[{"id": "G0", "claim": "The newly added guard reads `user.purchased.plan.customId`, which the reviewer guesses should be `customerId`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Some tests need to be adjusted to account for the pull request's ne...
null
HabitRPG__habitica__14372
HabitRPG/habitica
14,372
defect
04e2a39a9fd6d464b5f4ebf0a373df17782b6ed0
c37424b199208771f3e3a48d3f7037c1f70f11fb
Refactor FAQ
* Changes website/client/src/components/static/faq.vue to fetch from the API rather than reference the translation strings directly in a hard-coded way. * Moves the list of FAQ headings to the API. * Adds excluded questions to the API, with the "world boss" question excluded generally and the "group plans" question a...
diff --git a/test/api/v4/faq/GET-faq.test.js b/test/api/v4/faq/GET-faq.test.js index 5c7ab31ce6c..f18eddd625c 100644 --- a/test/api/v4/faq/GET-faq.test.js +++ b/test/api/v4/faq/GET-faq.test.js @@ -37,6 +37,8 @@ describe('GET /faq', () => { expect(res).to.have.property('questions'); expect(res.questions[...
2
2
0
[{"id": "G0", "claim": "The FAQ list should be decoupled from the numbered translation strings (e.g. by using the heading key, stripping the numbers from the tokens, or suffixing them) so entries can be reordered without breaking translations.", "category": "maintainability", "verdict": "supported", "priority": "P2", "...
null
HabitRPG__habitica__14756
HabitRPG/habitica
14,756
defect
b539dd2b2efc97141f317eb4ea90fe55d26090a6
66bb60473da90c0b77af35a12c9b285ac6bd2f25
Reporting challenges
Fixes https://github.com/HabitRPG/habitica/issues/5557 and https://github.com/HabitRPG/habitica/issues/9725
diff --git a/test/api/v3/integration/challenges/POST-challenge_flag.test.js b/test/api/v3/integration/challenges/POST-challenge_flag.test.js new file mode 100644 index 00000000000..0f5f353b6c5 --- /dev/null +++ b/test/api/v3/integration/challenges/POST-challenge_flag.test.js @@ -0,0 +1,62 @@ +import { v4 as generateUUI...
1
1
0
[{"id": "G0", "claim": "The isFlagged computed property is identical to flaggedAndHidden (both challenge.flagCount > 1); the reviewer asks whether its condition was meant to differ (e.g. > 0) or whether the two should just be combined.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": ...
null
HabitRPG__habitica__15279
HabitRPG/habitica
15,279
defect
2aade9aaa69b5edc137f7d99b80eea8b8b6713fd
8ccda76f20f64bc70b154a8b03f43b0a1693a234
Remove and clean up unused invite notif
Fixes #10752 **Previously**, whenever a user accepted an invitation to a Party or Group Plan, the inviting user would receive a GROUP_INVITE_ACCEPTED notification. This notification was not displayed on the client, and thus it was possible for a user to continue to accumulate junk data in this array over time. *...
diff --git a/migrations/archive/2024/2024_purge_invite_accepted.js b/migrations/archive/2024/2024_purge_invite_accepted.js new file mode 100644 index 000000000000..4fd66bfcbf8a --- /dev/null +++ b/migrations/archive/2024/2024_purge_invite_accepted.js @@ -0,0 +1,51 @@ +/* eslint-disable no-console */ +const MIGRATION_NA...
2
2
0
[{"id": "G0", "claim": "The migration should use updateMany to update all queried users in one call instead of one updateOne per user, which would be much faster and allow moving the cutoff date back to catch more users.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id...
null
HabitRPG__habitica__15307
HabitRPG/habitica
15,307
defect
d3b63abdd33c2de769e44b277addb5314dfbd986
be16c3c17403f5ec5b2dc5d721e1c484a6394f5b
update(events): World Event Dates/Times
- Updated world event dates and times to be consistent - Added gem promos to repeating world events - Added G1G1 to repeating world events
diff --git a/website/common/script/content/constants/events.js b/website/common/script/content/constants/events.js index 507cb7c3a56..2af87e8d0de 100644 --- a/website/common/script/content/constants/events.js +++ b/website/common/script/content/constants/events.js @@ -11,8 +11,8 @@ const gemsPromo = { export const R...
18
18
18
[{"id": "G0", "claim": "The new event's key should be `giftOneGetOne`, not `giveOneGetOne`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The giveOneGetOne end date uses the year 1971, but the year is always 1970 for these repeating events, and the...
null
HabitRPG__habitica__15494
HabitRPG/habitica
15,494
defect
447eb6a0c4b0fa8282dcc6430ea4995b0d835a3e
326843fdc509c811b920e737acef768e1c469804
Updates & Fixes: Fix Orb of Rebirth bug, update blocked player ToS message, Fix redundant disabled styling
## PR Summary This PR includes multiple UI/UX improvements and bug fixes. **Note:** Only the final relevant commits are listed below. Intermediate commits (earlier iterations, experiments, reverted changes) are excluded for clarity. ## Changes by Feature ### 1. Fix t.response Undefined Error (Orb ...
diff --git a/test/api/v3/integration/user/auth/POST-login-local.test.js b/test/api/v3/integration/user/auth/POST-login-local.test.js index 1b6776ad88b..373c8f8d431 100644 --- a/test/api/v3/integration/user/auth/POST-login-local.test.js +++ b/test/api/v3/integration/user/auth/POST-login-local.test.js @@ -44,7 +44,7 @@ d...
1
1
1
[{"id": "G0", "claim": "The `if (!error.response)` block added inside `if (error.response.status >= 400)` can never execute, because reaching the inner block already requires `error.response` to exist; move the check up one level.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
HabitRPG__habitica__15545
HabitRPG/habitica
15,545
defect
bee23efbef57b10c372798fafd133a47cc2926ec
d787da8ee2434a8c0e9c5e5b3530adbc5057ebb2
Chat optimization
- Fetches 50 most recent messages (Works in tandem with android & iOS updates) - Automatically loads in increments of 50 when scrolling near end - Older loaded messages are kept when new messages arrive NOTE: Currently affecting android & iOS with these updates, web remains the same.
diff --git a/website/server/controllers/api-v3/chat.js b/website/server/controllers/api-v3/chat.js index 65dce42abeb..21fd51b197d 100644 --- a/website/server/controllers/api-v3/chat.js +++ b/website/server/controllers/api-v3/chat.js @@ -64,6 +64,8 @@ function textContainsBannedSlur (message) { * * @apiParam (Path) ...
1
1
1
[{"id": "G0", "claim": "The `before` query parameter should be validated as a UUID rather than accepted as an arbitrary string.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
HabitRPG__habitica__15583
HabitRPG/habitica
15,583
defect
407a901883e5749a7284d321ac09f0b6ec6fed7d
5c555cbf888597beff4cb96a51ea95aea899c6ad
Sanitize usernames come from social auth
**Previously**, it was possible for usernames to be registered with characters we don't support, such as accented Latin characters, katakana, etc. if a `username` with such characters was passed in the request body of a social-platform-based authentication. **Now**, we filter out invalid characters, attempting to cr...
diff --git a/test/api/v3/integration/user/auth/POST-user_auth_social.test.js b/test/api/v3/integration/user/auth/POST-user_auth_social.test.js index 6a29d56b496..f492d8e0a0e 100644 --- a/test/api/v3/integration/user/auth/POST-user_auth_social.test.js +++ b/test/api/v3/integration/user/auth/POST-user_auth_social.test.js...
2
2
2
[{"id": "G0", "claim": "The collision test needs an `await` on the async `generateUser` call, otherwise `user` is a Promise and the conflicting user might not exist when the test runs.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The social auth flow ...
null
HackerN64__HackerSM64__225
HackerN64/HackerSM64
225
defect
6668ae391a6030c2061bf1ad8b43554e12368860
20cdd919c7c1c66a05b87f8a57d3ee8a45db6396
Fixed sAudioEnabled and Puppyprint RDP times
Fixes #222
diff --git a/src/audio/external.c b/src/audio/external.c index 664af8b842..e92f7b4fdd 100644 --- a/src/audio/external.c +++ b/src/audio/external.c @@ -579,6 +579,8 @@ void func_eu_802e9bec(s32 player, s32 channel, s32 arg2) { #else +extern s8 sAudioEnabled; + /** * Called from threads: thread4_sound */ @@ -64...
2
1
0
[{"id": "G0", "claim": "The nonstatic `sAudioEnabled` name is misleading since the `s` prefix implies static; the author should rename it to `gAudioEnabled` and extern it from main.h if not too much of a pain.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
HackerN64__HackerSM64__338
HackerN64/HackerSM64
338
defect
25951363b761c2887fe934db8b980d5d8490d05c
c4a23d0036eed0734da47bfc3ba03a884399e69b
Develop/gheskett/audio changes
- Deprecate `sBackgroundMusicDefaultVolume` Table - Add MAX_SIMULTANEOUS_NOTES defines - Audio heap allocation is much more dynamic and efficient than it was previously (albeit quite messy) - Bugfix where not enough memory was being allocated toward the `gNotesAndBuffersPool` - General audio documentation and synta...
diff --git a/include/config/config_audio.h b/include/config/config_audio.h index 1d1f52706d..332e09b3b1 100644 --- a/include/config/config_audio.h +++ b/include/config/config_audio.h @@ -4,12 +4,27 @@ * AUDIO SETTINGS * ******************/ -// Fixes the castle music sometimes triggering after getting a dialog +/*...
4
3
1
[{"id": "G0", "claim": "Change the magic number 0x14D80 in AUDIO_HEAP_BASE (appearing several times) into a named define.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Looks like a newline was removed from the end of src/audio/playback.c.", "ca...
null
HackerN64__HackerSM64__425
HackerN64/HackerSM64
425
defect
1166d7441d17338b07b28005c88f8a875502ed35
9d8992a87bba423b3d2ad1468d7ce76df0494577
Added (emu-only) RCVI hack.
This should always be disabled by default. Fixes #359
diff --git a/include/config/config_rom.h b/include/config/config_rom.h index bdc340bd2d..a53ffbb33a 100644 --- a/include/config/config_rom.h +++ b/include/config/config_rom.h @@ -23,3 +23,7 @@ // There is generally no reason to have a value other than 0 for emulator. As for console, it provides a (small) performance b...
5
3
1
[{"id": "G0", "claim": "The RCVI comment block the pull request adds to include/config/config_rom.h leaves the file without a newline at end of file.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The vSync assignment should use 525 as a constan...
null
HackerN64__HackerSM64__568
HackerN64/HackerSM64
568
defect
9bec16d2f026f7f013409ab5f2cfeeda208362d9
08cbe7d6e716a3c2348c709e250ef21de77ef7a3
Random epic tweaks
Few misc fixes I picked up to improve load times and lower some redundant memory allocation
diff --git a/levels/thi/areas/2/collision.inc.c b/levels/thi/areas/2/collision.inc.c index dce7d94a03..71f5007404 100644 --- a/levels/thi/areas/2/collision.inc.c +++ b/levels/thi/areas/2/collision.inc.c @@ -355,10 +355,10 @@ const Collision thi_seg7_area_2_collision[] = { COL_VERTEX(-2457, -3788, -2457), COL_...
5
3
1
[{"id": "G0", "claim": "check_stack_validity should use the assert keyword/macro instead of hand-written if-plus-error blocks, since that is what assert is for.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Shrinking gGfxSPTaskOutputBuffer from 0x2fc0 t...
null
HackerN64__HackerSM64__595
HackerN64/HackerSM64
595
defect
c76c5824e3d849656edfcd7d07c546a27238ec92
97f7e781758e9e506a73d6f7434c0252ccb6a335
4 controllers support + osContCh optimization
- Barebones 4 controllers support - osContCh to skip polling ports after the last used port (no skipping yet) - MAX_NUM_PLAYERS define to limit the number of controllers (must be at least 2 until the gamecube controller fixes)
diff --git a/README.md b/README.md index 0cb169fad1..05fb7e25b7 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ This is a fork of the ultrasm64 repo by CrashOveride which includes the followin - **Fazana**: PuppyLib, ucode swapping, audio load time optimisations (with Arctic), general hacker qol improvements,...
3
2
1
[{"id": "G0", "claim": "Since player 1 can point at any controller, the controller pointer globals should not be const; the PR should revert them to non-const.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The review is partial and a small change i...
null
HackerN64__HackerSM64__651
HackerN64/HackerSM64
651
defect
7c32cf8b63d3297d1055634e6203174c4fe9d372
f488df6358fe7f82d0ab08acbbb0ecfe8335ad3b
Added emulator detection
Tested on: - Console w/ Everdrive - ParallelN64 2.12 - ParallelN64 pre-2.12 (detected as `EMU_MUPEN_OLD` since that's what it was forked from) - Mupen64plus-Next - Ares - Cen64 - Simple64 - Project64 1.6 with dynarec core - Project64 1.6 with interpreter core - Project64 2.2 (crashes on HackerSM64) - Project...
diff --git a/src/boot/main.c b/src/boot/main.c index b22639b76e..f2e1f99d21 100644 --- a/src/boot/main.c +++ b/src/boot/main.c @@ -25,6 +25,7 @@ #include "game/profiling.h" #include "game/vc_check.h" +#include "game/emutest.h" // Message IDs enum MessageIDs { @@ -318,21 +319,6 @@ void alert_rcp_hung_up(void) { ...
9
7
1
[{"id": "G0", "claim": "Interrupts should be disabled around the count-factor test to be safe, so the pull request should not merge until that change is made.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The machine-code array cast to a function p...
null
HackerN64__HackerSM64__724
HackerN64/HackerSM64
724
defect
b8f770ae4822e303f04968f25c217e611b4a4668
5265391e30336a5c3d1230565eed145d1cc780d2
Cache master displaylist on "hot" code paths
implements the following ```c Gfx *tmpDL = ACQUIRE_DISPLAYLIST(); gSPCommand(tmpDL++, ...); gSPCommand2(tmpDL++, ...); gDPCommand(tmpDL++, ...); RELEASE_DISPLAYLIST(tmpDL); ``` "hot" code paths are defined as follows: - runs at least once per frame - Many uses of gDisplayListHead - no intermediate f...
diff --git a/src/boot/memory.c b/src/boot/memory.c index c086f8b0bd..3bfe9ee1c0 100644 --- a/src/boot/memory.c +++ b/src/boot/memory.c @@ -94,11 +94,13 @@ void *virtual_to_segmented(u32 segment, const void *addr) { } void move_segment_table_to_dmem(void) { - s32 i; + Gfx *tmpDL = ACQUIRE_DISPLAYLIST(); - ...
2
2
0
[{"id": "G0", "claim": "The ACQUIRE_DISPLAYLIST/RELEASE_DISPLAYLIST macros seem pretty useless and should be removed or avoided (e.g. via __attribute__((cleanup)) with a custom destructor).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The local display...
null
HackerN64__HackerSM64__732
HackerN64/HackerSM64
732
defect
9ac34c716e193065b61a2c7e5889351f56027b43
db6f615967ed6fb7a5c55e1807eff042efbd7c5a
Add control command format for dialog strings
- New color format that should eventually become cross-compatible with other text engines such as Puppyprint - Dialog color is now properly preserved when scrolling
diff --git a/include/dialog_control.h b/include/dialog_control.h new file mode 100644 index 0000000000..e13ebfc2c3 --- /dev/null +++ b/include/dialog_control.h @@ -0,0 +1,72 @@ +#ifndef DIALOG_CONTROL_H +#define DIALOG_CONTROL_H + +#include "dialog_ids.h" +#include "course_table.h" + +// General string macros +#define ...
6
6
0
[{"id": "G0", "claim": "Rename the STRINGIFY/TO_STRING string macros so they don't look like they do different things, and move them into the file with GLUE2 (macros.h).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The control-character define...
null
HackerN64__HackerSM64__859
HackerN64/HackerSM64
859
defect
749057b47b944c79473453d424aad50f4cc37be3
14281d6939e0b7d5c9be9ef148778dd26aaafe9c
Rework main pool to use alloc only pool logic
This is refactored logic from PR https://github.com/HackerN64/HackerSM64/pull/737 that implements new main pool logic.
diff --git a/src/boot/main.c b/src/boot/main.c index 2fe93aaff3..6b7c7e2090 100644 --- a/src/boot/main.c +++ b/src/boot/main.c @@ -109,11 +109,8 @@ void setup_mesg_queues(void) { } void alloc_pool(void) { - void *start = (void *) SEG_POOL_START; - void *end = (void *) (SEG_POOL_START + POOL_SIZE); - - main...
11
8
3
[{"id": "G0", "claim": "The new main pool functions are messy, repetitive and confusingly named with too many near-identical variants, and should be consolidated into fewer functions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "load_to_fixed_...
null
HadesArchitect__GrafanaCassandraDatasource__175
HadesArchitect/GrafanaCassandraDatasource
175
defect
79541d88b23b7392e19d9ec57e29ab39110eed59
a8a8b9a27d1e6333a3f94ca6a2503189f80e4643
Unified alerting support
* Supported unified alerting including time range variables interpolation for alerting queries. To achieve that: * new `alert` handler was added(just to distinguish usual query and alert query contexts) * frame transformation from long to wide format was added - basically, moving of non-TS(non numeric and non tim...
diff --git a/README.md b/README.md index dbc67d7..c188762 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Cassandra DataSource for Grafana +# Apache Cassandra Datasource for Grafana -Apache Cassandra Datasource for Grafana. This datasource is to visualise **time-series data** stored in Cassandra/DSE, if yo...
2
2
1
[{"id": "G0", "claim": "The README alerting section misspells \"handing\" as \"hading\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The README should state that users must use time range filters in queries, not merely that they could, to avoid...
null
HadesArchitect__GrafanaCassandraDatasource__177
HadesArchitect/GrafanaCassandraDatasource
177
defect
e0fd170532a8d9bd9d1ad4207ebd04638138dafa
127bbb8a8aaaffaad767c81fb8db024141b6c57a
Variable query support
Closes #168 To test: - Make sure that C* is created new so sample-data.sh script will create new table - Add query variable to a dashboard <img width="767" alt="image" src="https://github.com/HadesArchitect/GrafanaCassandraDatasource/assets/1742301/247f661b-3083-4a05-ab05-88ae4783f4a8"> - Check both fetching v...
diff --git a/README.md b/README.md index ec3b31d..9f7b143 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,6 @@ To see the datasource in action, please follow the [Quick Demo](https://github.c **Contacts**: -* [![Discord Chat](https://img.shields.io/badge/discord-chat%20with%20us-green)](https://discord.gg/FU2C...
8
8
4
[{"id": "G0", "claim": "Serving variable values through the getResource handler, which supports only string arrays, is the wrong approach; variable query support should instead be implemented the way queryMetricData works — a dedicated handler returning custom objects that the frontend passes to MetricFindValue.", "cat...
null
HadesArchitect__GrafanaCassandraDatasource__218
HadesArchitect/GrafanaCassandraDatasource
218
defect
e90ec23b9a512c3481c8a163c0af469b8be2f3eb
fb42fe02e26e8f8350b43d360128ee9262d991aa
#210 Provisioning (docs and TLS improvements)
<img width="776" alt="image" src="https://github.com/user-attachments/assets/ef023533-4dd7-4c20-9d88-b84b528800af" /> <img width="830" alt="image" src="https://github.com/user-attachments/assets/805fca57-93cc-4361-b67a-d327e443e3cc" /> <img width="597" alt="image" src="https://github.com/user-attachments/assets/41e34...
diff --git a/.changeset/kind-tables-build.md b/.changeset/kind-tables-build.md new file mode 100644 index 0000000..28fc96c --- /dev/null +++ b/.changeset/kind-tables-build.md @@ -0,0 +1,5 @@ +--- +'grafana-cassandra-datasource': minor +--- + +Added support for TLS certificate configuration via direct content input alon...
2
1
1
[{"id": "G0", "claim": "The TLS field labelled \"Root Certificate Content\" actually holds the private key (and the other TLS fields are misnamed likewise), so the fields should be named properly so that the three TLS fields read Public Key (certificate), Private Key and Root CA.", "category": "correctness", "verdict":...
null
HadoopGenomics__Hadoop-BAM__122
HadoopGenomics/Hadoop-BAM
122
defect
947af6f053d5e5da5bb5d8c06d703a0b1c228947
55a7cf7121f82cca83c49332497d2eb47cc43b52
Use htsjdk machinery to make reading with intervals significantly faster
The main idea is to add the chunk intervals for each split into the FileVirtualSplit class, so that each record reader can use that information to only read the chunks in the BAM file that it needs to, rather than read everything and apply filtering afterwards. This change means that an index is always needed whe...
diff --git a/README.md b/README.md index eb901ce..6b1eb11 100644 --- a/README.md +++ b/README.md @@ -146,8 +146,7 @@ below: |`AnySAMInputFormat`|`hadoopbam.anysam.trust-exts`|`true`|Whether to detect the file format (BAM, SAM, or CRAM) by file extension. If `false`, use the file contents to detect the format.| |`KeyI...
6
5
1
[{"id": "G0", "claim": "Removing the 'hadoopbam.bam.keep-paired-reads-together' support (keeping paired reads together in the same split) would take away functionality downstream consumers like ADAM still use.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"...
null
HadoopGenomics__Hadoop-BAM__136
HadoopGenomics/Hadoop-BAM
136
defect
ee35e91cb8f4a40f5b8ca11d839e06d412475be9
884b50fbca1be7d3f48f21df05b16adc104831bc
Add a way to get unmapped reads from a BAM.
Fixes #133.
diff --git a/src/main/java/org/seqdoop/hadoop_bam/BAMInputFormat.java b/src/main/java/org/seqdoop/hadoop_bam/BAMInputFormat.java index 26c6d96..75ecac1 100644 --- a/src/main/java/org/seqdoop/hadoop_bam/BAMInputFormat.java +++ b/src/main/java/org/seqdoop/hadoop_bam/BAMInputFormat.java @@ -22,6 +22,8 @@ package org.se...
4
4
0
[{"id": "G0", "claim": "BOUNDED_TRAVERSAL_PROPERTY should be `public static` like INTERVALS_PROPERTY and needs javadoc.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "TRAVERSE_UNPLACED_UNMAPPED_PROPERTY should be `public static` like INTERVALS_PROPERTY a...
null
HadoopGenomics__Hadoop-BAM__140
HadoopGenomics/Hadoop-BAM
140
defect
0b26da0321cc22896dbc0add516efb0021e3d9f7
5d0ef60383cca87590e37358f51a6e01526c9137
Add codepath to calculate splits from BAM index.
This is pretty ugly right now (see debugging statements, commented out code, etc), but this code adds a path to identify splits from a BAM file using the BAM index on disk. It does this by using the linear index that accompanies the BAM file to identify the first block in the linear index that starts after the start/en...
diff --git a/src/main/java/htsjdk/samtools/LinearBAMIndex.java b/src/main/java/htsjdk/samtools/LinearBAMIndex.java new file mode 100644 index 0000000..7e80846 --- /dev/null +++ b/src/main/java/htsjdk/samtools/LinearBAMIndex.java @@ -0,0 +1,39 @@ +// Copyright (c) 2017 +// +// Permission is hereby granted, free of charg...
10
9
4
[{"id": "G0", "claim": "The .bai gives no offsets into blocks of unmapped reads, which can sit mid-file and can span more than 64MB within <4096bp, so the BAI-based splitter has to fall back to guess-splitting there.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "...
null
HadoopGenomics__Hadoop-BAM__94
HadoopGenomics/Hadoop-BAM
94
defect
e8fbe1c0756c144516f14d2437104b618f668dc1
773673ea49324614ba3cd7df74df1e473cd766e6
Upgrade to htsjdk 2.3.0
Fix test due to changes in htsjdk (can't index a queryname sorted bam) Use synchronous streams for SamReaderFactory to avoid readahead problems when underlying stream is accessed directly.
diff --git a/pom.xml b/pom.xml index 6b69b5c..b1e96dc 100644 --- a/pom.xml +++ b/pom.xml @@ -40,7 +40,7 @@ <properties> <java.version>1.8</java.version> - <htsjdk.version>2.2.1</htsjdk.version> + <htsjdk.version>2.3.0</htsjdk.version> <!-- CHANGE THIS FOR A DIFFERENT VERSION OF HA...
1
1
0
[{"id": "G0", "claim": "A comment should be added at this code explaining that the method does not close the stream, so it can be used by subsequent calls to the same method.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Haehnchen__idea-php-symfony2-plugin__1389
Haehnchen/idea-php-symfony2-plugin
1,389
defect
7b0b16bedf82a2978853de0576070993bc96aa75
9dfb9ee458c4f6266407a2b7ba000eed7c29ffb0
Support new snake_case templates
This was introduced in SensioFrameworkExtraBundle 4.0. https://github.com/sensiolabs/SensioFrameworkExtraBundle/blob/master/CHANGELOG.md#40 Fixes #1082 #1296 #1138 This is my first try to do something in Java, so I don't expect this PR to be pixel perfect yet. Please tell me how to improve, and I will :)
diff --git a/src/main/java/fr/adrienbrault/idea/symfony2plugin/templating/util/TwigUtil.java b/src/main/java/fr/adrienbrault/idea/symfony2plugin/templating/util/TwigUtil.java index 883d21dec9..1f6c94cee9 100644 --- a/src/main/java/fr/adrienbrault/idea/symfony2plugin/templating/util/TwigUtil.java +++ b/src/main/java/fr/...
1
1
1
[{"id": "G0", "claim": "The change stops supporting the old < 4.0 template naming, and since the method already supports multiple template names the old naming should be kept by appending it to the end of the returned array.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Haehnchen__idea-php-symfony2-plugin__1919
Haehnchen/idea-php-symfony2-plugin
1,919
defect
13ac25bec693aec18eac5bd0dc811df805b7f041
a861cb0ef721b718942d084e088a184fe82339bf
Added service name reference contributor for YAML DIC files
This PR brings support for service references detection over the YAML based dependency injection container configuration files. In practice this allows to: * finding usages of given service * renaming service name with all references at once ![image](https://user-images.githubusercontent.com/211967/167289343-082...
diff --git a/src/main/java/fr/adrienbrault/idea/symfony2plugin/config/ServiceReference.java b/src/main/java/fr/adrienbrault/idea/symfony2plugin/config/ServiceReference.java new file mode 100644 index 0000000000..e9091e8d83 --- /dev/null +++ b/src/main/java/fr/adrienbrault/idea/symfony2plugin/config/ServiceReference.jav...
3
3
0
[{"id": "G0", "claim": "The new config/ServiceReference class duplicates a similar class that already exists in the fr.adrienbrault.idea.symfony2plugin.dic package.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pre-existing completion test ...
null
Haehnchen__idea-php-symfony2-plugin__25
Haehnchen/idea-php-symfony2-plugin
25
defect
c168e85197eb70d5936c905369ee411230f5382f
a9f63cc8b81a34ea6c89bf92dfb956946d664914
[WIP]Feature/doctrine support
now we have also some doctrine support. :) ![doctrine](https://f.cloud.github.com/assets/1011712/376280/ab664886-a419-11e2-99f3-cbd5ede0c0c6.png) ![doctrine_click](https://f.cloud.github.com/assets/1011712/376281/ab6986fe-a419-11e2-80a2-e0ebd90286f9.png) ![repo](https://f.cloud.github.com/assets/1011712/376426/6afe7f5...
diff --git a/META-INF/plugin.xml b/META-INF/plugin.xml index 81f595238..ce94806b7 100644 --- a/META-INF/plugin.xml +++ b/META-INF/plugin.xml @@ -109,8 +109,11 @@ <extensions defaultExtensionNs="com.intellij"> <php.typeProvider implementation="fr.adrienbrault.idea.symfony2plugin.dic.SymfonyContainerTypeP...
13
8
1
[{"id": "G0", "claim": "Parse the Entity annotation (repository class position) so that getRepository resolves to the entity's custom Repository class instead of the default one.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Resolve AcmeFooBundle:User s...
null
Haivision__srt__1023
Haivision/srt
1,023
defect
51782ac338c9e680f4a18e3a52f9e707430caeb6
c77166e9976f87419863b1c0d992e11caccdedad
Fixes for CUDTException class. Derived from exception, moved out of the API.
Unfortunately `CUDTException` class is very hard to tear off the current code, so the following was done: 1. The CUDTException class was moved to `common.h`, which means that it is internal now. 2. The `UDT::getlasterror()` legacy API function is actually useless. It still returns the same reference to CUDTExceptio...
diff --git a/apps/transmitmedia.cpp b/apps/transmitmedia.cpp index a708cedda..3331e6a5d 100644 --- a/apps/transmitmedia.cpp +++ b/apps/transmitmedia.cpp @@ -361,11 +361,11 @@ void SrtCommon::PrepareListener(string host, int port, int backlog) { m_bindsock = srt_socket(AF_INET, SOCK_DGRAM, 0); if ( m_bindsock...
4
2
0
[{"id": "G0", "claim": "In SrtCommon::Error in testing/testmedia.cpp the local `result` should be declared const (`const int result`).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The /// doc comments in the new CUDTException class in srtcore/...
null
Haivision__srt__1064
Haivision/srt
1,064
defect
89cdbf312dc4f2231b2f962e6924e6df0110ba0e
84c2110f53a3649e46d713f233077b58d5bbe46c
Introducing sync Mutex wrapper class
This is the second subset of PR #800 on the way to C++11 support. `srt::sync::Mutex` class is introduced. The class wraps pthread mutex. In future it is expected to be directly mapped to `std::mutex` in case SRT is built with C++11 threads. ### Shortlist of Changes 1. Introduced `srt::sync::Mutex` class that ...
diff --git a/srtcore/api.cpp b/srtcore/api.cpp index d6f5915b2..646cdb5f4 100644 --- a/srtcore/api.cpp +++ b/srtcore/api.cpp @@ -92,13 +92,10 @@ m_pUDT(NULL), m_pQueuedSockets(NULL), m_pAcceptSockets(NULL), m_AcceptCond(), -m_AcceptLock(), m_uiBackLog(0), m_iMuxID(-1) { - pthread_mutex_init(&m_AcceptLock, NU...
3
1
1
[{"id": "G0", "claim": "In CUDT::tsbpd the receiver lock should be released by the CGuard destructor at scope end instead of the explicit recv_lock.unlock() call before THREAD_EXIT().", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Pure formatting/whitespac...
null
Haivision__srt__1127
Haivision/srt
1,127
defect
b41749d6f4f8fe9afff52ad6dde4ef04c9d0cbc8
c0d8daef3c9fdb3a834f4fd90d6ae4691aeef0ec
Fixed the problem of disbinding order between epoll and corresponding socket/group
Fixes #957 The problem: Nothing more than appearing IPE message (although meaning a potential more serious problem in future), when the `update_event` function was called, which normally happens when the SRT entity (socket or group) becomes ready for particular event. The structure for that is such that the ep...
diff --git a/srtcore/api.cpp b/srtcore/api.cpp index 3872aadfb..3dfbfd059 100644 --- a/srtcore/api.cpp +++ b/srtcore/api.cpp @@ -1946,7 +1946,7 @@ int CUDTUnited::epoll_add_usock( if (!g) throw CUDTException(MJ_NOTSUP, MN_SIDINVAL, 0); - ret = m_EPoll.add_usock(eid, u, events); + ret = m_EP...
2
1
0
[{"id": "G0", "claim": "The \"IPE: update struck EID which is NOT SUBSCRIBED\" error from epoll update_events still occurs with this PR applied (at a lower rate than on master) and still reproduces after the merge for a listen-accepted socket with streamID and listen-callback.", "category": "correctness", "verdict": "u...
null
Haivision__srt__1174
Haivision/srt
1,174
defect
10d31bf65ff5c42563c027614e21f2b54c0c7fa5
1ee8cd0aacee86f710d20eb0c276fc6e1692f7da
[core] Replaced CTimer with new CTimer
This PR consists of two commits. The first commit replaces the old `CTimer` with the new one based on `sync` objects. But `CTimer` used to work with a monotonic clock, whereas after the change it uses the regular clock. The latter is solved by the second commit, which makes all CVs and timers monotonic if the monoto...
diff --git a/srtcore/api.cpp b/srtcore/api.cpp index 4ec5a90df..56c700f04 100644 --- a/srtcore/api.cpp +++ b/srtcore/api.cpp @@ -290,7 +290,7 @@ int CUDTUnited::cleanup() // after which the m_bClosing flag is cheched, which // is set here above. Worst case secenario, this // pthread_join() call will block f...
2
2
0
[{"id": "G0", "claim": "The tick name should remain as is instead of renaming the wake-up call in CRcvQueue::worker_RetrieveUnit to notify_one().", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "CTimer::notify_all() is unnecessary because no one i...
null
Haivision__srt__1194
Haivision/srt
1,194
defect
7fda3652919da9ba8ff64b9f8d8cebe74ed7c0f1
c8e8453bcbaa4d1c7adff66e88a7d0480cd963a2
Added timeout reason. Updated correctly reject reason on timeout
Fixes #1164
diff --git a/srtcore/common.cpp b/srtcore/common.cpp index 98d1116a5..e498bae2d 100644 --- a/srtcore/common.cpp +++ b/srtcore/common.cpp @@ -542,7 +542,8 @@ extern const char* const srt_rejectreason_msg [] = { "MessageAPI/StreamAPI collision", "Congestion controller type collision", "Packet Filter type c...
2
1
1
[{"id": "G0", "claim": "It does not look right to mix the connection rejection reason and the connection timeout in one mechanism, and the reviewer asks how the same goal would be achieved via `srt_getlasterror(..)` instead.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id"...
null
Haivision__srt__1198
Haivision/srt
1,198
defect
48a14cf02b34378edf3e63b8ba2fcecb4a881502
db2796e3429ae2e67e6334c87f755e4d94951f0a
Fixed rendezvous handling in SRT pre-configure
Fixes #1195
diff --git a/apps/socketoptions.cpp b/apps/socketoptions.cpp index 10f3cd2c5..d5bf24ad8 100755 --- a/apps/socketoptions.cpp +++ b/apps/socketoptions.cpp @@ -22,28 +22,28 @@ extern const std::map<std::string, int> enummap_transtype = { { "file", SRTT_FILE } }; -SocketOption::Mode SrtConfigurePre(SRTSOCKET socket...
6
6
0
[{"id": "G0", "claim": "Rendezvous is still not working for `srt://192.168.178.182:4200?adapter=192.168.1.237` in srt-test-live although the spec says it should, so this PR does not fix that case.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "Mod...
null
Haivision__srt__1203
Haivision/srt
1,203
defect
7fda3652919da9ba8ff64b9f8d8cebe74ed7c0f1
fd63da151feeda3a77fac6f0d93b2b1d82265458
Added SRTO_BINDTODEVICE option
Fixes #558
diff --git a/CMakeLists.txt b/CMakeLists.txt index a40443ff9..7819cae4e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -427,6 +427,11 @@ add_definitions( -DSRT_VERSION="${SRT_VERSION}" ) +if (LINUX) +# This is an option supported only on Linux + add_definitions(-DSRT_ENABLE_BINDTODEVICE) +endif() + # This is...
7
4
3
[{"id": "G0", "claim": "The new empty-string test should be written as `!m_BindToDevice.empty()` instead of comparing the string to \"\".", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `m_BindToDevice` member added to `CMultiplexer` is missi...
null
Haivision__srt__1288
Haivision/srt
1,288
defect
b081e923acdf70e9fcea25a1d99e68da81eb277a
70307900311dbc95292c87dfab5a1903648d4088
Added MinGW warning fixes
Fixes #1081 1. The `noeol` field in `ErrLog` class was actually a bug. This field exactly was generating the warning, while there weren't any announced functions in this class, so it was unused indeed. The field in use was the one derived from `Log` class, derived together with functions that use it. 2. I added t...
diff --git a/apps/verbose.hpp b/apps/verbose.hpp index cd2e6fcdc..3f2130a8a 100644 --- a/apps/verbose.hpp +++ b/apps/verbose.hpp @@ -59,7 +59,6 @@ class Log class ErrLog: public Log { - bool noeol; public: template <class V> diff --git a/srtcore/epoll.cpp b/srtcore/epoll.cpp index 0c691eb13..6dd38e447 10...
2
2
0
[{"id": "G0", "claim": "There are still some warnings remaining in the MinGW build after this change.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "Building test/test_file_transmission.cpp under MinGW still emits '#warning Please include wins...
null
Haivision__srt__1291
Haivision/srt
1,291
defect
c0690da96e28bee0edd3188497f7a25e63b17380
5204e4676a2cfbf02cce3bee5a5df9c7a2cfc566
Customizable reject reason code
Fixes #1156
diff --git a/docs/API-functions.md b/docs/API-functions.md index b0a1c3d72..55f494c5e 100644 --- a/docs/API-functions.md +++ b/docs/API-functions.md @@ -1215,7 +1215,7 @@ report a "successful" code. ### srt_getrejectreason ``` -enum SRT_REJECT_REASON srt_getrejectreason(SRTSOCKET sock); +int srt_getrejectreason(SRT...
5
3
2
[{"id": "G0", "claim": "In srt_rejectreason_str the comparisons use `>` instead of `>=`, so a code exactly equal to SRT_REJC_SERVER or SRT_REJC_USER is not reported as a SERVER/USER error; use `>=`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In ...
null
Haivision__srt__1303
Haivision/srt
1,303
defect
0a694a7b08fedc1b17d58eb06fa95863ccd7a7de
b609b0eb54b4f674c8210b4f6abfcc25ab53cccd
Added group support for stats probing
The group support for `srt_bstats`. The statistics structure gets filled with the following fields: * `msTimeStamp` - updated just like normally, the time distance towards start time * `pktSentUnique` (also `byte*` and `*Total`) - packets sent to the group by the application * `pktRecvUnique` (also `byte*` and ...
diff --git a/apps/apputil.cpp b/apps/apputil.cpp index 3b52ba20a..16267ba6f 100644 --- a/apps/apputil.cpp +++ b/apps/apputil.cpp @@ -328,16 +328,19 @@ class SrtStatsJson : public SrtStatsWriter output << "},"; output << "\"send\":{"; output << "\"packets\":" << mon.pktSent << ","; + ou...
1
1
0
[{"id": "G0", "claim": "The local variable `jump` should be declared `const` since it is initialized once and never modified.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
Haivision__srt__1314
Haivision/srt
1,314
defect
e6f2c62d292f870b73498d2461d2d8f1dc345f44
2b8632f706a407d2306b88954d9c69fd2469beb1
Added configuration object to group connection structure
Fixes #1309 Contents: 1. Added management for a configuration object. The configuration object is dynamically created (there's unfortunately no other way in C API). After the connection process those objects should be deleted (deletion can be done anyway and on a NULL object it will simply do nothing). The confi...
diff --git a/apps/socketoptions.hpp b/apps/socketoptions.hpp index 44c04b072..0c34baf88 100644 --- a/apps/socketoptions.hpp +++ b/apps/socketoptions.hpp @@ -51,27 +51,34 @@ struct SocketOption Type type; const std::map<std::string, int>* valmap; - template <Domain D> - bool apply(int socket, std::stri...
7
3
2
[{"id": "G0", "claim": "The new configuration API functions could use a consistent `srt_config_*` naming scheme.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A `srt_config_remove(..)` function could be added to complete the config API, though the revie...
null
Haivision__srt__1369
Haivision/srt
1,369
defect
6c847bae0c6adbe29e1cd4e4af6e977312f66dc2
3e5a11631b1806d03ce51da419db6a558c12a81a
Renamed CSndLossList::remove to removeUpTo
It also has changes from `clang-format` applied on `list.h` (in a separate commit). Fixes #1093
diff --git a/srtcore/core.cpp b/srtcore/core.cpp index db01c8df64..6e7f198645 100644 --- a/srtcore/core.cpp +++ b/srtcore/core.cpp @@ -6547,7 +6547,7 @@ void CUDT::checkNeedDrop(bool& w_bCongestion) m_iSndLastDataAck = fakeack; int32_t minlastack = CSeqNo::decseq(m_iSndLastDataAck); - ...
1
1
0
[{"id": "G0", "claim": "The doc comment for the removal method should not describe circular sequence numbers as less/greater, and should instead read 'Remove the given sequence number and all numbers that precede it'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Haivision__srt__1381
Haivision/srt
1,381
defect
89902fb5d39e06173d41451ebed9c1c2bc04fd2c
c693d729b961571e5a3c3aa405c5a9b01a0b0cc5
Fixed default binding for IPv6-target rendezvous. Updated documentation.
Fixes #1377 Changes added: 1. The applications use the same IPv4/6 family in rendezvous mode as the target address, in case when adapter is not specified. 2. Added lacking check for same family for the target address, in case when the socket is already bound. This is a fix required after introducing "family ind...
diff --git a/apps/transmitmedia.cpp b/apps/transmitmedia.cpp index 444fd76aa..daadffc0b 100644 --- a/apps/transmitmedia.cpp +++ b/apps/transmitmedia.cpp @@ -436,25 +436,28 @@ void SrtCommon::OpenRendezvous(string adapter, string host, int port) if ( stat == SRT_ERROR ) Error("ConfigurePre"); + sockad...
3
3
0
[{"id": "G0", "claim": "The new IPv6 introduction sentence should be reworded to 'This application can also use an address specified as IPv6 with the following restrictions:'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In item 2, the sentence ...
null
Haivision__srt__1408
Haivision/srt
1,408
defect
59f617f304d3e292913ab9b1e7c170886a88ee35
b3e23430f52102cee4bfaafdd4b76aa8f3ad47c6
[docs] Replaced CreateAddrInet with CreateAddr
The function `CreateAddrInet` was replaced by `CreateAddr`. The bonding intro document, as well as some comments in the code, still had those references. Now fixed.
diff --git a/apps/srt-live-transmit.cpp b/apps/srt-live-transmit.cpp index 266ff02ab..5926673f5 100644 --- a/apps/srt-live-transmit.cpp +++ b/apps/srt-live-transmit.cpp @@ -66,7 +66,7 @@ #include <list> -#include "apputil.hpp" // CreateAddrInet +#include "apputil.hpp" // CreateAddr #include "uriparser.hpp" // ...
1
1
1
[{"id": "G0", "claim": "The documentation example is wrong because `CreateAddr` returns `sockaddr_any`, not `sockaddr_in`, so the variable it initializes should not be declared as `sockaddr_in`.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Haivision__srt__1588
Haivision/srt
1,588
defect
73ee1e1a3e3adc2702a9a5057d101ef80447b38c
7bb1058deff21e8872a62e0cebff857c195cf9ba
[BUG] Fixed: Detect reusable bindings and binding conflicts correctly
Fixes #1503 The problem: the original procedure for finding a binding was only checking if the attempted binding can be matched with some other with the same port number. If found, it was reused, if settings allowed, otherwise a new binding was created. This was completely wrong because it didn't take into account ...
diff --git a/docs/API-functions.md b/docs/API-functions.md index ae986bc57..12874292c 100644 --- a/docs/API-functions.md +++ b/docs/API-functions.md @@ -1936,6 +1936,28 @@ by setting the `SRT_EPOLL_ENABLE_EMPTY` flag, which may be useful when you use multiple threads and start waiting without subscribed sockets, so th...
3
3
2
[{"id": "G0", "claim": "The CI build fails and must be made to pass.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The task description's fourth rule ('Only if the binding is not reusable does it proceed to create a new binding') contradicts the be...
null
Haivision__srt__1619
Haivision/srt
1,619
defect
1e6e5ac8e9be6196f9a48e3b3b91fdc839f35fd5
b1c32d0ef49048d8b29cfbd8c1bdda734c986679
[tests] Added CThread::joinable() unit test
The test confirms that `CThread` instance: 1. is joinable even after the thread has finished its execution; 2. is no longer joinable after `join()` was done. Comes together with this PR: - Added missing `override` statement in `srt-tunnel`. Was generating a warning. Overrides `Medium::CloseInternal()`.
diff --git a/apps/srt-tunnel.cpp b/apps/srt-tunnel.cpp index 0e5504fbd2..63ad73e352 100644 --- a/apps/srt-tunnel.cpp +++ b/apps/srt-tunnel.cpp @@ -534,7 +534,7 @@ class TcpMedium: public Medium tcp_close(m_socket); m_socket = -1; } - virtual void CloseInternal() { return CloseTcp(); } + vir...
3
2
1
[{"id": "G0", "claim": "There is likely another PR that fixes some logical errors including this one, so the `override` fix in apps/srt-tunnel.cpp may not belong in this PR.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `reinterpret_cast<void*>` appli...
null
Haivision__srt__1628
Haivision/srt
1,628
defect
d66d11645b8f96f1500d2ef8962fb73a3477b9fd
0038dd7915e03ec47850e2b03a3f8fdb24f02ed6
[core] Moved ACK sending to CUDT::sendCtrlAck
As a part of the #1610 the ACK sending code was moved to a dedicated function `CUDT::sendCtrlAck(..)`. The body of the function has no changes except for `break` statements that are replaced by `return`.
diff --git a/srtcore/core.cpp b/srtcore/core.cpp index 14dad86190..3125b01f09 100644 --- a/srtcore/core.cpp +++ b/srtcore/core.cpp @@ -7720,204 +7720,12 @@ void CUDT::sendCtrl(UDTMessageType pkttype, const int32_t* lparam, void* rparam, setPacketTS(ctrlpkt, steady_clock::now()); int nbsent = 0; - ...
1
1
0
[{"id": "G0", "claim": "The manual enterCS/leaveCS locking of m_RcvBufferLock in sendCtrlAck should be replaced with scope-based locking tools such as UniqueLock (and InvertedLock), since the refactoring aims at readability and error-resistance.", "category": "maintainability", "verdict": "supported", "priority": "P2",...
null
Haivision__srt__1664
Haivision/srt
1,664
defect
b0a9d4df45f828a9e9f57319b63312ae15b96384
301809bba2f4535b0587fc48c6cb769907679799
Fixed IPv4 to IPv6 mapping in CIPAddress::pton(..)
While converting IPv4 mapped to IPv6 there was an error in the IPv4 index. Fixes #1663 Added unit test for the case. ### TODO - [x] Unit test to get 100% coverage of `CIPAddress::pton(..)`
diff --git a/srtcore/common.cpp b/srtcore/common.cpp index 9df7186085..55c7101cf6 100644 --- a/srtcore/common.cpp +++ b/srtcore/common.cpp @@ -72,6 +72,11 @@ modified by using namespace srt::sync; +namespace srt_logging { + extern Logger inlog; +} + +using namespace srt_logging; CUDTException::CUDTException(...
4
4
0
[{"id": "G0", "claim": "In TestIPv6.v4_calls_v6_mapped the caller's postConnect leaves m_SelfAddr as 0.0.0.0:52872 because pton, on an AF_INET agent, reads ip[0] of what is actually an IPv4-mapped address array.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1"...
null
Haivision__srt__1669
Haivision/srt
1,669
defect
6e25e4867a238c226b3c4f9a19d3275c2405b745
a167d11cc878bd894b259abe4b6d185830c4306b
[core] Fixed some compiler warnings.
- C4101 - local variable never used (2). - C4129- 'character' : unrecognized character escape sequence (1). - C4305 - truncation from 'type1' to 'type2' (1). Related to #1646
diff --git a/srtcore/api.cpp b/srtcore/api.cpp index 2715ae7b6..1bc24d23c 100644 --- a/srtcore/api.cpp +++ b/srtcore/api.cpp @@ -574,7 +574,7 @@ int CUDTUnited::newConnection(const SRTSOCKET listen, const sockaddr_any& peer, { ns->m_SocketID = generateSocketID(); } - catch (const CUDTException& e) + ...
3
2
1
[{"id": "G0", "claim": "The division and modulo in the FileCC LOSS log line should be wrapped in parentheses so the insertion-expression precedence is unambiguous.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `%%` added to the FileCC LOSS ...
null
Haivision__srt__1750
Haivision/srt
1,750
defect
c6591d53e6097c42d23d0054644c07dea0f02788
e00b5e482c97f054124eb52c75e47a23868aadd0
[core] Fixed too early closed caller socket in background.
Proper fix for #1736. This reverses a change that was done in order to properly update groups when a caller socket has failed to connect. There was added a request to perform close-alike things (with setting flags and releasing thread-related resources) that caused the socket to be actually prematurely closed. This ...
diff --git a/docs/API-functions.md b/docs/API-functions.md index 1f4834c83..bb08be06f 100644 --- a/docs/API-functions.md +++ b/docs/API-functions.md @@ -783,6 +783,11 @@ is through the epoll flag with [`SRT_EPOLL_ERR`](#SRT_EPOLL_ERR). In this case y also call [`srt_getrejectreason`](#srt_getrejectreason) to get the d...
3
2
2
[{"id": "G0", "claim": "The changed behaviour (a socket that failed to connect is no longer marked broken and closed by the GC thread, only signalling the error via epoll) should be mentioned in the documentation, e.g. API.md 'Binding and Connection' and API-functions.md 'srt_connect'.", "category": "documentation", "v...
null
Haivision__srt__1791
Haivision/srt
1,791
defect
44503cd3a259fc5572e04b4c9187df29361b121d
0f01efd74cb9091f1c151532995f78395cce1d59
[core] Added SRTO_MININPUTBW
A simplification of #1541 and #1383. The proposed `SRTO_MININPUTBW` socket option allows specifying the minimum input bitrate estimate used to set bandwidth limit. Effective when `SRTO_INPUTBW = 0` -> input bitrate estimation. ``` input_rate = max(SRTO_MININPUTBW, estimate) BWLimit = input_rate * (1 + SRTO_OHEAD...
diff --git a/srtcore/core.cpp b/srtcore/core.cpp index 27dfc66629..029b23a6ed 100644 --- a/srtcore/core.cpp +++ b/srtcore/core.cpp @@ -233,6 +233,7 @@ CUDT::CUDT(CUDTSocket* parent): m_parent(parent) // Runtime m_bRcvNakReport = true; // Receiver's Periodic NAK Reports m_llInputBW ...
3
3
1
[{"id": "G0", "claim": "The new SRTO_MININPUTBW case in setOpt looks cut-and-pasted from another case (its comment refers to m_iOverheadBW), so it may not be right for this option.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The documentation...
null
Haivision__srt__1925
Haivision/srt
1,925
defect
f31f1fbae6c52c7dd2a0368cf8d4afdf0e1ab026
7171f7574b7d357cafb6202de496f97def3ae967
Fixing srt_getsockopt for bool socket options
In `srt_getsockopt(..)` API function these `bool` socket options were actually using `int` type when casting the `optval`, which may lead to writing outsize the memory of the `optval` when `bool` is provided. - `SRTO_SENDER` - `SRTO_TSBPDMODE` - `SRTO_DRIFTTRACER` - `SRTO_ENFORCEDENCRYPTION` This PR changes type...
diff --git a/srtcore/core.cpp b/srtcore/core.cpp index fc204816d..a4d76bf62 100644 --- a/srtcore/core.cpp +++ b/srtcore/core.cpp @@ -405,13 +405,11 @@ void CUDT::getOpt(SRT_SOCKOPT optName, void *optval, int &optlen) break; case SRTO_SNDSYN: - *(bool *)optval = m_config.bSynSending; - optl...
3
2
2
[{"id": "G0", "claim": "In the bool specialization of cast_set_optval, a negative optlen makes the `optlen >= sizeof(int)` check true because of the int-to-unsigned conversion, so the check does not work as expected.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "...
null
Haivision__srt__2081
Haivision/srt
2,081
defect
9b95ffc383f18a8d55aacf16038fa8638b0061ca
f310dd7b1184061df31d51472a94a306275c688b
[core] Repurpose SRTO_GROUPMINSTABLETIMEO
`SRTO_GROUPMINSTABLETIMEO` is a socket option for SRT socket group. It does not do anything when set on an individual socket, but when set on a listener socket - it is used to derive the value for a group. Defines the minimum value of the stability timeout for a member socket to be considered unstable. ### API Cha...
diff --git a/apps/socketoptions.hpp b/apps/socketoptions.hpp index 06c929896..07fc3a89d 100644 --- a/apps/socketoptions.hpp +++ b/apps/socketoptions.hpp @@ -249,12 +249,10 @@ const SocketOption srt_options [] { { "packetfilter", 0, SRTO_PACKETFILTER, SocketOption::PRE, SocketOption::STRING, nullptr }, #if ENABLE_...
5
5
0
[{"id": "G0", "claim": "The debug log line \"sendBackup_QualifyActiveState min_stability_us ...\" added in sendBackup_QualifyActiveState is leftover debugging and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The line setting...
null
Haivision__srt__2115
Haivision/srt
2,115
defect
df95ecb66be7ecffdfbe2f0b54b77ef7b7184d36
203dbae12a2fb00ece327b9eb7aaa76b4773d66e
Fix Build on Solaris.
This patch fixes Build on Solaris. Tested with Solaris 11.4 with the following configurations: ``` cmake \ -DCMAKE_INSTALL_PREFIX=`pwd`/stage \ -DENABLE_CXX11=ON \ -DENABLE_STDCXX_SYNC=ON \ -DENABLE_TESTING=ON \ -DENABLE_UNITTESTS=ON \ ../srt-1.4.4 ``` ``` cmake \ -DCMAKE_INSTALL_...
diff --git a/CMakeLists.txt b/CMakeLists.txt index c5cfa1394..36aeab7ab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,8 +40,9 @@ set_if(BSD ${SYSNAME_LC} MATCHES "bsd$") set_if(MICROSOFT WIN32 AND (NOT MINGW AND NOT CYGWIN)) set_if(GNU ${CMAKE_SYSTEM_NAME} MATCHES "GNU") set_if(ANDROID ...
3
3
1
[{"id": "G0", "claim": "The Solaris branch in srtcore/utilities.h should use the CMake-defined SUNOS macro instead of __sun — and not SUN, which is never defined, leaving the branch inactive on Solaris.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
Haivision__srt__2333
Haivision/srt
2,333
defect
042df34fc27d40da1ea5396985500168e41de4e5
7bf3fade6a054af8fa964227569a3cd9fe891fd2
Added OpenSSL EVP API support to HaiCrypt (--use-enclib=openssl-evp).
Changes to CRYSPR framework required (-DCRYSPR2). cryspr for openssl and openssl-evp tested cryspr for gnutls and mbedtls upgraded for CRYSPR2 but not compiled nor tested with -DCRYSPR2 both can still be built with/without -DCRYSPR2. Fixes #2141.
diff --git a/CMakeLists.txt b/CMakeLists.txt index e0c5aeb3e..0f1385037 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -338,9 +338,43 @@ if (ENABLE_ENCRYPTION) set(SRT_LIBS_PRIVATE ${SRT_LIBS_PRIVATE} "-l${LIB}") endif() endforeach() + elseif ("${USE_ENCLIB}" STREQUAL "openssl-evp") + # Openssl-EVP r...
6
6
0
[{"id": "G0", "claim": "The new `openssl-evp` value of the `USE_ENCLIB` build option should be added to the `USE_ENCLIB` description in docs/build/build-options.md.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The file header comment of haicrypt...
null
Haivision__srt__2395
Haivision/srt
2,395
defect
c5f613eb716fdb0bb82597df0dd4b56116f19d0b
f2fa1e4d9ce58ceae67327a055e2c8a0b09a30ed
Improving CUnitQueue performance and data race tolerance
### Protect CUnitQueue from data race Protect CUnitQueue from data race with a dedicated mutex and atomics. Previously only `CUnitQueue::m_iCount` was protected being of an atomic type. However, a simultaneous access to `CUnit::m_iFlag` was possible from `CUnitQueue::getNextAvailUnit()` (RcvQ thread) and `CUnitQue...
diff --git a/srtcore/api.cpp b/srtcore/api.cpp index 606b1e8cf6..6e887697e3 100644 --- a/srtcore/api.cpp +++ b/srtcore/api.cpp @@ -2983,7 +2983,7 @@ void srt::CUDTUnited::updateMux(CUDTSocket* s, const sockaddr_any& addr, const U m.m_pSndQueue = new CSndQueue; m.m_pSndQueue->init(m.m_pChannel, m.m_pTi...
5
3
1
[{"id": "G0", "claim": "The comment 'Increase (double) the unit queue size' is inaccurate because increase_() does not always double the whole queue size, it adds a fixed block of units.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR descri...
null
Haivision__srt__2444
Haivision/srt
2,444
defect
f477af533562505abf5295f059cf2156b17be740
039291cda0aeca208f77e720f41a08c5aac265a5
Fixed bug: initial state of an epoll eid for listener socket not set
Problem 1: if you make a listener socket, but delay with subscribing it to the epoll eid, and the first incoming connection happens before this subscription, the listener's readiness for accept will not be seen in the EID. Generally, it's the epoll flag updating problem. Problem 2: Incorrectly handled the case of ac...
diff --git a/apps/apputil.hpp b/apps/apputil.hpp index acb28d076..c79cf984e 100644 --- a/apps/apputil.hpp +++ b/apps/apputil.hpp @@ -20,6 +20,7 @@ #include "netinet_any.h" #include "utilities.h" +#include "srt.h" #if _WIN32 @@ -336,4 +337,41 @@ std::string OptionHelpItem(const OptionName& o); const char* SRTC...
1
1
0
[{"id": "G0", "claim": "The change adds commented-out code (`//#if 1`) in srtcore/api.cpp that appears to be dead code and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Haivision__srt__2504
Haivision/srt
2,504
defect
ea86302a818681954d41aff52d5d42b23ff4dba2
f33887dfdabd746ad7165951f6f877abfd39d303
Refax: smaller fixes and added utilities
Changes (LARGELY edited - lots of changes from this list were pushed through separate PRs): 1. Added `FormatLossArray` function for debug purposes. 2. Added some more logs and improved some existing logs. 3. `FormatDuration` now uses fixed floating point format. 4. Moved `traceState` to the interface and made gen...
diff --git a/srtcore/api.cpp b/srtcore/api.cpp index ea61a297a..c5a48ea3b 100644 --- a/srtcore/api.cpp +++ b/srtcore/api.cpp @@ -1481,14 +1481,6 @@ int srt::CUDTUnited::groupConnect(CUDTGroup* pg, SRT_SOCKGROUPCONFIG* targets, i int isn = g.currentSchedSequence(); - // Don't synchronize ISN in case ...
4
3
0
[{"id": "G0", "claim": "In CSndLossList::traceState, localize the output into a single line — call traceState(std::cout) << '\\n' and remove the separate std::cout << \"\\n\" below.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The syncOnMsgNo ...
null
Haivision__srt__2521
Haivision/srt
2,521
defect
491e6e8c5f56eb1e4f88bd7f6dc9d73c7c6b6363
078669e2c109e39777dd52d39c96fb30958f9dc5
Refax: moved removal of one seq from fresh loss list to a separate function
One-record-removal procedure made by a separate function. Additional: some fields of the `CSndLossList` exposed for better debug and test access.
diff --git a/srtcore/core.cpp b/srtcore/core.cpp index 84a0e0cef..5fca13fff 100644 --- a/srtcore/core.cpp +++ b/srtcore/core.cpp @@ -10496,53 +10496,8 @@ void srt::CUDT::unlose(const CPacket &packet) if (m_bPeerRexmitFlag == 0 || m_iReorderTolerance == 0) return; - size_t i = 0; - int had...
1
1
0
[{"id": "G0", "claim": "The goto statements in the newly extracted CRcvFreshLoss::removeOne should be removed — since the code now lives in a separate function, they could be replaced by return (e.g. by writing had_ttl directly through *pw_had_ttl), which the reviewer believed would be cleaner.", "category": "maintaina...
null
Haivision__srt__2570
Haivision/srt
2,570
defect
78dd987ca2a15565a364c6687e2457a4dfea4086
f632ef355d2f8c8d6d8e9e7011f27aa488ce3b1e
address multiple typo fixes.
minor typo fixes. Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt index 58a31d1f2d..4de83e89e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -433,7 +433,7 @@ if (USE_GNUSTL) endif() if (USING_DEFAULT_COMPILER_PREFIX) -# Detect if the compiler is GNU compatable for flags +# Detect if the compiler is GNU compatible for flags if (C...
7
7
0
[{"id": "G0", "claim": "The PR wrongly replaced \"preceeding\" with \"proceeding\" in three buffer_rcv.cpp comments; the word meant was \"preceding\", because the packets referred to are those before the new start position.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"},...
null
Haivision__srt__2594
Haivision/srt
2,594
defect
8b73dbc4fcbf3ba8f07883317f1c4d092b3bd8d9
bca5bb28a9ef6c91854c3dee0f692cb773ab3ff6
[MAINT] Removed reference fields from CPacket pinned to the SRT header
Reference fields like `m_iSeqNo` that were set to the value in the objects self parts of the array keeping the header have been turned into methods. Only `m_pcData` is left unchanged because this is much more complicated.
diff --git a/srtcore/buffer_snd.cpp b/srtcore/buffer_snd.cpp index 3aa81042e..ef1bc498c 100644 --- a/srtcore/buffer_snd.cpp +++ b/srtcore/buffer_snd.cpp @@ -317,7 +317,7 @@ int CSndBuffer::readData(CPacket& w_packet, steady_clock::time_point& w_srctime, w_packet.m_pcData = m_pCurrBlock->m_pcData; read...
3
1
0
[{"id": "G0", "claim": "The newly added single-statement `if (!out_of_order)` block should not use braces, to match the braceless style of the surrounding if-statements.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The repeated `if (!out_of_or...
null
Haivision__srt__2608
Haivision/srt
2,608
defect
30f6f6bcf239afafd3c7ff99b62b0e859b5758d9
a3fb8149879de418c4347e328b7b22fc0bf55a5d
[BUG/TEST] Refaxed and fixed multiplexer reusage. Fixed ReuseAddr tests.
Fixes #2389 Changes: 1. Reworked the procedure of finding the matching or conflicting multiplexer (some IPv6-related cases were incorrectly checking the cases of IPv6 only and IPv6+IPv4). 2. Obtaining the IPPROTO_IPV6/IPV6_V6ONLY flag from the socket in case of AF_INET6 family just after socket creation so that...
diff --git a/.travis.yml b/.travis.yml index c3e8e586d..eaca3a571 100644 --- a/.travis.yml +++ b/.travis.yml @@ -71,7 +71,7 @@ matrix: - BUILD_TYPE=Release - BUILD_OPTS='-DENABLE_MONOTONIC_CLOCK=ON' script: - - TESTS_IPv6="TestMuxer.IPv4_and_IPv6:TestIPv6.v6_calls_v6*:ReuseAddr.ProtocolVersion...
20
18
4
[{"id": "G0", "claim": "The srt_bind docs say \"an additional information\"; drop the article to \"additional information\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new paragraph on implicit binding in srt_bind docs misstates when impli...
null
Haivision__srt__2643
Haivision/srt
2,643
defect
8db35de529055394d9ff8bf4753328b38244dd2c
2bf5221e7abfab4244afd647237d04790d4dc294
[MAINT] Added setting CLOSING state when closing a socket
1. setting SRTS_CLOSING state on a socket that was requested to be closed. 2. Added time tracking when closing a socket with tracked wiping to track the time taken for wiping out a socket.
diff --git a/srtcore/api.cpp b/srtcore/api.cpp index f052c9606..7a6b16b55 100644 --- a/srtcore/api.cpp +++ b/srtcore/api.cpp @@ -1990,12 +1990,14 @@ int srt::CUDTUnited::close(CUDTSocket* s) HLOGC(smlog.Debug, log << s->core().CONID() << "CLOSING (removing listener immediately)"); s->core().notListe...
1
1
0
[{"id": "G0", "claim": "Adding `CSync::notify_one_relaxed(m_GCStopCond);` at the end of `CUDTUnited::close()` would further reduce the listener-socket free time, from 1.5 s to 1 second, by notifying the GC thread to run a re-check.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "pre_exi...
null
Haivision__srt__2667
Haivision/srt
2,667
defect
e8d0533176ef53bfb2b95442f125ec9c878cf791
d7b602c7a3571c36b6ed14650fbcde0f67005cd8
[FIX] Added rejection handshake sent to the peer in rendezvous mode
This adds the procedure to craft and send the rejection response in case when the handshake in rendezvous mode in one side has resulted in rejection. Some paths for this are common with caller mode so it's taken care of that it happens only in case of rendezvous mode. Motivation: in case of caller-listener layout, i...
diff --git a/srtcore/core.cpp b/srtcore/core.cpp index cb2d7267d..c0200a9d9 100644 --- a/srtcore/core.cpp +++ b/srtcore/core.cpp @@ -2629,6 +2629,9 @@ bool srt::CUDT::interpretSrtHandshake(const CHandShake& hs, { // Cryptographic modes mismatch. Not acceptable at all. ...
2
2
2
[{"id": "G0", "claim": "The newly added rejection paths in processConnectResponse (rejecting in rendezvous mode on a non-handshake packet and rejecting on a received SHUTDOWN) do not set a rejection reason; one should be set, e.g. SRT_REJ_ROGUE.", "category": "correctness", "verdict": "supported", "priority": "P1", "sc...
null
Haivision__srt__2677
Haivision/srt
2,677
defect
1cffd2f2abad1782d1218f2c2b893f26bf4bbfce
b53a091777719f9594efba9d6f0ed1582839f1d9
[FIX] Calculate correctly max payload size per UDP packet
Fixes #2663 This fixes the problem of specifying the maximum payload size per packet. Some of the internal functions have also slightly changed their meaning and logics. The problem: the system header (IP and UDP part) has a total length dependent on the IP version, and so it affects the remaining space in the 1...
diff --git a/apps/srt-file-transmit.cpp b/apps/srt-file-transmit.cpp index 327ad6809..e29ae3248 100644 --- a/apps/srt-file-transmit.cpp +++ b/apps/srt-file-transmit.cpp @@ -180,7 +180,7 @@ int parse_args(FileTransmitConfig &cfg, int argc, char** argv) return 2; } - cfg.chunk_size = stoul(Option<Ou...
9
7
1
[{"id": "G0", "claim": "The comment added in prepareConnectionObjects is wrong: the 1444 maximum payload size applies only when both parties are confirmed IPv6, not when any party is IPv6.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The static ...
null
Haivision__srt__2679
Haivision/srt
2,679
defect
1cffd2f2abad1782d1218f2c2b893f26bf4bbfce
d4c383d9f3f11559f170020370e7c8ac42fefe94
Fixed various warnings on various platforms
Addresses most (but not all) of the warnings documented here: https://github.com/Haivision/srt/issues/1646 Plus various other warnings I've encountered on different platforms.
diff --git a/haicrypt/cryspr-openssl-evp.c b/haicrypt/cryspr-openssl-evp.c index 0d52509036..3e87e9a5ef 100644 --- a/haicrypt/cryspr-openssl-evp.c +++ b/haicrypt/cryspr-openssl-evp.c @@ -49,7 +49,7 @@ int crysprOpenSSL_EVP_AES_SetKey( CRYSPR_AESCTX* aes_key) /* CRYpto Service PRovider AES Key conte...
3
1
0
[{"id": "G0", "claim": "Use std::string::copy (with the null terminator written immediately after) instead of strncpy plus a separate terminator line when returning SRTO_BINDTODEVICE in getOpt.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
Haivision__srt__2683
Haivision/srt
2,683
defect
1cffd2f2abad1782d1218f2c2b893f26bf4bbfce
77105c304b55c85d4c1d5819f89f213507b5b6cf
[FIX] Changed conditions for setting callbacks
The conditions for `srt_listen_callback` and `srt_connect_callback` are that they can only be modified prior to listening or connecting, simultaneously they can be also set to NULL.
diff --git a/srtcore/core.h b/srtcore/core.h index ce0e53958..8fd65067e 100644 --- a/srtcore/core.h +++ b/srtcore/core.h @@ -954,11 +954,17 @@ class CUDT private: void installAcceptHook(srt_listen_callback_fn* hook, void* opaq) { + if (m_bConnected || m_bConnecting || m_bListening || m_bBroken) + ...
1
1
0
[{"id": "G0", "claim": "The new SRT_ECONNSOCK error code thrown for installing the hooks should be added to the documented error code tables of `srt_listen_callback` and `srt_connect_callback` in docs/API/API-functions.md.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Haivision__srt__2807
Haivision/srt
2,807
defect
b8358bc4211a339a73bd08a3476bb0733ffe01f2
4ecd522c1243846c26f327d56293737b58153691
Added explicit closing the sockets. To prevent messing with UDP sockets keeping ports busy.
The reason why this is necessary is that it has been observed in some test CI environments that sometimes sockets fail to bind a port, for which the reason could be that the sockets may be deleted with too large delay and cause the next test to fail due to inability to bind the port.
diff --git a/test/test_env.h b/test/test_env.h index 2e2f78f7d..68ec516b3 100644 --- a/test/test_env.h +++ b/test/test_env.h @@ -60,6 +60,42 @@ class TestInit }; +class UniqueSocket +{ + int32_t sock; + +public: + UniqueSocket(int32_t s): sock(s) + { + if (s == -1) + throw std::invalid_a...
2
1
0
[{"id": "G0", "claim": "The garbage-socket-collector approach (TestInit::remember accumulating created sockets and closing them in stop()) distracts and complicates the testing code; sockets should instead be closed directly or via a smart socket object that closes in its destructor.", "category": "design", "verdict": ...
null
Haivision__srt__2849
Haivision/srt
2,849
defect
88c6214109d065d48962fc72ee92a5d4d7569408
ceedcb0ed1fe0129f23d877242332c0a0fe4f98f
[core] Removed the possibility to use optlen==-1 for null terminated strings in srt_setsockopt
Added a check in srt_setsockopt so that it returns SRT_EINVPARAM when optlen is -1 (see #2845) Added an unit test to verify this behaviour
diff --git a/srtcore/api.cpp b/srtcore/api.cpp index 7ec8ff570..a69f6dbd8 100644 --- a/srtcore/api.cpp +++ b/srtcore/api.cpp @@ -3793,7 +3793,7 @@ int srt::CUDT::getsockopt(SRTSOCKET u, int, SRT_SOCKOPT optname, void* pw_optval int srt::CUDT::setsockopt(SRTSOCKET u, int, SRT_SOCKOPT optname, const void* optval, int ...
1
1
0
[{"id": "G0", "claim": "The stream_id variable in the StringOptLenInvalid test can be declared const.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null