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
ZhuLinsen__daily_stock_analysis__932
ZhuLinsen/daily_stock_analysis
932
defect
937f09ca0df5157f4e976906cfe47bf0e1bec61a
f12d2d92f748f4d95035b81447c8490beec8d479
fix: 修复启动早期失败时日志缺失与根因不透明问题 (#839)
## PR Type - [x] fix - [ ] feat - [ ] refactor - [ ] docs - [ ] chore - [ ] test ## Background And Problem - 当前问题:让每日分析任务即使在启动早期失败时也能稳定产生日志并暴露真实根因,避免 GitHub Actions 只显示 `reports/`/`logs/` 无文件的误导性报错。 - 影响范围:本次改动涉及 3 个文件,Diff 为 `+266 / -25`。 - 触发来源:Issue 自动执行(Issue #839)。 ## Scope Of Change - `docs/CHANGELOG.md` - `mai...
diff --git a/main.py b/main.py index f8812a91c93..20357851a22 100644 --- a/main.py +++ b/main.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +from __future__ import annotations + """ =================================== A股自选股智能分析系统 - 主调度程序 @@ -21,37 +23,70 @@ - 效率优先:关注筹码集中度好的股票 - 买点偏好:缩量回踩 MA5/MA10 支撑 """ -import os ...
14
10
7
[{"id": "G0", "claim": "Moving StockAnalysisPipeline to a function-local import removes main.StockAnalysisPipeline, so existing runtime paths that do `from main import StockAnalysisPipeline` (src/services/task_service.py, bot/commands/batch.py) raise ImportError and bot/task-triggered analysis breaks unless the symbol ...
null
ZhuLinsen__daily_stock_analysis__962
ZhuLinsen/daily_stock_analysis
962
defect
b3c5e2458e4cbd4aca3b109153774b104f5bc236
7d2ca8b1e0748fce52d1222608979fada9d9ee5d
fix: 移除 HistoryItem 响应 Schema 中 sentiment_score 的… (#942)
## PR Type - [x] fix - [ ] feat - [ ] refactor - [ ] docs - [ ] chore - [ ] test ## Background And Problem - 当前问题:移除 HistoryItem 响应 Schema 中 sentiment_score 的 ge=0/le=100 约束(或在仓库层 clamp),使历史负值不再触发 Pydantic 验证异常,恢复历史列表正常查询。 - 影响范围:本次改动涉及 3 个文件,Diff 为 `+69 / -8`。 - 触发来源:Issue 自动执行(Issue #942)。 ## Scope Of Change - `api...
diff --git a/api/v1/schemas/history.py b/api/v1/schemas/history.py index bf710ba7802..6941702669f 100644 --- a/api/v1/schemas/history.py +++ b/api/v1/schemas/history.py @@ -23,10 +23,8 @@ class HistoryItem(BaseModel): stock_name: Optional[str] = Field(None, description="股票名称") report_type: Optional[str] = Fie...
3
3
1
[{"id": "G0", "claim": "Per AGENTS.md, this user-visible API behavior change (history list/detail no longer 422 on legacy sentiment_score values) should add an entry to docs/CHANGELOG.md under [Unreleased] in the flat '- [修复] …' format.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "...
null
ZhuLinsen__daily_stock_analysis__964
ZhuLinsen/daily_stock_analysis
964
defect
b3c5e2458e4cbd4aca3b109153774b104f5bc236
003bf8e9d7bed1949d6c4c89f99bd89a40087137
fix: stock name 港股获取不了了 (#940)
## PR Type - [x] fix - [ ] feat - [ ] refactor - [ ] docs - [ ] chore - [ ] test ## Background And Problem - 当前问题:在 AkshareFetcher._get_hk_realtime_quote 及 get_stock_name 中捕获 ak.stock_hk_spot_em() 异常并 fallback 到 ak.stock_hk_spot() 或 STOCK_NAME_MAP,保证港股名称在主接口故障时仍可正常显示 - 影响范围:本次改动涉及 2 个文件,Diff 为 `+249 / -49`。 - 触发来源:Iss...
diff --git a/data_provider/akshare_fetcher.py b/data_provider/akshare_fetcher.py index ac9d53d1d61..45f3156492e 100644 --- a/data_provider/akshare_fetcher.py +++ b/data_provider/akshare_fetcher.py @@ -1327,13 +1327,14 @@ def _get_etf_realtime_quote(self, stock_code: str) -> Optional[UnifiedRealtimeQu def _get_hk_r...
3
2
1
[{"id": "G0", "claim": "The HK realtime quote path shares one circuit breaker key (akshare_hk) between the EM and SINA chains, so a SINA success resets EM's failure count and a tripped breaker returns early and blocks the backup source; split it into two keys (e.g. akshare_hk_em / akshare_hk_sina) and still try the fal...
null
ZhuLinsen__daily_stock_analysis__965
ZhuLinsen/daily_stock_analysis
965
defect
b3c5e2458e4cbd4aca3b109153774b104f5bc236
da25070f10f907238ae7084ea54b661be64f5e87
fix: 部署完以后 webUI UI异常变大 布局异常 (#944)
## PR Type - [x] fix - [ ] feat - [ ] refactor - [ ] docs - [ ] chore - [ ] test ## Background And Problem - 当前问题:诊断 WebUI 部署后 UI 元素异常放大/布局错乱的根因,并视情况补充部署文档或改善 webui_frontend.py 的错误提示 - 影响范围:本次改动涉及 5 个文件,Diff 为 `+178 / -4`。 - 触发来源:Issue 自动执行(Issue #944)。 ## Scope Of Change - `docs/CHANGELOG.md` - `docs/DEPLOY.md` - `d...
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index ca46721a4ed..4896982825c 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/). <!-- 新条目格式:- [类型] 描述(类型取值:新功能/改进/修复/文档/测试/chore)--> <!-- 每条独立一行追加到本段末尾,无需分类标题,合并时冲突最小 -->...
3
3
0
[{"id": "G0", "claim": "_manual_build_command() should generate `npm ci && npm run build` when package-lock.json exists and fall back to `npm install` otherwise, to stay consistent with the module's auto-build path and the updated docs.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pr...
null
ZhuLinsen__daily_stock_analysis__971
ZhuLinsen/daily_stock_analysis
971
defect
b3c5e2458e4cbd4aca3b109153774b104f5bc236
c14c5cc5bfbfdd2d9bed22a88f4042d1fc4ba9b6
fix: 在 api/v1/endpoints/analysis.py 的 SSE 生成器 except… (#967)
## PR Type - [x] fix - [ ] feat - [ ] refactor - [ ] docs - [ ] chore - [ ] test ## Background And Problem - 当前问题:在 api/v1/endpoints/analysis.py 的 SSE 生成器 except asyncio.CancelledError 块中补充 DEBUG 日志并执行 raise,恢复取消传播链 - 影响范围:本次改动涉及 2 个文件,Diff 为 `+39 / -2`。 - 触发来源:Issue 自动执行(Issue #967)。 ## Scope Of Change - `api/v1/end...
diff --git a/api/v1/endpoints/analysis.py b/api/v1/endpoints/analysis.py index 862c95e5c4a..c7462e44281 100644 --- a/api/v1/endpoints/analysis.py +++ b/api/v1/endpoints/analysis.py @@ -516,8 +516,8 @@ async def event_generator(): "timestamp": datetime.now().isoformat() }) ...
3
2
0
[{"id": "G0", "claim": "Move the new SSE cancellation test out of ImageStockExtractorContractTestCase into AnalysisApiContractTestCase (or a dedicated SSE contract test case) so test responsibilities stay aligned.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ...
null
ZhuLinsen__daily_stock_analysis__973
ZhuLinsen/daily_stock_analysis
973
defect
b3c5e2458e4cbd4aca3b109153774b104f5bc236
626adeaf68720a3801d07383d21999ba320bbcf2
fix: 在 agent_chat_stream 的 finally 清理块中区分… (#969)
## PR Type - [x] fix - [ ] feat - [ ] refactor - [ ] docs - [ ] chore - [ ] test ## Background And Problem - 当前问题:在 agent_chat_stream 的 finally 清理块中区分 asyncio.CancelledError(静默)与其他运行时异常(warning 日志),消除静默吞异常的盲区。 - 影响范围:本次改动涉及 2 个文件,Diff 为 `+98 / -1`。 - 触发来源:Issue 自动执行(Issue #969)。 ## Scope Of Change - `api/v1/endpoints...
diff --git a/api/v1/endpoints/agent.py b/api/v1/endpoints/agent.py index 2265765bff6..45717cddbb1 100644 --- a/api/v1/endpoints/agent.py +++ b/api/v1/endpoints/agent.py @@ -447,8 +447,10 @@ async def event_generator(): finally: try: await asyncio.wait_for(fut, timeout=5.0) - ...
6
4
3
[{"id": "G0", "claim": "The finally cleanup block in agent_chat_stream mishandles asyncio.TimeoutError: an expected cleanup timeout can be logged as WARNING noise (and, once a TimeoutError branch exists, the except order would let CancelledError swallow it), so asyncio.TimeoutError should be handled by its own except b...
null
ZhuLinsen__daily_stock_analysis__974
ZhuLinsen/daily_stock_analysis
974
defect
b3c5e2458e4cbd4aca3b109153774b104f5bc236
3de8d880c7b00ba7e4b0df2ea28ff9af6b862061
fix: 在技能加载链路的所有静默 except 块中补充 logger.warning(… (#970)
## PR Type - [x] fix - [ ] feat - [ ] refactor - [ ] docs - [ ] chore - [ ] test ## Background And Problem - 当前问题:在技能加载链路的所有静默 except 块中补充 logger.warning(..., exc_info=True),保留原有 return [] / 默认值降级逻辑,使异常可被日志追查 - 影响范围:本次改动涉及 5 个文件,Diff 为 `+93 / -3`。 - 触发来源:Issue 自动执行(Issue #970)。 ## Scope Of Change - `bot/commands/ask....
diff --git a/bot/commands/ask.py b/bot/commands/ask.py index b1b3e4f573f..79234983e3a 100644 --- a/bot/commands/ask.py +++ b/bot/commands/ask.py @@ -129,6 +129,7 @@ def _load_skills() -> List[object]: sm = get_skill_manager() return list(sm.list_skills()) except Exception: + ...
2
2
0
[{"id": "G0", "claim": "The test class name `SkillAggregatorDebugWarningTests` is misleading because these tests assert debug-level logs, and it should be renamed (e.g. `SkillAggregatorDebugLogTests`) to reflect debug logging.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
ZhuLinsen__daily_stock_analysis__977
ZhuLinsen/daily_stock_analysis
977
defect
b3c5e2458e4cbd4aca3b109153774b104f5bc236
efcd571ca0fab51e26cd734285c5f776506c6da9
feat: [Bug] 公司公告和主力资金流搜索经常无法纳入分析 (#976)
## PR Type - [ ] fix - [x] feat - [ ] refactor - [ ] docs - [ ] chore - [ ] test ## Background And Problem - 当前问题:[Feature] [Bug] 公司公告和主力资金流搜索经常无法纳入分析 - 影响范围:本次改动涉及 9 个文件,Diff 为 `+302 / -14`。 - 触发来源:Issue 自动执行(Issue #976)。 ## Scope Of Change - `README.md` - `docs/CHANGELOG.md` - `docs/README_EN.md` - `src/agent/agent...
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index ca46721a4ed..5550be53859 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/). <!-- 新条目格式:- [类型] 描述(类型取值:新功能/改进/修复/文档/测试/chore)--> <!-- 每条独立一行追加到本段末尾,无需分类标题,合并时冲突最小 -->...
12
7
4
[{"id": "G0", "claim": "The ./scripts/ci_gate.sh offline-tests verification reported TIMEOUT, which the bot calls a blocking item: it must be resolved and passing test results provided before merge.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "The max_se...
null
ZhuLinsen__daily_stock_analysis__982
ZhuLinsen/daily_stock_analysis
982
defect
2939e90a319de1b5cd99ad489cf3235247d5b1ae
4946d343b8c9e307dab340a0b6618808e902984b
集成Anspire search
<!-- 集成了 Anspire Search 功能 --> ## PR Type - [ ] fix - [x] feat - [ ] refactor - [ ] docs - [ ] chore - [x] test ## Background And Problem 当前系统缺乏对 Anspire Search 的集成支持,无法利用其提供的金融/股票相关语义搜索能力。在需要从非结构化文本(如新闻、研报)中提取关联股票信息的场景下,现有方案召回率和准确率不足。本 PR 引入 Anspire Search 作为新的检索后端,提升 stock extraction pipeline 的效果。 ...
diff --git a/.env.example b/.env.example index 2d9225330ca..6685ca262d5 100644 --- a/.env.example +++ b/.env.example @@ -98,6 +98,9 @@ GEMINI_API_KEY= # =================================== # 搜索引擎配置(用于获取股票新闻) # =================================== +#Anspire Search API Keys (支持多个,逗号分隔) +# 获取: https://aisearch.anspire.c...
12
9
6
[{"id": "G0", "claim": "The PR description lacks the repository-required verification commands and result details (including a recorded local ./scripts/ci_gate.sh run) and its stated Scope of Change does not match the files actually modified.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "sco...
null
ZhuLinsen__daily_stock_analysis__997
ZhuLinsen/daily_stock_analysis
997
defect
518391e33bcc3f93846478ab60d9bb17eb990e27
3c6833fd7ce8c7e99946c81cc327d63632ec03ad
fix: 缺失值判断逻辑不应静默吞掉非预期异常 (#996)
## PR Type - [x] fix - [ ] feat - [ ] refactor - [ ] docs - [ ] chore - [ ] test ## Background And Problem - 当前问题:收紧基础缺失值判断中的异常处理范围,避免静默吞掉非预期异常,并为现有 fallback 行为补齐可回归的单测。 - 影响范围:本次改动涉及 2 个文件,Diff 为 `+113 / -10`。 - 触发来源:Issue 自动执行(Issue #996)。 ## Scope Of Change - `data_provider/base.py` - `tests/test_fundamental_conte...
diff --git a/data_provider/base.py b/data_provider/base.py index 30314b7b58c..6df2db17804 100644 --- a/data_provider/base.py +++ b/data_provider/base.py @@ -666,16 +666,58 @@ def _prune_fundamental_cache(self, ttl_seconds: int, max_entries: int) -> None: for key, _ in sorted_items[:overflow]: ...
4
4
2
[{"id": "G0", "claim": "In `_has_meaningful_payload`'s DataFrame branch, materializing the whole frame into a Python list via `.to_numpy().reshape(-1).tolist()` defeats `any(...)` short-circuiting and can cause large memory/time overhead for big DataFrames; iterate lazily (e.g. `payload.to_numpy().flat`) so evaluation ...
null
Zibbp__ganymede__1062
Zibbp/ganymede
1,062
defect
32cafe12bcbea165d21801d3abc10a44af7959d2
90e073ae48723a1a0eb5e7fe675893a2648614cd
fix: continue with live archive processing if ffmpeg task fails
Fixes https://github.com/Zibbp/ganymede/issues/1059
diff --git a/internal/live/live_test.go b/internal/live/live_test.go index a0372eb0..73ed838a 100644 --- a/internal/live/live_test.go +++ b/internal/live/live_test.go @@ -4,6 +4,7 @@ import ( "context" "fmt" "os" + osExec "os/exec" "testing" "time" @@ -105,6 +106,26 @@ func startAndWaitForArchiving(t *testi...
4
1
1
[{"id": "G1", "claim": "When the live download fails, the worker still marks the download task Success, so PostProcessVideo and MoveVideo run with no explicit file-existence or size validation before operating on a possibly missing/empty download; pre-flight validation (e.g., FileExists checks) should be added to these...
null
Zibbp__ganymede__1085
Zibbp/ganymede
1,085
defect
06b5f53afe278c661ab1b98e5433bcbd49a31ef0
2d0b69f9f3ec3d5a7a1e0986bbfbe5ab052062e5
feat: add configurable channel folder template for storage paths
## Summary - Adds a new `channel_folder_template` config option that controls how channel-level directories are named on disk, resolving the problem of archives scattering across folders when a Twitch channel renames. - Available template variables: `{{channel}}` (login name), `{{channel_id}}` (Twitch User ID — stabl...
diff --git a/frontend/app/admin/settings/page.tsx b/frontend/app/admin/settings/page.tsx index b7bfea8c..a4a8be3f 100644 --- a/frontend/app/admin/settings/page.tsx +++ b/frontend/app/admin/settings/page.tsx @@ -71,6 +71,7 @@ const AdminSettingsPage = () => { storage_templates: { folder_template: data?.s...
11
5
2
[{"id": "G0", "claim": "GetChannelFolderName should error when a template variable resolves to an empty value instead of silently letting sanitization yield \"unnamed_file\", which can collapse multiple channels into the same folder.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intro...
null
Zibbp__ganymede__804
Zibbp/ganymede
804
defect
73571d34f42601e203d014a9cd84fee14321e4a2
e4d472a1610db6ea1b2e8bc1588644d8647604f3
Phantom live stream detection and removal
https://github.com/Zibbp/ganymede/issues/760 Add an experimental config option (in JSON only) to enable better live stream detection and automatic phantom live stream cleanup Enabling this config option does two things: - Perform an additional check before the live stream is archived by checking if the m3u8 ma...
diff --git a/internal/config/config.go b/internal/config/config.go index d00bc75b..6af84026 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -30,6 +30,9 @@ type Config struct { ProxyParameters string `json:"proxy_parameters"` // Proxy parameters. ProxyWhitelist []string `...
4
4
3
[{"id": "G0", "claim": "When BetterLiveStreamDetectionAndCleanup is enabled, the trailing `return nil` executes for any error rather than only for platform.ErrorNoStreamsFound, so all other job failures are silently treated as handled and could lead to data loss or an inconsistent state; the return should run only afte...
null
Zibbp__ganymede__833
Zibbp/ganymede
833
defect
63d4aa30a69cb00ab1b640226c359110e5ff4782
3a69bc210c0cef6e8af4000f1740cee020a78f8b
feat: add granular date variables for storage templates
https://github.com/Zibbp/ganymede/issues/832 Add the following new storage template variables: - `{{YYYY}}` - `{{MM}}` - `{{DD}}` - `{{HH}}`
diff --git a/frontend/app/admin/settings/page.tsx b/frontend/app/admin/settings/page.tsx index 43b9bfe8..4d563e01 100644 --- a/frontend/app/admin/settings/page.tsx +++ b/frontend/app/admin/settings/page.tsx @@ -163,7 +163,7 @@ const AdminSettingsPage = () => { {t('applicationSettings.notificationSettings...
4
1
0
[{"id": "G0", "claim": "The tests TestArchiveVideoStorageTemplateSettings and TestArchiveVideoStorageTemplateSettingsCustom contain a significant amount of duplicated code and should be refactored into a single table-driven test.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "intro...
null
Zibbp__ganymede__848
Zibbp/ganymede
848
defect
85424d6a4087e826e73fefa18bd3f627cdeea2d9
265bc5b43a50f752eec7457557f15a13faa3c63d
feat: return queue and video object in archive response
Fixes https://github.com/Zibbp/ganymede/issues/846
diff --git a/internal/archive/archive.go b/internal/archive/archive.go index 5305512f..ea14bb77 100644 --- a/internal/archive/archive.go +++ b/internal/archive/archive.go @@ -35,6 +35,11 @@ type TwitchVodResponse struct { Queue *ent.Queue `json:"queue"` } +type ArchiveResponse struct { + Queue *ent.Queue `json:"qu...
2
2
0
[{"id": "G0", "claim": "ArchiveVideo should return nil explicitly instead of the err variable, which is guaranteed nil at that point, for consistency with ArchiveClip and ArchiveLivestream and for clarity.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
Zibbp__ganymede__864
Zibbp/ganymede
864
defect
349dfa64a435e271c26d13880cb05f73f37409e3
cb8ad97490881b942a9d06b2057f56fd90af0d65
feat: strict live stream categories
https://github.com/Zibbp/ganymede/issues/852 Add a setting that will stop the live stream archive if the category changes to one not selected.
diff --git a/ent/live.go b/ent/live.go index 0acd7997..ff2f15a3 100644 --- a/ent/live.go +++ b/ent/live.go @@ -45,6 +45,8 @@ type Live struct { VideoAge int64 `json:"video_age"` // Whether the categories should be applied to livestreams. ApplyCategoriesToLive bool `json:"apply_categories_to_live"` + // Stop live ...
5
4
1
[{"id": "G0", "claim": "The strict-categories condition should also check lwc.ApplyCategoriesToLive, since without it a channel with categories defined for VODs but ApplyCategoriesToLive disabled could have its live archive incorrectly stopped when StrictCategoriesLive is on.", "category": "correctness", "verdict": "su...
null
Zibbp__ganymede__874
Zibbp/ganymede
874
defect
a248d7476944c79923f35289e0b94ef8b38d8cc2
b906454ddcdb085e64f0a7baa17c78933b11e294
feat(archive): create fallback chapter from video category/game if no chapters exist
https://github.com/Zibbp/ganymede/issues/865 A video can have no chapters but usually has a category/game. If no chapters are returned from the platform API then use the video category/game as the only chapter. This can be backfilled by running the "Save Chapters for Videos", assuming the videos are still on Twitc...
diff --git a/internal/archive/archive_test.go b/internal/archive/archive_test.go index a5cf0e51..11e99c3a 100644 --- a/internal/archive/archive_test.go +++ b/internal/archive/archive_test.go @@ -80,7 +80,7 @@ func TestArchiveVideo(t *testing.T) { assert.NoError(t, err) // Assert video was created - v, err := app....
4
4
4
[{"id": "G0", "claim": "The new chapter assertion in TestArchiveVideoNoChat will likely fail because the vod was fetched without .WithChapters(), so the query should be updated to load chapters.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new cha...
null
Zibbp__ganymede__899
Zibbp/ganymede
899
defect
8008667298411cd3c934c235bab1fa777ae45a16
815b6cabef55ccbf4252038ee931c5914efc893c
fix: migrate sprite thumbnail paths
Fixes https://github.com/Zibbp/ganymede/issues/898
diff --git a/internal/database/migrate.go b/internal/database/migrate.go index 01ba3ca4..56c0964f 100644 --- a/internal/database/migrate.go +++ b/internal/database/migrate.go @@ -65,6 +65,14 @@ func (db *Database) VideosDirMigrate(ctx context.Context, videosDir string) erro update.SetInfoPath(strings.Replace(v.Info...
3
1
0
[{"id": "G0", "claim": "The new test does not actually test the migration of sprite thumbnail paths, because ArchiveVideo creates the VOD with SpriteThumbnailsEnabled=false by default so the new logic in VideosDirMigrate is never executed; the reviewer asks to manually enable sprite thumbnails and add dummy image paths...
null
Zibbp__ganymede__918
Zibbp/ganymede
918
defect
79ca1d2c61e8cc85928fdff7df48644ea74b21ab
066ae463f3398b0fc4f43ef57340b42496e6d0dc
Watched blacklist
https://github.com/Zibbp/ganymede/issues/917 Add a new "blacklist categories" option to watched channels that applies to live streams and videos.
diff --git a/Dockerfile b/Dockerfile index bda43151..516be9da 100644 --- a/Dockerfile +++ b/Dockerfile @@ -105,7 +105,7 @@ RUN \ fi # -# Tests stage. Inclues depedencies required for tests +# Tests stage. Includes dependencies required for tests # FROM golang:1.25-bookworm AS tests diff --git a/ent/...
4
4
0
[{"id": "G0", "claim": "The JSON tag `blacklist_categories_live` on the BlacklistCategories field is inconsistent with the field name and its usage throughout the application (API, frontend, database schema use `blacklist_categories`); update the tag to `blacklist_categories` for consistency.", "category": "maintainabi...
null
Zibbp__ganymede__924
Zibbp/ganymede
924
defect
99acd9a887f3bea78a57368852ab5608e05fe1ad
00c6ed6495d77c82305f39ff753a2c6137b414e7
Support docker secrets by processing _FILE suffixed env vars
# Goal Support [docker secrets](https://docs.docker.com/engine/swarm/secrets/) by supporting the `_FILE` env var suffix. # Solution Iterate through all env vars before returning env config, reading the value file for any `_FILE` suffixed env vars and setting the corresponding suffix-removed env var. # Example ...
diff --git a/internal/config/env.go b/internal/config/env.go index ec25610f..9e149335 100644 --- a/internal/config/env.go +++ b/internal/config/env.go @@ -2,6 +2,8 @@ package config import ( "context" + "os" + "strings" "github.com/rs/zerolog/log" "github.com/sethvargo/go-envconfig" @@ -51,8 +53,56 @@ type E...
3
2
1
[{"id": "G0", "claim": "There is no check on the size of the file being read, so reading very large secret files could lead to a denial-of-service; a file size limit (e.g. 1MB) should be added before reading.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim...
null
Zibbp__ganymede__945
Zibbp/ganymede
945
defect
2a711dc1cf29bb927d5ec0852f83e1035b9c43d5
e2d21d3f66e91546982f246758ca1e62491032b4
fix: live stream chat download
Fixes https://github.com/Zibbp/ganymede/issues/944 Twitch gql hash changes broke chat_downloader there are some comments on fixes which are applied in the patch file.
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 2d07d1b4..687869b1 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -28,3 +28,18 @@ RUN if [ "$(uname -m)" = "aarch64" ]; then \ RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/download/${YT_DLP_VERSION}/yt-dlp -o /us...
6
1
1
[{"id": "G0", "claim": "The sprite-thumbnail re-query on line 206 will panic with a nil pointer dereference because q.Edges.Vod is nil (the q query was not built with .WithVod()); the vod object already in scope should be used instead.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "int...
null
Zibbp__ganymede__948
Zibbp/ganymede
948
defect
9876ceff2428abaa81de6a7c3de1a2ed76241f64
db2606b792b950b49a4c9d567d6bde2da1ce3d1f
feat: improve live download pipeline
This PR combines three tasks download, convert, and move into a single workflow. Instead of using yt-dlp, it uses ffmpeg to download the livestream, processed it, and writes it while stream is live, rather than waiting until it ends. This PR change may introduce breaking behavior for some users. If PRs of this...
diff --git a/frontend/app/admin/settings/page.tsx b/frontend/app/admin/settings/page.tsx index 4d563e01..1cf34925 100644 --- a/frontend/app/admin/settings/page.tsx +++ b/frontend/app/admin/settings/page.tsx @@ -49,7 +49,6 @@ const AdminSettingsPage = () => { video_convert: data?.parameters.video_convert || "",...
7
3
3
[{"id": "G0", "claim": "The tc.GetStream call uses context.Background() instead of the function's ctx, so cancellation will not propagate and the network call can leak resources; pass ctx.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The osExec.Co...
null
Zibbp__ganymede__969
Zibbp/ganymede
969
defect
981e5486158648f2f5a292543e80ae16436e34cd
d80c2825d91a94e092ad6df65a61b44cc5d31fe4
feat: replace chat-downloader with go native irc package
Replace the chat-downloader python utility with a Go native IRC package. Outputs an identical JSON format for backwards compatibility. This gives more control over retries and parsing logic.
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index d525e3a8..ad0e8108 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -29,17 +29,5 @@ RUN if [ "$(uname -m)" = "aarch64" ]; then \ RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/download/${YT_DLP_VERSION}/yt-dlp -o /usr/...
3
1
1
[{"id": "G0", "claim": "The new appendMessageToJSONArray reads the whole JSON file into memory, unmarshals it, appends one message, re-marshals and rewrites the entire file for every chat message, which will degrade performance and increase memory usage on long-running streams; it should append without loading the whol...
null
Zibbp__ganymede__986
Zibbp/ganymede
986
defect
2d440c1742250ffdbc54721a1cafb12689b0b0d5
826e2c292b87ed6f055d417bca1ac18a7bad2300
feat: allow watching stream while live archiving
Add an option to download a HLS stream alongside the mp4 file. With the improved live stream download logic with ffmpeg this is possible now. If "convert mp4 to hls" is enabled this works out of the box now without a second output being required. A cleaner approach to this would be to always download HLS then conver...
diff --git a/frontend/app/admin/settings/page.tsx b/frontend/app/admin/settings/page.tsx index 7cfd5485..b7bfea8c 100644 --- a/frontend/app/admin/settings/page.tsx +++ b/frontend/app/admin/settings/page.tsx @@ -76,6 +76,7 @@ const AdminSettingsPage = () => { proxies: data?.livestream.proxies || [], pr...
9
1
1
[{"id": "G0", "claim": "User-defined ffmpeg parameters are appended after the output paths in DownloadTwitchLiveVideo, so FFmpeg may ignore them or behave unexpectedly; they should be inserted before the output specifications.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}...
null
ZimengXiong__ExcaliDash__30
ZimengXiong/ExcaliDash
30
defect
e75b727a5ae0380af2d9c036a6538af101f4359f
02f3572ca387c61f8af5ed3c6516706ff729ba82
feat/upload-bar
add a upload bar when user upload file, and add a loading status when user click back button in Edit page solve #29 problem
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 9543943f..efc99e98 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -3,18 +3,21 @@ import { Dashboard } from './pages/Dashboard'; import { Editor } from './pages/Editor'; import { Settings } from './pages/Settings'; import { ThemeProvider ...
13
8
2
[{"id": "G0", "claim": "There is no progress update during the parsing/SVG-generation phase, so the UI could show 0% for a long time; the reviewer suggests intermediate updates or starting at a small value like 10%.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
ZimengXiong__ExcaliDash__36
ZimengXiong/ExcaliDash
36
defect
7c238701b7a23f71a3ebd055a0e3c18cf20e61f5
a0dac7c82bbc1bae609997447fff634c462668aa
fix: sync pasted/uploaded images across collaborating tabs
- Implement file delta synchronization to broadcast image file data - Add periodic file sync check to catch async file data arrival - Wrap Excalidraw addFiles API to automatically emit file changes - Enhance socket element-update to include file payloads - Add comprehensive E2E test for image collaboration scenario...
diff --git a/backend/src/index.ts b/backend/src/index.ts index 5e2025ff..5a3029ac 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -96,6 +96,22 @@ const normalizeOrigins = (rawOrigins?: string | null): string[] => { const allowedOrigins = normalizeOrigins(process.env.FRONTEND_URL); console.log("Allowed...
1
1
0
[{"id": "G0", "claim": "The 500ms polling interval used as a fallback for broadcasting file-only updates could be increased to 1000ms to reduce overhead, since most updates should go through the addFiles wrapper anyway.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Zizzamia__perfume.js__223
Zizzamia/perfume.js
223
defect
29a0e2bfce82b3eef7a7dbbc6ce7eda12bac8c4b
16ce694ad155b4735109f37c21ef111ac139fc3d
Adding user journey map p2
Part 2 of Adding in user journey tracking into Perfume Added in the User Journey map structure to keep track of data Added in basic marking functions and tests
diff --git a/__tests__/userJourney/markJourney.spec.ts b/__tests__/userJourney/markJourney.spec.ts new file mode 100644 index 0000000..547568b --- /dev/null +++ b/__tests__/userJourney/markJourney.spec.ts @@ -0,0 +1,35 @@ +/** + * @jest-environment jsdom + */ +import { WP } from '../../src/constants'; +import mock from...
12
9
0
[{"id": "G0", "claim": "A unit test is missing for the new getJourneyMarkName helper in src/utils.ts.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The @param tags should be dropped from the JSDoc blocks in src/userJourneyMap.ts; a good description is ...
null
Zizzamia__perfume.js__260
Zizzamia/perfume.js
260
defect
4eeb566670d4d5224a922136a5fd4646b8111c10
08f4cd2867c1dd384d2e496e149baa7a72818d70
Added extra check for undefined values
Encountered a race condition that occurred occasionally when multiple marks were being fired off at similar times, as a result the `WP.measure(stepMetricName, M + startMark, M + endMark);` would sometimes return undefined, and then cause an undefined type error. Added back in the async/await into calling `measureSt...
diff --git a/__tests__/steps/measureStep.spec.ts b/__tests__/steps/measureStep.spec.ts index 32ed3a2..01cd759 100644 --- a/__tests__/steps/measureStep.spec.ts +++ b/__tests__/steps/measureStep.spec.ts @@ -139,7 +139,7 @@ describe('measureStep', () => { }, }); }); - it('should return when the sta...
2
2
0
[{"id": "G0", "claim": "Add a comment explaining why the new `if (!stepMeasure)` early return is needed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add comments explaining what this part (the Promise.all dispatch over possible steps) does, so ...
null
Zizzamia__perfume.js__78
Zizzamia/perfume.js
78
defect
c7e0bf329041ed067769a1dffa70337e00cb7d83
9463fff8d554c2074fc775e438721fbc509cadcf
feat: replace Map by plain old objects to support more browsers
Since we use basic Map features (get, set, has, delete) only, we can as well just replace our maps by objects to support IE < 11 and other browser that do not recognize ES6 specifications. This keeps the bundle small and avoids the need of costly polyfills. We, the performance measurement teams, have a special inter...
diff --git a/__tests__/perfume.spec.ts b/__tests__/perfume.spec.ts index a4b0bf5..8367d76 100644 --- a/__tests__/perfume.spec.ts +++ b/__tests__/perfume.spec.ts @@ -12,8 +12,8 @@ describe('Perfume', () => { (window as any).PerformanceObserver = mock.PerformanceObserver; (window as any).console.log = (n: any) ...
2
2
1
[{"id": "G0", "claim": "`delete this.metrics.metricName` deletes the literal key 'metricName' instead of the key named by the metricName variable, so end() never removes the metric entry, and a test should be added to prevent this.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introdu...
null
Zoinkwiz__quest-helper__1558
Zoinkwiz/quest-helper
1,558
defect
e4594a8a2b33a7642d91e996e1cfeb610aaf7ae3
1118969d788ff318c8314df2028d7469cd6e71eb
feat: Made the Memory Puzzle in Lunar Diplomacy dynamic
This adjusts the path generation from being hardcoded options to dynamic based on the actual path. This should ensure it's more reliable and less prone to error.
diff --git a/src/main/java/com/questhelper/helpers/quests/lunardiplomacy/MemoryChallenge.java b/src/main/java/com/questhelper/helpers/quests/lunardiplomacy/MemoryChallenge.java index 615dbb70aa..8dc23fdf47 100644 --- a/src/main/java/com/questhelper/helpers/quests/lunardiplomacy/MemoryChallenge.java +++ b/src/main/java/...
1
1
0
[{"id": "G0", "claim": "MemoryChallenge's private createGrid should be made package-private (just remove `private`) so the test, being in the same package, can reuse it instead of keeping its own private copy.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Zoinkwiz__quest-helper__1847
Zoinkwiz/quest-helper
1,847
defect
204fae43261d0337d50675ecb0b2160b24fa9b09
4ee2ea3cb5fe9322067b1bb6996559fe0d836b53
ItemRequirement rework
This PR intends to improve the efficiency of ItemRequirement checks by including some caching where possible. I've tried to introduce the concept of cached containers (inventory, equipped, bank), which I hope will in the future make it easier for us to include new container concepts such as the rune pouch, POH storage,...
diff --git a/src/main/java/com/questhelper/QuestHelperPlugin.java b/src/main/java/com/questhelper/QuestHelperPlugin.java index ebb76d6a4a..72a95cfc6d 100644 --- a/src/main/java/com/questhelper/QuestHelperPlugin.java +++ b/src/main/java/com/questhelper/QuestHelperPlugin.java @@ -29,11 +29,7 @@ import com.google.inject....
5
5
0
[{"id": "G0", "claim": "The added TrackedContainers containerType field in ItemAndLastUpdated should be private rather than package-visible.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The lastUpdated field in ItemAndLastUpdated lacks a comme...
null
Zoinkwiz__quest-helper__2061
Zoinkwiz/quest-helper
2,061
defect
3a57860fad928ae7632905e3eb1f4d54e3c20c59
180b9ee1f873a1967ca173826cd1b569938e2b41
feat: Added NER support
Allows user to also get item info in the NER plugin. Preferably this can check if the player has the NER plugin downloaded before showing the option, unsure how to do that though.
diff --git a/src/main/java/com/questhelper/managers/QuestManager.java b/src/main/java/com/questhelper/managers/QuestManager.java index 87ffbc625d..e9c7715cb7 100644 --- a/src/main/java/com/questhelper/managers/QuestManager.java +++ b/src/main/java/com/questhelper/managers/QuestManager.java @@ -40,7 +40,9 @@ import net...
1
1
0
[{"id": "G0", "claim": "Remove the leftover debug statement System.out.println(nerInstalled); from QuestRequirementsPanel before review.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Zoinkwiz__quest-helper__2448
Zoinkwiz/quest-helper
2,448
defect
bfa7888a62d984d8fd7847e695f41ce7e6f387c4
1dbffe21782fd4ea1643a7fe8c111562d242d0f0
Sailing coord fixes
Creates DefinedPoint, which is intended to make it clearer when we're using a WorldPoint which needs translation before usage or not. Makes use of worldviews for the player and the toplevel across usual wp usage.
diff --git a/src/main/java/com/questhelper/helpers/miniquests/enchantedkey/EnchantedKeyDigStep.java b/src/main/java/com/questhelper/helpers/miniquests/enchantedkey/EnchantedKeyDigStep.java index 4e1a188239..74bf77b164 100644 --- a/src/main/java/com/questhelper/helpers/miniquests/enchantedkey/EnchantedKeyDigStep.java ++...
8
8
2
[{"id": "G0", "claim": "DefinedPoint.of's return value and its WorldPoint argument should both be tagged as @Nullable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "TileIsLoadedRequirement(WorldPoint) could call this(DefinedPoint.of(worldPoint)...
null
Zoinkwiz__quest-helper__810
Zoinkwiz/quest-helper
810
defect
fcec069cb91aeafacc66bb00c5f99d355f79d111
8185cbbbcabb9314b14a569b40a2136a0fd4c127
Quest: Sleeping Giants
This PR adds a mostly-complete implementation of the Sleeping Giants quest. - It still needs some verification, and probably some 'patching', as Runelite hasn't been updated yet to 'contain' the right NPC and Item ID's, so for now they're hard-coded integers but they work. - For the same reason, the quest id isn't...
diff --git a/src/main/java/com/questhelper/ExternalQuestResources.java b/src/main/java/com/questhelper/ExternalQuestResources.java index b370ba8cd5..11b2bd5069 100644 --- a/src/main/java/com/questhelper/ExternalQuestResources.java +++ b/src/main/java/com/questhelper/ExternalQuestResources.java @@ -149,6 +149,7 @@ publi...
6
6
5
[{"id": "G0", "claim": "The crateSearched and shouldSetMould VarbitRequirements for varbit 13903 should use Operation.EQUAL instead of Operation.LESS_EQUAL (with crateSearched's value corrected to 15).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "...
null
Zokrates__ZoKrates__1266
Zokrates/ZoKrates
1,266
defect
553da16837d3b186d3c364689ef823546250713c
78bfbcfaccb39701238f056548ea8e939a365326
Use foundry for integration tests
- Remove solc dependency - Generate a single foundry project for all integration tests - Run `forge test` at the end To be squashed before merging
diff --git a/.circleci/config.yml b/.circleci/config.yml index 98c18e57e..b1b5c42db 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -76,6 +76,9 @@ jobs: command: rustc --version; cargo --version; rustup --version - setup-sccache - restore-sccache-cache + - run: + n...
2
2
0
[{"id": "G0", "claim": "The rm command could use a wildcard `.arg(\"./src/*.sol\")` instead of the single file, removing the other call.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The second rm command could use a wildcard `.arg(\"./test/*.t...
null
Zokrates__ZoKrates__203
Zokrates/ZoKrates
203
defect
e41efb4930d54e0adac0e41e988e5667b9c8c866
de217ea95d5858da8df72771e960a74728bc02e0
Implement support for WASM helpers
This commit provides the basic features to execute code. A replacement of `Identity` is provided for tessting. Some points still need to be discussed: - [x] ~~At the moment one can not return a pointer greater than `MAX_INT`. A potential idea would be to return a `i64` instead of a `i32`.~~ -> it has been decid...
diff --git a/Cargo.lock b/Cargo.lock index 33cf8b86b..f4a1e07af 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -218,6 +218,16 @@ dependencies = [ "libc 0.2.43 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "memory_units" +version = "0.3.0" +source = "registry+https://github.com/rust-...
11
7
1
[{"id": "G0", "claim": "In get_i32_export, the syntax `let no = foo()?; return Ok(no);` can be simplified to just the tail expression `foo()`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The module-loading code in the execute path is duplicat...
null
Zokrates__ZoKrates__526
Zokrates/ZoKrates
526
defect
cfd8964ca3a43272262c00c23ed346ead9d63b2e
be90257334fb40733b46dd0642cdd5cffd5154f3
Generate ABI during compilation
Instead of baking the high level signature into the ir program, generate a complete interface after semantic checking and return it alongside the ir program. This is a breaking change, as the serialized program alone isn't sufficient to interact via ABI anymore. Todo - [x] Better naming for `ProgAndAbi` - [x] A...
diff --git a/.gitignore b/.gitignore index 300820901..bf63418d8 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ # ZoKrates default files out out.ztf +abi.json proof.json proving.key verification.key @@ -18,3 +19,4 @@ witness .DS_Store .idea +*.iml diff --git a/zokrates_abi/src/lib.rs b/zokrates_abi/s...
4
4
0
[{"id": "G0", "claim": "The CLI argument help texts should use uniform wording: the abi_spec help says \"Path of the ABI specification\" while the other ABI description at line 168 says \"Path to the ABI specification\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"...
null
Zokrates__ZoKrates__580
Zokrates/ZoKrates
580
defect
d499b8fd3bd29ad9fb8da7fc44bb9f6a722e2b02
8774cbcd6e7fa2a60c231cae6297e1312e26fd34
Resolver patch
Added [Resolver](https://github.com/dark64/ZoKrates/blob/resolver-patch/zokrates_core/src/compile.rs#L134) trait for code clarity
diff --git a/Cargo.lock b/Cargo.lock index 84e1e5415..ef0c00a65 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -58,12 +58,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "autocfg" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d49d90015b3c36167a20fe2810c5cd87...
3
3
1
[{"id": "G0", "claim": "The `Into<imports::Error>` bound should sit on `resolve` rather than on the `Resolver` trait, as good practice that makes things clearer.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "fs_resolver should be kept independent of zok...
null
Zokrates__ZoKrates__623
Zokrates/ZoKrates
623
defect
90e8270665be8cbaf68529874590563f72c5b257
5850f77e1f9c1bfe87cd6e2c5219ee451187763b
Add stdlib path argument to cli
- Added `--stdlib-path <PATH>` argument to cli - Removed `ZOKRATES_HOME` environment variable Todo: - [x] Set stdlib-path argument as optional (should default to `$HOME/.zokrates/stdlib`)
diff --git a/.circleci/config.yml b/.circleci/config.yml index 4953923eb..e484a792b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -20,7 +20,7 @@ jobs: command: ./scripts/install_libsnark_prerequisites.sh - run: name: Build - command: ZOKRATES_HOME=$(pwd)/zokrates_...
3
3
0
[{"id": "G0", "claim": "Rename the FileSystemResolver constructor `new` to `with_stdlib_root` in zokrates_fs_resolver/src/lib.rs so the name says what it takes.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request still needs a small clar...
null
Zokrates__ZoKrates__761
Zokrates/ZoKrates
761
defect
80ff39d428d03e5f4c653383dc1f07a966186160
852f741e9b3f5a23dce137463efc0dd6c6f2249d
Constant range check
Current range checks `x < y` are computed using a technique which is not complete (x and y must be small). When `x` or `y` is a compile-time constant, there actually are more efficient, and complete, implementations. Implement range checks against constants using the technique in A.3.2.2 of the sapling paper. Not...
diff --git a/changelogs/unreleased/761-schaeff b/changelogs/unreleased/761-schaeff new file mode 100644 index 000000000..f51dfda32 --- /dev/null +++ b/changelogs/unreleased/761-schaeff @@ -0,0 +1 @@ +Introduce constant range checks for checks of the form `x < c` where `p` is a compile-time constant, also for other comp...
1
1
0
[{"id": "G0", "claim": "The doc comment on `enforce_constant_le_check` is outdated: it should explain the `a` and `b` parameters instead of the stale `e` and `c` entries.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Zokrates__ZoKrates__944
Zokrates/ZoKrates
944
defect
6271c5b7467abcd7d45aab4c85fcef7d58e1e70d
b9f16d30eb44362f5a886dc5a55498e5153549dd
Test tutorials in CI
https://github.com/Zokrates/ZoKrates/issues/890 Todo: - [x] rng tutorial - [x] sha256 tutorial
diff --git a/zokrates_book/src/examples/rng_tutorial.md b/zokrates_book/src/examples/rng_tutorial.md index 05a5e54f6..f4ce6adf1 100644 --- a/zokrates_book/src/examples/rng_tutorial.md +++ b/zokrates_book/src/examples/rng_tutorial.md @@ -24,22 +24,25 @@ In this tutorial you learn how to use Zokrates and zero knowledge p...
1
1
1
[{"id": "G0", "claim": "Narrowing the example globs to `*.zok` can silently skip an example whose extension is mistyped; instead folders should be ignored and `.sh` explicitly excluded so that every other file is still run and a wrong extension crashes.", "category": "testing", "verdict": "supported", "priority": "P1",...
null
Zulko__moviepy__1076
Zulko/moviepy
1,076
defect
63487076a5871c9cbad01905cf92c27b4cb93100
53b3829b16746bc87fb2da3de46513708a2476fa
Implement basic data model
/This is a very raw proof of concept that try to explore a more pythonic API for basic clip manipulation using few of the "dunder" methods (aka python's data model). ``` In [2]: v = VideoFileClip('/home/tin/Videos/Screencast 2019-12-10 09:56:22.mp4') ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 60e70db2c..856d7808a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -178,6 +178,10 @@ Note that this is likely to be the last release before v2.0, which will drop sup - New version of imageio with imageio\_ffmpeg for python 3.4+ [\#907](https://github.com/Zulko/moviepy...
6
2
1
[{"id": "G0", "claim": "Overloading operators on objects as complex as VideoClips could cause confusion and make code harder to read and maintain, and the semantics of some of the operators are unsettled - whether '+' should mean concatenation or overlay, why use '-clip' for time mirroring instead of 'clip[::-1]', and ...
null
Zulko__moviepy__1442
Zulko/moviepy
1,442
defect
72e14189efc9a0b5ff95834153364ccb3e24900c
091401bace39e61f9d184d749b1d60e05473ea00
Remove 'coreader' methods adding formal '__copy__' API
+ Removed `coreader` methods of `VideoFileClip` and `AudioFileClip`. + Added safe support for ``copy.copy(clip)`` and ``copy.deepcopy(clip)``. + Replace `copy(clip)` by `clip.copy()` in `video.fx.blink`. + Removed test of `video.fx.blink` that was added because `copy()` was removed from builtin Python functions. ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index ba00923a4..a3fa0f5f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Important Announcements ### Added <!-- for new features --> -- `VideoFileClip.coreader()` that creat...
1
1
0
[{"id": "G0", "claim": "In VideoClip.__copy__ the loop already shallow-copies the mask and audio attributes, so the explicit re-assignments of new_clip.audio and new_clip.mask right after the loop (lines 137-138 and 141-142) do the same thing again.", "category": "maintainability", "verdict": "supported", "priority": "...
null
Zulko__moviepy__1768
Zulko/moviepy
1,768
defect
7e3e8bb1b739eb6d1c0784b0cb2594b587b93b39
dfa62cfa24fc50cf560aa53cc70859abf4bb005f
Fix libavformat compatiblity break
https://github.com/FFmpeg/FFmpeg/commit/b7251aed46f5ac96fe65c1c68ddac44b07429467 Close #1714 <!-- Please tick when you have done these. They don't need to all be completed before the PR is submitted. Delete them if they are not appropriate for this pull request. --> - [x] I have provided code that clearly dem...
diff --git a/moviepy/video/io/ffmpeg_reader.py b/moviepy/video/io/ffmpeg_reader.py index 3e2455738..e96101718 100644 --- a/moviepy/video/io/ffmpeg_reader.py +++ b/moviepy/video/io/ffmpeg_reader.py @@ -415,14 +415,14 @@ def parse(self): else: self._last_metadata_field_added = field ...
1
1
0
[{"id": "G0", "claim": "Rewrite the new test to keep it clean and concise: shorten the docstring, simplify the fake ffmpeg output (drop the (...)/tbn/tbc noise, use 30 tbr / 60 tbc), and add an assertion that exactly one stream was parsed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scop...
null
Zulko__moviepy__1781
Zulko/moviepy
1,781
defect
025c3fea33d50ec0d85e1852b83aa69ec8cd2c7d
050da40bf91eb481772cd1c56e32fae1ef842b02
Parse FFMPEG streams with square brackets
Hikvisions CCTV recordings use custom codec which causes FFMPEG to return stream "value" in square brackets. Original FFMPEG issue: https://trac.ffmpeg.org/ticket/3566 Sample files: https://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket4182/ <!-- Please tick when you have done these. They don't need to all be ...
diff --git a/moviepy/video/io/ffmpeg_reader.py b/moviepy/video/io/ffmpeg_reader.py index e96101718..0345923b6 100644 --- a/moviepy/video/io/ffmpeg_reader.py +++ b/moviepy/video/io/ffmpeg_reader.py @@ -422,7 +422,7 @@ def parse(self): # get input number, stream number, language and type ...
2
2
1
[{"id": "G0", "claim": "With square-bracket stream lines the parsed language value (e.g. 0x1e0) is a stream number, not a language, so the language key no longer makes sense and should be handled; the author also asks for a CHANGELOG entry.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope":...
null
Zulko__moviepy__1783
Zulko/moviepy
1,783
defect
df84762fba06e23369863d9cada4c5ca1b82426d
8f770aba25b08dfae7e78ae5c3f37a7d70175d59
Fix audio processing for streams with missing `audio_bitrate`
Set default `audio_bitrate` to `None`. Similar to #1781 if the file is footage from Hikvision CCTV the bitrate is not available to read even if the `audio` stream is present. https://user-images.githubusercontent.com/3527244/171369718-6feb18ef-29a5-49af-b5df-b1be03565916.mp4 - [x] I have provided code th...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d301eb26..995d3e6e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -63,6 +63,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed mono clips crashing when `audio_fadeout` FX applied [\#1578](https://github.com/Zulko/moviepy/pull/...
1
1
0
[{"id": "G0", "claim": "The block added after the loops to set `self.result[\"audio_bitrate\"] = None` can be refactored by initialising `self.result[\"audio_bitrate\"] = None` before the loops and simplifying the loop conditions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intr...
null
Zulko__moviepy__1837
Zulko/moviepy
1,837
defect
18e9f57d1abbae8051b9aef75de3f19b4d1f0630
a5d2245d17fc8014025ec40bc78414c4315abc5a
Handle brackets and language in FFMPEG output
After #1781 we capture whatever is in square brackets as language. Newer ffmpeg versions can provide both the value in square brackets (whatever that is) and language in parenthesis, which breaks the regex. I changed the regex to ignore the value in square brackets (using non-capturing group) and always get the langua...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 995d3e6e8..423c2ec66 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -64,6 +64,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed scroll FX not being scrolling [\#1591](https://github.com/Zulko/moviepy/pull/1591) - Fixed parsing...
1
1
0
[{"id": "G0", "claim": "The nested `if language is not None:` / `if language == \"und\":` guard can be rewritten as just `if language == \"und\":`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Zulko__moviepy__2307
Zulko/moviepy
2,307
defect
f380ada1be665d6e2ba75b7382938b7d8ece3237
51572906316e16a9aee2b68b25a6f4bbee2c0e5d
Fix issue 2269 - And a lot of other things
TL;DR: Transparency was broken all around, I fixed it. What started as a "quick fix" for issue #2269 rapidly escalated into (re)discovery (see https://github.com/Zulko/moviepy/issues/2012#issuecomment-1642997120) of multiple bugs in regards to transparency handling in moviepy. To summarize, transparency was plain an...
diff --git a/moviepy/video/VideoClip.py b/moviepy/video/VideoClip.py index fd43a81a2..a76e0daf3 100644 --- a/moviepy/video/VideoClip.py +++ b/moviepy/video/VideoClip.py @@ -718,6 +718,8 @@ def blit_on(self, picture, t): """Returns the result of the blit of the clip's frame at time `t` on the given `pi...
2
2
0
[{"id": "G0", "claim": "Remove the stray debug print of `clips` added in `CompositeVideoClip.__init__`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In `concatenate_videoclips`'s `get_mask`, the fallback should be `mask = clip.mask or ColorCli...
null
Zulko__moviepy__577
Zulko/moviepy
577
defect
1c5c6336602f6164b38d27a6dbfa3ed5c5f7c402
17028410205a56f2937011e08ae0e91971e49318
Take into account rotation metadata to define video size
- ffmpeg autorotates videos but the video_size is unchanged, this results e.g. in stretched output images or even unreadable images or videos. This commit exchanges width and height if 90 or 270 degree rotation was detected.
diff --git a/moviepy/video/io/ffmpeg_reader.py b/moviepy/video/io/ffmpeg_reader.py index 077c4053f..d2c6bb1ad 100644 --- a/moviepy/video/io/ffmpeg_reader.py +++ b/moviepy/video/io/ffmpeg_reader.py @@ -371,6 +371,12 @@ def get_fps(): result['video_rotation'] = int(rotation_line[match.start() : match.end...
3
2
2
[{"id": "G0", "claim": "The pull request should add a unit test (or otherwise demonstrate) that the rotation-metadata size fix works.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The fix as written needs to be rewritten to work with the new ffmpeg out...
null
Zulko__moviepy__890
Zulko/moviepy
890
defect
f5108739321117051aded9b66f2534ebc4d7634f
6b39d8fc0db57fc4662c29278a0c4946e7788b62
FFmpeg Writer: handle redirected logs when checking for errors
* Previously we were looking for `'foo' in None` resulting in a TypeError (#877) * Now, if an `IOError` occurs when running FFmpeg to write video clips, **but** there is no output returned, assume we are redirected, and give the user a helpful message about where to look for errors (i.e. in the logs), instead of thr...
diff --git a/moviepy/video/io/ffmpeg_writer.py b/moviepy/video/io/ffmpeg_writer.py index 27b6f12dd..701a7488c 100644 --- a/moviepy/video/io/ffmpeg_writer.py +++ b/moviepy/video/io/ffmpeg_writer.py @@ -68,7 +68,7 @@ def __init__(self, filename, size, fps, codec="libx264", audiofile=None, if logfile is None: ...
2
2
0
[{"id": "G0", "claim": "Split the communicate() tuple with unpacking (foo, bar = proc.communicate()) instead of indexing [1] to get ffmpeg's stderr.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When the ffmpeg error is not defined (stderr empt...
null
Zygo__bees__49
Zygo/bees
49
defect
6d6aedd8ecc7876a65e744c35b329a53a68dd797
3bac836e05bca76651486a008ff02ebb67084e63
Logging: Add log levels
I thought it would be nice to have some log levels in the log output because bees is very chatty. Sometimes it looks like it's writing more data by logging than it saves by deduplication. ;-) I also thought by this little project I could learn more about the code. So here's the result, plus it makes colorful output ...
diff --git a/include/crucible/chatter.h b/include/crucible/chatter.h index f00e1e4a5..44d314f5a 100644 --- a/include/crucible/chatter.h +++ b/include/crucible/chatter.h @@ -8,6 +8,8 @@ #include <string> #include <typeinfo> +#include <syslog.h> + /** \brief Chatter wraps a std::ostream reference with a destructor...
3
3
0
[{"id": "G0", "claim": "The blacklist_add message should be logged at a lower level (INFO or maybe DEBUG) than WARN, since it is bees hiding its own files from itself.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hash-collision message should be lo...
null
Zylann__godot_voxel__120
Zylann/godot_voxel
120
defect
8c16424af1335cece659c95cd773106b267f31aa
24841e9a185f5f55f8ce7d68d60e0e58ab09922a
Fix gcc warnings
This can be merged first. Unrelated to the other PR. The only remaining warnings are two functions declared but not used. Also gcc hates your ascii art.
diff --git a/generators/voxel_generator_test.cpp b/generators/voxel_generator_test.cpp index 48ad6bd18..bdfe39990 100644 --- a/generators/voxel_generator_test.cpp +++ b/generators/voxel_generator_test.cpp @@ -44,6 +44,7 @@ void VoxelGeneratorTest::generate_block(VoxelBlockRequest &input) { generate_block_flat(**inp...
4
4
1
[{"id": "G0", "claim": "The newly added `default:` should be placed at the end of the switch with a `CRASH_NOW`-style macro inside, instead of sitting before `case MODE_WAVES` where it makes unknown modes fall through to wave generation.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introd...
null
a-b-street__abstreet__675
a-b-street/abstreet
675
defect
fc4f0a8c8e13735fd3416d2f96db2b6eb0cbfb3a
11c8a8222263d6e2176207700c65818426daaea3
Store Turns per Intersection, instead of a massive BTreeMap. #368
Minimal file size savings, but substantial runtime improvement! See https://github.com/a-b-street/abstreet/issues/368#issuecomment-849891303 for context on this idea. # Performance impact I ran montlake in headless mode a few times: - before: 17.8s, 20.6s, 21.3s, 17.9s - after: 13.4s, 13.1s, 15.5s, 14.0s ...
diff --git a/game/src/app.rs b/game/src/app.rs index d9d5d13bc6..ef5052cad1 100644 --- a/game/src/app.rs +++ b/game/src/app.rs @@ -388,7 +388,7 @@ impl App { ID::Intersection(id) => { intersections.push(draw_map.get_i(id)); for t in &map.get_i(id).turns { - ...
1
1
1
[{"id": "G0", "claim": "Returning all turns as an eagerly built Vec is likely substantially more expensive than before, and all_turns should return a lazy iterator instead.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
a-h__templ__1028
a-h/templ
1,028
defect
9a97564b7ccd691d5db25d2e081c45ab5b83fb31
e39abc2c3c921546af01130ba1e50fdc4cc02799
feat: support unquoted HTML attributes, closes #963
- **feat: support unquoted attribute values** - **feat: add tests for unquoted attributes** Closes #963
diff --git a/parser/v2/elementparser.go b/parser/v2/elementparser.go index 3c3e73d3f..7d482c36b 100644 --- a/parser/v2/elementparser.go +++ b/parser/v2/elementparser.go @@ -102,7 +102,9 @@ var ( var ( attributeConstantValueParser = parse.StringUntil(parse.Rune('"')) attributeConstantValueSingleQuotePars...
3
3
0
[{"id": "G0", "claim": "The new comment should read \"not an empty string\" instead of \"not the empty string\" to match the HTML spec wording (via a suggestion block).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The parser slices built inside ...
null
a-h__templ__1038
a-h/templ
1,038
defect
fcc0519ac7e455d4de74ec4c36ad193bd5dc4c38
f8f1781f6ed4194fb71191b3ab8b133c0e8a5b46
feat: add new JS handling features - templ.JSFuncCall and templ.JSUnsafeFuncCall
fixes #838
diff --git a/.version b/.version index 1d619c63e..d9bec1e2f 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -0.3.819 \ No newline at end of file +0.3.822 \ No newline at end of file diff --git a/docs/docs/03-syntax-and-usage/12-script-templates.md b/docs/docs/03-syntax-and-usage/12-script-templates.md index 63f4ca234....
2
2
2
[{"id": "G0", "claim": "The pull request ships templ.JSUnsafeFuncCall without any documentation for it.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The docs example calls JSExpression without the required templ. package namespace, so the exampl...
null
a-h__templ__1070
a-h/templ
1,070
defect
486882f8f79a898428c4324810821bd66361f777
f49b6d5b8460716e494f3b5f9641185c3426d5bb
refactor: remove goquery dependency
goquery is great, but actually, we only need one or two matchers, so there's no need to bring it in. I've left it in use within an example that shows how to use it in a test. Overall, am attempting to reduce the number of dependencies where sensible.
diff --git a/.version b/.version index c8a188890..fcc69be17 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -0.3.835 \ No newline at end of file +0.3.836 \ No newline at end of file diff --git a/cmd/templ/generatecmd/proxy/proxy.go b/cmd/templ/generatecmd/proxy/proxy.go index f8d4ccd80..f2d3efb82 100644 --- a/cmd/temp...
1
1
0
[{"id": "G0", "claim": "The new htmlfind package should be moved into an internal subdirectory instead of living at the repository root.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
a-h__templ__1124
a-h/templ
1,124
defect
78e130a9d1852a6c0f970e2462676a71adeecf8d
f5c31e54378a0885a21428d26363db73ba4e5125
feat: use GOPACKAGESDRIVER to load templ documents lazily
Implement lazy loading and unloading of templ documents based on package dependency information provided by a custom `GOPACKAGESDRIVER`, ensuring correct open/close order using topological traversal. The custom `GOPACKAGESDRIVER` must populate the [OtherFiles](https://cs.opensource.google/go/x/tools/+/refs/tags/v0.3...
diff --git a/cmd/templ/lspcmd/proxy/server.go b/cmd/templ/lspcmd/proxy/server.go index cbdc06e4a..d139c72b5 100644 --- a/cmd/templ/lspcmd/proxy/server.go +++ b/cmd/templ/lspcmd/proxy/server.go @@ -9,6 +9,8 @@ import ( "regexp" "strings" + "golang.org/x/tools/go/packages" + "github.com/a-h/parse" lsp "github.c...
4
3
1
[{"id": "G0", "claim": "The lazy-loading path should be gated behind the GOPACKAGESDRIVER environment variable being set, since without it packages.Load may not return templ files in OtherFiles.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pac...
null
a-h__templ__1129
a-h/templ
1,129
defect
78e130a9d1852a6c0f970e2462676a71adeecf8d
d72b6f5ccec67a2949433486033cf7769660a4e2
feat: allow primitive types when interpolating
Fixes #746
diff --git a/flake.nix b/flake.nix index d6f2fae73..716221215 100644 --- a/flake.nix +++ b/flake.nix @@ -41,7 +41,7 @@ name = "templ"; subPackages = [ "cmd/templ" ]; src = gitignore.lib.gitignoreSource ./.; - vendorHash = "sha256-JVOsjBn1LV8p6HHelfAO1Qcqi/tPg1S3xBffo+0a...
3
3
0
[{"id": "G0", "claim": "The test package 'testprimatives' should be renamed to the correctly spelled 'testprimitives'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The render test should also cover strings and some string-ish things alongside ...
null
a-h__templ__1171
a-h/templ
1,171
defect
608c516e6495b966826c047f7a7df60f7ce8dc87
9365f16ea34d2ace9d9cee2f2b8926e012586ef0
feat: support string types and functions for URL attributes - no longer require templ.SafeURL - fixes #1167
fixes #1167 Thi PR changes form action and anchor href to use SafeURL with error
diff --git a/benchmarks/templ/template_templ.go b/benchmarks/templ/template_templ.go index c5f68b13c..7ec7b4a88 100644 --- a/benchmarks/templ/template_templ.go +++ b/benchmarks/templ/template_templ.go @@ -58,8 +58,12 @@ func Render(p Person) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_...
5
3
1
[{"id": "G0", "claim": "The commented-out reference line in the generator should be updated to match the actual emitted code (`templ.JoinURLErrs(`) instead of the stale `templ.JoinStringErrs[templ.SafeURL](`, to avoid confusion.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introd...
null
a-h__templ__1213
a-h/templ
1,213
defect
23ccc900e24b2cd8da4320419d76c471b7b266b6
39ace25e6ba23862199a2071a07176e1e48436e2
fix: add support for spreading non-string attribute values in RenderAttributes
Add support for all numeric types (ints, uints, floats, complex) in RenderAttributes function. ## Changes - Add support for all numeric types from the stringable interface in RenderAttributes - Use fmt.Sprint to convert numeric values to strings before rendering - Add comprehensive unit tests for RenderAttributes fu...
diff --git a/generator/test-spread-attributes/render_test.go b/generator/test-spread-attributes/render_test.go index c637072d1..9777b6bc3 100644 --- a/generator/test-spread-attributes/render_test.go +++ b/generator/test-spread-attributes/render_test.go @@ -111,3 +111,27 @@ func nilPtr[T any]() *T { func ptr[T any](x T...
3
3
0
[{"id": "G0", "claim": "The explanatory comments above the numeric type case groups in RenderAttributes are unnecessary and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new TestRenderAttributes test cases can be made par...
null
a-h__templ__1216
a-h/templ
1,216
defect
73832bd2856a8a5947adeb842586f8dbcdc086e4
6f690ec3230524f20c46196a332b87291275ec7c
feat: add fragment rendering support
This PR adds fragment rendering support. It enables an optimisation for HTMX by returning a smaller HTML payload when an entire document is not required. When carrying out a `hx-get` or similar, if an entire page is returned the `hx-select` attribute (https://htmx.org/attributes/hx-select/) needs to be used to sele...
diff --git a/docs/docs/03-syntax-and-usage/19-fragments.md b/docs/docs/03-syntax-and-usage/19-fragments.md new file mode 100644 index 000000000..ed11777f6 --- /dev/null +++ b/docs/docs/03-syntax-and-usage/19-fragments.md @@ -0,0 +1,161 @@ +# Fragments + +The `templ.Fragment` component enables redirection of a subsectio...
6
6
2
[{"id": "G0", "claim": "The example's module path does not match its directory name; update go.mod to `github.com/a-h/templ/examples/htmx-fragments` so the example builds correctly.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The docs code sample...
null
a-h__templ__1225
a-h/templ
1,225
defect
231ce0119ad4f1ba2ca9c829272f572af63ce47e
71aeebfe1673208281a35549df54b91fec23da29
feat: add Ranges to GoComment parser nodes
Hi there, I'm working on a Templ Linting tool for my project. In order to (a) display useful results to users and (b) enable linter config via comments (similar to eslint's `eslint-disable`), the tool needs to be able to understand the original source location of parsed nodes. I came across a discussion thread on th...
diff --git a/parser/v2/gocommentparser.go b/parser/v2/gocommentparser.go index b12295abb..e8b0ec974 100644 --- a/parser/v2/gocommentparser.go +++ b/parser/v2/gocommentparser.go @@ -15,6 +15,7 @@ var goSingleLineComment = goSingleLineCommentParser{} func (p goSingleLineCommentParser) Parse(pi *parse.Input) (n Node, o...
1
1
0
[{"id": "G0", "claim": "The new test cases in parser/v2/gocommentparser_test.go should explicitly show `From: Position{Index: 0, Line: 0, Col: 0}` instead of relying on the implicit zero value, for clarity.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
a-h__templ__1337
a-h/templ
1,337
defect
b666bd7798a0afac70ac1cd06a3651da0f350005
c59d1835ce540a9c9ed8180a1efe2c1aa8fd3e51
feat: add Range to ChildrenExpression nodes
Adds a `Range` to the parser's `ChildrenExpression` nodes. Continues @dgrundel's initiative of adding `Range` to all AST nodes for the benefit of external linting tools, which started in #1225 and was originally discussed in https://github.com/a-h/templ/discussions/586. See also #1301, #1302, #1335, and #1336.
diff --git a/parser/v2/childrenparser.go b/parser/v2/childrenparser.go index a829c4a51..bb722ca72 100644 --- a/parser/v2/childrenparser.go +++ b/parser/v2/childrenparser.go @@ -13,9 +13,15 @@ var childrenExpressionParser = parse.StringFrom( ) var childrenExpression = parse.Func(func(in *parse.Input) (n Node, ok boo...
1
1
1
[{"id": "G0", "claim": "The block a-h flagged in childrenExpression looks wrong - on an error it may seek back to the start even though parsing did not succeed - and this behaviour has no test, so the author should explain or fix it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intro...
null
a-h__templ__1345
a-h/templ
1,345
defect
b0f52438ed74f6b83ba890d2439378ed198f3b34
d81953bf7066bc99f158696e670f55a77a842b92
feat: add TLS support to live reload proxy
Closes #1329
diff --git a/cmd/templ/generatecmd/cmd.go b/cmd/templ/generatecmd/cmd.go index f1133da08..fc680553e 100644 --- a/cmd/templ/generatecmd/cmd.go +++ b/cmd/templ/generatecmd/cmd.go @@ -2,6 +2,7 @@ package generatecmd import ( "context" + "crypto/tls" "errors" "fmt" "io/fs" @@ -355,10 +356,28 @@ func (cmd *Genera...
3
2
2
[{"id": "G0", "claim": "The proxy health-check client sets InsecureSkipVerify: true, which should not be used in production code.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "When TLS certificates are configured, the proxy listens without TLS (calls ...
null
a-h__templ__285
a-h/templ
285
defect
241804705b2df61868d16d75dc2a651fab739bec
7be508499f7f78cfde729131e1ffdf514369d07d
Allow script components to be rendered inline
Allows templ to render `script` components, which is useful for inline Javscript. As of now, `script` components can really only be used within HTML attributes. This extends the `!` usage to now enable embedding Javascript outside HTML attributes. This fixes #231 I've also added a test case to show how it would b...
diff --git a/cmd/templ/visualize/sourcemapvisualisation_templ.go b/cmd/templ/visualize/sourcemapvisualisation_templ.go index 4aa38e8f8..d63b053cf 100644 --- a/cmd/templ/visualize/sourcemapvisualisation_templ.go +++ b/cmd/templ/visualize/sourcemapvisualisation_templ.go @@ -179,7 +179,8 @@ func highlight(sourceId, target...
9
8
1
[{"id": "G0", "claim": "The new docs example misspells the variable as `conent`: `console.log(conent)` should read `console.log(content)`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new docs example should use the current `@printToConsole(...
null
a-h__templ__337
a-h/templ
337
defect
aaf6074f6982e83a36937c28c8192368a7bd737e
fafbff5ffd9394cabb4d68795fd7d779f027d7cc
Add support for rendering raw HTML, and bi-directional support for html/template
Fixes #175
diff --git a/.version b/.version index 904643f64..e2f1abec9 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -0.2.486 \ No newline at end of file +0.2.488 \ No newline at end of file diff --git a/docs/docs/03-syntax-and-usage/14-using-with-go-templates.md b/docs/docs/03-syntax-and-usage/14-using-with-go-templates.md ne...
1
1
0
[{"id": "G0", "claim": "The docs line says \"use use the `templ.Raw` function.\", repeating the word \"use\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
a-h__templ__661
a-h/templ
661
defect
8cc2e944ec466f9a52701dca9edef89b2459075c
76bf658486b4e49bb5a931d5989122b826e449de
[feat] implement notify proxy to reload browser
fix #656
diff --git a/cmd/templ/generatecmd/cmd.go b/cmd/templ/generatecmd/cmd.go index 89ec7662b..b64f95b39 100644 --- a/cmd/templ/generatecmd/cmd.go +++ b/cmd/templ/generatecmd/cmd.go @@ -49,6 +49,9 @@ type GenerationEvent struct { } func (cmd Generate) Run(ctx context.Context) (err error) { + if cmd.Args.NotifyProxy { + ...
9
8
0
[{"id": "G0", "claim": "a-h would like an integration test that starts a web server listening for the POST request, runs the CLI `go run cmd/templ --notify-proxy`, and validates the POST was received; jackielii proposed a simpler http-recorder test of the new route handler instead and a-h explained the goal is protecti...
null
a-h__templ__745
a-h/templ
745
defect
0c14a899236d115a790b5a960b5d2b50c277c77e
32d1366ec6216afd6c10b00e78d76a82ef1a87a1
feat: add JSONString and JSONScript functions, update docs, mark templ script as legacy
Fixes #739
diff --git a/.version b/.version index 99d7f0c2b..283613393 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -0.2.696 \ No newline at end of file +0.2.697 \ No newline at end of file diff --git a/README.md b/README.md index b888fd54d..62839a00b 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,12 @@ go tool covdata...
1
1
0
[{"id": "G0", "claim": "Remove the local CSP nonce/context code from jsonscript.go in favour of the templ.GetNonce function added in PR #752.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
a-h__templ__848
a-h/templ
848
defect
bb5e41b1cc6d4edb5cb2e173650320bb28fd74e0
78c194aeb376412f081b18b13be8b44ff2e63b7c
add primitive document symbol support
try to fix #347 Currently it deals with Go symbols + parser.HTMLTemplate TODOs: 1. deal with documentSymbol as well 2. add other symbols (css, script)? 3. add correct containerName?
diff --git a/cmd/templ/lspcmd/lsp_test.go b/cmd/templ/lspcmd/lsp_test.go index 1587346ed..2f3ef995d 100644 --- a/cmd/templ/lspcmd/lsp_test.go +++ b/cmd/templ/lspcmd/lsp_test.go @@ -2,6 +2,7 @@ package lspcmd import ( "context" + "encoding/json" "fmt" "io" "os" @@ -14,6 +15,7 @@ import ( "github.com/a-h/tem...
4
3
2
[{"id": "G0", "claim": "The document-symbol approach of having gopls parse the templ file directly, without converting the templ URI to the Go URI, is broken in many cases and should be redone by converting to Go files and mapping the symbols back to templ ranges.", "category": "correctness", "verdict": "supported", "p...
null
a-h__templ__912
a-h/templ
912
defect
88eed0f46000ed0a0f93e9801bf20626708778ee
ab06581c85ac4c71219a3d7c35b603aeddcb55fb
feat(lsp): add workspace folder initialization
Fixes #911 - Added logic to walk through workspace folders and initialize templ files. - Logs warnings when source maps are not found in cache. - Parses templates and sets source map cache contents. - Handles errors during file reading, template parsing, and generation. works on #911
diff --git a/cmd/templ/lspcmd/proxy/server.go b/cmd/templ/lspcmd/proxy/server.go index fe6689454..40a802395 100644 --- a/cmd/templ/lspcmd/proxy/server.go +++ b/cmd/templ/lspcmd/proxy/server.go @@ -3,17 +3,20 @@ package proxy import ( "context" "fmt" + "os" + "path/filepath" "regexp" "strings" "github.com/a...
3
3
1
[{"id": "G0", "claim": "The package-level preLoadURIs variable should be a field on the Server struct.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Inverting the `if isTemplFile` check in the Initialize walk callback into an early return would improve ...
null
a-schild__jave2__91
a-schild/jave2
91
defect
e24bab1fedb9859a4d011584101d0e2bf0c6a2db
b94d947d108c0333a9bc68c0c65227a10d5f4822
Cleaning up some warnings
Just cloned the repo and had some warnings. Thought I'd clean them up. Also migrated some process related code to its own package and renamed it to be more generic. ProcessLocator can be a functional interface with a default implementation - this opens up the possibility of other companies having their own hierar...
diff --git a/.gitignore b/.gitignore index bf6615a6..b206bc34 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,8 @@ /*/target/ /jave-core/nbproject/ /jave-core-test/src/test/resources/private + +# Squelch Eclipse settings +.settings +.project +.classpath \ No newline at end of file diff --git a/jave-core-t...
1
1
1
[{"id": "G0", "claim": "Moving FFMPEGLocator, FFMPEGExecutor and ProcessKiller into the ws.schild.process package under new names is a breaking API change; do the refactoring but leave the old public and protected FFMPEG classes and names in place as deprecated, to be removed only in the 3.0.0 release.", "category": "d...
null
a13xp0p0v__kernel-hack-drill__16
a13xp0p0v/kernel-hack-drill
16
defect
a9892f716cd05791af795b03a7fb2b5da7643ec4
e25fbb313e242f5b5c7e13e6e8e80d6f8ab27869
feature: out-of-bound write primitive and an exploit
hello, @a13xp0p0v ! please have a look at these changes: 1. [module has been patched](https://github.com/a13xp0p0v/kernel-hack-drill/commit/f03dede80ff33151623a1cf29f6d01c168e1e681) to make OOBW happen, `drill_test` updated as well to prevent heap corruption 2. built a [basic exploit](https://github.com/a13xp0p0v/...
diff --git a/Makefile b/Makefile index 5adc480..486e973 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ all: gcc drill_uaf_w_pipe_buffer.c -Wall -static -o drill_uaf_w_pipe_buffer gcc drill_uaf_w_pte.c -Wall -static -o drill_uaf_w_pte -lrt -lpthread gcc drill_uaf_w_pud.c -Wall -static -o drill_uaf_w_pud -l...
9
8
1
[{"id": "G0", "claim": "Restore the modprobe path via the privileged privesc script instead of memory corruption, so the original modprobe_path is restored earlier (not after the privileged shell finishes).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
a16z__halmos__105
a16z/halmos
105
defect
2d63c863d7d98449158b2cfc88886359627417f1
1197025c6efd8338fde3db3ea4e408ba6c7b5127
perf: faster codecopy + create
Before this PR: - everything is lowered to a bitvector byte before being stored in memory After this PR: - memory is now an array of either concrete or bitvector bytes - doing a codecopy of concrete bytes keeps the bytes concrete in memory - (furthermore, doing a codecopy of a concrete *portion* of symbolic by...
diff --git a/src/halmos/__main__.py b/src/halmos/__main__.py index 19504c2c5..5d002ed95 100644 --- a/src/halmos/__main__.py +++ b/src/halmos/__main__.py @@ -299,14 +299,17 @@ def setup( if args.debug: print('\n'.join(setup_bounded_loops)) setup_exs = [] + for idx, setup_ex in enumerate(...
9
9
2
[{"id": "G0", "claim": "Setup execution errors were hidden even when running with --debug, so the change adds a debug print surfacing them.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The 'No successful path found in {setup_sig}' error string w...
null
a16z__halmos__106
a16z/halmos
106
defect
2d63c863d7d98449158b2cfc88886359627417f1
ed8a4c407de4f065425870d6c5fc6e9589a4513c
perf: not use z3 const arrays
Previously z3 const arrays (which are not part of smtlib2) were used to model empty storage mappings. A problem of using non-smtlib2 symbols was that solvers with explicit logic (e.g., QF_AUFBV) sometimes generated invalid counterexamples, because any smtlib2 logic solver invalidates the const arrays. On the other ha...
diff --git a/src/halmos/__main__.py b/src/halmos/__main__.py index 19504c2c5..60ea3b1db 100644 --- a/src/halmos/__main__.py +++ b/src/halmos/__main__.py @@ -15,7 +15,7 @@ from multiprocessing import Pool from timeit import default_timer as timer -from .utils import color_good, color_warn +from .utils import color_g...
3
3
1
[{"id": "G0", "claim": "The magic 17-space padding used to indent continuation lines of the printed counterexample is oddly specific and should be explained or done differently.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "hexify should preser...
null
a16z__halmos__107
a16z/halmos
107
defect
09c0db9aff14762bc4a674e9df5219af80951fbf
12c7e21dabd64c71bb73ddab7daa7922052e8746
perf: support for combined parallel tests and parallel solvers
Different take on parallel processing now that `setup()` runs faster: instead of running `setup()` once and sharing a serialized `setup_ex` with the worker process for each test, actually run `setup() + run()` for each test. This also uses a shared ProcessPoolExecutor, since we can't have embedded multiprocessing.Po...
diff --git a/src/halmos/__main__.py b/src/halmos/__main__.py index 3b6dbe814..f97960778 100644 --- a/src/halmos/__main__.py +++ b/src/halmos/__main__.py @@ -12,14 +12,20 @@ from crytic_compile import cryticparser from crytic_compile import CryticCompile, InvalidCompilation from dataclasses import dataclass -from mul...
1
1
1
[{"id": "G0", "claim": "In run_parallel, num_failed is always 0 because the lazy exitcodes iterable has already been consumed when computing num_passed; it can be reproduced by running two tests in parallel where one of them fails.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introdu...
null
a16z__halmos__118
a16z/halmos
118
defect
6206515343eb6298cfd5f61d7683847541e5ce03
de842672842541b6b51daf3606cbf861c60dfdf8
feat: new forge frontend
reimplement forge frontend without crytic-compile dependency
diff --git a/pyproject.toml b/pyproject.toml index fec6e17fa..fa7ba6082 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,6 @@ classifiers = [ ] requires-python = ">=3.8" dependencies = [ - "crytic-compile >= 0.3.0, < 0.3.2", "z3-solver", ] dynamic = ["version"] diff --git a/requirements.txt b/...
4
3
2
[{"id": "G0", "claim": "The except clause catches `Error`, a name that is not defined, so a build-output parsing failure raises NameError instead of the intended warning; it should catch a defined type such as `Exception`.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"...
null
a16z__halmos__133
a16z/halmos
133
defect
f885d1240f0ecda870b6272238e7000622da11bc
fd75e8acc28086f90b8c2cd2c642ff10497caadd
feat: support natspec annotations
fix #131 Support `@custom:halmos` natspec annotation to specify additional commandline options. The natspec for a contract is inherited by every function in the contract. The natspec for a function can overwrite the inherited natspec. For example, given: ``` /// @custom:halmos --opt1 --loop 1 contract C { ...
diff --git a/examples/test/Example.t.sol b/examples/test/Example.t.sol index be457df84..f8cd6c9d6 100644 --- a/examples/test/Example.t.sol +++ b/examples/test/Example.t.sol @@ -3,6 +3,7 @@ pragma solidity >=0.8.0 <0.9.0; import "../src/Example.sol"; +/// @custom:halmos --solver-fresh contract ExampleTest is Examp...
2
1
0
[{"id": "G0", "claim": "extend_args relies on deepcopy of the Namespace, and the reviewer suggests avoiding the copying (e.g. via a ChainMap or a later NamespaceChain-like wrapper that avoids any copying at all).", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim...
null
a16z__halmos__166
a16z/halmos
166
defect
5f19dbd1f907135a6212c5139386dfebe3e5b983
6aaea0b4bdc0d66ad44cd9595add4035620681f5
Smol optimizations
2 things: - cache the BitVecSort(n) invocations, which we do *a lot* of - work with the natural stack/list ordering Saves about 10% on some path-intensive benchmark (172M -> 156M function calls), coming mostly from caching
diff --git a/src/halmos/sevm.py b/src/halmos/sevm.py index 6c85c581b..0d2a62c2c 100644 --- a/src/halmos/sevm.py +++ b/src/halmos/sevm.py @@ -31,43 +31,65 @@ Steps = Dict[int, Dict[str, Any]] # execution tree + +# dynamic BitVecSort sizes +class BitVecSortCache: + def __init__(self): + self.cache = {} + ...
1
1
0
[{"id": "G0", "claim": "The module-level mutable BitVecSortCache is shared by every SEVM instance, which may be unsafe when sevm1 and sevm2 run in parallel in a thread or process pool, and the reviewer asks to avoid the use of global mutable objects.", "category": "design", "verdict": "supported", "priority": "P2", "sc...
null
a16z__halmos__239
a16z/halmos
239
defect
34217631577afe8ba47b461b775c3abf596f8528
e02393c90415e8fef52a5747d5334ebc268d9e40
paper cut fixes
- close https://github.com/a16z/halmos/issues/220 (as a band aid until we have a cleaner solution) - allow console.log to render symbolic values
diff --git a/src/halmos/sevm.py b/src/halmos/sevm.py index 82d991feb..7e378c8ec 100644 --- a/src/halmos/sevm.py +++ b/src/halmos/sevm.py @@ -253,9 +253,10 @@ def wstore_bytes( raise ValueError(size, arr) wextend(mem, loc, size) for i in range(size): - if not eq(arr[i].sort(), BitVecSort8): + ...
1
1
1
[{"id": "G0", "claim": "In wstore_bytes, when arr[i] is not a bit-vector, the PR wraps it via con(arr[i], 8): daejunpark asks whether such values should instead be stored as ints rather than forced into 8-bit BVs, and whether arr[i] < 256 needs to be checked or is guaranteed.", "category": "design", "verdict": "support...
null
a16z__halmos__293
a16z/halmos
293
defect
bf78f3eed16e5efd08ee8187150797561b79b641
b8c769480e9c2bf57c097f8b7357fcbf8b9e9662
Optimize execution loop
Completely driven by flamegraphs, I kept squeezing until the fetch-decode-execute loop almost disappeared from flamegraphs (now dominated by other things like calls to `resolve_address_alias`): Tested on morpho blue, 24.8% faster: before: check_fee(bytes4,address) (paths: 38, time: 21.82s (paths: 21.82s, mode...
diff --git a/src/halmos/__main__.py b/src/halmos/__main__.py index 695b2f747..24ee5284f 100644 --- a/src/halmos/__main__.py +++ b/src/halmos/__main__.py @@ -299,6 +299,7 @@ def run_bytecode(hexcode: str, args: Namespace) -> List[Exec]: caller=mk_caller(args), value=mk_callvalue(), data=ByteVe...
4
2
2
[{"id": "G0", "claim": "Limiting the jumpi_id stack scan to the top 32 elements could make loop detection produce false positives (a soundness issue for formal verification); the optimization should be optional and disabled by default.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "int...
null
a16z__halmos__309
a16z/halmos
309
defect
cf9c2b231caf238ecd651f473335481b833521c7
7a105ea5dd2952f2f8564cf4b03e40d449a98ecd
[Feature/#244] Parse symbols from build to print readable traces
## Change Type <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [ ] Bug fix (Not Breaking-change. Solve issue.) - [x] New feature (Not Breaking-change. Add new feature.) - [ ] Breaking change (Bug fix or New featrure that cause Breaking change.) - [ ] Code Con...
diff --git a/src/halmos/__main__.py b/src/halmos/__main__.py index 6421eaa3a..143777b2f 100644 --- a/src/halmos/__main__.py +++ b/src/halmos/__main__.py @@ -9,7 +9,6 @@ import time import traceback import uuid - from collections import Counter from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor ...
10
10
4
[{"id": "G0", "claim": "The method name `get_contarct_mapping_info_by_bytecode` misspells \"contract\" and should be renamed to `get_contract_mapping_info_by_bytecode`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Matching contracts by `byteco...
null
a16z__halmos__334
a16z/halmos
334
defect
31bb794fff1ef6f81cec4b1a9234aa83358ba8d0
870e93889e6495e1ba9ba1f6f1ef64bff5a5b4df
fix: simplify symbol parsing
- simplify method names - get_contract_mapping_info_by_bytecode -> get_by_bytecode - get_contract_mapping_info_by_name -> get_by_name - add_contract_mapping_info -> add - introduce an add_or_create method (like setdefault, but also returns the value) - factor into a separate parse_symbols method to avoid nested try.....
diff --git a/src/halmos/__main__.py b/src/halmos/__main__.py index b7dd1ab68..b70feff5e 100644 --- a/src/halmos/__main__.py +++ b/src/halmos/__main__.py @@ -301,11 +301,7 @@ def render_trace(context: CallContext, file=sys.stdout) -> None: if context.output.error is None: target = hex(int(s...
2
2
2
[{"id": "G0", "claim": "The reworked parse_ast flattens everything under the single contract_name passed in instead of treating ContractDefinition children specially (using child_node's own name), which is not semantic-preserving for files with nested or multiple contract definitions.", "category": "correctness", "verd...
null
a16z__halmos__340
a16z/halmos
340
defect
f7ff1f8323207334c35da1542005ae4b77d23ae3
2d1e1da5ea6c3cc69c141ee513c3fadefd7d23cb
smt: abstract multiplication
Abstract multiplication in a similar way to division and modulo operations. The actual bitvector multiplication is used when either argument is concrete. Also, when an argument is a power of two, the left-shift is used instead of multiplication.
diff --git a/src/halmos/sevm.py b/src/halmos/sevm.py index 930441205..a9758424f 100644 --- a/src/halmos/sevm.py +++ b/src/halmos/sevm.py @@ -69,6 +69,10 @@ 264: Function("f_evm_bvurem_264", BitVecSort264, BitVecSort264, BitVecSort264), 512: Function("f_evm_bvurem_512", BitVecSort512, BitVecSort512, BitVecSort...
3
2
0
[{"id": "G0", "claim": "In the is_power_of_two fast path, use `w2 << i1.bit_length() - 1` instead of `w2 << int(math.log(i1, 2))`, which the reviewer benchmarked as slower.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "is_bv_value(x) should be invo...
null
a16z__halmos__355
a16z/halmos
355
defect
7ffe5e08310a2ef9a5d89211cefab9e194625f66
8d86f7b5bb34d3ee48055919964f070cc88c0922
feat: replace --symbolic-storage with enableSymbolicStorage(address) cheatcode
- deprecate --symbolic-storage, which enables symbolic storage for all accounts. - introduce a new cheatcode that enables symbolic storage on a per-account basis. this simplifies the code logic, and improves usability as well. note that the symbolic storage feature is not frequently used. ---- (to be merged a...
diff --git a/.github/workflows/test-external.yml b/.github/workflows/test-external.yml index f9f4a4972..2081b0ef6 100644 --- a/.github/workflows/test-external.yml +++ b/.github/workflows/test-external.yml @@ -20,11 +20,12 @@ jobs: matrix: cache-solver: ["", "--cache-solver"] project: - ...
5
3
0
[{"id": "G0", "claim": "The cheatcode handlers should take explicit parameters instead of a catch-all **kwargs whose required entries are only visible inside the body.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "symbolic_storage should declare sevm, s...
null
a16z__halmos__366
a16z/halmos
366
defect
3e66a607917183c7477c0ae2cf78bb762a62a22d
610c8dc1cbfe1652f86ecb1f2e2545825a3ffa75
fix: manually solve dynamic array overflow conditions
this pr fixes the false positive warnings of loop unrolling bounds, which were generated during the creation of storage arrays: ``` contract ATest { uint[] numbers; function setUp() { numbers = new uint[](5); ... } } ```
diff --git a/src/halmos/sevm.py b/src/halmos/sevm.py index cfd7da4d0..dc12753f1 100644 --- a/src/halmos/sevm.py +++ b/src/halmos/sevm.py @@ -24,6 +24,7 @@ BitVec, BitVecRef, BoolVal, + CheckSatResult, Concat, Extract, Function, @@ -102,6 +103,7 @@ is_concrete, is_non_zero, ...
1
1
0
[{"id": "G0", "claim": "Matching on the magic string \"f_sha3_256\" might inadvertently break if that function name changes, so a well-defined symbol should be used instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
a16z__halmos__384
a16z/halmos
384
defect
4cd642b33258773a5b1408757ea898c6bd4ff652
6c17f2c84a1f7adf9e39b51088336ea7de894a19
feat: consider various lengths for dynamic-sized parameters
Previously, only a single length for dynamic-sized parameters in test functions was considered. Now, users can specify multiple lengths, and all possible combinations of these lengths will be considered during symbolic execution. Also, users can now set default lengths for dynamic arrays independently of the loop un...
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 48e38374b..73fd30271 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,6 @@ jobs: matrix: os: ["macos-latest", "ubuntu-latest", "windows-latest"] python-version: ["3.11", "3.12"] - ...
4
2
0
[{"id": "G0", "claim": "Values are not expected to contain internal whitespace, so removing all whitespace with split() looks unnecessary and a simple strip() would do.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The --array-lengths help text should rea...
null
a16z__halmos__471
a16z/halmos
471
defect
bd08f11124e303fe78d5f83f06ef6fe364ac5e3e
eeede35c2b2734115c6101a8865244b9c8fbd023
ISSUE 251 (added JUMPDEST validation and invalid jump test cases)
## ISSUE 251 ### JUMPDEST VALIDATION * Updated ```SEVM.jump()``` to enforce valid jump destinations (Lines 2873-2876): ``` target = int_of(dst) if target not in ex.pgm.valid_jump_destinations(): # Invalid jump target – halt execution raise InvalidJumpDestError(...
diff --git a/src/halmos/sevm.py b/src/halmos/sevm.py index 731f35a4b..9a573422b 100644 --- a/src/halmos/sevm.py +++ b/src/halmos/sevm.py @@ -70,6 +70,7 @@ FailCheatcode, HalmosException, InfeasiblePath, + InvalidJumpDestError, InvalidOpcode, MessageDepthLimitError, NotConcreteError, @@ ...
3
3
0
[{"id": "G0", "claim": "The comments describing the hex bytecode in the new jump tests misdecode it (e.g. say PUSH1 0x03 where the code pushes 0x01 or 0x00, and PUSH1 0x0A where the code pushes 0x03).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
a16z__halmos__472
a16z/halmos
472
defect
66ccac8db79fb630e049b4654a4c96580897025b
5efbfd68e47dfd756d23289673cc36c9586b8ed6
feat: re-architect invariant testing + add dai invariant tests
re-architected the invariant testing run to utilize the existing mechanism for parallel solving. previously, the invariant testing run had its own pipeline, where the main loop computed the frontier states for each depth, and all invariant tests were executed together against each frontier state. now, the invaria...
diff --git a/examples/simple/src/MiniVat.sol b/examples/simple/src/MiniVat.sol new file mode 100644 index 000000000..520bf9697 --- /dev/null +++ b/examples/simple/src/MiniVat.sol @@ -0,0 +1,56 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later +pragma solidity ^0.8.17; + +/// @notice from https://github.com/baolean/syme...
7
6
1
[{"id": "G0", "claim": "The bitvec bool-xor fix carried by this PR (commit a683033957c4, for an unrelated test failure) should be double-checked to confirm it is correct.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The TEST_TARGET/TEST_CALLER/TES...
null
a16z__halmos__477
a16z/halmos
477
defect
68565874929522282ce85d1e0490bf4dc1c9dfea
6559b2a8b7dc7ddd9c6cd9b650a5132a1ab902dc
feat: report assertion failures in contract code during invariant testing (probes)
Example: ``` $ halmos --root tests/regression --function invariant_probes_found [⠒] Compiling... No files changed, compilation skipped Running 1 tests for test/InvariantProbes.t.sol:InvariantTest Assertion failure detected in WithProbes.probe0() Sequence: (empty) Trace: CALL 0xaaaa0002::probe0...
diff --git a/src/halmos/__main__.py b/src/halmos/__main__.py index 4c131537b..534c45339 100644 --- a/src/halmos/__main__.py +++ b/src/halmos/__main__.py @@ -12,7 +12,7 @@ import traceback from collections import Counter from concurrent.futures import Future -from copy import deepcopy +from copy import copy from dat...
2
1
1
[{"id": "G0", "claim": "The probe report for an assertion failure could also print the path condition, not just the call sequence and trace.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The shallow copy of the context shares the trace list with pre_ex,...
null
a16z__halmos__521
a16z/halmos
521
defect
8042a5b4c264112403faf813f472bdb85128fb73
89938a9c5aa5f95a25230b3a8f8e56f41e10dc3e
feat: instruction coverage reporting
This adds instruction coverage reporting, generating LCOV format reports to track which lines of code are executed during testing. Each time an instruction is executed, its pc is used to retrieve the corresponding file path and line number, using the [source mapping info](https://docs.soliditylang.org/en/latest/inte...
diff --git a/src/halmos/__main__.py b/src/halmos/__main__.py index 18b0f5df..783dece2 100644 --- a/src/halmos/__main__.py +++ b/src/halmos/__main__.py @@ -54,6 +54,7 @@ VERBOSITY_TRACE_PATHS, VERBOSITY_TRACE_SETUP, ) +from .coverage import CoverageReporter from .exceptions import FailCheatcode, HalmosExcept...
3
3
0
[{"id": "G0", "claim": "Instruction length should be tracked during Contract.__get_jumpdests's existing full bytecode scan and saved as a read-only field on Contract, instead of being computed by a separate scan.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "...
null
a16z__halmos__539
a16z/halmos
539
defect
275cbb4c727a7d17d3f66a56ff50dabdc204d23a
8ace7c7e8c4943da804c64eedf0b3b9e939df50c
Fix solver resolution precedence to preserve original config source priority
## Problem The `with_resolved_solver()` function was using `ConfigSource.dynamic_resolution` (priority 6) when resolving solver names to commands, which incorrectly overrode function-level natspec annotations (priority 4). This caused issues during invariant testing where `_compute_frontier()` frequently calls `with_r...
diff --git a/src/halmos/__main__.py b/src/halmos/__main__.py index e9b1d518..26803b01 100644 --- a/src/halmos/__main__.py +++ b/src/halmos/__main__.py @@ -227,7 +227,8 @@ def with_resolved_solver(args: HalmosConfig) -> HalmosConfig: command = get_solver_command(solver) if not command: raise RuntimeEr...
4
3
1
[{"id": "G0", "claim": "Get rid of the dynamic_resolution enum value in ConfigSource (config.py), since solver resolution now preserves the original source instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new tests' assertion `assert ...
null
a16z__halmos__548
a16z/halmos
548
defect
c6aa1699d8ce52a4f328597cbd38dae7f1754aa0
6c8e1c484601f2acb27b118ba2fe084f358fb8e6
docs: add erc20 invariant testing examples
inspired by https://github.com/aviggiano/halmos-stateful-erc20
diff --git a/examples/tokens/ERC20/src/BuggyERC20.sol b/examples/tokens/ERC20/src/BuggyERC20.sol new file mode 100644 index 000000000..1c1e11827 --- /dev/null +++ b/examples/tokens/ERC20/src/BuggyERC20.sol @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: AGPL-3.0 +pragma solidity >=0.8.0 <0.9.0; + +import {ERC20} from "so...
2
2
0
[{"id": "G0", "claim": "Restricting callers via targetSender(holders[i]) looks unnecessary and it would be better to allow any sender.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Replace the targetSelector/excludeSelector setup with a straightforward ...
null
a16z__halmos__77
a16z/halmos
77
defect
3f35e3c64a4f181a9f93669aeb26983deba0c09a
c2f125bc6f46cc2acdb2c501322b8173553c836e
Hide crytic-compile options by default
Use a 2-tier argument parsing system: - first, extract the arguments known to halmos and use that to generate the usage/help message - second, extract the arguments known to crytic-compile - error out if there are arguments unknown to both Recap: - `halmos --help` prints only the halmos options (--loop, --functi...
diff --git a/src/halmos/__main__.py b/src/halmos/__main__.py index f89327c10..90c272cc2 100644 --- a/src/halmos/__main__.py +++ b/src/halmos/__main__.py @@ -21,7 +21,12 @@ if hasattr(sys, 'set_int_max_str_digits'): # Python verion >=3.8.14, >=3.9.14, >=3.10.7, or >=3.11 sys.set_int_max_str_digits(0) -def parse_...
2
2
0
[{"id": "G0", "claim": "The --compile-help output should not show the 'crytic-compile' program name in its usage string, since users may misunderstand that they need to run crytic-compile separately.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fla...
null
a16z__helios__105
a16z/helios
105
defect
d13df518d6aab4bf570ff1a1574cd5818a04bf1e
647a08a88c3b9bb23a9dc160a79d7c7738913c2d
feat: verify checkpoint has valid age
Addressing issue #98 Verifies that the blockhash isn't too old (14 days or older according to the issue) by checking timestamps against the current slot. If it's too old, a timestamp error is thrown note: also removed `#![feature(map_first_last)]` in `lib.rs` as there were some compiler warnings thrown that this...
diff --git a/client/src/lib.rs b/client/src/lib.rs index 4f290ef81..eec1b1048 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -1,5 +1,3 @@ -#![feature(map_first_last)] - mod client; pub use crate::client::*; diff --git a/consensus/src/consensus.rs b/consensus/src/consensus.rs index b54068b8c..e3419c229 10...
3
3
0
[{"id": "G0", "claim": "A new dedicated error (e.g. `CheckpointToOld`) should be returned instead of `ConsensusError::InvalidTimestamp` so better error messages can be provided.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The helper `is_valid_blockhas...
null
a16z__helios__108
a16z/helios
108
defect
b5d1dbc63879cddb6f6fa3d38fb1112fd4f8a5ac
2d55fb5160ca8132830b9852b8a8d8d541fb96ca
feat: add `get_logs` RPC method
Fixes issue: https://github.com/a16z/helios/issues/23 This PR is still in draft. I was wondering if we need any kind of "proof" for logs as we do for account details ?
diff --git a/client/src/client.rs b/client/src/client.rs index 21e2a9541..a1fed4f69 100644 --- a/client/src/client.rs +++ b/client/src/client.rs @@ -3,7 +3,7 @@ use std::sync::Arc; use config::networks::Network; use ethers::prelude::{Address, U256}; -use ethers::types::{Transaction, TransactionReceipt, H256}; +use ...
4
4
2
[{"id": "G0", "claim": "The PR must include a mechanism to prove that returned logs are correct, by fetching and proving the receipt of each transaction that produced a returned log and checking that the receipt contains the expected log.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_e...
null
a16z__helios__120
a16z/helios
120
defect
21c73c16497fd786ab8706a30a4c8e34d46e2e6a
d9008b9f319e5845ceb2c137d302b61e6dfee1f6
feat: Checkpoint Fallbacks [RFC]
## Overview Introduces lazy checkpoint fallback services. ### CLI Flags The following two cli flags are introduced in this pr. - `--fallback` or `-f` sets the checkpoint fallback url (a string). This is only used if the checkpoint provided by the `--checkpoint` flag is too outdated for Helios to use to sync...
diff --git a/Cargo.lock b/Cargo.lock index 84bf8beda..1f3d5da20 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -598,9 +598,13 @@ dependencies = [ "eyre", "figment", "hex", + "log", + "reqwest", "serde", + "serde_yaml", "ssz-rs", "thiserror", + "tokio", ] [[package]] @@ -2900,9 +2904,9 @@ dependencies = [ ...
5
3
1
[{"id": "G0", "claim": "Use eyre Results instead of Box<dyn std::error::Error> here and elsewhere to make things cleaner.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Replace the per-network function variants with a single function for all net...
null
a16z__helios__209
a16z/helios
209
defect
981caaf1800589a27c8ec1663a102c26b2bd4b0b
552f7bc9b66927875d0538ea8a6c9644cfd5aaa5
feat: fee history
**Overview** Exposes logic to get the fee history. Extends #204 Below written by @SFYLL in #204 🙏 Implement eth_feeHistory as requested in [#200](https://github.com/a16z/helios/issues/200) . Veracity check on public RPC response done by comparing the response's base fee per gas with the local view provid...
diff --git a/client/src/client.rs b/client/src/client.rs index 77abdce59..291d94242 100644 --- a/client/src/client.rs +++ b/client/src/client.rs @@ -3,7 +3,9 @@ use std::sync::Arc; use config::networks::Network; use consensus::errors::ConsensusError; use ethers::prelude::{Address, U256}; -use ethers::types::{Filter,...
2
2
1
[{"id": "G0", "claim": "The fee history test should use the repo's existing MAINNET_RPC_URL secret as the rpc url instead of building an untrusted url from a YOUR_API_KEY environment variable.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "get_fee_histo...
null
a16z__helios__236
a16z/helios
236
defect
c057ab57e281e3a7c8a48a32a05e19ad90a922c3
3ae42615f4b8f54ae75207565dcbbc47e4bbc38b
feat: Testing Documentation
ref: #235 - Adding testing documentation to the ReadMe.md - Adding a cargo testall command to run all tests in all workspaces/packages - Adding a .env.example to make it easy for devs to load envs into their tests - Adding dotenv to dev dependencies
diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 000000000..72ecd2cb3 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[alias] +test-all = "test --workspace" \ No newline at end of file diff --git a/.env.example b/.env.example new file mode 100644 index 000000000..e8b4a8371 --- /de...
2
2
1
[{"id": "G0", "claim": "The env var names should differentiate between RPC types and networks, e.g. MAINNET_CONSENSUS_RPC, MAINNET_EXECUTION_RPC, GOERLI_CONSENSUS_RPC, GOERLI_EXECUTION_RPC.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Tests that use th...
null
a16z__helios__492
a16z/helios
492
defect
e367fc3bb31bb50571fbbd8ee788cb2aa6682917
d88ec2b62967d3f2603d1d4c387f186cfd9d239d
chore: Block type migrated to BlockResponse from Network trait (alloy)
This PR migrates the custom `Block` type in core code to alloy `BlockResponse` to make implementation generic over Block type, and enable integrations with L2s with custom fields to the block. ## Changes: - custom `Block` and `Transactions` removed - corresponding code updated to support `BlockResponse` in `core...
diff --git a/cli/src/main.rs b/cli/src/main.rs index cc2cba22d..fc5da8d8a 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -61,18 +61,14 @@ fn enable_tracer() { tracing::subscriber::set_global_default(subscriber).expect("subscriber set failed"); } -async fn start_client<N: NetworkSpec, C: Consensus<N::Tran...
3
1
1
[{"id": "G0", "claim": "Certain functions use a temporary workaround to convert alloy's return types instead of changing the internal implementation, and the author offers to align the code more closely with alloy if desired.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id...
null
a16z__magi__16
a16z/magi
16
defect
232f5fdaee08e5a5c627bfdf2a174c56caa81355
80dc9fe56a4261110fdbba0a6729d8267efbe784
Feat: Derivation Re-Org for Pruning
**Description** Re-organizes the derivation pipeline and adds pruning.
diff --git a/src/config/mod.rs b/src/config/mod.rs index 399e9be9..2dc5f9d8 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -2,17 +2,32 @@ use std::str::FromStr; use ethers_core::types::Address; +/// A system configuration +#[derive(Debug, Clone)] pub struct Config { + /// The base chain RPC URL ...
2
2
1
[{"id": "G0", "claim": "Timed out channels would remain permanently in the pending channels vector; ncitron asks that they instead be removed during the pruning stage.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "ncitron questions the need to stor...
null