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
Nixtla__neuralforecast__829
Nixtla/neuralforecast
829
defect
888409761841e9cd7715de2220d7f0cc81e2cc1a
1224296e86b0680f74d5917c77613e52d80f7c26
polars support
* Adds support for providing polars dataframes as inputs and getting polars dataframes as outputs. * Deprecates having the id as the index in the predictions. * Adds the `neuralforecast.config.id_as_index` variable to adopt the new behavior. * Fixes #641.
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5a5c16d6a..2e0ff0026 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -58,4 +58,4 @@ jobs: run: pip install ./ - name: Tests - run: nbdev_test --do_print --timing --n_workers 1 + run:...
1
1
0
[{"id": "G0", "claim": "Add intermediate comments explaining the dense index arithmetic in the new _insample_times code in nbs/core.ipynb.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Nixtla__statsforecast__1081
Nixtla/statsforecast
1,081
defect
3203fc5cc20a919fd930641165c767ad37f03288
a6a2c3f20ef349434aae413ac9b7e3406b0ee2e1
feat: add UCM (Unobserved Components Model) support
# Feature: Add UCM (Unobserved Components Model) Support Closes #1012 ## Summary This PR adds support for Unobserved Components Models (UCM), also known as Structural Time Series Models. UCM is a well-known and proven forecasting approach that decomposes time series into interpretable components. ## What is...
diff --git a/python/statsforecast/models.py b/python/statsforecast/models.py index d84a01cbe..feb3aa6b1 100644 --- a/python/statsforecast/models.py +++ b/python/statsforecast/models.py @@ -4,7 +4,7 @@ 'RandomWalkWithDrift', 'SeasonalNaive', 'WindowAverage', 'SeasonalWindowAverage', 'ADIDA', 'CrostonClassic'...
5
5
5
[{"id": "G0", "claim": "The tests import the UCM classes via `from ucm import ...`, which does not match the new module at python/statsforecast/ucm.py; the imports should be `from statsforecast.ucm import ...` or `from statsforecast.models import ...`.", "category": "correctness", "verdict": "supported", "priority": "P...
null
Nixtla__statsforecast__1097
Nixtla/statsforecast
1,097
defect
f868f2aed6cdf1640b3572812cd69a49b9212d76
9bafafe39579698be18e6179afd3cd5d8bc5138e
[FIX] Improve adida & imapa
## Summary This PR improves the performance of ADIDA and IMAPA models by moving the fitted-value computation from slow Python loops into C++, and replacing `scipy.optimize.minimize_scalar` with a C++ golden-section search. The IMAPA fitted path previously called `_imapa(..., fitted=False)` recursively for each prefi...
diff --git a/python/statsforecast/models.py b/python/statsforecast/models.py index 87d8ba7ff..35c90f955 100644 --- a/python/statsforecast/models.py +++ b/python/statsforecast/models.py @@ -46,7 +46,6 @@ from typing import Any, Dict, List, Optional, Tuple, Union import numpy as np -from scipy.optimize import minimiz...
3
2
0
[{"id": "G0", "claim": "The 80-iteration for loop in golden_section_ses should be a while loop with the convergence condition std::abs(b - a) < 1e-12.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The check `if (agg_level > i)` inside the aggre...
null
Nixtla__statsforecast__581
Nixtla/statsforecast
581
defect
862cace7a55d9ece478f66337e7ad3d9433ecd01
f6f2a3d9feac917f00905c1c841da867e5c634cf
Adding levels to distributed backends
This PR adds levels to Spark, Dask, and Ray backends. It supports forecasting, exogenous variables, and cross validation. Tagging @goodwanghan to review also. I tried to make the schema building more tied to the `GroupedArray` and `Statsforecast` classes. The current way in this pull request is a bit fragile since i...
diff --git a/action_files/test_dask.py b/action_files/test_dask.py index 3d0189076..f19eff405 100644 --- a/action_files/test_dask.py +++ b/action_files/test_dask.py @@ -1,12 +1,24 @@ import dask.dataframe as dd +import pytest from statsforecast.utils import generate_series -from .utils import pipeline +from .utils ...
1
1
0
[{"id": "G0", "claim": "Clean the saved outputs of nbs/src/core/distributed.fugue.ipynb (via edit > clean notebooks in Jupyter) so the notebook is committed without execution noise.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Nixtla__statsforecast__790
Nixtla/statsforecast
790
defect
b61476e603e1fe7a681fee2ad3254130962ce1b7
96814c31ae94fcfd93c30968862dbb8f099b37dc
fix: parallel custom cols
this PR fixes the following bug: when using a custom target column in parallel mode (`n_jobs` and `n_series` greater than 1), the `forecast_fitted_values()` method returns a dataframe with columns `["<target_col>", "<time_col>", "y"]` independently of the value of `target_col`. additionally, the bug caused always prin...
diff --git a/action_files/test_fit_predict.py b/action_files/test_fit_predict.py index de5bf46ab..d1d9e4f3a 100644 --- a/action_files/test_fit_predict.py +++ b/action_files/test_fit_predict.py @@ -4,22 +4,74 @@ from statsforecast import StatsForecast from statsforecast.utils import AirPassengersDF as df from statsfo...
2
1
0
[{"id": "G0", "claim": "The local DataFrame variable `AirPassengersPanel` should not use PascalCase, which is conventionally reserved for class names.", "category": "style", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Instead of passing positional arguments, `apply_async` ca...
null
NoFxAiOS__nofx__775
NoFxAiOS/nofx
775
defect
a6e53f2b761cf35dde294a33dee9425e21c40dc6
b0d3127b0926ebedf41306ba8ac2738566a8c4f6
feat(dashboard): 在交易者详情页显示系统提示词模板名称
## 📝 Description | 描述 **English:** | **中文:** - Keep the dashboard feature that displays the system prompt template and highlight color constant, but roll back the public `/api/traders` endpoint so it no longer flows the `system_prompt_template` field. - Retain `system_prompt_template` in `/api/my-tra...
diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000000..dc7d40b4af --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,11 @@ +# Claude 开发备忘 + +- 本项目使用 **docker compose** 部署 +- 编译命令:`./start.sh start --build` + +## 代码编辑规则 + +- **只改需要改的行**,不要为了对齐而修改其他行 +- 冒号后面不对齐不会有任何问题,语言不关心格式对齐 +- 前端的所有显示 label, wording 这些,都要做多语...
3
2
0
[{"id": "G0", "claim": "Getting system_prompt_template uses two different access patterns — trader.SystemPromptTemplate in api/server.go but trader.GetSystemPromptTemplate() in manager/trader_manager.go — please make them consistent.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "int...
null
NodeSecure__js-x-ray__389
NodeSecure/js-x-ray
389
defect
4d097cc62c0b4a30e4c14f652c79be3907436346
ee105b057baebb33a2e8320f011fae49d1633061
feat(probes): isLiteral detect api.ipify.org with shady link
Closes #368
diff --git a/.changeset/seven-tools-spend.md b/.changeset/seven-tools-spend.md new file mode 100644 index 00000000..ffe85279 --- /dev/null +++ b/.changeset/seven-tools-spend.md @@ -0,0 +1,5 @@ +--- +"@nodesecure/js-x-ray": minor +--- + +feat(probes): isLiteral detect api.ipify.org with shady link diff --git a/workspace...
1
1
0
[{"id": "G0", "claim": "Rename the inside-the-test `kKnownSuspiciousDomains` constant to `suspiciousDomains` per the suggested block, since the CONSTANTS convention is not needed for a variable scoped to a test.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
NodeSecure__js-x-ray__441
NodeSecure/js-x-ray
441
defect
462bc6cb29e610783547a94f6279f2c57d04dd93
d740612afee4fc7f3d68a9d537dbacf9cbc32d53
refactor(js-x-ray): migrate to node type stripping
fix #440
diff --git a/package.json b/package.json index a579b887..f59d5afb 100644 --- a/package.json +++ b/package.json @@ -23,11 +23,10 @@ "@changesets/changelog-github": "^0.5.1", "@changesets/cli": "^2.29.4", "@openally/config.eslint": "^2.0.0", - "@openally/config.typescript": "^1.1.0", + "@openally/con...
2
2
0
[{"id": "G0", "claim": "Remove the get-east-asian-width dependency that this pull request added to workspaces/sec-literal/package.json.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In tsconfig.base.json the line should read \"composite\": true...
null
NodeSecure__js-x-ray__468
NodeSecure/js-x-ray
468
defect
8948caad67efd6080ae43b150d8a406a8a56ec6c
065b98032bf4ba67f32ebcbf334e320f6d69c60a
feat(isLiteral): collect email literals using CollectableSet
Add email detection to the isLiteral probe. Closes #455
diff --git a/workspaces/js-x-ray/src/probes/isLiteral.ts b/workspaces/js-x-ray/src/probes/isLiteral.ts index 19a972e1..7427a834 100644 --- a/workspaces/js-x-ray/src/probes/isLiteral.ts +++ b/workspaces/js-x-ray/src/probes/isLiteral.ts @@ -9,11 +9,13 @@ import type { ESTree } from "meriyah"; import { ShadyLink } from "...
5
5
1
[{"id": "G0", "claim": "A location is not mandatory to add to a CollectableSet (without one toArrayLocation takes the rootLocation), so the added `if (location)` guard should be dropped.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The metadata must be...
null
NoeFabris__opencode-antigravity-auth__131
NoeFabris/opencode-antigravity-auth
131
defect
f100680c100363f9388b80a88ee0b7897618905e
6cab735ef133485b2bd70e0c61bbeeb38cfbc2e0
fix: ensure Gemini 3 models always have thinkingLevel set #130
## Summary Fixes #130 Complete overhaul of Gemini 3 variant configuration to fix empty responses, incorrect config format, and align with Google's official API docs. ## Changes ### 1. Model resolver fix - Default `thinkingLevel` for base Gemini 3 models (per Google API docs): - Pro → `"high"` - Flash → `"minima...
diff --git a/README.md b/README.md index 123012e2..53ca8989 100644 --- a/README.md +++ b/README.md @@ -53,16 +53,16 @@ Install the opencode-antigravity-auth plugin and add the Antigravity model defin "provider": { "google": { "models": { - "antigravity-claude-sonnet-4-5-thinking": { - ...
6
2
1
[{"id": "G0", "claim": "The new Gemini 3 Flash default thinkingLevel \"minimal\" falls outside GEMINI_3_THINKING_LEVELS and the docs, which still list only low/medium/high, so the constant/docs should be extended to include \"minimal\" (or the Flash default changed back to \"low\").", "category": "correctness", "verdic...
null
NoeFabris__opencode-antigravity-auth__177
NoeFabris/opencode-antigravity-auth
177
defect
83ea312d9167b11fe5aa1f40bb676d841ae30987
b6f3ed829351337576b4ab333c3915a70900b7bb
fix: model name transformation and rate limit reason classification
## Summary - Fix double-prefix bug in `resolveModelForHeaderStyle()` where `antigravity-gemini-3-flash` was being sent to API instead of `gemini-3-flash`, causing 429/403 errors even with 100% quota available - Add rate limit reason classification with different backoff strategies per error type - Add consecutive fail...
diff --git a/src/plugin.ts b/src/plugin.ts index d70db857..0e0b024b 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -32,7 +32,7 @@ import { EmptyResponseError } from "./plugin/errors"; import { AntigravityTokenRefreshError, refreshAccessToken } from "./plugin/token"; import { startOAuthListener, type OAuthListener ...
11
4
3
[{"id": "G0", "claim": "parseRateLimitReason is invoked as (bodyInfo.message, bodyInfo.reason) although it is defined and tested as (reason, message), which will break capacity/quota classification and downstream backoff decisions at the 429 handling sites in src/plugin.ts.", "category": "correctness", "verdict": "supp...
null
NoeFabris__opencode-antigravity-auth__260
NoeFabris/opencode-antigravity-auth
260
defect
800b4da7f14ab151fb956699d7cc7d2a20ce4709
3557760917ef733f7e444fdb9701da8e3f23a7b7
feat: Add google_search tool for web search with grounding
Description: ## Summary - Adds a new `google_search` tool that enables web search with Google Search grounding - Implements the correct pattern where grounding tools make **separate API calls** (cannot be combined with function declarations due to Gemini API limitations) - Deprecates the `web_search` co...
diff --git a/CHANGELOG.md b/CHANGELOG.md index fa1144c8..42b56d78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,20 @@ # Changelog -## [1.3.1] - 2026-01-19 +## [1.3.1] - 2026-01-21 + +### Added + +- **New `google_search` tool for web search** - Implements Google Search grounding as a callable tool that the...
3
3
1
[{"id": "G0", "claim": "The search request payload should use the `thinkingLevel` string (\"high\"/\"low\") instead of the numeric `thinkingBudget`, because SEARCH_MODEL is gemini-3-flash and Gemini 3 models use `thinkingLevel`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced...
null
NoeFabris__opencode-antigravity-auth__31
NoeFabris/opencode-antigravity-auth
31
defect
6619bb9a6978f7ecc0c550ff98ef5c301e689a07
7f80b18b48198d2d1abaac682b600a9bfcb77021
fix: prevent account duplication
Fix account duplication issue NoeFabris#24 - deduplicate by email - Add email-based deduplication in persistAccountPool to prevent duplicates when refresh token changes - Add deduplicateAccountsByEmail function to clean up existing duplicate accounts on load - Add comprehensive unit tests for deduplication logic i...
diff --git a/package-lock.json b/package-lock.json index 35d4bbad..c0338359 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "opencode-antigravity-auth", - "version": "1.0.2", + "version": "1.1.6-fix-account-duplication", "lockfileVersion": 3, "requires": true, "packages...
6
1
1
[{"id": "G0", "claim": "The composite score calculation (acc.lastUsed || 0) * 1000000 + (acc.addedAt || 0) can exceed JavaScript's safe integer range, causing precision loss and potentially incorrect newest-account comparisons; the fields should be compared separately.", "category": "correctness", "verdict": "supported...
null
NoeFabris__opencode-antigravity-auth__391
NoeFabris/opencode-antigravity-auth
391
defect
a79850925083c92f7dad74acf2498ca02643dfdc
c53ca6947cbbbf6f2f45ae525474e68bc8b0c6f7
fix: disabled accounts still being used in sticky selection
## Summary - Fixed bug where disabled accounts were still being used when `enabled: false` was set - Fixed bug where deleted accounts were still being used until restart - Both issues shared the same root cause: toggle/delete updated disk storage but not in-memory state ## Root Cause The "Manage accounts" menu actio...
diff --git a/src/plugin.ts b/src/plugin.ts index 026bc0ef..5e1cba63 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -81,6 +81,9 @@ const MAX_TOAST_COOLDOWN_ENTRIES = 100; let softQuotaToastShown = false; let rateLimitToastShown = false; +// Module-level reference to AccountManager for access from auth.login +let ...
6
2
2
[{"id": "G1", "claim": "The toggle flow writes identical account state to disk twice - plugin.ts saves immediately via saveAccounts and then setAccountEnabled triggers a second debounced save via requestSaveToDisk(); consider removing requestSaveToDisk() from setAccountEnabled or adding a skipSave parameter.", "categor...
null
NoeFabris__opencode-antigravity-auth__413
NoeFabris/opencode-antigravity-auth
413
defect
42a93ae1399deef1bc2d59917e66a146b7e8ebce
5234cfce5f830023a6151d2135185d3ed39be687
fix: simplify Gemini routing and ignore legacy quota_fallback
## Summary - centralize Gemini routing decisions so `cli_first` controls initial pool selection consistently for unprefixed models - remove runtime `quota_fallback` gating and make Gemini fallback between Antigravity and Gemini CLI automatic in both directions - keep `quota_fallback` accepted in config/schema for backw...
diff --git a/README.md b/README.md index f383d0fc..3c777283 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,7 @@ opencode run "Hello" --model=google/antigravity-claude-sonnet-4-5-thinking --var > **Routing Behavior:** > - **Antigravity-first (default):** Gemini models use Antigravity quota across accounts. > -...
2
1
0
[{"id": "G0", "claim": "The quota-pool table in docs/MULTI-ACCOUNT.md implies unidirectional fallback (only Antigravity to Gemini CLI) while fallback is now bidirectional, and the docs should be clarified to say fallback runs in both directions.", "category": "documentation", "verdict": "supported", "priority": "P2", "...
null
NoeFabris__opencode-antigravity-auth__431
NoeFabris/opencode-antigravity-auth
431
defect
052124def42aa7664050de98a41637dd98d16d27
466b4fe54b9ac2733f790e17890bf8707fa1c3a5
fix: extract variant thinking budget from generationConfig fallback
## Summary Fixes #259 — Claude variant thinking budget was always ignored (defaulting to 32768) because `extractVariantThinkingConfig` only checked `providerOptions`, which is `undefined` at runtime. OpenCode passes variant thinking config in `generationConfig` instead. ## Changes - **`src/plugin/request-helpers.ts`...
diff --git a/src/plugin/request-helpers.test.ts b/src/plugin/request-helpers.test.ts index 703e5045..633900df 100644 --- a/src/plugin/request-helpers.test.ts +++ b/src/plugin/request-helpers.test.ts @@ -1685,6 +1685,52 @@ describe("extractVariantThinkingConfig", () => { google: { thinkingConfig: { thinkingBudget...
2
1
1
[{"id": "G0", "claim": "The fallback guard `if (!result.thinkingBudget && !result.thinkingLevel && generationConfig)` treats an explicit `thinkingBudget: 0` from `providerOptions.google.thinkingConfig` as missing and lets `generationConfig.thinkingConfig.thinkingBudget` overwrite it; it should use a strict `result.thin...
null
NoeFabris__opencode-antigravity-auth__470
NoeFabris/opencode-antigravity-auth
470
defect
8889f74310a927106270893815ff952a722f998a
00e748a4c6b5ee578b054e72b74b9ace543f43b6
fix: bump version fallback to 1.18.3 to unblock Gemini 3.1 Pro
This bumps the hardcoded version fallback to fix #468. What changed: - Bump ANTIGRAVITY_VERSION_FALLBACK in src/constants.ts from 1.15.8 to 1.18.3 - Add src/plugin/version.test.ts with 9 regression tests covering the network-failure fallback path Root cause: the plugin fetches the live version at startup, but if that...
diff --git a/docs/TROUBLESHOOTING.md b/docs/TROUBLESHOOTING.md index 112e0d96..49af5029 100644 --- a/docs/TROUBLESHOOTING.md +++ b/docs/TROUBLESHOOTING.md @@ -84,6 +84,39 @@ The correct key is `plugin` (singular): **Not** `"plugins"` (will cause "Unrecognized key" error). +### "Invalid SemVer: beta" + +**Error:** ...
4
3
0
[{"id": "G0", "claim": "The tests should add an afterEach calling vi.unstubAllGlobals() so a stubbed global fetch cannot bleed across describe blocks on reordering or .only.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ANTIGRAVITY_VERSION_FALLBACK sho...
null
NomaDamas__k-skill__82
NomaDamas/k-skill
82
defect
79dacba05a9f729bf1d2ff37b2e54a120138ba6a
baea3f2c240bb3308ca65a0253fb0ba400eccf02
✨ feat: 생활쓰레기 조회 스킬 및 프록시 라우트 구현
## Summary - `household-waste-info` 스킬을 추가해 생활쓰레기 배출정보 조회 흐름을 문서화했습니다. - `k-skill-proxy`에 `/v1/household-waste/info` 라우트를 추가해 서버 측에서 `serviceKey`를 주입하도록 구현했습니다. - 부동산 조회 스킬을 참고해서 `README`, `docs/install.md`, `k-skill-setup/SKILL.md`, `docs/security-and-secrets.md`를 갱신해 사용/설정 가이드를 일관되게 정리했습니다. - `docs/features/house...
diff --git a/README.md b/README.md index 3aac8e71..83e6ea2e 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ Claude Code, Codex, OpenCode, OpenClaw/ClawHub 등 각종 코딩 에이전트 | 한강 수위 정보 조회 | self-host 또는 배포 확인이 끝난 `k-skill-proxy` 경유로 관측소 기준 현재 수위·유량·기준수위 확인 | 프록시 URL 필요 | [한강 수위 정보 가이드](docs/features/han-river-wate...
2
2
1
[{"id": "G0", "claim": "The docs and skill promise filter parameters (`cond[DAT_CRTR_YMD::*]`, `cond[DAT_UPDT_PNT::*]`) that the proxy does not pass through to upstream, so the documented API contract differs from actual proxy behaviour; the author should either pass those filters through (and include them in the cache...
null
NomicFoundation__hardhat__4449
NomicFoundation/hardhat
4,449
defect
78dd09b2c5a5233fb1f36f9b9946b8764804b430
50c1ff40b65b59fec3857638e77912e5f359d81b
Support Addressable in .withArgs and .equals
Resolves #4097 - [x] Because this PR includes a **new feature**, the change was previously discussed on an Issue or with someone from the team. --- When calling a contract fuction that takes an address argument, `ethers` support AddressLike object. This allows passing `Contract` or `Signer` object without reso...
diff --git a/packages/hardhat-chai-matchers/src/internal/addressable.ts b/packages/hardhat-chai-matchers/src/internal/addressable.ts new file mode 100644 index 00000000000..c625d894434 --- /dev/null +++ b/packages/hardhat-chai-matchers/src/internal/addressable.ts @@ -0,0 +1,71 @@ +import { isAddress, isAddressable } fr...
2
1
0
[{"id": "G0", "claim": "Rename tryGetAddress to tryGetAddressSync (with a simplified comment) so the name conveys that only sync address lookups are used and .getAddress() is not.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since .target can ...
null
NomicFoundation__hardhat__5959
NomicFoundation/hardhat
5,959
defect
05ae2b36c1021092a9642a9204f51ac0240c3ff5
3751e97acf3cfae90b35671b3d5711d1b18bde29
address the follow-up tasks related to --init
<!-- Thank you for using Hardhat and taking the time to send a Pull Request! If you are introducing a new feature, please discuss it in an Issue or with someone from the team before submitting your change. Please: - consider the checklist items below - keep the ones that make sense for your PR, and - DELET...
diff --git a/v-next/hardhat/src/internal/cli/init/init.ts b/v-next/hardhat/src/internal/cli/init/init.ts index 1b5c0f19f82..b382a67b0ba 100644 --- a/v-next/hardhat/src/internal/cli/init/init.ts +++ b/v-next/hardhat/src/internal/cli/init/init.ts @@ -15,9 +15,11 @@ import { } from "@ignored/hardhat-vnext-utils/fs"; imp...
1
1
0
[{"id": "G0", "claim": "Move the telemetry consent prompt so it is the last question before the dependencies are installed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
NomicFoundation__hardhat__6205
NomicFoundation/hardhat
6,205
defect
a033550ce52fa83ed07d247380a49381b88c6a4d
51211136b1bd247b7cc7bb39899219adbf0418db
feat: add accounts info printing to the hardhat node task
<!-- Thank you for using Hardhat and taking the time to send a Pull Request! If you are introducing a new feature, please discuss it in an Issue or with someone from the team before submitting your change. Please: - consider the checklist items below - keep the ones that make sense for your PR, and - DELET...
diff --git a/v-next/hardhat/src/internal/builtin-plugins/network-manager/edr/edr-provider.ts b/v-next/hardhat/src/internal/builtin-plugins/network-manager/edr/edr-provider.ts index b12b036cfe6..0d3a4525976 100644 --- a/v-next/hardhat/src/internal/builtin-plugins/network-manager/edr/edr-provider.ts +++ b/v-next/hardhat/...
5
3
1
[{"id": "G0", "claim": "The previous isDefaultEdrNetworkHDAccountsConfig would always return false because the types of mnemonic and passphrase differed between EdrNetworkHDAccountsConfig and DEFAULT_EDR_NETWORK_HD_ACCOUNTS_CONFIG_PARAMS.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "...
null
NomicFoundation__hardhat__6235
NomicFoundation/hardhat
6,235
defect
84d1e81e3ae2a244d87a02e8a113f369b6d70d97
4dd5a3593b45aca5aaff4897c1a1e51d4253ad09
feat: integrate stack traces into solidity test
<!-- Thank you for using Hardhat and taking the time to send a Pull Request! If you are introducing a new feature, please discuss it in an Issue or with someone from the team before submitting your change. Please: - consider the checklist items below - keep the ones that make sense for your PR, and - DELET...
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 61e94ba00bb..c36a7aa0b71 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1483,8 +1483,8 @@ importers: v-next/hardhat: dependencies: '@ignored/edr': - specifier: 0.6.4-alpha.2 - version: 0.6.4-alpha.2 + specifier: 0.8.0-alpha.1 +...
4
3
1
[{"id": "G0", "claim": "Properties of TestResult inspected by the reporter sometimes reach Hardhat as null even though their types say otherwise (a NAPI-rs/EDR bug), so values like failure.reason can violate their declared types and the reporter had to add extra !== null checks just in case.", "category": "correctness"...
null
NomicFoundation__hardhat__6264
NomicFoundation/hardhat
6,264
defect
f4f91c12aed01fe575e08017ba6718b025923f9d
d41186f4c70a12940a40fb77eb62b339d1ba0dac
Stub coverage task and chainType argument on test task
- Added a stub `coverage` task - Added a stub `chainType` option to the solidity-tests task Didn't find a clear way to adding a stub for the gas reporting, since for hardhat2 the steps are only importing the plugin and adding an option to the hardhat config. If needed, I could add gas reporting to config and then f...
diff --git a/v-next/hardhat/.gitignore b/v-next/hardhat/.gitignore index c92f2171858..0fc6da44010 100644 --- a/v-next/hardhat/.gitignore +++ b/v-next/hardhat/.gitignore @@ -6,3 +6,5 @@ # pnpm deploy output /bundle + +!coverage diff --git a/v-next/hardhat/src/internal/builtin-plugins/coverage/index.ts b/v-next/hardh...
2
2
0
[{"id": "G0", "claim": "Add a stubbed-out `verify` task to the builtin plugins; its help output should include only the positionals, not the options and details.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Make both the coverage stub message and the c...
null
NomicFoundation__hardhat__6426
NomicFoundation/hardhat
6,426
defect
942d9afd569f8c9b207fd514c0c64c17a6c61b8c
7c8b8839332ae62ef95b0f7aaefae2ee74a2d40f
Fix: bug in semver check on installProjectDependencies
The parameter order was inverted when calling `semver.satisfies()` and `semver.intersects()` on `installProjectDependencies` Closes #6323
diff --git a/v-next/hardhat/src/internal/cli/init/init.ts b/v-next/hardhat/src/internal/cli/init/init.ts index 72a5544241a..6ca875c3a47 100644 --- a/v-next/hardhat/src/internal/cli/init/init.ts +++ b/v-next/hardhat/src/internal/cli/init/init.ts @@ -484,8 +484,8 @@ export async function installProjectDependencies( ...
2
2
1
[{"id": "G0", "claim": "The new test should use a clearly fake dependency (e.g. fake-dependency ^1.2.3-dev) instead of hardhat ^3.0.0-next.0 to avoid readers momentarily worrying the version must be bumped with every release.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i...
null
NomicFoundation__hardhat__6464
NomicFoundation/hardhat
6,464
defect
db986304f3821bb9fdb5a54e48e6ef6bcf01ed75
8e6a92e52360d7936fcd6b56752b9789017d6c2e
Use default value for rpcCachePath when running solidity tests
`config.solidityTest.rpcCachePath` defaults to `edr-cache`, which is the directory that edr uses when running a node in fork mode. The motivation for this is that by default, running solidity tests with fork were not using any cache, taking a long time on each run Closes #6459
diff --git a/.changeset/long-toes-deny.md b/.changeset/long-toes-deny.md new file mode 100644 index 00000000000..448c503e678 --- /dev/null +++ b/.changeset/long-toes-deny.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Use default value for rpcCachePath when running solidity tests diff --git a/v-next/hardhat/src/inte...
3
2
1
[{"id": "G0", "claim": "galargh asks whether the cache should instead live in a subdirectory under the global hardhat cache directory, and questions why there are said to be no cache cleanup implications and who owns the cache dir (hardhat or edr).", "category": "design", "verdict": "opposed", "priority": "P1", "scope"...
null
NomicFoundation__hardhat__6467
NomicFoundation/hardhat
6,467
defect
1fea7c8b29714452d56d361407c2eb7e982d3aab
0de9d326924dac38bc5551644e289156604bdab5
Increase default http request timeout from 30s to 300s
Closes #6439 Scanned the v3 codebase for all potential outgoing http requests. Since they all go through utils/request, it all cleanly resolves to a single default value for timeouts (which we use for connection, headers and body timeout). Increased it to match unidici's defaults.
diff --git a/.changeset/eleven-bees-serve.md b/.changeset/eleven-bees-serve.md new file mode 100644 index 00000000000..4695ab011f2 --- /dev/null +++ b/.changeset/eleven-bees-serve.md @@ -0,0 +1,5 @@ +--- +"@nomicfoundation/hardhat-utils": patch +--- + +Increase http timeout diff --git a/v-next/hardhat-utils/src/request...
1
1
1
[{"id": "G0", "claim": "The timeout the original issue refers to is the default HTTP network timeout defined in resolveHttpNetwork within v-next/hardhat/src/internal/builtin-plugins/network-manager/config-resolution.ts (about 20s, matching the issue), so the PR should increase that value rather than the default timeout...
null
NomicFoundation__hardhat__6470
NomicFoundation/hardhat
6,470
defect
1fea7c8b29714452d56d361407c2eb7e982d3aab
1c13646f5b244b6eef1b0cb18f8801df7fa3a02a
Error when using a low interval mining value and mismatching timestamp
Closes #6012 I put this logic inside the `resolveUserConfig` hook since by that point it was already zod-checked. I also considered the `validateUserConfig` hook but if the config had wrong type, it would show both the warning and the zod error (also it could attempt to compare two non-number values). Let me kno...
diff --git a/.changeset/tasty-deers-doubt.md b/.changeset/tasty-deers-doubt.md new file mode 100644 index 00000000000..8e0e3945cda --- /dev/null +++ b/.changeset/tasty-deers-doubt.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Warn when using a low interval mining value and mismatching timestamp diff --git a/v-next/...
2
2
2
[{"id": "G0", "claim": "The mining-interval validation logic should live in the validate step (e.g. refineEdrNetworkUserConfig, which runs after individual network config fields are validated) rather than outside it in resolveUserConfig, to keep validation and resolution organized in v3.", "category": "design", "verdic...
null
NomicFoundation__hardhat__6529
NomicFoundation/hardhat
6,529
defect
00f321fd06882e510029bd7b75646697fe01109f
fc34b963ca980e4cf7f419fe209788782972d5cf
fix: pass all artifacts to edr when executing solidity tests
<!-- Thank you for using Hardhat and taking the time to send a Pull Request! If you are introducing a new feature, please discuss it in an Issue or with someone from the team before submitting your change. Please: - consider the checklist items below - keep the ones that make sense for your PR, and - DELET...
diff --git a/.changeset/wet-students-act.md b/.changeset/wet-students-act.md new file mode 100644 index 00000000000..aab0fef8033 --- /dev/null +++ b/.changeset/wet-students-act.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Compile all sources and pass all generated artifacts to EDR when executing solidity tests dif...
5
3
2
[{"id": "G0", "claim": "The `source` id passed to EDR should be `artifact.inputSourceName ?? artifact.sourceName` rather than `artifact.sourceName`, otherwise EDR won't find npm artifacts.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "task-action.t...
null
NomicFoundation__hardhat__6721
NomicFoundation/hardhat
6,721
defect
46da544aff6effd375ec4b122b92b94b489f7d0f
77231b4c43a9ccd703b6680d7ee0963020b1ea8e
Wrap eth_accounts usage on all packages to handle method deprecation
Closes #6632 When a provider doesn't support the eth_accounts method because of deprecation, we now default to an empty array, on all usages of this method. Usage was found and updated on the following packages: - hardhat-core - hardhat-ethers - hardhat-ignition-ethers - hardhat-ignition-viem - hardhat-ignit...
diff --git a/.changeset/witty-tips-bow.md b/.changeset/witty-tips-bow.md new file mode 100644 index 00000000000..5d0d7fde743 --- /dev/null +++ b/.changeset/witty-tips-bow.md @@ -0,0 +1,11 @@ +--- +"@nomicfoundation/hardhat-ignition-ethers": patch +"@nomicfoundation/hardhat-ignition-viem": patch +"@nomicfoundation/hardh...
2
1
1
[{"id": "G0", "claim": "The eth_accounts deprecation handling should be centralized in the HTTP provider rather than wrapped separately in each package.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new ledger test should assert against the literal ...
null
NomicFoundation__hardhat__6727
NomicFoundation/hardhat
6,727
defect
46da544aff6effd375ec4b122b92b94b489f7d0f
5af85da75c9f468dd472718920cc9bfd12b9971a
Support Etherscan API v2
Closes #6716 This PR means to support the api v2 of Etherscan.io. The main difference is that with v2 you can use only one api key (from etherscan.io), to access the explorer services on all supported chains, in contrast with having to register and have multiple api keys and explorers. There are three main scena...
diff --git a/.changeset/nasty-readers-explode.md b/.changeset/nasty-readers-explode.md new file mode 100644 index 00000000000..a366d74627a --- /dev/null +++ b/.changeset/nasty-readers-explode.md @@ -0,0 +1,5 @@ +--- +"@nomicfoundation/hardhat-verify": patch +--- + +Support Etherscan API v2 diff --git a/packages/hardhat...
2
1
0
[{"id": "G0", "claim": "The changeset could also include a link to the original issue, as is done for hardhat releases.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "For custom chains, which keep the existing v1-api behavior, the deprecated-api-k...
null
NomicFoundation__hardhat__6760
NomicFoundation/hardhat
6,760
defect
b42c0229a47c69d8f0cfd505c55e189af88094b1
8eec0aba8c782834999acbfe53d253e400b5ce13
Support using format on config variables
Closes #6162 This allows for config like the following: ``` url: configVariable( "ALCHEMY_KEY", "https://eth-sepolia.g.alchemy.com/v2/{variable}" ), ``` When using `get` on the resolved variable, the returned value will be `https://eth-sepolia.g.alchemy.com/v2/my_api_key`
diff --git a/.changeset/friendly-beers-happen.md b/.changeset/friendly-beers-happen.md new file mode 100644 index 00000000000..47bfcbf6f52 --- /dev/null +++ b/.changeset/friendly-beers-happen.md @@ -0,0 +1,6 @@ +--- +"@nomicfoundation/hardhat-errors": patch +"hardhat": patch +--- + +Support using format on config varia...
1
1
1
[{"id": "G0", "claim": "The websiteTitle and websiteDescription of the new CONFIG_VARIABLE_FORMAT_MUST_INCLUDE_VARIABLE error descriptor can't include variables, so the {marker} placeholders in them must be removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
NomicFoundation__hardhat__6906
NomicFoundation/hardhat
6,906
defect
140771a72821d8060b98f2f8a673a1495a33d800
c7a513a4118758cd1b445dc57778fa492a309531
Allow js/ts test runners to run test files outside their configured paths
Closes #6904
diff --git a/.changeset/gold-cows-provide.md b/.changeset/gold-cows-provide.md new file mode 100644 index 00000000000..3bcb7d84e6c --- /dev/null +++ b/.changeset/gold-cows-provide.md @@ -0,0 +1,6 @@ +--- +"@nomicfoundation/hardhat-node-test-runner": patch +"@nomicfoundation/hardhat-mocha": patch +--- + +Allow js/ts tes...
3
3
2
[{"id": "G0", "claim": "In both hook handlers, the check that a file belongs to this runner's test directory should use startsWith instead of includes, since a substring match can misclassify paths.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In ...
null
NomicFoundation__hardhat__7036
NomicFoundation/hardhat
7,036
defect
ac33930899a7fe3c4c99d1361ae5c3cade0e92dd
595c97091b669f152cce7c4daaeb80c437eebdad
Rename dependencies to compile and build task
This PR renames the `dependenciesToCompile` config property to `npmFilesToBuild`. Also it introduces a new task, `build`, that is just an alias for `compile`. It uses the same arguments and task action as `compile` Closes #6877
diff --git a/.changeset/cold-oranges-guess.md b/.changeset/cold-oranges-guess.md new file mode 100644 index 00000000000..92480947f81 --- /dev/null +++ b/.changeset/cold-oranges-guess.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Rename dependenciesToCompile to npmFilesToBuild. Add `build` task that is an alias to `...
1
1
0
[{"id": "G0", "claim": "Rewrite the changeset description as suggested: 'Rename `dependenciesToCompile` to `npmFilesToBuild` in Hardhat config (#6877)' and 'Add `build` task that replaces `compile`, but keep the `compile` task as an alias to `build` (#6877)', instead of the inaccurate one-liner.", "category": "document...
null
NomicFoundation__hardhat__7041
NomicFoundation/hardhat
7,041
defect
ac33930899a7fe3c4c99d1361ae5c3cade0e92dd
37e712bda9562263b3056809f51a0bc229eba132
Remove hardhat_reset usage from the codebase
Closes #6110
diff --git a/.changeset/fast-actors-cough.md b/.changeset/fast-actors-cough.md new file mode 100644 index 00000000000..9863601deb0 --- /dev/null +++ b/.changeset/fast-actors-cough.md @@ -0,0 +1,6 @@ +--- +"@nomicfoundation/hardhat-network-helpers": patch +"@nomicfoundation/hardhat-ethers": patch +--- + +Remove hardhat_...
1
1
0
[{"id": "G0", "claim": "The changeset should say 'Remove `hardhat_reset` ([#6110](https://github.com/NomicFoundation/hardhat/issues/6110))' instead of 'Remove hardhat_reset usage and support'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
NomicFoundation__hardhat__7107
NomicFoundation/hardhat
7,107
defect
aa274848d6cc72f1a7c425b563761fda6ac3ac09
65c98794d1965570e9d7d79c241abb36b28467c1
Compiler selection changes
This PR introduces a new flag for solidity build profiles, `preferWasm`. When set to true, the wasm compiler will be used over the native one. All profiles have this set to `false` as default, except `production` which have this set to `true` by default. Additionally, support for linux-aarch64 native compiler has be...
diff --git a/.changeset/nine-lies-press.md b/.changeset/nine-lies-press.md new file mode 100644 index 00000000000..e59b90d4689 --- /dev/null +++ b/.changeset/nine-lies-press.md @@ -0,0 +1,7 @@ +--- +"@nomicfoundation/hardhat-verify": patch +"@nomicfoundation/hardhat-utils": patch +"hardhat": patch +--- + +Add preferWas...
9
8
3
[{"id": "G0", "claim": "The changeset should not include @nomicfoundation/hardhat-verify because only its tests were changed in this pull request.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "#getBuildProfile should take the profile name as a de...
null
NomicFoundation__hardhat__7120
NomicFoundation/hardhat
7,120
defect
4ccbe1af99b9fc0cb48f8ab0467afe5bf2a880ba
359316306ba3f70224d4350ab4b2af3d699ea2d7
Set proper fromBlock value to avoid tests hanging on fork mode
Closes #6967
diff --git a/.changeset/brave-falcons-reply.md b/.changeset/brave-falcons-reply.md new file mode 100644 index 00000000000..42b27f13a5d --- /dev/null +++ b/.changeset/brave-falcons-reply.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Fix example tests hanging when running on fork mode ([#6967](https://github.com/Nomi...
1
1
0
[{"id": "G0", "claim": "The sample tests should take the block number after deploying the contract and name the variable `deploymentBlockNumber`, so the queried block range conceptually covers the blocks since the contract was deployed and the code is more self-explanatory.", "category": "maintainability", "verdict": "...
null
NomicFoundation__hardhat__7152
NomicFoundation/hardhat
7,152
defect
8e616e9389dfcb41e0e99fe2e77c6589a3827a2e
9482889de7b87c114736db62655edb0c9c386cce
Hardhat local installation error
Closes #5362
diff --git a/.changeset/healthy-dryers-mate.md b/.changeset/healthy-dryers-mate.md new file mode 100644 index 00000000000..424cf05a160 --- /dev/null +++ b/.changeset/healthy-dryers-mate.md @@ -0,0 +1,6 @@ +--- +"@nomicfoundation/hardhat-errors": patch +"hardhat": patch +--- + +Display an error message when attempting t...
3
3
1
[{"id": "G0", "claim": "The debug log message is misspelled: \"Determed\" should be \"Determined\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The hand-rolled createRequire resolution of the hardhat package should be replaced by the existing f...
null
NomicFoundation__hardhat__7198
NomicFoundation/hardhat
7,198
defect
c28526b0f9d05ebef1fd5744ed9a9b9b30cdd36d
0120e67f9d9cff709224843fe1ea8e339a69fd4a
Warn on non-LTS node versions
Closes #7167
diff --git a/.changeset/shy-seahorses-sneeze.md b/.changeset/shy-seahorses-sneeze.md new file mode 100644 index 00000000000..5ec2b218ad6 --- /dev/null +++ b/.changeset/shy-seahorses-sneeze.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Warn on non-LTS node versions diff --git a/v-next/hardhat/src/internal/cli/node-v...
1
1
0
[{"id": "G0", "claim": "The changeset description should link the work item (issue #7167), e.g. by rewording it to \"Added warning when running with a non-LTS Node version ([#7167](...))\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
NomicFoundation__hardhat__7328
NomicFoundation/hardhat
7,328
defect
8097dfa31f1735e62836c52a1a3adb297a8ff77d
c6c0a1e1d04bf522ec71dfbe68d0a3ed06b367b0
Custom compiler support
This PR allows the user to specify a custom compiler for each solidity version. Only the path needs to be specified, as the other required files (long version and wasm/native) are inferred. Closes #7130
diff --git a/.changeset/lazy-buttons-burn.md b/.changeset/lazy-buttons-burn.md new file mode 100644 index 00000000000..b202c5537e9 --- /dev/null +++ b/.changeset/lazy-buttons-burn.md @@ -0,0 +1,7 @@ +--- +"@nomicfoundation/hardhat-errors": patch +"@nomicfoundation/hardhat-utils": patch +"hardhat": patch +--- + +Support...
6
4
0
[{"id": "G0", "claim": "The PARSING_VERSION_STRING_FAILED error should include the compiler path too, so the failing compiler can be identified.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The empty jsdoc @param/@returns fields on isBinaryFil...
null
NomicFoundation__hardhat__7378
NomicFoundation/hardhat
7,378
defect
0aa558a0c49167b14f8071b7fb903f47ad536c6e
1982f48b2efb8404851868e3dbc6600d69000b77
Build system support for compiling tests separately from contracts
- A new option has been added to the `build` task, named `targetSources` (name can be changed), that means whether you want to compile contracts or tests. - The general idea is that now the build system understands what type of solidity files (contracts/tests) it's compiling and it can take some decisions based on tha...
diff --git a/.changeset/ninety-crews-mix.md b/.changeset/ninety-crews-mix.md new file mode 100644 index 00000000000..3254a5b65ae --- /dev/null +++ b/.changeset/ninety-crews-mix.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Support for compiling solidity tests separately from contracts ([#6474](https://github.com/No...
7
7
3
[{"id": "G0", "claim": "The 'compiles contracts' integration test doesn't prove that test files are excluded from the contracts build: a .t.sol file inside contracts could be compiled without the test failing, so load the build info and check it only has a single source.", "category": "testing", "verdict": "supported",...
null
NomicFoundation__hardhat__7458
NomicFoundation/hardhat
7,458
defect
3a397fd0ad6c3bc2c2a321f8d57c01f9b7f48af4
e17972f4a917e36ad260433d0853c367467b6796
Expose with Hardhat and EDR package versions
<!-- Thank you for using Hardhat and taking the time to send a Pull Request! If you are introducing a new feature, please discuss it in an Issue or with someone from the team before submitting your change. Please: - consider the checklist items below - keep the ones that make sense for your PR, and - DELET...
diff --git a/.changeset/early-hairs-buy.md b/.changeset/early-hairs-buy.md new file mode 100644 index 00000000000..a7c5077fd7f --- /dev/null +++ b/.changeset/early-hairs-buy.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Expose `hre.versions` with Hardhat and EDR package versions. diff --git a/v-next/hardhat/src/int...
3
3
1
[{"id": "G0", "claim": "The properties of HardhatRuntimeEnvironmentVersions should be named `hardhatVersion` and `edrVersion` instead of `hardhat` and `edr`, even though it is a bit redundant.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The properties...
null
NomicFoundation__hardhat__7466
NomicFoundation/hardhat
7,466
defect
86fd2e5e971db94ef95a822b38b048e0bb250bac
3f1ac608f8e76811c65b8f1eacb3e828adb9594d
feat: conditional dependencies
Closes #7424
diff --git a/.changeset/lemon-days-compare.md b/.changeset/lemon-days-compare.md new file mode 100644 index 00000000000..b9d25206bb2 --- /dev/null +++ b/.changeset/lemon-days-compare.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Support for conditional dependencies on plugins ([#7424](https://github.com/NomicFounda...
2
2
2
[{"id": "G0", "claim": "Declare conditionModules outside the try so the try/catch only catches errors from the Promise.all condition check.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The conditionalDependency.plugin() load can fail like the earl...
null
NomicFoundation__hardhat__7756
NomicFoundation/hardhat
7,756
defect
617439104d5f3a253a2d56a18e1d916c154533ff
0189fd939940a038ab9dbfde4692b0c610cb1e41
fix for Hardhat 2 osaka gas limit issues
Osaka enabled EIP-7825, which sets a per transaction gas limit of 16777216 (2^24). This limit is enforced in EDR when the hardfork is set to Osaka, which is set as the default. Hardhat 2 sets gas limits on transactions in multiple places including: * Hardhat config network defaults for gas limits * within networ...
diff --git a/.changeset/fair-garlics-open.md b/.changeset/fair-garlics-open.md new file mode 100644 index 00000000000..4e4cfa20321 --- /dev/null +++ b/.changeset/fair-garlics-open.md @@ -0,0 +1,6 @@ +--- +"@nomicfoundation/hardhat-ethers": patch +"hardhat": patch +--- + +Update default gas limit to consider osaka trans...
2
1
1
[{"id": "G0", "claim": "The PR should additionally make sure it is not easy to accidentally end up with the transaction gas cap below the transaction gas limit, which is the error EDR throws, and as reported after the merge uncommenting a line in an existing repo still fails with \"ProviderError: Transaction gas limit ...
null
NomicFoundation__hardhat__7835
NomicFoundation/hardhat
7,835
defect
9bf5b360585c401a8d557c8157cfd248907624ef
73c21376779a76b14c33bda70e54f9742367dd93
Official Linux Arm64 compiler support added
The official solc Linux ARM64 compiler support added. The official list supports only version `0.8.31+` so it is necessary to merge the official compiler list and our own build list to maintain support for older versions (our own builds), while adding new versions (from the official list). The builds can now have...
diff --git a/.changeset/early-comics-unite.md b/.changeset/early-comics-unite.md new file mode 100644 index 00000000000..803c3c2bf7f --- /dev/null +++ b/.changeset/early-comics-unite.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Add support for the official builds of `solc` for ARM64 Linux ([#7752](https://github.c...
1
1
0
[{"id": "G0", "claim": "Fix the spelling error \"bellow\" (should be \"below\") in the added comment in downloader.ts.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
NomicFoundation__hardhat__7868
NomicFoundation/hardhat
7,868
defect
ac7e363bd76caa37bb1975454f2d37c28b1f6868
1511f6ad75395dd10e4b9997295acc369e024018
fix: isolate clean task tests to prevent deleting global solc cache
The clean task tests were explicitly deleting the real global cache directory, causing the user's solc binaries to be deleted after running tests. This fix uses an isolated temporary directory via XDG_CACHE_HOME environment variable, ensuring the real global cache is preserved.
diff --git a/v-next/hardhat/test/internal/builtin-plugins/clean/task-action.ts b/v-next/hardhat/test/internal/builtin-plugins/clean/task-action.ts index 2ff5edb1505..74df563388b 100644 --- a/v-next/hardhat/test/internal/builtin-plugins/clean/task-action.ts +++ b/v-next/hardhat/test/internal/builtin-plugins/clean/task-a...
1
1
1
[{"id": "G2", "claim": "Other test suites that modify the real global cache should also leverage the cache isolation introduced for the clean task tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
NomicFoundation__hardhat__7877
NomicFoundation/hardhat
7,877
defect
b1156c90176e69fc3fab61f7adea30e256e36ec5
0c47a694bb5c28edcb16d41d08cd73f21138aa7b
Compiler downloader retry
Compiler downloader retries the download in case it fails or the file verification does. The retry mitigates cases where download fails due to the server limitation or timeouts, but it does not completely eliminates the issue. The option `retryCount` was added to the compile task to control the number of retries, d...
diff --git a/.changeset/tasty-animals-scream.md b/.changeset/tasty-animals-scream.md new file mode 100644 index 00000000000..32679053fcb --- /dev/null +++ b/.changeset/tasty-animals-scream.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Compiler downloader retires download in case of failure [7031](https://github.com...
7
7
1
[{"id": "G0", "claim": "The changeset has a typo: `retires` should be `retries`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Adding a small delay between download retries could be useful (ChristopherDedominici suggested exponential backoff; kan...
null
NomicFoundation__hardhat__7886
NomicFoundation/hardhat
7,886
defect
40615f8e80907aca3a844ea92766616878298f71
2cba3d6e45e4ca0233780dfc755bccfb1b0a4400
feat: add a default fuzz test seed when none is provided
Closes https://github.com/NomicFoundation/hardhat/issues/7863
diff --git a/.changeset/brown-pandas-film.md b/.changeset/brown-pandas-film.md new file mode 100644 index 00000000000..262075dfa80 --- /dev/null +++ b/.changeset/brown-pandas-film.md @@ -0,0 +1,6 @@ +--- +"@nomicfoundation/hardhat-errors": patch +"hardhat": patch +--- + +Added support for function gas snapshots and sna...
1
1
1
[{"id": "G0", "claim": "Since resolveFuzzConfig always sets a seed, enforcing seed as defined (required) in the resolved SolidityTestConfig[\"fuzz\"] type would improve the developer experience.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
NomicFoundation__hardhat__7897
NomicFoundation/hardhat
7,897
defect
12340060382ff7ddfd93390b0bcfc9abc4311360
5c1b356c4f170e8728982721a75b2df2bada5509
fix(hardhat-ledger): Reconnect when device is unplugged
Fixes #7896 ## Summary When a Ledger device is unplugged/replugged during a Hardhat session, subsequent signing operations would fail because the plugin kept trying to use a stale connection. This PR adds automatic reconnection logic that: - Detects `DisconnectedDevice` and `DisconnectedDeviceDuringOperation`...
diff --git a/.changeset/bhham-rsdem-drzyn.md b/.changeset/bhham-rsdem-drzyn.md new file mode 100644 index 00000000000..3f3104f3e4c --- /dev/null +++ b/.changeset/bhham-rsdem-drzyn.md @@ -0,0 +1,5 @@ +--- +"@nomicfoundation/hardhat-ledger": patch +--- + +Fixed reconnection when Ledger device is unplugged/replugged or au...
5
4
0
[{"id": "G0", "claim": "The `args` property of the new `MockCallState` interface is typed `any[]`; use a more specific type such as `unknown[]` (or make the interface generic) to improve type safety.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
NomicFoundation__hardhat__7902
NomicFoundation/hardhat
7,902
defect
52dc79ed1ded6c99f90874dfd4c9e9b82fce5c66
a3ea736eda34f5cf5075c750acb8d4496a2e9b87
Generate Typechain types when compiling a subset of the solidity files
This PR is a replacement of https://github.com/NomicFoundation/hardhat/pull/7707
diff --git a/.changeset/big-lies-call.md b/.changeset/big-lies-call.md new file mode 100644 index 00000000000..b56fdaae8d5 --- /dev/null +++ b/.changeset/big-lies-call.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Implement `SolidityBuildSystemImplementation#compileBuildInfo` diff --git a/.changeset/brown-glasses-w...
3
1
0
[{"id": "G0", "claim": "Add an isErrorResult helper for situations where a build result may be an error union instead of checking with \"reason\" in result.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the test \"should generate types f...
null
NomicFoundation__hardhat__7905
NomicFoundation/hardhat
7,905
defect
5edf3e1b595b3dc6898975abb076acdab875f44c
076895f178a31c8c7c91171ea246285a8645a116
fix(hardhat-ledger): Handle device not ready errors by waiting and retrying
Fixes #4060 ## Summary When a Ledger device is not ready during a signing operation (locked at PIN screen, or Ethereum app not open), the plugin would immediately throw an error. This impacted long running scripts with multiple transactions. This PR adds automatic retry logic that detects device-not-ready errors, di...
diff --git a/.changeset/locked-device-retry.md b/.changeset/locked-device-retry.md new file mode 100644 index 00000000000..eccbeb12ee9 --- /dev/null +++ b/.changeset/locked-device-retry.md @@ -0,0 +1,5 @@ +--- +"@nomicfoundation/hardhat-ledger": patch +--- + +Handle errors occurring due to device being locked or the Et...
2
2
1
[{"id": "G0", "claim": "The new HardhatError throws should pass the original error as the last parameter so it is chained through Error#cause.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The connection retries and the device-not-ready retries...
null
NomicFoundation__hardhat__7997
NomicFoundation/hardhat
7,997
defect
1f8b88a1bd6f7d35e2b19f02d823c815eeeaa414
157d989e8982e882613f60b8b58fc5ae3e7caf41
[Chai-matchers] Add polling mechanism when automine is not available
Fixes: https://github.com/NomicFoundation/hardhat/issues/7952. Related to: https://github.com/NomicFoundation/hardhat/pull/7993. The underlying PR fixes the Hardhat invariant error, but it is not enough to resolve the bug. Hardhat needs to support polling for networks where `automine` is not defined, so this PR a...
diff --git a/v-next/example-project/test/mocha/mocha-test.ts b/v-next/example-project/test/mocha/mocha-test.ts index a54f8b6d4c0..e42214c4c03 100644 --- a/v-next/example-project/test/mocha/mocha-test.ts +++ b/v-next/example-project/test/mocha/mocha-test.ts @@ -40,3 +40,51 @@ describe("Rocket test", () => { expect(...
9
5
4
[{"id": "G0", "claim": "The temporary dev-helper tests in v-next/example-project/test/mocha/mocha-test.ts are to be removed before merging, as the PR author stated when adding them.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The timeout path c...
null
NomicFoundation__hardhat__8005
NomicFoundation/hardhat
8,005
defect
22cce526f98714d9da4f89af8b1b379611b258fd
a8864f5b11333e7cc50dd2ff9d257f0d388527af
Change our workflow so that PRs to docs are included in changeset comments
This PR updates our workflows so that: - Now the docs PRs are included as comments in the changesets' frontmatters. - The workflows that check if there are docs prs/issues in the PR comment only accept issues. Failing if it's a PR, and telling you to use a changeset instead. - The release workflow creates a commen...
diff --git a/.github/workflows/check-links-to-docs.yml b/.github/workflows/check-links-to-docs.yml index 59a01beae2c..5ef4eea2f89 100644 --- a/.github/workflows/check-links-to-docs.yml +++ b/.github/workflows/check-links-to-docs.yml @@ -1,5 +1,6 @@ -# Fails if a PR doesn't link to documentation (pr/issue on hardhat-web...
9
8
6
[{"id": "G0", "claim": "The docs-URL collection runs after `changeset version` has consumed the .changeset/*.md files, so it will usually find no changesets and set has_docs=false even when docs links existed; collect the URLs before versioning (or read the deleted files from git history).", "category": "correctness", ...
null
NomicFoundation__hardhat__8030
NomicFoundation/hardhat
8,030
defect
7a975f749e5463f4dcd31d51d4c44eba3c72439f
9035d11cfc85567c2ae0cd5c1ccf715e689ff3b2
chore: end to end test harness
Adds a `./scripts/end-to-end/test.ts` script that operates over metadata files stored under `./end-to-end`. There is one example currently: `./end-to-end/openzeppelin-contracts` There are three subcommands: * init # Clone and setup the scenario with npm install running through verdaccio * clean # Delete the...
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 33654abb8b3..546d569cc83 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -11,7 +11,8 @@ "waitFor": "postCreateCommand", "containerEnv": { "ALCHEMY_URL": "${localEnv:ALCHEMY_URL}", - "...
16
10
2
[{"id": "G0", "claim": "Default the clone directory to /tmp/end-to-end and print a message instead of throwing when neither --e2e-clone-dir nor E2E_CLONE_DIR is provided.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use the existing resolveScenarioWork...
null
NomicFoundation__hardhat__8031
NomicFoundation/hardhat
8,031
defect
593a01616b7b2704e811103f7d4e14a5df92d627
6901b5412d97eb7a823e167a0603b563095122ba
Verbosity (-vvv) improve style
Related to design doc: https://www.notion.so/nomicfoundation/Verbosity-via-vvv-319578cdeaf5805b8255ee9e24664add This PR is on top of [this PR](https://github.com/NomicFoundation/hardhat/pull/7983). In this PR, only the graphical style of `-v` is modified. # Run example Run `pnpm hardhat run scripts/demo-trace-o...
diff --git a/v-next/example-project/contracts/CallTypes.sol b/v-next/example-project/contracts/CallTypes.sol new file mode 100644 index 00000000000..94b330aff94 --- /dev/null +++ b/v-next/example-project/contracts/CallTypes.sol @@ -0,0 +1,93 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import "hardha...
3
1
0
[{"id": "G0", "claim": "The example-project files CallTypes.sol and demo-trace-output.ts are only used for manual testing and will be removed before merging.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The code should be arranged so response.ge...
null
NomicFoundation__hardhat__8038
NomicFoundation/hardhat
8,038
defect
9bfaca98ffde2800abe995f5460e69a79257d4d3
2ac11b3f19ba8c9df047b264c83e661d703877b8
Aggregate deployment gas statistics in `--gas-stats` output
Closes #8037. Docs: https://github.com/NomicFoundation/hardhat-website/pull/232 Output example: ``` ╔═══════════════════════════════════════════════════════════════════════════════════════╗ ║ Gas Usage Statistics ║ ╚═══════════════════════════...
diff --git a/.changeset/evil-beers-pump.md b/.changeset/evil-beers-pump.md new file mode 100644 index 00000000000..d910838eb6f --- /dev/null +++ b/.changeset/evil-beers-pump.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Aggregate deployment gas statistics (min, avg, median, max, count) instead of showing only the l...
2
1
0
[{"id": "G0", "claim": "ContractGasStats.deployment reuses GasStats whose `calls` field is function-oriented while the report renders it as #deployments, so rename `calls` to a neutral name like `count` (or use a separate stats type) for semantic consistency.", "category": "maintainability", "verdict": "supported", "pr...
null
NomicFoundation__hardhat__8051
NomicFoundation/hardhat
8,051
defect
29cec28ad6e0a44ab16a9279b1aae9509a46cead
e37f96c0c1b38fca41b8645042d51a649e7f5bda
Add `TestRunResult` type wrapping `TestSummary` to allow plugins to extend test results
Previously, test runners could only return the test summary. This change allows them to return additional data by extending the `TestRunResult` interface. `TestSummary` remains available through the `summary` property in `TestRunResult`.
diff --git a/.changeset/purple-carrots-clean.md b/.changeset/purple-carrots-clean.md new file mode 100644 index 00000000000..b2d7f1928e6 --- /dev/null +++ b/.changeset/purple-carrots-clean.md @@ -0,0 +1,7 @@ +--- +"hardhat": patch +"@nomicfoundation/hardhat-mocha": patch +"@nomicfoundation/hardhat-node-test-runner": pa...
2
2
2
[{"id": "G0", "claim": "The existing test in v-next/hardhat-mocha/test/index.ts asserts the old return shape and will fail after this PR wraps the summary in TestRunResult; the return type should also be narrowed to Promise<Result<TestRunResult[\"summary\"], TestRunResult>>.", "category": "correctness", "verdict": "sup...
null
NomicFoundation__hardhat__8062
NomicFoundation/hardhat
8,062
defect
6df1f18ff5d854d061d5021c5a15e40652e26173
9b7c1ae1ddaa774c6ef29e063bca6abe9572e748
Fix compiler download for old versions in ARM64
## Problem On ARM64 Linux, Hardhat fails when trying to compile with old Solidity versions (< 0.5.0) because no native ARM64 binary exists for those versions, not in the official releases nor in the [community mirror](https://github.com/NomicFoundation/solc-linux-arm64-mirror). ## Solution Based on the availab...
diff --git a/v-next/hardhat/test/internal/builtin-plugins/solidity/build-system/compiler/downloader.ts b/v-next/hardhat/test/internal/builtin-plugins/solidity/build-system/compiler/downloader.ts index 72b397e54cb..05f380de58c 100644 --- a/v-next/hardhat/test/internal/builtin-plugins/solidity/build-system/compiler/downl...
3
1
1
[{"id": "G0", "claim": "The new ARM64 repro tests expect isCompilerDownloaded/downloadCompiler to return false and getCompiler to return undefined for 0.4.24 instead of throwing, which conflicts with the file's established contract that versions missing from the platform list throw (INVALID_SOLC_VERSION / assertion err...
null
NomicFoundation__hardhat__8064
NomicFoundation/hardhat
8,064
defect
870c01c4baa1455e1d63aafe197b147aa9795e3c
66233b3fde665178a8ee9714e4b0c7cce514fe43
Add `--gas-stats-json` global option for JSON gas stats export
This PR adds a new `--gas-stats-json <path>` global option that writes gas usage statistics to a JSON file at the specified path. It works independently of `--gas-stats` (terminal table output), so either or both flags can be used together. Docs: https://github.com/NomicFoundation/hardhat-website/pull/238 Closes ...
diff --git a/.changeset/wet-apes-kick.md b/.changeset/wet-apes-kick.md new file mode 100644 index 00000000000..ff7bdd78374 --- /dev/null +++ b/.changeset/wet-apes-kick.md @@ -0,0 +1,8 @@ +--- +"@nomicfoundation/hardhat-node-test-runner": minor +"@nomicfoundation/hardhat-mocha": minor +"@nomicfoundation/hardhat-errors":...
1
1
1
[{"id": "G0", "claim": "The `gasStatsJson` global option is declared as a non-nullable `string` in `GlobalOptions` even though it is defined with `defaultValue: undefined` and the runtime code treats it as possibly `undefined`; the type should be updated to allow `undefined`.", "category": "correctness", "verdict": "su...
null
NomicFoundation__hardhat__8077
NomicFoundation/hardhat
8,077
defect
89848629d9d139ad8a3cb23077c97557beab421a
437adf24fa498ab97be924750a8a393f491e030c
Cache genesis state
This PR caches the creation of the genesis state of EDR providers, and fixes a bug in `network.connect()` which was triggering the re-resolution of the config unnecessarily. The bug was preventing the cache from working.
diff --git a/.changeset/cyan-clowns-type.md b/.changeset/cyan-clowns-type.md new file mode 100644 index 00000000000..69f3b902846 --- /dev/null +++ b/.changeset/cyan-clowns-type.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Optimize the initilization of EDR Network Connections by caching their genesis state. diff --...
11
5
0
[{"id": "G0", "claim": "The genesis-state code treats any defined forkingConfig as forking enabled instead of checking forkingConfig?.enabled === true, so forking config with enabled: false behaves like forking.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1"...
null
NomicFoundation__hardhat__8104
NomicFoundation/hardhat
8,104
defect
f2080b67538ec82fae3edc845f60dc39ff2d3b59
4a1208f86c0d4231678aae6079193e7dae9405d7
Use code 3 for JSON-RPC responses where there has been a revert
Fixes: https://github.com/NomicFoundation/hardhat/issues/8043
diff --git a/packages/hardhat/src/internal/builtin-plugins/network-manager/edr/stack-traces/stack-trace-solidity-errors.ts b/packages/hardhat/src/internal/builtin-plugins/network-manager/edr/stack-traces/stack-trace-solidity-errors.ts index 8357cb5ee01..ca90b21f338 100644 --- a/packages/hardhat/src/internal/builtin-plu...
4
3
1
[{"id": "G0", "claim": "Extract the hard-coded revert error code 3 into a named constant (e.g. a local REVERT_ERROR_CODE or SolidityError.CODE) instead of duplicating the magic number in isRevertError and its comments.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"...
null
NomicFoundation__hardhat__8114
NomicFoundation/hardhat
8,114
defect
f08f6cb47eec6029ad25bdd388c526fa20a19b2d
5f23f8198026aeb9e043d14c0074c1d031d3971d
Use consistent types for forking.blockNumber in config
Fixes https://github.com/NomicFoundation/hardhat/issues/7701
diff --git a/packages/hardhat/src/internal/builtin-plugins/network-manager/type-extensions/config.ts b/packages/hardhat/src/internal/builtin-plugins/network-manager/type-extensions/config.ts index b6c90cd339d..bee1f906a13 100644 --- a/packages/hardhat/src/internal/builtin-plugins/network-manager/type-extensions/config....
2
2
2
[{"id": "G0", "claim": "The forking.blockNumber schemas in both network-manager/type-validation.ts and solidity-test/config.ts use positive() for numbers and bigints where the previous schema was nonnegative, so blockNumber 0/0n is now rejected — a breaking validation change; switch to nonnegative() (keeping int() + sa...
null
NomicFoundation__hardhat__8120
NomicFoundation/hardhat
8,120
defect
c81ce46d0886ef38d87381601b5ba45cfb891b0f
688870c7900ba729f27af563d0c2d03f4f70146e
Fix remappings duplication
There was a bug in the dependency graph, which could lead to remappings being duplicated, this PR fixes it. Remappings are stored in the edges of the dependency graph, so that we can use only the necessary remappings when building a subgraph of the entire dependency graph. They are stored as a set within each edge, ...
diff --git a/.changeset/yellow-cycles-grow.md b/.changeset/yellow-cycles-grow.md new file mode 100644 index 00000000000..c9f9735fd92 --- /dev/null +++ b/.changeset/yellow-cycles-grow.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Fix remappings duplication diff --git a/packages/hardhat/src/internal/builtin-plugins/s...
3
3
1
[{"id": "G0", "claim": "The root-file lookup in getCompilationJobs is not robust on Windows: if getRootFilePaths() returns backslash-separated paths, endsWith(`/${name}`) will never match; prefer comparing by basename or normalizing separators so the regression tests are portable across OSes.", "category": "correctness...
null
NomicFoundation__hardhat__8122
NomicFoundation/hardhat
8,122
defect
35184391be240a283b1ba429bb66be5b1873a004
14e4883222dfa4d65a8a9b457c1cdcabf3be606b
Optimize `ArtifactsManager#artifactExists`
`ArtifactsManager#artifactExists` use to try to read the artifact, and return `false` when the read threw. That was slow, because the error that `readArtifact` generates includes all the similar contract names, which is a heavy operation. This implementation checks for the existence directly, making it much faster.
diff --git a/packages/hardhat/src/internal/builtin-plugins/artifacts/artifact-manager.ts b/packages/hardhat/src/internal/builtin-plugins/artifacts/artifact-manager.ts index c13f5d46475..4000802ac0a 100644 --- a/packages/hardhat/src/internal/builtin-plugins/artifacts/artifact-manager.ts +++ b/packages/hardhat/src/intern...
2
2
0
[{"id": "G0", "claim": "Existing tests do not cover `artifactExists`; add tests asserting true for an existing bare name, true for an existing fully-qualified name, false for a missing name, and true without throwing when multiple artifacts share the same bare name.", "category": "testing", "verdict": "supported", "pri...
null
NomicFoundation__hardhat__8123
NomicFoundation/hardhat
8,123
defect
35184391be240a283b1ba429bb66be5b1873a004
b05beb68ab6ff609a4c81219e5fbaae19b739b2a
Hardhat version in buildinfo
https://github.com/NomicFoundation/hardhat-website/pull/252
diff --git a/packages/hardhat/src/internal/builtin-plugins/solidity/build-system/artifacts.ts b/packages/hardhat/src/internal/builtin-plugins/solidity/build-system/artifacts.ts index 487b119084d..cff2347af7e 100644 --- a/packages/hardhat/src/internal/builtin-plugins/solidity/build-system/artifacts.ts +++ b/packages/har...
4
3
1
[{"id": "G0", "claim": "toolVersionsInBuildInfo is only threaded through the build-profiles config shape, so setting it on legacy single-/multi-version shapes is silently stripped and ignored; it should be supported there like the other fields instead of being a silent no-op.", "category": "correctness", "verdict": "su...
null
NomicFoundation__hardhat__8130
NomicFoundation/hardhat
8,130
defect
8ada49c224e9bb086af421d1e42b81ebe7e7489a
fba4936e8d0c13f23f6bc12e5e16ceeb0ef24525
Add `splitTestsCompilation` solidity setting (3): Compilation cache updates
This PR updates the compilation cache so that it works with the new setting. Test failures are expected, as `build` and `test solidity` haven't been updated yet.
diff --git a/SPLIT_TESTS_COMPILATION_SPEC.md b/SPLIT_TESTS_COMPILATION_SPEC.md index e48a5516e3a..b0a0e62c13b 100644 --- a/SPLIT_TESTS_COMPILATION_SPEC.md +++ b/SPLIT_TESTS_COMPILATION_SPEC.md @@ -478,9 +478,11 @@ Implement the new root-discovery, artifact-layout, cleanup, and low-level scope - `preprocessSolcInp...
3
2
2
[{"id": "G0", "claim": "The test 'should invalidate cache when switching from split to unified' has a name and inline comment that disagree with its body and never asserts whether the unified-mode build is a cache hit or miss, so it should rename the test and/or assert the expected FileBuildResultType to actually valid...
null
NomicFoundation__hardhat__8134
NomicFoundation/hardhat
8,134
defect
8ada49c224e9bb086af421d1e42b81ebe7e7489a
e8842eff7e301eb1adf967f75a44e88e6a7cf6a8
Add `splitTestsCompilation` solidity setting (7): Typechain updates
Fairly straightforward update to the TypeChain plugin. The main difference is that now with `splitTestsCompilation === false` it needs to ignore the test contracts. No errors are expected after this PR
diff --git a/SPLIT_TESTS_COMPILATION_SPEC.md b/SPLIT_TESTS_COMPILATION_SPEC.md index e48a5516e3a..19516485b67 100644 --- a/SPLIT_TESTS_COMPILATION_SPEC.md +++ b/SPLIT_TESTS_COMPILATION_SPEC.md @@ -124,7 +124,7 @@ Consequences: - `getAllArtifactPaths()` includes test artifacts - `getAllFullyQualifiedNames()` include...
6
5
2
[{"id": "G0", "claim": "The test asserts an exact candidates string ordering and hard-coded \"\\n\" separators even though the candidates list comes from unordered filesystem traversal and the implementation joins with the OS EOL, so consider sorting the production error output and building the expected string with EOL...
null
NomicFoundation__hardhat__8147
NomicFoundation/hardhat
8,147
defect
1039dbc0d4103d1768870094fde633659539d55d
11f09118865195035ea15afb39b02f8992126d72
Workaround @ledgerhq/errors issue #15967
Link to issue: https://github.com/LedgerHQ/ledger-live/issues/15967
diff --git a/.changeset/gold-chefs-read.md b/.changeset/gold-chefs-read.md new file mode 100644 index 00000000000..d7bae9a59c2 --- /dev/null +++ b/.changeset/gold-chefs-read.md @@ -0,0 +1,5 @@ +--- +"@nomicfoundation/hardhat-ledger": patch +--- + +Workaround `@ledgerhq/errors` issue #15967 diff --git a/packages/hardhat...
8
1
0
[{"id": "G0", "claim": "The return type and cast of getEthMocked use `typeof Eth` while Eth is imported with `import type`, which won't typecheck.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Using `typeof HwAppEthT` / `typeof HwTransportNodeHidT` o...
null
NomicFoundation__hardhat__8175
NomicFoundation/hardhat
8,175
defect
26ec993638346adbc457625f5cf305cb94661c9d
a19ba7557267aad91e7ef32bcef68c05c893a98c
Restructure the imports of the network-manager
Fixes: https://github.com/NomicFoundation/hardhat/issues/8158 # Benchmark Benchmarked `pnpm hardhat` (no args) in a minimal empty project (a `hardhat.config.ts` containing just `export default {}`), recording wall-clock and EDR load probes. Methodology: one `pnpm clean && pnpm build` per branch, then 5 measure...
diff --git a/packages/hardhat/src/internal/builtin-plugins/network-manager/config-resolution.ts b/packages/hardhat/src/internal/builtin-plugins/network-manager/config-resolution.ts index 28a886425d0..8000f861bb7 100644 --- a/packages/hardhat/src/internal/builtin-plugins/network-manager/config-resolution.ts +++ b/packag...
2
1
0
[{"id": "G0", "claim": "The dynamic imports used in hook-handlers/config.ts should conform to the project engineering guideline GC3 on top-level vs dynamic imports.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The methodology used to measure the PR's s...
null
NomicFoundation__hardhat__8176
NomicFoundation/hardhat
8,176
defect
c0eb92a957f101253812c2acdb228ebf198b8118
158c67cda5b2c28987fdbf4927b2acf8c77813be
fix: ignore warning build results when considering compilation errors
Solc can return error outputs that have a type of `warning` but a severity of `error`. To take as an example: ```js { type: 'Warning', component: 'general', message: 'Contract code size is 38511 bytes and exceeds 24576 bytes (a limit introduced in Spurious Dragon). This contract may not be deployable...
diff --git a/packages/hardhat/src/internal/builtin-plugins/solidity/build-system/build-system.ts b/packages/hardhat/src/internal/builtin-plugins/solidity/build-system/build-system.ts index 76f52a9d4a2..b5532b72304 100644 --- a/packages/hardhat/src/internal/builtin-plugins/solidity/build-system/build-system.ts +++ b/pac...
4
3
1
[{"id": "G0", "claim": "The diagnostic printing path (#printSolcErrorsAndWarnings) still prints type=Warning severity=error entries as errors via console.error, inconsistent with #hasCompilationErrors treating them as non-fatal; the printing/classification logic (and possibly the stored severity) should be aligned so t...
null
NomicFoundation__hardhat__8177
NomicFoundation/hardhat
8,177
defect
c0eb92a957f101253812c2acdb228ebf198b8118
ac4881b250e506511865bbc43b4a1abaa86ce0cb
`HookManager` optimizations
This PR extends @Wodann's finding and his PR #8106 to cache more aggressively in the `HookManager`. Given the amount of caching that this PR adds, analyzing its concurrent behavior can be trickier than before. Luckily Claude came up with a testing pattern that's great, and easy to understand. It uses different promi...
diff --git a/.changeset/cyan-hairs-explode.md b/.changeset/cyan-hairs-explode.md new file mode 100644 index 00000000000..57f569fa576 --- /dev/null +++ b/.changeset/cyan-hairs-explode.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Optimize the `HookManager` and the `coverage` plugin diff --git a/packages/hardhat/src/...
13
9
3
[{"id": "G0", "claim": "The constructor precomputes #pluginsByHookCategory from Object.keys(plugin.hookHandlers), which includes categories whose factory value is undefined, so #getStaticHookHandlerCategories will hit its defined-factory assertion and throw where the previous implementation simply skipped missing facto...
null
NomicFoundation__hardhat__8180
NomicFoundation/hardhat
8,180
defect
4d0b37289dead3c990e7124516261d99bec67061
dc9629112b60a386f2e64f8d08cafcdba382b170
Optimize `getAllFilesMatching` and `getAllDirectoriesMatching`
This PR optimizes the `hardhat-utils` functions `getAllFilesMatching` and `getAllDirectoriesMatching`, by decreasing the number of `syscall`s they have to do. This is done by using `fsPromises.readdir(dirFrom, { withFileTypes: true });`, which returns the the file type of each entry. For filesystems where this isn't...
diff --git a/.changeset/tough-lines-begin.md b/.changeset/tough-lines-begin.md new file mode 100644 index 00000000000..299b9c5bed0 --- /dev/null +++ b/.changeset/tough-lines-begin.md @@ -0,0 +1,6 @@ +--- +"@nomicfoundation/hardhat-utils": patch +"hardhat": patch +--- + +Optimize file system traversal helpers diff --git...
8
4
1
[{"id": "G0", "claim": "The build-info listing in build-system.ts (exists check plus readdir mapped to paths) could be simplified using readdirOrEmpty, making just one syscall.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "getAllBuildInfoIds in art...
null
NomicFoundation__hardhat__8189
NomicFoundation/hardhat
8,189
defect
bd351a76868278d43e6404a19cec2d0df300ff3b
d6c74cd711e4cdc0abe18a7b23d18d7713b1bb4d
Optimize true case path
This PR introduces a new class to the `fs` module of `hardhat-utils`, which caches the intermediate lookups used to get files' true case path. The reason this is an optimization is that we get the true case path for multiple files per npm package in the build system.
diff --git a/.changeset/wise-women-prove.md b/.changeset/wise-women-prove.md new file mode 100644 index 00000000000..dd3b3f63c0a --- /dev/null +++ b/.changeset/wise-women-prove.md @@ -0,0 +1,6 @@ +--- +"@nomicfoundation/hardhat-utils": patch +"hardhat": patch +--- + +Introduce a TrueCasePathResolver class to optimize r...
10
7
4
[{"id": "G0", "claim": "The resolver's handling of \"..\" segments lets a requested relative path escape the trusted `from` directory (e.g. `../secret`), so consider rejecting any \"..\" segments or otherwise enforcing that the final resolved path stays within `from` to prevent path traversal outside the trusted root."...
null
NomicFoundation__hardhat__8205
NomicFoundation/hardhat
8,205
defect
f47559c3987c60e266ad18fa94adb65ed7265f32
99a4556698e1d0776951fb160641f5e2529b68ee
Introduce `SharedPromiseCache`
Introduce the `SharedPromiseCache` synchronization primitive. This allows you to have a cache of `async`-produced values, where the value associated to a key is only computed once, without using a mutex, but instead sharing the first `Promise` that produces it.
diff --git a/.changeset/famous-loops-stop.md b/.changeset/famous-loops-stop.md new file mode 100644 index 00000000000..0337c7a4468 --- /dev/null +++ b/.changeset/famous-loops-stop.md @@ -0,0 +1,5 @@ +--- +"@nomicfoundation/hardhat-utils": minor +--- + +Introduce the SharedPromiseCache synchronization primitive diff --g...
7
6
2
[{"id": "G0", "claim": "If ValueT can itself be a Promise/thenable, the `cached instanceof Promise` discrimination misclassifies a successful cached value as an in-flight entry, so `await cached` yields ValueT and reading `cachedResult.success` fails at runtime; store a tagged cache entry or constrain/document ValueT t...
null
NomicFoundation__hardhat__8218
NomicFoundation/hardhat
8,218
defect
e24168d9d2f13f18585d31e1a266f1fe9e9a7c68
32f2b5970e870a38db5e4e5b184038faf6052a0f
Fix bug in solidity test artifact valdation
When running `test solidity --no-compile` without providing explicit test file we were running the validation of artifacts anyway. This was unnecessary, and lead to some edge cases that we don't even need to handle. For example, test files that don't have any contract are roots, but don't have artifacts.
diff --git a/.changeset/fix-solidity-tests-selection-error.md b/.changeset/fix-solidity-tests-selection-error.md new file mode 100644 index 00000000000..ba865af13d9 --- /dev/null +++ b/.changeset/fix-solidity-tests-selection-error.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Fix `hardhat test solidity --no-compile...
4
2
0
[{"id": "G0", "claim": "The comment is misleading: when noCompile is true and testFiles is empty we don't necessarily know we have all the compiled artifacts already, so it should be reworded to say only user-selected files are validated and otherwise discovered test roots run without validation.", "category": "documen...
null
NomicFoundation__slang__1133
NomicFoundation/slang
1,133
defect
14edad77cc9da962adc5425f732bbd009afc8e6c
6d9085073b1df53398a6b5ab15ce8e66c3f16bcc
Fix query engine `OneOrMoreMatcher` to skip over in-between trivia
The `OneOrMoreMatcher` would stop matching whenever it encountered a trivia item in a sequence. Since the parser may arbitrarily insert trivia items anywhere, this meant that the matched results would be incomplete. This was found with this query from the Solidity bindings rules: ``` @specifier [InheritanceSpeci...
diff --git a/crates/metaslang/cst/src/query/engine.rs b/crates/metaslang/cst/src/query/engine.rs index 3daff200f8..b758f438c5 100644 --- a/crates/metaslang/cst/src/query/engine.rs +++ b/crates/metaslang/cst/src/query/engine.rs @@ -668,8 +668,16 @@ impl<T: KindTypes + 'static> Matcher<T> for OneOrMoreMatcher<T> { ...
1
1
0
[{"id": "G0", "claim": "The new test `test_one_or_more_anonymous_both_adjacent_with_trivia` should be placed together with the other `test_one_or_more_*` tests.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
NomicFoundation__slang__1147
NomicFoundation/slang
1,147
defect
cfc62f29e2bd505f702544d98b68316b20bbe37e
6fdc23e8472bca5b0b0bca8b3317620edec1b9c1
fix benchmarking in CI
It has been [failing in CI](https://github.com/NomicFoundation/slang/actions/runs/11597323701/job/32290519984) for a few days. This fixes it by upgrading `RUST_STABLE_VERSION` and `RUST_NIGHTLY_VERSION` to latest.
diff --git a/.vscode/settings.json b/.vscode/settings.json index 50683b7f8f..ee1ff26ab0 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -21,7 +21,7 @@ "rust-analyzer.imports.granularity.group": "module", "rust-analyzer.imports.prefix": "crate", "rust-analyzer.rustfmt.extraArgs": [ - "+nigh...
1
1
0
[{"id": "G0", "claim": "The line `Ok(Some(terminal.kind))` in sequence_helper.rs (line 144) is not properly indented, a nit that the linter surprisingly did not catch.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
NomicFoundation__slang__1170
NomicFoundation/slang
1,170
defect
2ffc8f5ada01dbbf62df98bab1b7efa277ce5a56
5a93a4e5894c052b508b8b2e248e0ba8c3b3b558
Inject extension scopes while running the resolution algorithm
This PR builds on top of #1149 This changes the way we handle extension scopes (ie. `using` directives) in bindings. Instead of using the scope stack from the stack graph, we hook into the resolution algorithm and inject new graph edges from nodes designated as extension hooks (usually the source unit's lexical scop...
diff --git a/crates/metaslang/bindings/generated/public_api.txt b/crates/metaslang/bindings/generated/public_api.txt index f98a7e4582..59b63d67ae 100644 --- a/crates/metaslang/bindings/generated/public_api.txt +++ b/crates/metaslang/bindings/generated/public_api.txt @@ -22,7 +22,6 @@ pub fn metaslang_bindings::Bindings...
3
3
1
[{"id": "G0", "claim": "Reference::resolve_definition() may never be used since the API always provides all definitions and lets users rank them, so the reviewer asks whether it should be removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The review...
null
NomicFoundation__slang__1353
NomicFoundation/slang
1,353
defect
a820a9d24ba1450d2a82a6617a851ef60e1be660
5eb8a7c2a2b9ec8e701976d63b6e36a480e26c0c
Sourcify bindings fixes (round 3)
Fixes to the binding rules in Solidity: - Values of the deprecated `byte` type have a `length` member until 0.8.0 - Bind a qualified identifier in the same contract, ie. `Foo.x` in a method body of `Foo` - Correctly bind external constants and built-ins in nested functions in assembly blocks - Literal boolean val...
diff --git a/.changeset/major-pets-run.md b/.changeset/major-pets-run.md new file mode 100644 index 0000000000..5ab84e9bf0 --- /dev/null +++ b/.changeset/major-pets-run.md @@ -0,0 +1,12 @@ +--- +"@nomicfoundation/slang": patch +--- + +Fixes to the binding rules in Solidity: + +- Values of the deprecated `byte` type hav...
1
1
1
[{"id": "G0", "claim": "The yul/nested_functions test ships only a failure snapshot with no success case — is this failure expected, i.e. are constants and built-ins inside nested Yul functions actually resolved?", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
NomicFoundation__slang__1377
NomicFoundation/slang
1,377
defect
c4199f7f54ea9231cf172ff9858f2fb9b1d83b1b
f252009b5275ef4f042159923d5c1673c17145d8
Fix #1375: untyped tuple deconstruction statements are assignments
Fixes #1375 Except for Solidity < 0.5.0 with the `var` keyword. If the keyword is present, the statement should be treated as a declaration. Caveat: because we don't validate code, it's possible to mix typed and untyped tuple elements and the binder will create declarations and references for each, but that's in...
diff --git a/.changeset/cruel-impalas-write.md b/.changeset/cruel-impalas-write.md new file mode 100644 index 0000000000..ae12add9be --- /dev/null +++ b/.changeset/cruel-impalas-write.md @@ -0,0 +1,5 @@ +--- +"@nomicfoundation/slang": patch +--- + +Bind untyped tuple deconstruction elements as references, not declarati...
1
1
0
[{"id": "G0", "claim": "The newly added var-keyword tuple deconstruction rule in crates/solidity/inputs/language/bindings/rules.msgb should be preceded by a matching explanatory comment.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
NomicFoundation__slang__1502
NomicFoundation/slang
1,502
defect
71d628c76f9e7ba00e73ae95364f5e099ec9fb04
d9e6ef98e4ab3707a6de9d2d2af80554c84a2f4b
Fix the revert function parsing mechanism
Currently the old style revert function (`revert("description")`) is being parsed as a revert statement, the issue with this is that it doesn't allow the binder to solve the right reference to it (the built-in `reserve`) or even for the user to shadow it with their own `revert` function. Update: I also noticed that ...
diff --git a/.changeset/spotty-ducks-behave.md b/.changeset/spotty-ducks-behave.md new file mode 100644 index 0000000000..fcc173e001 --- /dev/null +++ b/.changeset/spotty-ducks-behave.md @@ -0,0 +1,5 @@ +--- +"@nomicfoundation/slang": minor +--- + +Fixed the old style revert calls (`revert("oops!")`) to be parsed as a ...
5
5
0
[{"id": "G0", "claim": "Prefer writing the reference lookup as a single inline chained expression rather than binding it inside a block expression.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Remove the `pure` attributes from the revert_shado...
null
NomicFoundation__slang__1507
NomicFoundation/slang
1,507
defect
035ac863df83fcbee85bc4ca52465f341beb2faa
7d8da626a130badaecfddaec4be3565264e11003
Add method to get text offset from sequence AST types
Applies on top of #1477 Adds `text_offset()` to AST node types of the sequence variety to retrieve the location of said node. The offset returned is computed by skipping over any leading trivia node so that it can be used more reliably as the location in the file. NOTE: this implementation is very likely to chan...
diff --git a/crates/solidity/outputs/cargo/crate/src/backend/ir/ast/nodes.generated.rs b/crates/solidity/outputs/cargo/crate/src/backend/ir/ast/nodes.generated.rs index b37a45654a..7b1ecc3ef0 100644 --- a/crates/solidity/outputs/cargo/crate/src/backend/ir/ast/nodes.generated.rs +++ b/crates/solidity/outputs/cargo/crate...
3
1
0
[{"id": "G0", "claim": "Add a `TODO(v2)` marker next to the text_offsets field so this temporary implementation is revisited when v2 lands.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The first offset recorded for `SourceUnit` does not skip l...
null
NomicFoundation__slang__1533
NomicFoundation/slang
1,533
defect
1fed615fa27e3e5b5b528ff2f69bf199514f43ea
6efba28e387b10c9d9b0eb469a8ff2d02213b2b3
fix binding incomplete `IdentifierPath` expressions
Fixed a panic during constructing binding graphs, when the input has incomplete `IdentifierPath` expressions. Closes #1531
diff --git a/.changeset/hungry-glasses-argue.md b/.changeset/hungry-glasses-argue.md new file mode 100644 index 0000000000..9152068cad --- /dev/null +++ b/.changeset/hungry-glasses-argue.md @@ -0,0 +1,5 @@ +--- +"@nomicfoundation/slang": patch +--- + +Fixed a panic during constructing binding graphs, when the input has...
2
1
0
[{"id": "G0", "claim": "Questions why `push_ns` in the new trailing-period rule references the first `Period` rather than the trailing one and, if that is not for a reason, suggests the rule could potentially be merged with the one on line 1464.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "...
null
NomicFoundation__slang__1572
NomicFoundation/slang
1,572
defect
b0d4f70e83bbe23d1865d7149a2ee37f667cdb80
6894c7937585b0ef70cc85b6f8f0498b022769ff
Added a Slang V2 specific benchmarks
Added V2 benchmarks: - Parser - IR building Notes: - They don't use a compilation unit since we don't have one yet (after #1577 ) - I couldn't use `weighted_pool` as a benchmarked contract since it's not 0.8.x compatible, using `ui_pool_data_provider_v3` instead ## Testing - [x] Run the benchmark https://git...
diff --git a/.github/workflows/benchmark_cargo_slang_v2.yml b/.github/workflows/benchmark_cargo_slang_v2.yml new file mode 100644 index 0000000000..09300ea21a --- /dev/null +++ b/.github/workflows/benchmark_cargo_slang_v2.yml @@ -0,0 +1,63 @@ +name: "benchmark_cargo_slang_v2" + +on: + # Run using manual triggers from ...
9
6
1
[{"id": "G0", "claim": "The benchmarks `black_box` the value returned by `tests_v2::*::run(...)`, but those `run` functions return `()` (the parser's `run` also discards the parsed `Vec<SourceUnit>`), so the optimizer can potentially eliminate the parsing/IR-building work and the benchmark results can be misleading.", ...
null
NomicFoundation__slang__625
NomicFoundation/slang
625
defect
80114a833dc8249447c382bf457215b1a4d9e5ae
8e43cbdb54e4a7fb79512144788aacfa5d1a829a
Implement Iterator for Cursor
Closes #609 Still needs tweaking to adapt to the current Cursor's behavior and needs more documentation/tests for the Visitor trait.
diff --git a/crates/codegen/parser/runtime/src/cursor.rs b/crates/codegen/parser/runtime/src/cursor.rs index 16b26eec78..bbba9af02c 100644 --- a/crates/codegen/parser/runtime/src/cursor.rs +++ b/crates/codegen/parser/runtime/src/cursor.rs @@ -1,3 +1,5 @@ +//! A cursor that can traverse a CST in a DFS pre-order fashion....
4
3
0
[{"id": "G0", "claim": "The Visitor trait methods should name their arguments (e.g. `_node`) instead of using bare `_`, because a name documents the argument's role.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The struct renamed to `RuleNodeP...
null
NomicFoundation__slang__667
NomicFoundation/slang
667
defect
3e4d2b648530016ce5382a6063ddaf75cfe9c110
9f5969cd4ad940e34af151bb7e4f0f1be1658c52
Forbid some empty separated lists in v2
Part of #652 These are a bug-fixes along with regression tests added for each case, we use a definition from v0/v1 for these.
diff --git a/crates/solidity/inputs/language/src/definition.rs b/crates/solidity/inputs/language/src/definition.rs index 17b49f69a0..db214bcf45 100644 --- a/crates/solidity/inputs/language/src/definition.rs +++ b/crates/solidity/inputs/language/src/definition.rs @@ -259,8 +259,7 @@ codegen_language_macros::compile!(Lan...
5
5
1
[{"id": "G0", "claim": "The field name on OverrideSpecifier is misspelled `overriden` and should read `overridden`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The field on OverridePathsDeclaration should be renamed from `overridden` to `path...
null
NomicFoundation__slang__673
NomicFoundation/slang
673
defect
0434b68c9ef9cd1d1dcc07d7ed50e6d63645319b
b71d2c751b14f967e49d1d28487015f319928e37
Appease most of the Clippy lints
Part of #155 These should all be more or less obvious, maybe with the exception of: - ~`comparison_chain` - in this case it might be more noise than it's worth, I'm fine with silencing it here, instead~ EDIT: Actually, let's drop it for now - `single_char_pattern` - in our case we do less `"`-escaping, so that...
diff --git a/.cargo/config.toml b/.cargo/config.toml index bd5416085d..10d9ff264b 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -12,74 +12,7 @@ rustflags = [ # This is a list of allowed Clippy rules for the purposes of gradual migration. # See https://github.com/NomicFoundation/slang/pull/626 "-A", ...
2
2
0
[{"id": "G0", "claim": "The problem-matcher writeln should keep the {severity} argument (rather than hardcoding `error:` in the format string) because it makes clear that this is an actual argument of the matcher pattern with only specific allowed values.", "category": "design", "verdict": "supported", "priority": "P2"...
null
NomicFoundation__slang__800
NomicFoundation/slang
800
defect
29ae3137d98edeeb617fc621339f4698bc21b9e5
465124189203acc702ed26b3948ecf6c6960bd4f
support unicode characters in string literals up to `0.7.0`
Closes #784
diff --git a/.changeset/eighty-moons-talk.md b/.changeset/eighty-moons-talk.md new file mode 100644 index 0000000000..df9c0d7238 --- /dev/null +++ b/.changeset/eighty-moons-talk.md @@ -0,0 +1,5 @@ +--- +"@nomicfoundation/slang": patch +--- + +support unicode characters in `AsciiStringLiterals` up to `0.7.0` diff --git ...
2
2
1
[{"id": "G0", "claim": "Inlining the SingleQuotedHexStringLiteral/DoubleQuotedHexStringLiteral fragments into HexStringLiteral's token definitions goes back on the earlier decision to keep those variants so consumers would not have to scan for the surrounding quotes themselves.", "category": "design", "verdict": "suppo...
null
NomicFoundation__slang__842
NomicFoundation/slang
842
defect
0151086cec650285dfeb11287b50037c2f8a7f85
67e61ff28d07dbed3c36f222a786284dcfbe572e
add `private` to `UnnamedFunctionAttribute` till `0.5.0`
Enforced since https://github.com/ethereum/solidity/pull/4376
diff --git a/.changeset/unlucky-trains-care.md b/.changeset/unlucky-trains-care.md new file mode 100644 index 0000000000..69ea7ef86d --- /dev/null +++ b/.changeset/unlucky-trains-care.md @@ -0,0 +1,5 @@ +--- +"@nomicfoundation/slang": patch +--- + +add `private` to `UnnamedFunctionAttribute` till `0.5.0` diff --git a/c...
1
1
1
[{"id": "G0", "claim": "Add a simple CST test covering the `private` attribute of an unnamed function added by this pull request.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
NomicFoundation__slang__879
NomicFoundation/slang
879
defect
951b58ddb3eaea600ddf44427a82649761c6b651
6352313c5ce708fe67e014f5a2d2034670f946cf
Allow for CRLF line ending as an AsciiEscape
Closes #846
diff --git a/crates/codegen/testing/src/cst_output.rs b/crates/codegen/testing/src/cst_output.rs index 6749cb41e7..e52767acbd 100644 --- a/crates/codegen/testing/src/cst_output.rs +++ b/crates/codegen/testing/src/cst_output.rs @@ -63,6 +63,9 @@ fn collect_parser_tests(data_dir: &Path) -> Result<BTreeMap<String, BTreeSe...
3
2
0
[{"id": "G0", "claim": "The CRLF coverage should be provided by a Rust unit test instead of a .gitattributes-based snapshot input, because escapes are unreadable in input.sol and other tools (prettier, VS Code on-save) may ignore .gitattributes.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": ...
null
NomicFoundation__slang__880
NomicFoundation/slang
880
defect
a1eadc69ff0249db8712274dd6d4ef8d46fdbb8b
9e6992a71c04f0f10d105a0702e11b1afa84f317
Replace `rustflags` with `[lints]`
Closes #837
diff --git a/.cargo/config.toml b/.cargo/config.toml index fa0ad815f5..6ea54550e6 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -4,41 +4,3 @@ debug = true [profile.release] incremental = true lto = true - -[build] -# TODO: Replace with [lints]: -# https://github.com/NomicFoundation/slang/issues/837 -ru...
1
1
0
[{"id": "G0", "claim": "The newly added Cargo.toml has a few doubled comment markers (e.g. '# # Pedantic' and '# # Nursery'), here and below, which should be cleaned up.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
NordSecurity__libtelio__1234
NordSecurity/libtelio
1,234
defect
de1f50d9d707742b31fe6a48d1aee0f9bc9014eb
2188045e88822fd490aee9f9b09b6d67ad76164c
LLT-6122 Reject blacklisted packets in firewall
Instead of dropping blacklisted packets in telio-firewall reject UDP packets with ICMP destination unreachable and UDP packets with TCP_RST. ### :ballot_box_with_check: Definition of Done checklist - [x] Commit history is clean ([requirements](../blob/main/docs/git_commit_messages_requirements.md)) - [x] README.m...
diff --git a/.unreleased/LLT-6122-reject-blacklisted-packets-in-firewall b/.unreleased/LLT-6122-reject-blacklisted-packets-in-firewall new file mode 100644 index 0000000000..a6a9caac9a --- /dev/null +++ b/.unreleased/LLT-6122-reject-blacklisted-packets-in-firewall @@ -0,0 +1 @@ +LLT-6122 Add blacklist feature to libtel...
3
3
0
[{"id": "G0", "claim": "Maybe emit a warning log when an outgoing blacklisted UDP packet is dropped without a response (the IPv6 TODO branch), so the changed behaviour is visible to someone unaware of the change.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "...
null
NordSecurity__libtelio__1237
NordSecurity/libtelio
1,237
defect
4a360ed263c2414ffb5c56328f0b4136459e484f
8a80dd53c21daf6c03691d1f0c2565f451cfc9c1
By default hide thread IDs in logs
Additionaly, dropped `"` characters surrounding module path. ### :ballot_box_with_check: Definition of Done checklist - [x] Commit history is clean ([requirements](../blob/main/docs/git_commit_messages_requirements.md)) - [x] README.md is updated - [x] Functionality is covered by unit or integration tests
diff --git a/.unreleased/LLT-6195-optional-thread-id-in-logs b/.unreleased/LLT-6195-optional-thread-id-in-logs new file mode 100644 index 0000000000..86eacd4917 --- /dev/null +++ b/.unreleased/LLT-6195-optional-thread-id-in-logs @@ -0,0 +1 @@ +Thread IDs are (by default) disabled in the logs diff --git a/crates/telio-m...
1
1
0
[{"id": "G0", "claim": "The `default_test_features()` wrapper added in nat-lab/tests/helpers.py could be inlined into `default_features()` instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
NordSecurity__libtelio__1441
NordSecurity/libtelio
1,441
defect
bca27b2359408c909272af933d35d9398e3f2b64
9bba536d99b7647ac62441b66299a657d056db1e
LLT-5597: Inverval timer for LocalNameServer
### Problem The [update_timers](https://github.com/NordSecurity/libtelio/blob/v5.1.3/crates/telio-dns/src/nameserver.rs#L97) loop is blocked by the `.recv()` call. In cases there is no DNS activity for a long time, the Wireguard Session may expire, and will only be re-established on the next DNS request. ### Solut...
diff --git a/.unreleased/LLT-5597_dns_connection b/.unreleased/LLT-5597_dns_connection new file mode 100644 index 0000000000..e69de29bb2 diff --git a/crates/telio-dns/src/nameserver.rs b/crates/telio-dns/src/nameserver.rs index 06e4b36bb2..25f760bd92 100644 --- a/crates/telio-dns/src/nameserver.rs +++ b/crates/telio-dn...
7
5
0
[{"id": "G0", "claim": "The unused `client_address` field of the test `WGClient` should be removed rather than kept under the underscore-prefixed rename to `_client_address`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new `test_timers_up...
null
NordSecurity__libtelio__1648
NordSecurity/libtelio
1,648
defect
55e9af3d0f3d114868f8dea8ab77ca20a0ab734a
b00686997a6453edf99dcba525eaac25872cdec1
LLT-6769: add tp lite stats collection
### Problem We want to add TP-Lite stats collection to libtelio ### Solution The stats collection is implemented in libfirewall so we just need to configure that. Some inbound packets will be rewritten slightly which requires the packet buffer for that to be mutable, which requires changes to neptun. And tests nee...
diff --git a/.env b/.env index 0ee83bd4e9..1372095faa 100644 --- a/.env +++ b/.env @@ -1 +1 @@ -TRIGGERED_REF=v5.5.0 +TRIGGERED_REF=LLT-6769_update_libfirewall diff --git a/.unreleased/LLT-6769 b/.unreleased/LLT-6769 new file mode 100644 index 0000000000..cc70d625e5 --- /dev/null +++ b/.unreleased/LLT-6769 @@ -0,0 +1 @...
10
6
2
[{"id": "G0", "claim": "Differentiate the TpLiteInitFailed error into distinct variants, since several different failures currently map to this one error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Include the underlying error in the log message...
null
NordSecurity__libtelio__1688
NordSecurity/libtelio
1,688
defect
e099fb6a8f2d0ee8da3dc5376f2b79e9474845eb
9bbe89289f396d1e6359a4b7d5082074b082d6ae
LLT-7052: DNS packet codec
### Problem We want to get rid of all `hickory_server` dependencies, because it set's up a full blown DNS server, we maintain our own (outdated) fork of, and it was source of a lot of bugs. As a first step we need to decide if DNS requests are related to `.nord` zone. If they are, they should handled by our local...
diff --git a/.unreleased/LLT-7052_dns_packet_codec b/.unreleased/LLT-7052_dns_packet_codec new file mode 100644 index 0000000000..e69de29bb2 diff --git a/Cargo.lock b/Cargo.lock index 89bf863958..dd92b33b4e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4787,12 +4787,14 @@ dependencies = [ "mockall", "neptun", "nix...
30
25
2
[{"id": "G0", "claim": "Double-check that all of the SOA record's interval fields are u32 as RFC 1035 specifies.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "DnsQuestion should hold only the three RFC question components (qname, qclass, qtype), an...
null
NordSecurity__libtelio__1720
NordSecurity/libtelio
1,720
defect
37a80b67b474818b39d90fcb447a4e441b8006f2
8a3b2dafc6b541885629d595a5cfcab9a60dacbd
LLT-6774: Adjust for changes to the libfw TP-Lite code
### Problem Libfirewall has had some changes to it's TP-Lite code that require changes to libtelio. - Libfirewall has gotten a simple DNS cache, but libtelio was already handling that case since it relies on the inject packet callbacks for rejected packets - Some metrics have been removed. ### Solution Adjust ...
diff --git a/.env b/.env index 90ab327a14..70e931a6db 100644 --- a/.env +++ b/.env @@ -1 +1 @@ -TRIGGERED_REF=v5.13.3 +TRIGGERED_REF=LLT-6774_adjust_for_libfw_tp_lite_changes diff --git a/.unreleased/LLT-6774 b/.unreleased/LLT-6774 new file mode 100644 index 0000000000..ab604a31d7 --- /dev/null +++ b/.unreleased/LLT-67...
2
2
1
[{"id": "G0", "claim": "The .env TRIGGERED_REF value must be updated before merging instead of keeping the temporary branch-name placeholder the PR set.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Make the affected tests pass instead of fixing th...
null
NordSecurity__libtelio__350
NordSecurity/libtelio
350
defect
a971cad03a045f453434a4fdbc231e12584db70e
da8d92271705e2d29556562f71f439df1d1b5d97
Add configurable TTL value for DNS
### Problem The current TTL value is too high for use with nicknames, but it would be more convenient to have it as a configurable feature. ### Solution Made TTL value configurable ### :ballot_box_with_check: Definition of Done checklist - [x] Commit history is clean ([requirements](../blob/main/docs/git_commi...
diff --git a/crates/telio-dns/src/dns.rs b/crates/telio-dns/src/dns.rs index d493d442c..c5037de98 100644 --- a/crates/telio-dns/src/dns.rs +++ b/crates/telio-dns/src/dns.rs @@ -24,7 +24,7 @@ pub trait DnsResolver { /// Stop the server. async fn stop(&self); /// Insert or update zone records used by the s...
3
3
2
[{"id": "G0", "claim": "The FeatureDns dictionary in src/libtelio.udl is missing a semicolon after its closing brace, as required by the UDL syntax used by every other dictionary in the file.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Instead of...
null
NordSecurity__libtelio__698
NordSecurity/libtelio
698
defect
6f456c3ca3ad0874202a3236f1018b41fb593575
9d0c5985b74c50ba1e247c512431dc91eeb03fe6
Add tracing extra fields to logging callback
### Problem Until now some of information was lost then telio was used from ffi api, because non of the extra fields there send via telio log callback. ### Solution Switched to tracing subscriber based implementation, as it correctly implements span logic, and will allow us to add additional systems in the future ...
diff --git a/.unreleased/LLT-5430 b/.unreleased/LLT-5430 new file mode 100644 index 0000000000..541cbb09a8 --- /dev/null +++ b/.unreleased/LLT-5430 @@ -0,0 +1 @@ +Aditional information fields are now shown in logs diff --git a/Cargo.lock b/Cargo.lock index 6e8977a6df..f24549d74d 100644 --- a/Cargo.lock +++ b/Cargo.lock...
7
6
0
[{"id": "G0", "claim": "The tracing imports (debug/trace) added to the new test module appear unused.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The hard-coded line number 42/43 in the tests/logger.rs payload assertion should be explained or...
null
NordSecurity__libtelio__884
NordSecurity/libtelio
884
defect
fce72a6f9ff9a2b066156336437e062410d65fdd
c3f9052f7c155f715887099be92a1cafff71a109
Detect long blocking tasks
### Problem We suspect that tokio threads are blocked by some blocking operations. ### Solution Print a log when some thread goes from unparked to parked after more than 1s - telio has no place where it expects to be doing work for that long without a break. To make it simpler to match with what was happening thre...
diff --git a/.unreleased/detect-long-blocking-tasks b/.unreleased/detect-long-blocking-tasks new file mode 100644 index 000000000..e69de29bb diff --git a/crates/telio-utils/src/tokio.rs b/crates/telio-utils/src/tokio.rs index b1be8cd3d..6186a68cc 100644 --- a/crates/telio-utils/src/tokio.rs +++ b/crates/telio-utils/src...
2
1
1
[{"id": "G0", "claim": "As implemented, the tracker only reports that a thread was unparked too long rather than what was blocking it; the reviewer suggests logging at unpark time and using stacktraces so the owner of the long task can be tracked down.", "category": "design", "verdict": "opposed", "priority": "P2", "sc...
null
NordSecurity__libtelio__895
NordSecurity/libtelio
895
defect
db14dacc501ed609228aa47a295effb742077e88
84e89e3d73b702120a0e232d259c35dc6d6c2587
Call logging callback on a separate thread
To avoid blocking callers, when logging is slow, the call to the logging callback is moved to the separate therad. Now, logging anything only causes non blocking try_send that will fail if there is no more space in the queue of not yet processed log messages. To have some visibility into how this system performs, co...
diff --git a/src/device.rs b/src/device.rs index 4873ab2d02..0f208b2a19 100644 --- a/src/device.rs +++ b/src/device.rs @@ -99,7 +99,7 @@ pub use wg::{ #[cfg(test)] use wg::tests::AdapterExpectation; -use crate::logging::LOG_CENSOR; +use crate::logging::{logs_dropped_until_now, LOG_CENSOR}; #[derive(Debug, TError...
3
3
0
[{"id": "G0", "claim": "The log buffer size constant should have a considered value and possibly be configurable rather than the arbitrary 20.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tick-triggered dropped-log message should be a warning rathe...
null