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
EasyTier__EasyTier__1512
EasyTier/EasyTier
1,512
defect
71679e889afa8d5fe2d879721d785c061d402a0b
b5c9dcc01ceb7021f7d431d82b2019eb96fda039
Make ospf route more effiencient
Avoid iterate all peer info and conn list when building sync request. This PR is part of a series of patches to support virtual networks with more nodes.
diff --git a/Cargo.lock b/Cargo.lock index 1174a1475b..9a8e8ff18b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2171,6 +2171,7 @@ dependencies = [ "nix 0.29.0", "once_cell", "openssl", + "ordered_hash_map", "parking_lot", "percent-encoding", "petgraph 0.8.1", @@ -5546,6 +5547,15 @@ dependencies = [ "pin-pr...
13
6
1
[{"id": "G0", "claim": "The public RoutePeerInfo constructor that replaces update_self (new_updated/new_updated_self) lacks a docstring; add one explaining its purpose, parameters and return value.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "tr...
null
EasyTier__EasyTier__1842
EasyTier/EasyTier
1,842
defect
ccc684a9aba5f88425a5709e2af63eb3056f0e2e
e423dc9d7d6e1984d20d5a0a807cdfb7a6b1dc99
add token bucket limiter on peer conn recv
We should limit peer conn recv to make sure we don't recv too much from peers.
diff --git a/easytier/src/common/token_bucket.rs b/easytier/src/common/token_bucket.rs index ef81b8de0d..d9c3704ee8 100644 --- a/easytier/src/common/token_bucket.rs +++ b/easytier/src/common/token_bucket.rs @@ -3,6 +3,7 @@ use dashmap::DashMap; use std::sync::atomic::Ordering; use std::sync::{Arc, Mutex}; use std::t...
8
3
0
[{"id": "G0", "claim": "The TokenBucket struct field is misspelled as refill_notifer and should be named refill_notifier.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The local variable in the background refill task is misspelled as refill_not...
null
EasyTier__EasyTier__1970
EasyTier/EasyTier
1,970
defect
c4eacf459177de6c26014febc55affd3e37339a6
2df9f3d95d3a354476150b1104c8bcca23cec3da
fix: resolve slow exit and reduce test timeouts
- Explicitly shutdown tokio runtime on launcher cleanup to fix slow exit - Add timeout to tunnel connector in tests to prevent hanging - Reduce test wait durations from 5s to 100ms for faster test execution - Bump num-bigint-dig from 0.8.4 to 0.8.6
diff --git a/Cargo.lock b/Cargo.lock index b27a6825a2..77e118d2c9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5238,11 +5238,10 @@ dependencies = [ [[package]] name = "num-bigint-dig" -version = "0.8.4" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc84195820f291c...
3
2
2
[{"id": "G0", "claim": "The 100ms connect timeout around connector.connect() in the netns pingpong test is too aggressive for CI or loaded machines (handshake/DNS/netns delays can legitimately exceed it) and may make the test flaky; use a more forgiving timeout on the order of seconds or thread a per-test connect-timeo...
null
EasyTier__EasyTier__1972
EasyTier/EasyTier
1,972
defect
ef44027f571ea71058e68bb20433420fe8aff9f4
4226aca31dffe0e05e17eaa9ba1c630cf7e5a8f5
feat(credential): signed trust propagation for admin/shared mixed topology
## Summary This PR hardens credential trust propagation when Admin and SharedNode peers coexist, and adds end-to-end coverage for cross-admin credential onboarding over a shared transit topology. ## Problem In mixed topologies, trusted credential metadata could be relayed through paths that required stricter publisher...
diff --git a/easytier/src/connector/udp_hole_punch/cone.rs b/easytier/src/connector/udp_hole_punch/cone.rs index d28948a39..69b2d7613 100644 --- a/easytier/src/connector/udp_hole_punch/cone.rs +++ b/easytier/src/connector/udp_hole_punch/cone.rs @@ -98,7 +98,6 @@ impl PunchConeHoleClient { } } - #[tra...
7
2
1
[{"id": "G0", "claim": "ForeignNetworkManager's send path now routes via entry.peer_map.send_msg, bypassing RelayPeerMap::send_msg's secure-session relay encryption/buffering, so if foreign-network forwarding is expected to work under secure-mode relay constraints, sending should go through entry.relay_peer_map or the ...
null
EasyTier__EasyTier__1993
EasyTier/EasyTier
1,993
defect
e6ac31fb20d448579038d976a4550b996e303cf8
c6e0b226437c00eb6de9e52f97023fd1f089fc21
fix: foreign credential handling and trusted key visibility
## Summary This PR addresses several issues related to foreign network credential handling, trusted key visibility, and managed instance lifecycle management. ## Changes ### 1. Fix Foreign Credential Tests (39de88bc) - Enhanced credential revocation and reuse test coverage - Added comprehensive test cases ...
diff --git a/easytier-gui/src-tauri/src/lib.rs b/easytier-gui/src-tauri/src/lib.rs index b72a50251..007df2f98 100644 --- a/easytier-gui/src-tauri/src/lib.rs +++ b/easytier-gui/src-tauri/src/lib.rs @@ -191,7 +191,7 @@ async fn remove_network_instance(app: AppHandle, instance_id: String) -> Result< .await ...
7
3
2
[{"id": "G0", "claim": "The `create_generated_credential_config` helper is declared `async` but contains no `.await` points and should be made non-async (or folded into the existing helper) to simplify call sites and avoid an unnecessary future allocation.", "category": "maintainability", "verdict": "supported", "prior...
null
EasyTier__EasyTier__2003
EasyTier/EasyTier
2,003
defect
2bfdd447592cfe343713a0c6c7c9398c05a9a1f7
1bd227a6e6a2e90bd5a389ec03d48df53b9ae7b1
Add lazy P2P demand tracking and need_p2p override
## Summary - add `lazy_p2p` so nodes only start background P2P for peers that actually have recent business traffic - add `need_p2p` so specific peers can still request eager background P2P even when other nodes enable lazy mode - cover the new behavior with focused connector/peer-manager tests plus three-node integrat...
diff --git a/easytier-web/frontend-lib/src/components/Config.vue b/easytier-web/frontend-lib/src/components/Config.vue index 0e49ada4f..8b13a30c6 100644 --- a/easytier-web/frontend-lib/src/components/Config.vue +++ b/easytier-web/frontend-lib/src/components/Config.vue @@ -93,10 +93,12 @@ const bool_flags: BoolFlag[] = ...
5
5
5
[{"id": "G0", "claim": "The GC expiry check `now.duration_since(*entry.value())` will panic if an entry is inserted after `now` was captured (possible with concurrent mark_recent_traffic while the GC routine iterates); use checked_duration_since/saturating_duration_since or entry.value().elapsed() to avoid a runtime pa...
null
EasyTier__EasyTier__2073
EasyTier/EasyTier
2,073
defect
79b562cdc9f1dc3f52195a47a02cf83542c225ab
d95ef7a651d56b90767789c330b555d9aeb1d434
log: auto-init log for tests
- part of https://github.com/EasyTier/EasyTier/pull/1862
diff --git a/easytier/Cargo.toml b/easytier/Cargo.toml index 410726c895..fbf8d26516 100644 --- a/easytier/Cargo.toml +++ b/easytier/Cargo.toml @@ -347,6 +347,7 @@ rstest = "0.25.0" futures-util = "0.3.31" maplit = "1.0.2" tempfile = "3.22.0" +ctor = "0.8.0" [target.'cfg(target_os = "linux")'.dev-dependencies] de...
7
6
4
[{"id": "G0", "claim": "In the non-test branch stdout and stderr are assigned in reverse, so WARN-and-below logs go to stdout and WARN+ to stderr, opposite of the apparent intent and prior behavior; swap the tuple to (std::io::stdout, std::io::stderr).", "category": "correctness", "verdict": "supported", "priority": "P...
null
EasyTier__EasyTier__2153
EasyTier/EasyTier
2,153
defect
5a1668c7533b4d0064f105e53ad11263651f9101
0c1089ac396e6dd9ae4f63b7d218aa968046b900
fix: avoid panic when validating mapped listeners
Fixes #2152
diff --git a/easytier/src/common/config.rs b/easytier/src/common/config.rs index be95958717..5f410df003 100644 --- a/easytier/src/common/config.rs +++ b/easytier/src/common/config.rs @@ -21,7 +21,7 @@ use crate::{ api::manage::ConfigSource as RpcConfigSource, common::{CompressionAlgoPb, PortForwardCon...
4
3
1
[{"id": "G0", "claim": "A mapped listener with a malformed format must return an error instead of silently swallowing it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The validation should not force the URL to contain a port.", "category": "desi...
null
EasyTier__EasyTier__2188
EasyTier/EasyTier
2,188
defect
ed8df2d58f65795b5691245e649859a53b236cdb
5deb1206cd74853dd7c75b143a54f9e2047935c6
feat: support disabling relay data forwarding
## Summary - add a `disable_relay_data` runtime/config patch option - keep the relay/admin control plane online while dropping relay data-plane forwarding - reuse the existing `avoid_relay_data` feature flag when relay data forwarding is disabled - cover config patch behavior and three-node transit behavior before/afte...
diff --git a/easytier/src/common/config.rs b/easytier/src/common/config.rs index 7ec14f89d..33a723752 100644 --- a/easytier/src/common/config.rs +++ b/easytier/src/common/config.rs @@ -71,6 +71,7 @@ pub fn gen_default_flags() -> Flags { need_p2p: false, instance_recv_bps_limit: u64::MAX, disa...
3
3
3
[{"id": "G0", "claim": "derive_feature_flags only ever sets avoid_relay_data to true when disable_relay_data is enabled and never restores it when disable_relay_data is turned off, so the config patch is effectively one-way and peers may keep treating the node as avoid_relay_data after relay forwarding is re-enabled.",...
null
EbodShojaei__bake__79
EbodShojaei/bake
79
defect
0473f92a0a87d6bc363b6bc644674d33be0c7229
810670a4d5ea75bc3735c6ba2dca5feda7832d99
Align variable assignments
Added functionality which is common in other language formaters for aligning variables and aligning them through comments. By the way, I followed CONTRIBUTING.md but wasn't able to successfully run black, mypy and pre-commit. Possibly instructions are outdated?
diff --git a/INSTALLATION.md b/INSTALLATION.md index 19183b8..4070bfb 100644 --- a/INSTALLATION.md +++ b/INSTALLATION.md @@ -51,6 +51,10 @@ fix_missing_recipe_tabs = true indent_nested_conditionals = false # Indentation settings tab_width = 2 + +# Variable alignment settings +align_variable_assignments = false +alig...
2
2
1
[{"id": "G0", "claim": "Set the assignment_alignment rule's priority to 19 so it runs after the target_spacing rule and variables like VPATH get properly aligned.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add the new variable-alignment configur...
null
Ecwid__consul-api__103
Ecwid/consul-api
103
defect
36721934d1042ae263ec1b03a0b97d43b5024030
f5ef87c0bde24f620c27bb679680d9425e7abde3
Added "path" field to ConsulRawClient
Added "path" field to `ConsulRawClient` to access Consul behind a proxy as mentiond in #77. I also implemented a `Builder` in `ConsulRawClient` to allow easier configuration of a client.
diff --git a/build.gradle b/build.gradle index 15d96902..f9660312 100644 --- a/build.gradle +++ b/build.gradle @@ -9,11 +9,12 @@ repositories { dependencies { compile "com.google.code.gson:gson:2.3" - + compile "org.apache.commons:commons-lang3:3.0" compile "org.apache.httpcomponents:httpcore:4.4.5" compile "o...
1
1
0
[{"id": "G0", "claim": "Adding the org.apache.commons:commons-lang3 dependency just to check if a string is empty (isNotBlank) is not a good idea.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Ecwid__consul-api__76
Ecwid/consul-api
76
defect
1856fce981e5d046758095d05cdd46c179c5230b
ef47083d5f746bde0d01b341139b45ed28f8b829
QueryParams Builder again
Ran into a situation while working this the consul-api where (as stated in another PR) the need for both the DataCenter and blocking information to be set was required. Since the previous PR has not had work done on it in almost a year and noticing the significant number of files changed, we just wanted to go with ...
diff --git a/src/main/java/com/ecwid/consul/v1/QueryParams.java b/src/main/java/com/ecwid/consul/v1/QueryParams.java index 60104238..06fa6a15 100644 --- a/src/main/java/com/ecwid/consul/v1/QueryParams.java +++ b/src/main/java/com/ecwid/consul/v1/QueryParams.java @@ -10,6 +10,47 @@ * @author Vasily Vasilkov (vgv@ecwid...
1
1
0
[{"id": "G0", "claim": "The added Builder code should use consistent formatting, as this project uses tabs.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
EduOJ__backend__142
EduOJ/backend
142
defect
cb7218dada339ca9629a52eea4d238cd9c38edb6
7ab1d22d9aa59eff860b72049f6cda9975188de7
fix: Add `user` filed to get problem set grades API
实现#132 的 Class管理员,查询该Class中某一ProblemSet的全部用户成绩 需求。 继承#133pr的代码写的。
diff --git a/app/controller/problem_set.go b/app/controller/problem_set.go index f6f293da..8ff75df9 100644 --- a/app/controller/problem_set.go +++ b/app/controller/problem_set.go @@ -487,7 +487,7 @@ func RefreshGrades(c echo.Context) error { func GetProblemSetGrades(c echo.Context) error { problemSet := models.Pro...
1
1
0
[{"id": "G0", "claim": "The comments the pull request adds in base/utils/problem_set.go should be written in English instead of Chinese.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
EduOJ__backend__43
EduOJ/backend
43
defect
6389ec638c74996c3cc048eef3db92a7b18b98ff
9ea41f4c1ea4c830f784c4ede1bf667ab06cdf43
Add test for resource
closes #40
diff --git a/app/response/resource/permission.go b/app/response/resource/permission.go index b56b75c7..34f5674d 100644 --- a/app/response/resource/permission.go +++ b/app/response/resource/permission.go @@ -15,37 +15,37 @@ type Role struct { TargetID uint `json:"target_id"` } -func (p *Permission) Conve...
1
1
0
[{"id": "G0", "claim": "Rename the createTestCaseForTest parameters index1 and index2 to meaningful names.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
EduOJ__backend__90
EduOJ/backend
90
defect
0a0e8577fa9a96c109777d270f81ed66de74ca6a
09675a38e9759074e1c4b454fdaa0b857e7608b4
Improve grade
closes #78
diff --git a/app/controller/problem_set.go b/app/controller/problem_set.go index db38d92c..76cceb29 100644 --- a/app/controller/problem_set.go +++ b/app/controller/problem_set.go @@ -460,3 +460,49 @@ func GetProblemSetProblemOutputFile(c echo.Context) error { } return c.Redirect(http.StatusFound, presignedUrl) } +...
4
3
1
[{"id": "G0", "claim": "The JSON field name of the new GetGrades/RefreshGrades response data should be renamed from `grades` to `problem set` (i.e. `problem_set`).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The RefreshGrades section newly added to ap...
null
EgalitarianMonkey__hometube__54
EgalitarianMonkey/hometube
54
defect
2ae9d92bbd725f7362057c4ad2df1ec5cb39602d
102ed5626c32752d3841d72510058b0cb3659000
feat: Jellyfin integration
This would allow HomeTube to trigger a library refresh via the Jellyfin API after a download is copied to the destination. This makes HomeTube even better fit my use case because I have a Jellyfin library pointed at the HomeTube download location so that I can easily watch my downloaded videos in Jellyfin. It still wor...
diff --git a/.env.sample b/.env.sample index 92093d1..5f3ad6d 100644 --- a/.env.sample +++ b/.env.sample @@ -48,6 +48,10 @@ COOKIES_FROM_BROWSER=chrome # Custom yt-dlp arguments (example: --proxy http://proxy:8080 --max-filesize 100M) #YTDLP_CUSTOM_ARGS=--max-filesize 100M --write-info-json +# --- Jellyfin Integrat...
6
6
2
[{"id": "G0", "claim": "The README table should show nothing rather than \"_(empty)_\" for empty default values of JELLYFIN_BASE_URL and JELLYFIN_API_KEY, unless the \"_(empty)_\" style is best practice and applied everywhere else.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "intro...
null
ElementsProject__lightning__1398
ElementsProject/lightning
1,398
defect
0a586acf6ef2d56f1dc2ae920f7eb56a371ca7a6
7a56d3dbc18fbd3ea7fe84186bf8ffae25f6ceb5
Store onchaind state in the database and reduce rescan on startup
With these changes `onchaind` no longer relies on rescanning the blockchain from the wallet's birth height on each startup. Instead we remember the transactions that triggered some behavior in `onchaind` and replay them before syncing with the blockchain. This is the continuation of #1364 which took care of storing ...
diff --git a/lightningd/onchain_control.c b/lightningd/onchain_control.c index 293af7c8a43c..175c1dcdcd4e 100644 --- a/lightningd/onchain_control.c +++ b/lightningd/onchain_control.c @@ -47,13 +47,10 @@ static void onchaind_tell_fulfill(struct channel *channel) } } -static void handle_onchain_init_reply(struct cha...
6
1
0
[{"id": "G0", "claim": "The INSERT INTO channeltxs SQL string mixes trailing and leading commas inconsistently.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G5", "claim": "The SQL string concatenation should use keyword-aligned leading commas, so every conti...
null
ElementsProject__lightning__4949
ElementsProject/lightning
4,949
defect
e2698c5fc3098e3db3e70ce46664a4a07d695a32
3e49eacdaa88ce9e04ab3b3bfd12215271a759bb
hsmd: Add hsmd_new_channel and hsmd_ready_channel messages for validating signers
This PR adds two messages (& replies) to `hsmd_wire.csv`. Summary of changes needed to support fully validating signers here: https://gitlab.com/-/snippets/2179274
diff --git a/hsmd/hsmd.c b/hsmd/hsmd.c index 9e038539c43b..41e6ca25770a 100644 --- a/hsmd/hsmd.c +++ b/hsmd/hsmd.c @@ -639,6 +639,8 @@ static struct io_plan *handle_client(struct io_conn *conn, struct client *c) case WIRE_HSMD_DEV_MEMLEAK: #endif /* DEVELOPER */ + case WIRE_HSMD_NEW_CHANNEL: + case WIRE_HSMD_READY...
2
2
1
[{"id": "G0", "claim": "The new call sites should not rely on wallet_can_spend's internals for the out-parameter when it returns false, and the wallet index should be passed as an optional ?u32 wire field rather than a UINT32_MAX magic value.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope...
null
ElementsProject__lightning__4981
ElementsProject/lightning
4,981
defect
a98ccac7774297f255f0a4f585384609af87c3d6
e11f1f82a12cb3f7c4aeaffbe0554cc3a1d909d6
hsmd: Add fields to hsmd_sign_commitment_tx and hsmd_sign_remote_commitment_tx
Add to hsmd_sign_remote_commitment_tx: - commitment_number - feerate - htlcs Add to hsmd_sign_commitment_tx: - commitment_number These fields are needed for validating signers. [Summary of all changes for validating signers](https://gitlab.com/lightning-signer/docs/-/wikis/C-Lightning-Modifications)
diff --git a/channeld/channeld.c b/channeld/channeld.c index 4b1dcf12052c..cf1af319334d 100644 --- a/channeld/channeld.c +++ b/channeld/channeld.c @@ -1034,11 +1034,30 @@ static struct bitcoin_signature *calc_commitsigs(const tal_t *ctx, const u8 *msg; struct bitcoin_signature *htlc_sigs; + /* Collect the htlcs f...
1
1
0
[{"id": "G0", "claim": "Allocate each new simple_htlc directly with the `htlcs` array as its tal parent instead of allocating it under NULL and stealing it into the array on the next line.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ElementsProject__lightning__4993
ElementsProject/lightning
4,993
defect
d4fee837c227babcd667c05c4d313bf68b325637
45f6b5f5647c1ff2f0f51bde8e5a4c3f419e6c5e
hsmd: Add wallet index metadata to existing messages
Add wallet index and ext_key metadata to PSBT fields of transactions so validating signers can confirm change and shutdown addresses are controlled by the wallet. This is needed for validating signers. [Summary of all changes for validating signers](https://gitlab.com/lightning-signer/docs/-/wikis/C-Lightning-Mod...
diff --git a/channeld/commit_tx.c b/channeld/commit_tx.c index 1e87ae6ee908..4b2857e8e49e 100644 --- a/channeld/commit_tx.c +++ b/channeld/commit_tx.c @@ -285,6 +285,7 @@ struct bitcoin_tx *commit_tx(const tal_t *ctx, * `dust_limit_satoshis`, add a [`to_remote` * output](#to_remote-output). */ + u8 *rede...
1
1
0
[{"id": "G0", "claim": "Do not initialize `u8 *redeem` to NULL at declaration; leave it uninitialized and assign it in each branch (the project convention, which helps valgrind pin down accidental paths), in both channeld/commit_tx.c and common/initial_commit_tx.c.", "category": "maintainability", "verdict": "supported...
null
ElementsProject__lightning__5492
ElementsProject/lightning
5,492
defect
29bf5151f1dd35f308b7d7f413c48158ca00ffd0
1197746940cbc880ad50ef419ec5b62e95f1ace1
Opentracing library
This is as experimental as it gets, but I had some fun trying to shoehorn a tracing library into CLN. Putting it here so I don't lose it, and hopefully get some feedback on the API. Ideally I'd love to integrate closer with `io_loop`, namely having it suspend and resume based on the `io_plan` automatically so users ...
diff --git a/common/Makefile b/common/Makefile index 1944a5f15936..fbefb5eb0831 100644 --- a/common/Makefile +++ b/common/Makefile @@ -88,6 +88,7 @@ COMMON_SRC_NOGEN := \ common/status_wire.c \ common/subdaemon.c \ common/timeout.c \ + common/trace.c \ common/tx_roles.c \ common/type_to_string.c...
4
3
2
[{"id": "G0", "claim": "The project's include-order check fails on common/trace.c because the includes added by this pull request are not in the sorted order the check demands.", "category": "maintainability", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G2", "claim": "Consider enabling the...
null
ElementsProject__lightning__5708
ElementsProject/lightning
5,708
defect
832b2e5e2e045e2b749acd215125241563848edb
a281242633071252fb545bc4288e3017b3916998
Extra address checks, with new HSM support
This is built on top of #5986 (first 9 commits) Closes: #5695
diff --git a/common/hsm_version.h b/common/hsm_version.h index 8acf80112fce..5c09455aac84 100644 --- a/common/hsm_version.h +++ b/common/hsm_version.h @@ -11,7 +11,7 @@ #define HSM_MIN_VERSION 1 /* wire/hsmd_wire.csv contents version: - * dd89bf9323dff42200003fb864abb6608f3aa645b636fdae3ec81d804ac05196 + * d9...
3
3
2
[{"id": "G0", "claim": "The pull request should not create yet more variants of the hsmd init/init_reply messages; instead the HSM version should be moved into the init exchange (version in the actual init_reply, optionally TLV) so schema changes are bundled and the hsm wire protocol breaks less often.", "category": "d...
null
ElementsProject__lightning__5900
ElementsProject/lightning
5,900
defect
456078150a204a3217aa5466007bc19595add19b
58fda80294ad9f44ad27a31fb4bd89a7d7b8a098
Implement flag to require confirmations for v2 opens
Requested-By: @t-bast Respect and enable users to send a flag that requests the peer only use confirmed inputs for any v2 open request. Persists through to RBFs for the same channel as well. Built on #5767, new commits begin at [1e09bdd](https://github.com/ElementsProject/lightning/pull/5900/commits/1e09bdd5c3b87...
diff --git a/lightningd/channel.h b/lightningd/channel.h index ae7fb27ea024..46118be8e778 100644 --- a/lightningd/channel.h +++ b/lightningd/channel.h @@ -70,6 +70,7 @@ struct open_attempt { struct command *cmd; struct amount_sat funding; const u8 *our_upfront_shutdown_script; + bool req_confirmed_ins; /* Fir...
1
1
0
[{"id": "G0", "claim": "The require_confirmed_inputs TLV is declared with an empty data entry in peer_wire.csv, and the reviewer questions why this field exists at all since an empty TLV entry should be fine.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ElementsProject__lightning__6013
ElementsProject/lightning
6,013
defect
a104380e49676e5b517f5c8ec72d414ceaef327f
4f095340d6389fbebe6c332cb9fafe2da3d6ecd9
Fix zombie node_announcement handling
This does some cleanups: by getting rid of node_announcements associated with all-zombie nodes, it should fix the underlying issue, too. Changelog-None (fixes within this release cycle)
diff --git a/devtools/dump-gossipstore.c b/devtools/dump-gossipstore.c index af0da532c067..1f0df55a0720 100644 --- a/devtools/dump-gossipstore.c +++ b/devtools/dump-gossipstore.c @@ -74,7 +74,7 @@ int main(int argc, char *argv[]) deleted = (flags & GOSSIP_STORE_DELETED_BIT); push = (flags & GOSSIP_STORE_PUSH_BIT)...
2
1
1
[{"id": "G0", "claim": "The reviewer suggests the PR could catch zombie node announcements as a pending_node_announcement so nodes get back into the graph faster, but wants data collected over the release to see if it is even worth it.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduc...
null
ElementsProject__lightning__6133
ElementsProject/lightning
6,133
defect
4c6966d16aab96a9d86a2a03a4a98c6b1dba2c20
4469e27ddd089f6a1f8f4a1ce2c7c488c7ccf73f
Fix master where old dbs have invalid PSBTs
After this passes CI, I'll test on my node, see if I can bring it back online! Edit: it worked! Changelog-None: this problam was only revealed with libwally upgrade, this release cycle.
diff --git a/wallet/Makefile b/wallet/Makefile index 58d546416859..c3707dde20c5 100644 --- a/wallet/Makefile +++ b/wallet/Makefile @@ -3,6 +3,7 @@ WALLET_LIB_SRC := \ wallet/db.c \ wallet/invoices.c \ + wallet/psbt_fixup.c \ wallet/txfilter.c \ wallet/wallet.c \ wallet/walletrpc.c diff --git a/wallet/db.c...
2
1
0
[{"id": "G0", "claim": "The test should check that both branches are exercised at least once, to cover both the noop and the real-fixup behavior.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "psbt_fixup only rewrites the first PSBT_IN_PARTIAL_SIG it me...
null
ElementsProject__lightning__6286
ElementsProject/lightning
6,286
defect
d1cf88c62e8ff10485f3b40cddb93fc0063ba92a
1af9802eeb8efecb45a62f5a032b91d0fdb05308
wallet: fix crash on listtransactions.
We removed the (experimental-only!) annotation output in 611795beee1bdecbde9e7b8c17db96d0934346be but we still loaded them from the db. Turns out that we were putting bogus annotations into the db, and accessing out of range when loading them. Consider the following db entry in transaction_annotations: ``` CREA...
diff --git a/wallet/wallet.c b/wallet/wallet.c index 12dccbb0be8a..58a53a5ba905 100644 --- a/wallet/wallet.c +++ b/wallet/wallet.c @@ -4809,11 +4809,7 @@ bool wallet_forward_delete(struct wallet *w, struct wallet_transaction *wallet_transactions_get(struct wallet *w, const tal_t *ctx) { struct db_stmt *stmt; - stru...
1
1
1
[{"id": "G0", "claim": "The PR's rewritten wallet_transactions_get query still selects the c.scid column while the change removed every line that accessed it, so the never-accessed binding makes listtransactions abort (FATAL SIGNAL 6) in db_stmt_free; the only thing missing in the PR is adjusting that binding (dropping...
null
ElementsProject__lightning__6308
ElementsProject/lightning
6,308
defect
1e457bd48d5bc79a06fb6c076c6478a36e7ef5e0
a5cdece18abfa57c2292c2dc3ce71eeab3885f2e
Persist feature bits across restarts
On channel creation with a peer, we can persist feature bits of that peer and load them on restart. This allows more sane behavior after a restart before we've reconnected with a peer, f.e. when deciding if a peer has opted in to `anysegwit` when creating taproot outputs. Needed for https://github.com/ElementsProjec...
diff --git a/lightningd/opening_control.c b/lightningd/opening_control.c index 9dddddf584d7..23fd552d35bd 100644 --- a/lightningd/opening_control.c +++ b/lightningd/opening_control.c @@ -1351,6 +1351,7 @@ static struct channel *stub_chan(struct command *cmd, 0, &nodeid, &wint, + NULL, false); }...
5
3
0
[{"id": "G0", "claim": "The new `their_features` parameter line in new_peer (lightningd/peer_control.c) is indented with tab characters instead of aligning with the surrounding parameters.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new `...
null
ElementsProject__lightning__6334
ElementsProject/lightning
6,334
defect
85992e6e48a6131afee9b24d8b8f99ecd268d73e
ad21d648382f5320a786787c921dc8c6e29ef731
Anchor with zero fee htlc support (aka. experimental-anchors)
Cleanups, new JSON fields for anchor support, anchor spending support so we can lowball our commitment tx fees, and min-emergency-msat for reserving some sats for closing anchor channels (respecting that meant quite a neatning/rework of our fundchannel and withdraw plugin ops). I expect this to be experimental for o...
diff --git a/bitcoin/psbt.c b/bitcoin/psbt.c index 446edf67a126..92014e2e3288 100644 --- a/bitcoin/psbt.c +++ b/bitcoin/psbt.c @@ -586,7 +586,7 @@ bool psbt_finalize(struct wally_psbt *psbt) tal_wally_start(); /* Wally doesn't know how to finalize P2WSH; this happens with - * option_anchor_outputs, and finalizin...
1
1
1
[{"id": "G0", "claim": "The node should not get this far with a signer that cannot sign anchorspends: the HSM capability should be checked earlier (e.g. at startup) rather than logging broken only when anchor details are created.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
ElementsProject__lightning__6466
ElementsProject/lightning
6,466
defect
97af40c545e4e98490014702094d79b9e147bd85
bb67bd525177c8edfdd9bf205081877fbc244a36
add a method to get hsm_secret in bip93 format inside hsmtool
Here `getcodexsecret` can be used to fetch hsm_secret in bip93 format
diff --git a/common/codex32.c b/common/codex32.c index b611c7484ac5..e84465ad236c 100644 --- a/common/codex32.c +++ b/common/codex32.c @@ -166,6 +166,15 @@ static void input_data_str(u8 *generator, u8 *residue, const char *datastr, size return; } +static void input_own_target(u8 *generator, u8 *residue, u8 *target...
8
8
4
[{"id": "G0", "claim": "The new loop should declare its counter in the for statement (`for (size_t i = 0; ...)`) instead of declaring `size_t i = 0;` outside the loop.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "input_own_target should take `...
null
ElementsProject__lightning__6676
ElementsProject/lightning
6,676
defect
e66d642e3d707c35d1d346cb64038ef0188de22b
1910afcbbbfd346269abe1d9b5d688c77a64fd69
addpsbtoutput: New onchain command for PSBT output and splice_out tests
Note: This now depends on PR #6677 New `addpsbtoutput` command for creating a PSBT that can receive funds to the on-chain wallet.
diff --git a/contrib/pyln-client/pyln/client/lightning.py b/contrib/pyln-client/pyln/client/lightning.py index b535f88e9bab..23ab0419ea66 100644 --- a/contrib/pyln-client/pyln/client/lightning.py +++ b/contrib/pyln-client/pyln/client/lightning.py @@ -1523,6 +1523,17 @@ def fundpsbt(self, satoshi, feerate, startweight, ...
8
6
1
[{"id": "G0", "claim": "The outnum entry in the recvpsbt response schema is wrong: its description says the output is 'change' when it is actually the output that was asked for (the reviewer first wondered whether the field should be optional).", "category": "documentation", "verdict": "supported", "priority": "P2", "s...
null
ElementsProject__lightning__6751
ElementsProject/lightning
6,751
defect
176a58f9e0a4b74ff01a863715015a66710b481d
28c1f724f4fa0aef8a3c34521f72bee5159b44fb
Plugin and broadcast cleanups
These were pre-work I had to do when cleaning anchors. The plugin code was confusing, so I unified the "forwarding a JSON request" vs "our own JSON request", especially handling the plugin dying during these (we didn't handle the latter case at all, we would deref freed memory). I then go on to refine our broadcast...
diff --git a/lightningd/anchorspend.c b/lightningd/anchorspend.c index 3fa66ba14be9..e393f07d956e 100644 --- a/lightningd/anchorspend.c +++ b/lightningd/anchorspend.c @@ -386,7 +386,7 @@ bool commit_tx_boost(struct channel *channel, fmt_amount_sat(tmpctx, adet->anchor_spend_fee)); /* Send it! */ - broadcast_tx(...
1
1
0
[{"id": "G0", "claim": "A CI run shows lightningd dying with FATAL SIGNAL 6 (fatal in subd_send_msg via try_update_blockheight while plugin-funder cleans up inflights for a freed peer), and the reviewer asks whether the PR's new change causes this not-evident problem rather than it being just a daemon dying at an unluc...
null
ElementsProject__lightning__6762
ElementsProject/lightning
6,762
defect
1a46b376096c3b964f1ddfbf8866b6cc9c07430a
12e52f63af1fc713afdb8ea71f36ff90d55f93db
psbt: fix PSBT mutation in the changeset
During the changeset calculation after the `openchannel2_sign` hook. So this commit patches the problem with the following change: - Addressed an issue where `psbt_get_changeset` was modifying the original PSBT unnecessarily. - This modification led to problems with a different hsmd, as referenced in [Issue #667...
diff --git a/bitcoin/psbt.c b/bitcoin/psbt.c index c721dbb8a92b..e813a0e107fa 100644 --- a/bitcoin/psbt.c +++ b/bitcoin/psbt.c @@ -36,7 +36,7 @@ struct wally_psbt *create_psbt(const tal_t *ctx, size_t num_inputs, size_t num_o return psbt; } -struct wally_psbt *clone_psbt(const tal_t *ctx, struct wally_psbt *psbt) ...
3
3
2
[{"id": "G0", "claim": "The change makes helpers in common/psbt_open.c (sort_inputs, linearize_input and psbt_contribs_changed) allocate from tmpctx, which is not passed in, binding common code to the existence of the tmpctx global.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"...
null
ElementsProject__lightning__6893
ElementsProject/lightning
6,893
defect
56d42ea767f9097e5397e08aa433d2f93ad46efb
a49806d461b2dc2bcf024c1763db383975fd655e
renepay: accomodate fees in the payment flow
Min. Cost Flow (MCF) does not resolve the correct amount in channel forwarding because the algorithm dismisses the amounts paid as fees to the routing nodes. The root of this problem is that flow conservation is assumed for simplicity such that the sender is the only *source* and the recepient is the only *sink*. T...
diff --git a/plugins/renepay/flow.c b/plugins/renepay/flow.c index 82d3fd978578..66bd6724266d 100644 --- a/plugins/renepay/flow.c +++ b/plugins/renepay/flow.c @@ -3,6 +3,8 @@ #include <ccan/asort/asort.h> #include <ccan/tal/str/str.h> #include <ccan/tal/tal.h> +#include <common/fp16.h> +#include <common/overflows.h>...
3
1
0
[{"id": "G0", "claim": "Prefer size_t over int for the simple loop counters added in plugins/renepay/flow.c.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "`make check-includes` fails for this pull request and needs an easy fix.", "category": "c...
null
ElementsProject__lightning__6940
ElementsProject/lightning
6,940
defect
b5bd9072457b6e6a93687f40064859bdbdaac347
038fce64e1896f1c7633ed5c1b34550f71ab31f4
Splice: Complete tx_abort implementation
Adds support for `tx_abort` including sending, receiving, and ACK'ing. When `tx_abort` is confirmed in `channeld` we notify `lightningd` and shutdown. `lightningd` then restarts the channeld daemon. This is all done without breaking the connection and special care is made to connect the daemon to the existing con...
diff --git a/wallet/wallet.c b/wallet/wallet.c index a75ceba2e4f2..fe4bf93a55be 100644 --- a/wallet/wallet.c +++ b/wallet/wallet.c @@ -1259,6 +1259,24 @@ void wallet_inflight_add(struct wallet *w, struct channel_inflight *inflight) tal_free(stmt); } +void wallet_inflight_del(struct wallet *w, struct channel *chan,...
2
2
1
[{"id": "G0", "claim": "wallet_inflight_del should take const struct channel *chan and const struct channel_inflight *inflight.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "wallet_inflight_del should not free the caller's inflight; that cleanu...
null
ElementsProject__lightning__7086
ElementsProject/lightning
7,086
defect
df0f4c4666ee48d5992b9599e106bc5c80799538
6705805c76972e5b1cba8ad37b56d6b705aae869
BOLT catchup, including dual funding!
@niftynei I can't find one quote: does the 110 minimum witness weight thing still apply? See the second-last commit...
diff --git a/Makefile b/Makefile index bd1a3f723448..446dd3fad06d 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ CCANDIR := ccan # Where we keep the BOLT RFCs BOLTDIR := ../bolts/ -DEFAULT_BOLTVERSION := 6e85df448bfee7d10f26aabb06b8eba3d7505888 +DEFAULT_BOLTVERSION := 0bdaa8b9f65fc82a178d0d8722d352f2320b02f...
2
1
1
[{"id": "G0", "claim": "The CI is failing with an assertion error in tests/test_opening.py::test_rbf_non_last_mined, a failure the reviewer could reproduce locally.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The spec should be updated with the \"rou...
null
ElementsProject__lightning__7088
ElementsProject/lightning
7,088
defect
cdb0001ce6a13360020dbbddc30dd428955fc3b0
209f2d185a3f33094c30507a7d9d13279dc86414
hsmd: increase the min version
Increasing the minimum version of the hsmd due to that we added new code that required the hsmd to sign an announcement. One of the solutions is to increase the minimum version in this way a signer like VLS fails directly during the init phase. Fixes: https://github.com/ElementsProject/lightning/issues/7074
diff --git a/common/hsm_version.h b/common/hsm_version.h index 5a2c2deac84a..bb9d561f6ceb 100644 --- a/common/hsm_version.h +++ b/common/hsm_version.h @@ -23,6 +23,6 @@ * v5 with hsmd_revoke_commitment_tx: 5742538f87ef5d5bf55b66dc19e52c8683cfeb1b887d3e64ba530ba9a4d8e638 * v5 with sign_any_cannouncement: 5fdb9068c43...
3
3
2
[{"id": "G0", "claim": "Using the HSM_{MIN,MAX}_VERSION constants for the native hsmd's own protocol range is incorrect because those constants are for the daemons other than the hsmd, and the native hsmd's minimum should be 4 (the first version supporting hsmd_init_reply_v4 with capabilities), not 5.", "category": "co...
null
ElementsProject__lightning__7159
ElementsProject/lightning
7,159
defect
7fe22b29e739061aa2b1b14a7617b5a9c9760eac
d94d15d71d1f3271c4409e9c5fea1f77fc2f0d1f
Renepay patch htlc_max=0 cases
This solves issue #7150. Renepay does not handle properly the case in which `htlcmax=0` in the gossmap channels. There are two cases that are to be considered separately: local channels and remote channels. ## Local channels When a local channel has `htlcmax=0` the sender should ignore this value because the `h...
diff --git a/common/gossmods_listpeerchannels.c b/common/gossmods_listpeerchannels.c index 731c63ae7da1..36a24bd6b209 100644 --- a/common/gossmods_listpeerchannels.c +++ b/common/gossmods_listpeerchannels.c @@ -9,16 +9,23 @@ void gossmod_add_localchan(struct gossmap_localmods *mods, const struct node_id *self, ...
4
2
0
[{"id": "G0", "claim": "The htlc_max bound could instead be applied to each arc capacity individually (dropping the shared cap_on_capacity accumulator), since the increasing cost slopes would already discourage sending multiple HTLCs through the same channel.", "category": "design", "verdict": "opposed", "priority": "P...
null
ElementsProject__lightning__7593
ElementsProject/lightning
7,593
defect
b99fd0239354a4e73d9e71345114d1f28ed3a0b4
84f55b18832d8d6ffee43ba8aef7b6a4c5e8cb7d
Fix: don't send anchorspends for onchain commitment txs
Ordering we were using for setting the channel state was causing us to send anchorspend transactions for onchain commitments. This would occasionally show up in the CI as a flake, due to a race condition with onchaind adding commitment tx utxos that were then picked up in the anchorspend construction, which would fa...
diff --git a/lightningd/anchorspend.c b/lightningd/anchorspend.c index 036850b2e00a..277e587763da 100644 --- a/lightningd/anchorspend.c +++ b/lightningd/anchorspend.c @@ -270,7 +270,7 @@ static struct bitcoin_tx *spend_anchor(const tal_t *ctx, struct amount_msat total_value; const u8 *msg; - /* Estimate weight of...
1
1
1
[{"id": "G0", "claim": "The change is buggy and is causing the CI failures: the 'Not dropping our unilateral close onchain since we already saw theirs confirm' path is taken even though l2 is the one which did the unilateral close, which is wrong.", "category": "correctness", "verdict": "supported", "priority": "P0", "...
null
ElementsProject__lightning__7772
ElementsProject/lightning
7,772
defect
b327bd30c32c034a8350460066b9e7354bfa4ba1
1641921023e266cb237d6843602197bc80707aaa
Update emergency.recover after every 'commitment_revocation' so that user can sweep funds by penalty transaction.
This PR would enable nodes to create penalty transaction when the peer publishes an old revoked state using the emergency.recover. Addresses: #7696
diff --git a/common/scb_wire.csv b/common/scb_wire.csv index 6410ff4942e6..a526f27b347c 100644 --- a/common/scb_wire.csv +++ b/common/scb_wire.csv @@ -1,7 +1,10 @@ +#include <ccan/crypto/shachain/shachain.h> #include <common/node_id.h> #include <common/channel_id.h> +#include <common/htlc_wire.h> #include <common/wi...
5
5
2
[{"id": "G0", "claim": "Use the CROSS_TYPE_ASSIGNMENT macro instead of memcpy when copying the shachain hash, since the macro checks the two types are the same size.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The change does not work for old...
null
ElementsProject__lightning__7800
ElementsProject/lightning
7,800
defect
48f50a26bf233ffa73ab2c77b2e09708c2a42a56
d3769c1e7b1686d358b8b51f975a6557d20097e2
New RPC command `listaddresses`
Changelog-Added: New rpc `listaddresses` to list issued addresses from the node. Closes #7439
diff --git a/.gitignore b/.gitignore index b7f2de9530f4..dcc908b1d194 100644 --- a/.gitignore +++ b/.gitignore @@ -97,3 +97,4 @@ autogenerate-examples-status.log # Ignore nix outputs result result-[0-9]* +tests/plugins/channeld_fakenet diff --git a/contrib/msggen/msggen/schema.json b/contrib/msggen/msggen/schema.jso...
9
9
4
[{"id": "G0", "claim": "The description of the `address` request parameter should be more verbose, detailing that the given address is being looked up.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The listaddresses output should not return `pubk...
null
ElementsProject__lightning__7839
ElementsProject/lightning
7,839
defect
9ed7260328bbb3837c510a53f4423d119b4ad287
afd7553f0a18052bdd86292ebab7f47b26336efa
Fix offer payment failure
Based on #7610 this fixes a great error which @vincenzopalazzo found (and makes it easier to find similar errors in future, with better logging). Closes: #7610
diff --git a/common/onion_decode.c b/common/onion_decode.c index 7711790f29f9..d1bc9b0bdea6 100644 --- a/common/onion_decode.c +++ b/common/onion_decode.c @@ -3,10 +3,12 @@ #include <ccan/array_size/array_size.h> #include <ccan/cast/cast.h> #include <ccan/mem/mem.h> +#include <ccan/tal/str/str.h> #include <common/b...
2
1
1
[{"id": "G0", "claim": "The PR's CI fails: tests/test_pay.py::test_offer_with_private_channels_multyhop2 times out ('Unable to find \"[re.compile('Server started with public key')]\" in logs', nodes exit with return code 1) and tests/test_xpay.py::test_xpay_simple fails because the produced error no longer matches the ...
null
ElementsProject__lightning__8021
ElementsProject/lightning
8,021
defect
54555ce5e745daad2c34c861340dfb13ea05354f
e2c1a521e0372e3db83cc13ddd0837d89b870d1c
Splice: Interop Final (probably) with Eclair
Interop testing with Eclair revealed an issue with remote funding key rotation. This searches for the funding output using the rotated remote funding pubkey instead of the current funding pubkey. Update the variable name to be more clear which this represents. Implement new pending spec changes for `splice_loc...
diff --git a/channeld/channeld.c b/channeld/channeld.c index c00081a78e0e..f7f81d44dbdf 100644 --- a/channeld/channeld.c +++ b/channeld/channeld.c @@ -3306,7 +3306,7 @@ static void resume_splice_negotiation(struct peer *peer, struct bitcoin_tx *bitcoin_tx; u32 splice_funding_index; const u8 *msg, *sigmsg; - u32 c...
9
8
2
[{"id": "G0", "claim": "Add the new inflight `is_locked` field to the wallet inflight tests in wallet/tests/run-wallet.c.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "`channel->our_funds` is only updated when a channel is created or spliced and not wh...
null
ElementsProject__lightning__8196
ElementsProject/lightning
8,196
defect
427c4c5ce0496795d6361ffc885010298bceff10
5b5c359504ec4a4af50127c44237a9683380f9af
Release 25.02.1
Crash fixes, missing output fixes, oh my! Changelog-None: literally updates the Changelog.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 36eb6c2d04ac..e0c10b9bf8f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,28 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## [25.02.1] - 2025-03-04: "...
1
1
1
[{"id": "G0", "claim": "The CHANGELOG heading added by this PR dates release 25.02.1 as 2025-03-04 and should instead read 2025-04-03.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
ElementsProject__lightning__8335
ElementsProject/lightning
8,335
defect
420cff9350e48bf792e6223202082c430cdd9f56
d0b4b84e5fa44e0dd271bf083502b8975a960dd4
splice: Implement `start_batch`
Implement the sending of `start_batch` as per t-bast’s spec. We need to receive `start_batch` as the new spec moves `batch_size` out of `commitment_signed` and instead relays that value in `start_batch`. For sending we implement an internal batching approach. This approach bundles all the message bytes for `start_ba...
diff --git a/channeld/channeld.c b/channeld/channeld.c index 21bfcd2d6c5f..0f8dd9a2d889 100644 --- a/channeld/channeld.c +++ b/channeld/channeld.c @@ -1160,12 +1160,7 @@ static u8 *send_commit_part(const tal_t *ctx, (int)splice_amnt, (int)remote_splice_amnt, remote_index); - if (batch_size > 1) { -...
3
3
2
[{"id": "G0", "claim": "start_batch should include a `message_type` TLV and, for the initial implementation, only be allowed when that TLV is set to 132 (`commitment_signed`).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment explaining what t...
null
ElementsProject__lightning__8354
ElementsProject/lightning
8,354
defect
40d319b7beb8568d8cc792079a8a3a97ceca7f3a
d2a9afd284f537570705ab627320864e5e66bcb7
xpay notify attempts
Closes: https://github.com/ElementsProject/lightning/issues/8036
diff --git a/common/json_stream.c b/common/json_stream.c index 60517b3fbc82..7d1cc92cbd9a 100644 --- a/common/json_stream.c +++ b/common/json_stream.c @@ -372,6 +372,14 @@ void json_add_timeabs(struct json_stream *result, const char *fieldname, (u64)t.ts.tv_sec, (u64)t.ts.tv_nsec); } +void json_add_timere...
9
7
3
[{"id": "G0", "claim": "Fix the typo in the xpay_attempt_start description: \"adn\" should be \"and\" (\"which will be the same across all parts, and `attempt_msat` is the\").", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The example contradicts ...
null
ElementsProject__lightning__8363
ElementsProject/lightning
8,363
defect
ed2b0eff9ab024e2d0f77f07502b4b4790e628a2
40dab8635d70a87da281d866bff0b92999680e4f
Cross channel Splice testing
Implemented a test for a splice-in into two channels at the same time using one transaction. The test revealed three issues: 1) We need to sign the shared output earlier in the splicing process 52bd2db016cebb60d3fafbf4aefdb548de4aaf5c 2) We need to ignore SIGHASH setting while computing `interactive-tx` diffs a9d1...
diff --git a/channeld/channeld.c b/channeld/channeld.c index 21bfcd2d6c5f..f00b2b1ea699 100644 --- a/channeld/channeld.c +++ b/channeld/channeld.c @@ -3512,6 +3512,7 @@ static void resume_splice_negotiation(struct peer *peer, const u8 *msg_received; struct witness **inws; struct bitcoin_signature *their_sig; + si...
1
1
0
[{"id": "G0", "claim": "Extract the remote-inputs-needing-sigs counting loop in resume_splice_negotiation into a separate function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ElementsProject__lightning__8387
ElementsProject/lightning
8,387
defect
c50bd381ec1c63159d4f5a06e184ffbf49c0d3a4
8746c18220a2c9e02455810a4c75f2a810dc0087
Allow routing by older scids when we splice
We didn't remember old scids, so as soon as we spliced we fail to forward for an hour, until we can send the new channel_announcement and it propagates. Oops!
diff --git a/lightningd/channel.c b/lightningd/channel.c index 94ff06c7b842..cd36cdfb400a 100644 --- a/lightningd/channel.c +++ b/lightningd/channel.c @@ -242,6 +242,75 @@ struct open_attempt *new_channel_open_attempt(struct channel *channel) return oa; } +static void chanmap_remove(struct lightningd *ld, + c...
1
1
1
[{"id": "G0", "claim": "opening_control.c's stub_chan() sets scid, alias[LOCAL] and alias[REMOTE] all to 1:1:1, which the reviewer believes makes the PR's new chanmap_add crash on the duplicate entry; either chanmap must support duplicates or the stub's 1:1:1 must be kept out of the chanmap (never added, as it is not a...
null
ElementsProject__lightning__8420
ElementsProject/lightning
8,420
defect
420cff9350e48bf792e6223202082c430cdd9f56
190411fad9cbfa623cacae70e23f0eb7e84083b8
Channel: Fix channel state max and add regression test
Twice now that I've been aware of the channel state max wasn't updated and it slipped through without being noticed. This PR adds an explicit test so CI will fail if the max value isn't updated.
diff --git a/common/test/run-channel_type.c b/common/test/run-channel_type.c index 9e2bea287343..422818ea0b6e 100644 --- a/common/test/run-channel_type.c +++ b/common/test/run-channel_type.c @@ -4,6 +4,7 @@ #include <ccan/tal/str/str.h> #include <common/setup.h> #include <stdio.h> +#include <lightningd/channel_state...
2
1
1
[{"id": "G0", "claim": "Add a sentinel final enum state and define CHANNEL_STATE_MAX from it (CHANNEL_STATE_LIMIT - 1) so the macro does not have to be updated every time a new channel state is added.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Remo...
null
ElementsProject__lightning__8433
ElementsProject/lightning
8,433
defect
c1ad55c601a25a462ac15d51db03cf8dc68a370d
c624f95ee6d535a3f2e5aad07b14e4a63d75b230
Set custom tlvs to `update_add_htlc` via the `htlc_accepted_hook`
> [!IMPORTANT] > > 25.09 FREEZE July 28TH: Non-bugfix PRs not ready by this date will wait for 25.12. > > RC1 is scheduled on _August 11th_ > > The final release is scheduled for September 1st. ## Checklist Before submitting the PR, ensure the following tasks are completed. If an item is not applicable to y...
diff --git a/channeld/channeld.c b/channeld/channeld.c index 21bfcd2d6c5f..85dd025c4737 100644 --- a/channeld/channeld.c +++ b/channeld/channeld.c @@ -621,9 +621,14 @@ static void handle_peer_add_htlc(struct peer *peer, const u8 *msg) peer_failed_warn(peer->pps, &peer->channel_id, "Bad peer_add_htlc %s", tal_h...
2
2
1
[{"id": "G0", "claim": "Annotating the extra_tlvs parameters TAKES makes the callee reparent the caller's array while still cloning the field values, which can leave the old .value allocations dangling (a memory leak); the reviewer asks to drop the TAKES annotation and not call with take() so the caller can free the ar...
null
ElementsProject__lightning__8555
ElementsProject/lightning
8,555
defect
16252fd72dcb52a77149d553884ea176be7ba8c1
57e27bf7c72cc9389cc235468d9d482e54374d73
Misc fixes for generating examples
All the issues I found while trying to make deterministic core lightning runs. 1. A crash when we splice a confirmed-but-unannounced channel. 2. `listtransactions` not noticing when a sendpsbt transaction gets mined, if there are no outputs to us. 3. Improve robustness of notleak() macro so we can use it very earl...
diff --git a/lightningd/channel_control.c b/lightningd/channel_control.c index a72f959837ae..d44e03323ba6 100644 --- a/lightningd/channel_control.c +++ b/lightningd/channel_control.c @@ -1134,7 +1134,8 @@ static void handle_peer_splice_locked(struct channel *channel, const u8 *msg) wallet_htlcsigs_confirm_inflight(ch...
2
2
2
[{"id": "G0", "claim": "Perhaps the newly added skip of inflights without splice_remote_funding should be an assert or channel failure instead of silently continuing, since splice_remote_funding is required now and in a normal context this condition is an internal error.", "category": "correctness", "verdict": "support...
null
ElementsProject__lightning__8688
ElementsProject/lightning
8,688
defect
c29db2458e644b8132c0fd3b0ef6d6eb554e9414
b9c65bae660c488c8aad90911365da46bdec7acf
askrene: handle maxparts better.
This is the algorithm recommended by @Lagrang3 . Much is neatening and tweaking existing code, though. 1. Removal of unnecessary caching. 2. Simplify sorting code (sort array of flows directly, don't use index arrays) 3. make increase_flows() more general, so it can be used for > 2% increase. 4. Use increase_flo...
diff --git a/channeld/full_channel.c b/channeld/full_channel.c index eca0ee5228a8..c3df6ee66900 100644 --- a/channeld/full_channel.c +++ b/channeld/full_channel.c @@ -416,7 +416,7 @@ static bool get_room_above_reserve(const struct channel *channel, return false; } - if (!amount_msat_sub_sat(remainder, *remainder...
3
2
1
[{"id": "G0", "claim": "Flows dropped from the flows array (tal_arr_remove in remove_excess, refine_flows and squash_flows, and tal_resize down in reduce_num_flows) are not freed, and the reviewer asks that they be tal_free'd when discarded.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sc...
null
ElementsProject__lightning__8702
ElementsProject/lightning
8,702
defect
55d622bd0ed718e97f8a8c5e192f5150a74c77d5
8f9cdebd73057c663a584fe7929d4d348b3e0a22
Downgrade tool
Fairly easy, for this release. The real problem was writing the tests!
diff --git a/wallet/db.c b/wallet/db.c index a0387220b119..7aa4a2c8210e 100644 --- a/wallet/db.c +++ b/wallet/db.c @@ -20,6 +20,9 @@ struct migration { const char *sql; void (*func)(struct lightningd *ld, struct db *db); + const char *revertsql; + /* If non-NULL, returns string explaining why downgrade is impossib...
3
1
1
[{"id": "G0", "claim": "Asks whether the sqlite3 >= 3.35 requirement (for ALTER TABLE ... DROP COLUMN in the downgrade revert) can be enforced, or whether it is acceptable to assume anyone running > v25.09 has an updated sqlite.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced...
null
ElementsProject__lightning__8817
ElementsProject/lightning
8,817
defect
29465f5240c8f9fb77e1d10a83efad106bf85852
a4ef31fd5a4db3e7a6b2b18f17d9137d12318f0f
Splice Interop
A collection of fixes for interop with Eclair. * Clearer logging of splice flow errors. * Allowing `channel_ready` messages to occur during splice reestablish flow. * Fixing of splice related RPC user shown errors code -- they could come from multiple places and cause a crash if they do. * Implement the triggerin...
diff --git a/channeld/channeld.c b/channeld/channeld.c index bef107c66f4e..35fc2c3af328 100644 --- a/channeld/channeld.c +++ b/channeld/channeld.c @@ -3015,13 +3015,17 @@ static const u8 *peer_expect_msg_three(const tal_t *ctx, msg = peer_read(ctx, peer->pps); type = fromwire_peektype(msg); + if (type == WIRE_ERR...
4
4
3
[{"id": "G0", "claim": "The new handling of announcement_signatures retransmission introduced a regression: when the peer ignores the retransmitted announcement_signatures and reconnects a second time asking again, cln sends an error and force-closes the channel (Internal error: bad channeld_reestablished).", "category...
null
EleutherAI__lm-evaluation-harness__1197
EleutherAI/lm-evaluation-harness
1,197
defect
84790e9931dfc453bab4c0dc17c2f69d6bdce6aa
6cdcb5d72ba1917cd1ef8694701c7f5010baacc9
Consolidate batching
Took a stab at merging the Reorderer, the Grouper and the batching loader into one object. I think the code looks much more cleaner now, especially for `generate_until` after removing the nested loops and consolidating it into a flat structure. Let me know what you think! Not entirely committed as was just thinking thi...
diff --git a/lm_eval/models/huggingface.py b/lm_eval/models/huggingface.py index dc243a1a5c6..336884c3994 100644 --- a/lm_eval/models/huggingface.py +++ b/lm_eval/models/huggingface.py @@ -1,6 +1,5 @@ import copy import os -from collections import defaultdict from pathlib import Path from typing import List, Litera...
5
4
3
[{"id": "G0", "claim": "The PR should add a simple unit test for the refactored utils grouping/batching function.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The author should run the harness on a task before and after the change with --log_samples a...
null
EleutherAI__lm-evaluation-harness__1266
EleutherAI/lm-evaluation-harness
1,266
defect
7264a2e03871733760c640acc3aab0e181be843d
faee9f3482c4254f18c689dccdaace3ed13f3c29
Call "exact_match" once for each multiple-target sample
Calling `exact_match` for each target individually wasn't optimal. Changed it to calling it just once. Wasn't sure how this would affect other metrics so restricted it to "exact_match". For TriviaQA, ~18000 samples Total scoring time before: 20m After: 7.5m closes #1264 edit: Have also deleted the old tests ...
diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index f981798fdfa..2c63804bda0 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -61,7 +61,7 @@ jobs: # pip install bleurt@https://github.com/google-research/bleurt/archive/b610120347ef...
3
2
0
[{"id": "G0", "claim": "The tests/tests_master directory should be deleted now that the pull request un-ignores it, since people who want the master-branch tests can still find them there.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The skip ...
null
EleutherAI__lm-evaluation-harness__1290
EleutherAI/lm-evaluation-harness
1,290
defect
588a493c41b58d048d3994f99800edd27223bd3a
04685f3fbb255e79b2fbe55cb226f13ab86ec819
Add causalLM OpenVino models
Hi Hailey, Applied your previous comments. Please review. Thank you!
diff --git a/README.md b/README.md index e042ad868d7..936880f0fa5 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,15 @@ The full list of supported arguments are provided [here](./docs/interface.md), a > [!Note] > Just like you can provide a local path to `transformers.AutoModel`, you can also provide a local pa...
13
10
7
[{"id": "G0", "claim": "The ModuleNotFoundError message recommends installing packages (ipywidgets, pillow, torchaudio) that are not actually necessary for optimum.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When no backend is passed, OptimumL...
null
EleutherAI__lm-evaluation-harness__1372
EleutherAI/lm-evaluation-harness
1,372
defect
1554066c9532a7a1cf171b02a5ddaa5bb38f1b78
1681fd4c1f06b88628172f4b93143deb4b503442
Create a means for caching task registration and request building. Ad…
Hey all, here's the caching proposal for task registration and request building. Caching is optional, and has rewrite capabilities for task building and for task registration. It works by using pickles, and by default all pickles are stored in lm_harness/caching/.cache. You can specify an alternate path via the e...
diff --git a/.gitignore b/.gitignore index 0e5028fb11f..35a6381ea7c 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,6 @@ temp # IPython profile_default/ ipython_config.py + +Old/lm_eval +lm_eval/caching/.cache \ No newline at end of file diff --git a/lm_eval/api/model.py b/lm_eval/api/model.py index df829af592...
12
10
4
[{"id": "G0", "claim": "The cache-path environment variable is misspelled with three S's (LM_HARNESSS_CACHE_PATH) in cache.py and test_script.py, so the documented LM_HARNESS_CACHE_PATH override would never take effect.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"...
null
EleutherAI__lm-evaluation-harness__140
EleutherAI/lm-evaluation-harness
140
defect
8809c5f15bc53f2543006ea9811ac576f645e30b
14dd29c442552102d5bc6e4337ef31dda59a24fd
Implement SQuADv2 evaluation
Implements evaluation and the new workflow for SQuAD v2, to close #20. Relies on `greedy_until`, and uses the syntax where a list of until-texts are used. As such, it does not pass the tests in `/tests/test_tasks.py` due to the `NotImplementedError`.
diff --git a/lm_eval/evaluator.py b/lm_eval/evaluator.py index 86a4dda22ac..ad1a233cafe 100644 --- a/lm_eval/evaluator.py +++ b/lm_eval/evaluator.py @@ -47,7 +47,6 @@ def evaluate(lm, task_dict, provide_description, num_fewshot, limit): reqs = task.construct_requests(doc, ctx) if not isinsta...
2
2
2
[{"id": "G0", "claim": "There is an error when the greedy_until code now implemented on master is merged into this branch's code.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Aggregating by taking the mean of per-document squad_metric.compute outp...
null
EleutherAI__lm-evaluation-harness__1425
EleutherAI/lm-evaluation-harness
1,425
defect
89deeeafc884578afdd30b7275cbb18700eff6c2
bb76b9dee5efb888c2e71f4bc22766393281a0f4
Group reqs by context
Added some logic to group the requests by context and inferring on just the one sample for one-token continuations . This isn't true logit caching though, just groups them by context and retrieves the remaining samples from a dictionary. I would double check the indexing of the logit extraction though. I think it's rig...
diff --git a/lm_eval/api/metrics.py b/lm_eval/api/metrics.py index 6efada85022..9d66e7c8cf3 100644 --- a/lm_eval/api/metrics.py +++ b/lm_eval/api/metrics.py @@ -4,11 +4,11 @@ from collections.abc import Iterable from typing import List +import evaluate as hf_evaluate import numpy as np import sacrebleu import sk...
6
5
1
[{"id": "G0", "claim": "Rename the misspelled variable cxt_tokens to ctx_tokens in the logits loop of _loglikelihood_tokens.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Define the group_fn lambda as a named function like _collate with a docst...
null
EleutherAI__lm-evaluation-harness__1616
EleutherAI/lm-evaluation-harness
1,616
defect
c7b03ad404784c8fb112eabf737b27829cbf0db8
797e193591dea0210c30b48390c27e96efff4cdc
Provide ability for custom sampler for ConfigurableTask
* Way to control seed of fewshot sampling (may help with https://github.com/EleutherAI/lm-evaluation-harness/issues/1591) * Added ability for custom sampler for ConfigurableTask Python tasks can use customized fewshots strategy (slightly modifiable fewshots or any other ideas) by using child classes of `Task` and m...
diff --git a/lm_eval/__main__.py b/lm_eval/__main__.py index 234d4e4eb49..bd9d25e3489 100644 --- a/lm_eval/__main__.py +++ b/lm_eval/__main__.py @@ -212,14 +212,16 @@ def setup_parser() -> argparse.ArgumentParser: ) parser.add_argument( "--seed", - type=partial(_int_or_none_list_arg_type, 3), ...
1
1
1
[{"id": "G0", "claim": "Log a warning when a user passes a length-3 seed list, while still accepting comma-separated lists of length 3 or 4 for now, because requiring 4 values breaks users' existing workflows.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
EleutherAI__lm-evaluation-harness__1674
EleutherAI/lm-evaluation-harness
1,674
defect
9516087b81a61d0e220b22cc1b75be76de23bc10
6e737460487b19d1713d10c9242908bc0d48a850
Add `neuralmagic` models for `sparseml` and `deepsparse`
This PR adds support for new model backends leveraging [DeepSparse](https://github.com/neuralmagic/deepsparse) and [SparseML](https://github.com/neuralmagic/sparseml) for evaluating compressed (quantization+sparsity) models in lm-eval. All of this functionality is held within `lm_eval/models/neuralmagic.py` * `spars...
diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 12b4c24763e..cdd5b1f751e 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -56,7 +56,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - ...
8
6
2
[{"id": "G0", "claim": "The extras table entry should read `deepsparse`, not the typo `deepspars`.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Docstring wording and naming are off: 'exported to the ONNX and' should say ONNX format, 'integration...
null
EleutherAI__lm-evaluation-harness__1730
EleutherAI/lm-evaluation-harness
1,730
defect
3196e907fa195b684470a913c7235ed7f08a4383
ece68e695eef45fad98dfbd9a5af027bc223ae26
Add option to set OpenVINO config
This PR adds an option to specify a custom config for OpenVINO models, with `--model_args ov_config=/path/to/config.json`. This allows users to set options that may affect accuracy, or for example enable model caching to speed up model loading on GPU. I added a test to check that the config is being used by OpenVIN...
diff --git a/lm_eval/models/optimum_lm.py b/lm_eval/models/optimum_lm.py index 255a05b33a3..86e9d91702f 100644 --- a/lm_eval/models/optimum_lm.py +++ b/lm_eval/models/optimum_lm.py @@ -1,3 +1,5 @@ +import json +import logging from importlib.util import find_spec from pathlib import Path @@ -5,12 +7,19 @@ from lm_e...
1
1
0
[{"id": "G0", "claim": "The module should use the existing lm_eval.utils.eval_logger for logging instead of creating its own logger via logging.getLogger(__name__).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
EleutherAI__lm-evaluation-harness__1916
EleutherAI/lm-evaluation-harness
1,916
defect
1060b68d35f6a4f1b571e7b5241049ead64b2936
2e05909568eab7928cb39632a60f5f8d9d6e6e5b
Test output table layout consistency
# What does this PR do? This PR adds tests for verifying the consistency of the output table layouts for 4 tasks/groups: - `ai2_arc` (`arc_easy`, `arc_challenge`) - `mmlu_abstract_algebra`, `mmlu_global_facts`, `mmlu_public_relations` - `lambada_openai` - `wikitext` with the `EleutherAI/pythia-160m` model ...
diff --git a/lm_eval/evaluator_utils.py b/lm_eval/evaluator_utils.py index 82197b5d577..ad6eb53aefb 100644 --- a/lm_eval/evaluator_utils.py +++ b/lm_eval/evaluator_utils.py @@ -223,7 +223,7 @@ def prepare_print_tasks( def consolidate_results( eval_tasks: List[TaskOutput], -) -> Tuple[dict, dict, dict, dict, dic...
1
1
0
[{"id": "G0", "claim": "The new consistency tests should use the smaller/faster Pythia-14m model instead of Pythia-160m.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
EleutherAI__lm-evaluation-harness__2034
EleutherAI/lm-evaluation-harness
2,034
defect
e5e5ee0cb629c9c88165292d1b4bf34623392d33
c087db477ad7cc6489f20ced4821050801a78ec4
Add chat template to `vllm`
1. closes #2033 2. refactored pad token handling to util function. 3. fixed bug where `BOS` not being set for generations. edit: test failing on the latest `transformers` (605.4879 - 605.2956 > 0.1 for lambada). Not sure if we want to pin it to the previous or this tolerance is fine for Pythia-14m (limit 10) Al...
diff --git a/lm_eval/models/huggingface.py b/lm_eval/models/huggingface.py index 46418d9aac5..8c125f71fc2 100644 --- a/lm_eval/models/huggingface.py +++ b/lm_eval/models/huggingface.py @@ -30,6 +30,7 @@ from lm_eval.models.utils import ( Collator, clear_torch_cache, + configure_pad_token, get_dtype, ...
6
4
2
[{"id": "G0", "claim": "The docstring of configure_pad_token should say it checks the (Hugging Face) tokenizer, per the reviewer's suggested wording.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The default_chat_template fallback behavior added ...
null
EleutherAI__lm-evaluation-harness__2334
EleutherAI/lm-evaluation-harness
2,334
defect
9a092f374bdc6d6032ae2b878b7a49b97801ab69
ff00d56a58f95e422acd9c1337d2ff8965ebf16b
mmlu-pro: add newlines to task descriptions (not leaderboard)
Added one newline to the `task_description`s same as the reference [implementation](https://github.com/TIGER-AI-Lab/MMLU-Pro/blob/47b9891aacb8bd7cda29d5c5ba17b9434dd333bc/evaluate_from_local.py#L93) (original `mmlu` uses two).
diff --git a/lm_eval/tasks/mmlu_pro/README.md b/lm_eval/tasks/mmlu_pro/README.md index 53694cdc8ab..f0f1925bb22 100644 --- a/lm_eval/tasks/mmlu_pro/README.md +++ b/lm_eval/tasks/mmlu_pro/README.md @@ -57,3 +57,8 @@ If other tasks on this dataset are already supported: * [ ] Is the "Main" variant of this task clearly d...
2
2
0
[{"id": "G0", "claim": "The changelog notation `(ver 1, ver 2)` does not clearly convey that the change took the task from version 1.0 to 2.0; it should read `(version 1 --> version 2)`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The changelog...
null
EleutherAI__lm-evaluation-harness__2703
EleutherAI/lm-evaluation-harness
2,703
defect
0bb8406f2ebfe074cf173c333bdcd6cffb17279b
b4331388278e4c3c900c856522e9acdc1d6d5f4f
Support SGLang as Potential Backend for Evaluation
1. We add the sglang as a potential backend for evaluation, which can preserve the accuracy but faster than vLLM in many workloads. See [here](https://github.com/Monstertail/lm-evaluation-harness/blob/sglang-support/lm_eval/models/sglang_causallms.py). 2. We support the data parallel and tensor parallel in 1 as well, ...
diff --git a/lm_eval/models/__init__.py b/lm_eval/models/__init__.py index 39412bb1bbf..5771b293bf5 100644 --- a/lm_eval/models/__init__.py +++ b/lm_eval/models/__init__.py @@ -13,6 +13,7 @@ openai_completions, optimum_ipex, optimum_lm, + sglang_causallms, textsynth, vllm_causallms, vll...
14
11
3
[{"id": "G0", "claim": "Add a sub-test so the test exercises the backend through the lm_eval.simple_evaluate or lm_eval.evaluate API, since most users start SGLang that way, instead of only using SGLangLM directly.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "...
null
EleutherAI__lm-evaluation-harness__2749
EleutherAI/lm-evaluation-harness
2,749
defect
a87fe425ec55d90083510fc8b2a07596b76e57b3
5820dfd0d4eb044d2b036686b871aec4bc2ca6b0
Enable steering HF models
Enable steering HF models using vectors defined in pytorch files or derived from sparse model latents.
diff --git a/lm_eval/models/__init__.py b/lm_eval/models/__init__.py index 5771b293bf5..f8ec51a21b1 100644 --- a/lm_eval/models/__init__.py +++ b/lm_eval/models/__init__.py @@ -14,6 +14,7 @@ optimum_ipex, optimum_lm, sglang_causallms, + steered, textsynth, vllm_causallms, vllm_vlms, dif...
10
4
1
[{"id": "G0", "claim": "The docstring's example CSV row uses an extremely low steering_coefficient (10.0 instead of ~240.0), which would do next to nothing if applied and could confuse users.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "clamp_or...
null
EleutherAI__lm-evaluation-harness__3347
EleutherAI/lm-evaluation-harness
3,347
defect
ad506a1321561dda7e6f1f517604e44de3978ab2
4d40c5d7fb788005c3583b45c3f8e56f3360d185
Delegate BOS to the tokenizer; `add_bos_token` defaults to `None`
This PR improves BOS token handling (`HFLM` and VLLM) by delegating control to the tokenizer's native behavior unless explicitly overridden. Previously, `add_special_tokens` was explicitly set to `False` in most cases, overriding default tokenizer config. Now it remains unset. Also resolves two issues: BOS token dupli...
diff --git a/lm_eval/api/model.py b/lm_eval/api/model.py index b824275856b..dd52abb7281 100644 --- a/lm_eval/api/model.py +++ b/lm_eval/api/model.py @@ -1,9 +1,12 @@ +from __future__ import annotations + import abc import hashlib import json import logging import os -from typing import TYPE_CHECKING, Any, Iterable...
3
2
0
[{"id": "G0", "claim": "The formatting changes mixed into this pull request make the real changes hard to find and should be applied in a separate PR instead.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In HFLM.tok_encode the guard should tes...
null
EmbarkStudios__mirror-mirror__93
EmbarkStudios/mirror-mirror
93
defect
615f6948c2d27217f8690950356bc7aa97e4539e
2a392200ee3dd54efb5791cea42e4a577f0e284b
Implement `Hash` for `Value`
This impl probably makes sense to have. I think it was just an oversight that we didn't have it already.
diff --git a/CHANGELOG.md b/CHANGELOG.md index c485ff6..3baa5df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 # Unreleased -- None. +- **added:** Implement `Hash` to `Value` # 0.1.3 (08. February, 2023) diff --git ...
1
1
1
[{"id": "G0", "claim": "The `Hash` impl should hash the converted `OrdEqHashValue` itself rather than only its `discriminant`, so that a value's contents contribute to its hash instead of every value of the same variant hashing identically.", "category": "performance", "verdict": "supported", "priority": "P1", "scope":...
null
EmbarkStudios__mirror-mirror__97
EmbarkStudios/mirror-mirror
97
defect
52bcc45c69d85d057bfa04d0eb82230cb6e9c12f
b0b8171ca15468a01ae57cb536289153b1f83b67
Support setting a default value for `OpaqueType`
See https://github.com/EmbarkStudios/ark-modules/issues/8273 (issue for closed source repo) for the use case.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c3f2a7..86ad3a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,15 +16,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `StructVariant` - `TupleStructVariant` - **added:** Add `EnumType::variants_len` ([#94]) +- **add...
2
2
0
[{"id": "G0", "claim": "The 0.1.4 release date in CHANGELOG.md (08. February, 2023) may be incorrect.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The new CHANGELOG entry for this PR should reference the pull request, i.e. read 'Support settin...
null
EmbarkStudios__puffin__151
EmbarkStudios/puffin
151
defect
614181774440ed71556730aad551ac31c577e435
c497844cbdc4f9028f73f92fc4c98d3166fb7221
Optimize frame stats collection
### Checklist * [x] I have read the [Contributor Guide](../CONTRIBUTING.md) * [x] I have read and agree to the [Code of Conduct](../CODE_OF_CONDUCT.md) * [x] I have added a description of my changes and why I'd like them included in the section below ### Description of Changes Optimize UI performance by calc...
diff --git a/Cargo.lock b/Cargo.lock index b5d3195e..c9202a95 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2138,6 +2138,7 @@ dependencies = [ "cfg-if", "criterion", "instant", + "itertools", "js-sys", "lz4_flex", "once_cell", diff --git a/puffin-imgui/src/ui.rs b/puffin-imgui/src/ui.rs index 28fbf36f..99f2c...
1
1
0
[{"id": "G0", "claim": "Add information about the changes to the release notes before merging the pull request.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
EmbarkStudios__quilkin__1060
EmbarkStudios/quilkin
1,060
defect
9bd548ec932c664c2f2ad6eb8eb844347501296f
dd32806664ac024d9c15548b6e4d8c280dae7e8e
refactor: Remove pipeline logging
This isn't as needed anymore, and creates a lot of noise in the logs. I think we could maybe bring the info back under a HTTP endpoint, but for now we can pull this part out.
diff --git a/crates/test/tests/proxy.rs b/crates/test/tests/proxy.rs index ab3fe043c9..313fe66d34 100644 --- a/crates/test/tests/proxy.rs +++ b/crates/test/tests/proxy.rs @@ -87,19 +87,6 @@ trace_test!(uring_receiver, { let (mut packet_rx, endpoint) = sb.server("server"); - let (error_sender, mut error_rece...
1
1
1
[{"id": "G0", "claim": "After the PR's change the errors_total metric is still incremented for every dropped packet, so errors appear to still be recorded and the PR's removal of pipeline error handling looks incomplete.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
EmbarkStudios__quilkin__1069
EmbarkStudios/quilkin
1,069
defect
e3075a026e7bb3c3f32aa1574562767cceb553a8
bab1669246482516b3d48a76c742d6f20ca8a6d8
Add XDP CLI options and initialization code
This adds the support for several XDP specific options, and the initialization code to bring up the XDP I/O loop, falling back to io-uring if setup fails for some reason. This PR _always_ falls back to io-uring at the moment, this is just to get the code in so that it can be iterated on in further PRs, as I only tested...
diff --git a/Cargo.lock b/Cargo.lock index be10c46d01..4be0a3a826 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -258,7 +258,7 @@ dependencies = [ "bytes", "libc", "log", - "object 0.36.5", + "object 0.36.7", "once_cell", "thiserror 1.0.69", "tokio", @@ -297,7 +297,7 @@ dependencies = [ "core-error", "hash...
6
6
0
[{"id": "G0", "claim": "The network-interface XDP option's CLI flag should be renamed to publish.udp.xdp.network-interface instead of the auto-generated --network-interface.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The force_xdp option's CLI flag s...
null
EmbarkStudios__quilkin__1267
EmbarkStudios/quilkin
1,267
defect
db85d02159a54ebc38f4ad3edba3d1a3b6d5f9d1
3f54e7c7cb5c39580f5002a38d3986709e015014
feat: Clean up Datacenters which fail to respond to qcmp pings
A proxy that is connected to a relay may miss an update where a Datacenter is removed if there is a temporary disruption. This adds a channel where the phoenix subsystem can report "bad nodes" that it has failed to ping for a period, so that they can be cleaned up from the Config.
diff --git a/crates/test/src/lib.rs b/crates/test/src/lib.rs index 519ecab272..20fe6e0b0b 100644 --- a/crates/test/src/lib.rs +++ b/crates/test/src/lib.rs @@ -368,6 +368,7 @@ impl Pail { let config_path = path.clone(); let (shutdown, shutdown_rx) = quilkin::signal::channel(); + ...
1
1
0
[{"id": "G0", "claim": "The method should be named `bad_node_informer` without the `get_` prefix, since Rust's UFCS means `self.bad_node_informer` cannot be confused with a function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
EmbarkStudios__quilkin__416
EmbarkStudios/quilkin
416
defect
f3a8bd5a5b1130f7b2dc4ec21390a24dc1fd4876
5c9f50052ce7c11930b1b6b3e37f228650d4614a
Code: Firewall filter
<!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, please read our contributor guidelines: https://github.com/googleforgames/quilkin/blob/main/CONTRIBUTING.md and developer guide https://github.com/googleforgames/quilkin/blob/main/build/README.md 2. Please labe...
diff --git a/Cargo.toml b/Cargo.toml index 477ce4e882..cb08615fc2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -68,6 +68,7 @@ tokio-stream = "0.1.2" tonic = "0.5.0" uuid = {version = "0.8.1", default-features = false, features = ["v4"]} thiserror = "1.0.25" +ipnetwork = "0.18.0" [target.'cfg(target_os = "linux")'....
26
20
1
[{"id": "G0", "claim": "Denying a packet by default when no rules match needs confirmation that this is the desired behaviour, versus adding a default allow/deny config option.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The metric label values (and f...
null
EmbarkStudios__quilkin__447
EmbarkStudios/quilkin
447
defect
58ac663fa54f5a2590ab80dc7ff24fcaffb225b5
ac6d90021547e7fe9d9d089c6007528f123bd00f
Add matches filter
Adds a minimal version of the quilkin matches filter discussed in #401. I believe closes #401, #412 ## Breaking Changes - `ConfigType::Static` now accepts `serde_yaml::Value` by value instead of by reference.
diff --git a/Cargo.toml b/Cargo.toml index 92a471b4f7..af5c9539d1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -43,7 +43,7 @@ quilkin-macros = { version = "0.3.0-dev", path = "./macros" } # Crates.io base64 = "0.13.0" base64-serde = "0.6.1" -bytes = "1.1.0" +bytes = { version = "1.1.0", features = ["serde"] } clap =...
17
15
4
[{"id": "G0", "claim": "Question whether the Matches filter's config needs to be optional at all, since with neither on_read nor on_write configured there is no reasonable default behaviour (it behaves the same as not having the filter).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introd...
null
EmbarkStudios__quilkin__458
EmbarkStudios/quilkin
458
defect
a31ec4ac86a104d7795365422429a7421400aeef
e899e2d4a0c1929e6bdc71af3ee96c05b0bf6251
Add regex capture and rename capture_bytes to capture
This PR adds a regex capture strategy to the CaptureBytes filter, and renames it from `CaptureBytes` to capture, to better reflect the new `Capture` trait contract, where a capture strategy can return any valid `metadata::Value` instead of only `Bytes`. This also adds a `/is_present` extension metadata key which is app...
diff --git a/Cargo.toml b/Cargo.toml index 92a471b4f7..67036a92f4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -73,6 +73,8 @@ tryhard = "0.4.0" eyre = "0.6.5" stable-eyre = "0.2.2" ipnetwork = "0.18.0" +regex = "1.5.4" +serde_regex = "1.1.0" [target.'cfg(target_os = "linux")'.dependencies] sys-info = "0.9.0" diff...
13
10
4
[{"id": "G0", "claim": "The metadata table row in filters.md should refer to the [Capture] filter now that CaptureBytes has been renamed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The [CaptureBytes] link definition at the bottom of filters.md...
null
EmbarkStudios__quilkin__676
EmbarkStudios/quilkin
676
defect
192376f579b3d0ee9001a25feb2ce7a1791364de
7df21f7ea8ca8b127152c00c4f1f17d8ccb9704d
Add initial implementation of QCMP
This PR adds an initial implementation for the Quilkin Control Message Protocol, which allows a client to communicate with the proxy for the purposes of diagnostics such as latency measurement. Currently the only supported command is sending a ping to the proxy, with the proxy returning a ping reply that allows you to ...
diff --git a/Cargo.toml b/Cargo.toml index c2023aa2d0..e79865449e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -91,6 +91,7 @@ tryhard = "0.5.0" url = { version = "2.3.1", features = ["serde"] } uuid = { version = "1.2.2", default-features = false, features = ["v4"] } lasso = { version = "0.6.0", features = ["multi-th...
4
3
0
[{"id": "G0", "claim": "Add a test covering the parsing of a non-ping packet.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add an integration test for the QCMP functionality.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": ...
null
EmbarkStudios__quilkin__744
EmbarkStudios/quilkin
744
defect
f548aa4cb0644cf5a83205128096f9a4cc25a722
02ee45dcdce63b91d755020fd2202365d444585c
Implement Agent service
This PR adds a new service called "Agent", the goal of this service to provide a service more designed for relay setups by only having configuration forwarding rather than also being a management server, and this also has a QCMP service that allows it singable, which will be used in to be able to act as pingable "beaco...
diff --git a/build/Makefile b/build/Makefile index 7130e3b0c0..3d4d309543 100644 --- a/build/Makefile +++ b/build/Makefile @@ -86,7 +86,7 @@ test-quilkin: ensure-build-image docker run --rm $(common_rust_args) \ --entrypoint=cargo $(BUILD_IMAGE_TAG) fmt -- --check docker run --rm $(common_rust_args) \ - --entr...
1
1
1
[{"id": "G0", "claim": "Binding separate IPv4 and IPv6 QCMP sockets to the same port fails with 'address already in use', so the agent never starts its QCMP service and the new agent_ping test fails consistently; the PR should instead reuse the port by extending utils::net::socket_with_reuse into a dual-stack socket an...
null
EmbarkStudios__quilkin__746
EmbarkStudios/quilkin
746
defect
2d5f3dd2347c7d78a4a0e478629e5c46dad197a8
7988ef5e637f8882658f4d97d0265b050b2b3cd4
Add ASN cardinality to packet metrics
This PR adds ASN cardinality to the packet processing metrics and adds a `packet_jitter` metric that measures the time between received packets.
diff --git a/src/maxmind_db.rs b/src/maxmind_db.rs index 790281ce57..8906246e4a 100644 --- a/src/maxmind_db.rs +++ b/src/maxmind_db.rs @@ -147,7 +147,7 @@ impl std::ops::DerefMut for MaxmindDb { } } -#[derive(Debug, serde::Deserialize)] +#[derive(Clone, Debug, serde::Deserialize)] pub struct IpNetEntry { ...
1
1
1
[{"id": "G0", "claim": "The pull request is missing documentation updates covering the updated metric labels.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
EmbarkStudios__quilkin__752
EmbarkStudios/quilkin
752
defect
25a2e66297ce7784f03c0006a84f8019beb1e4b9
189b4fd0fcbfbbc0149dd16753714965203da4c3
[PR/Fixes] Agent Service / Dual Stack Socket
<!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, please read our contributor guidelines: https://github.com/googleforgames/quilkin/blob/main/CONTRIBUTING.md and developer guide https://github.com/googleforgames/quilkin/blob/main/build/README.md 2. Please labe...
diff --git a/build/Makefile b/build/Makefile index 699db5ced6..ac63f1518c 100644 --- a/build/Makefile +++ b/build/Makefile @@ -86,7 +86,7 @@ test-quilkin: ensure-build-image docker run --rm $(common_rust_args) \ --entrypoint=cargo $(BUILD_IMAGE_TAG) fmt -- --check docker run --rm $(common_rust_args) \ - --entr...
2
1
0
[{"id": "G0", "claim": "DualStackLocalSocket::recv_from creates a whole new buffer on every call and should instead reuse buffers (e.g. keep two member buffers and let the API indicate which one was populated) to reduce the number of allocations.", "category": "performance", "verdict": "supported", "priority": "P2", "s...
null
EmbarkStudios__quilkin__868
EmbarkStudios/quilkin
868
defect
242b9602c99a6b4d6614b58879896be44a167164
5559863bd7f35d631a8df7650ae6ad3c0ed79b78
Add lz4 support
This adds support for LZ4 compression. Initial benchmarks with (seeded) randomized data shows that snappy is easily beating it on both compression and decompression, but thought I might as well PR it. Resolves: #862
diff --git a/Cargo.lock b/Cargo.lock index b68ab16f1b..335dac555b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -137,6 +137,17 @@ dependencies = [ "serde", ] +[[package]] +name = "async-channel" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81953c529336010edd6d8e35...
1
1
1
[{"id": "G0", "claim": "The new compression features added by this pull request (in particular the lz4 mode) should be documented in docs/src/services/proxy/filters/compress.md.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
EmbarkStudios__quilkin__987
EmbarkStudios/quilkin
987
defect
50d91e4167f9160c5be36178e47789fb7844dfc1
b3c2c38fde172d444a772da6bf61b230220a955e
Cap error heap usage
This is a rework of #986 This resolves an unbounded memory growth issue that can occur in a particularly hostile context, ie, every packet is invalid in some way, generating an error, and CPU usage is high enough that tasks, notably https://github.com/googleforgames/quilkin/blob/50d91e4167f9160c5be36178e47789fb78...
diff --git a/crates/gen.rs b/crates/gen.rs new file mode 100755 index 0000000000..cfdd717456 --- /dev/null +++ b/crates/gen.rs @@ -0,0 +1,49 @@ +#!/bin/env/cargo run-cargo-script + +//! ```cargo +//! [dependencies] +//! base64-simd = "0.8.0" +//! ``` + +extern crate base64_simd; + +fn main() { + use std::io::Write a...
2
2
0
[{"id": "G0", "claim": "The new files crates/gen.rs and src/components/proxy/error.rs are missing the Apache license header and it should be added.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The format of the new --to-tokens option is undocume...
null
EmbeddedRPC__erpc__148
EmbeddedRPC/erpc
148
defect
0f1a63878e1f418fe5749a998e47693d1a39b8a9
639d72a7687b25186081cdcda8cd795addfe96ec
PR to issue #143: Assert costumizing
Modifications to set up a proprietary assert function or to disable asserts (empty define). The code has not been build cause I have no opportunitie to do it, but it should run as usual.
diff --git a/erpc_c/config/erpc_config.h b/erpc_c/config/erpc_config.h index d8c35f86e..5292fbfc8 100644 --- a/erpc_c/config/erpc_config.h +++ b/erpc_c/config/erpc_config.h @@ -9,7 +9,9 @@ */ #ifndef _ERPC_CONFIG_H_ -#define _ERPC_CONFIG_H_ +#define _ERPC_CONFIG_H_ + +#include <cassert> /*! * @addtogroup con...
6
6
4
[{"id": "G0", "claim": "The pull request's build does not pass in CI and the code has to be fixed (the reviewer suggests running `make clean && make all` before pushing).", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The assert customization should...
null
Embucket__embucket-labs__1593
Embucket/embucket-labs
1,593
defect
fc985c5f7555d9ea7d3a201cfa06c1e1e923c334
cc43c9d8ce007aa9b6afdf5ca402dce7b07194c6
Fix aggregate functions on empty tables by preserving AggregateExec in optimizer
## Summary Fixes a critical regression where aggregate functions like COUNT(*) on empty tables were returning empty result sets instead of the correct SQL-compliant results. ## Problem The `RemoveExecAboveEmpty` physical optimizer rule introduced in commit 671d82ce was incorrectly replacing **all** execution plan no...
diff --git a/crates/core-executor/src/datafusion/physical_optimizer/remove_exec_above_empty.rs b/crates/core-executor/src/datafusion/physical_optimizer/remove_exec_above_empty.rs index 7748bcce1..93b9f0a50 100644 --- a/crates/core-executor/src/datafusion/physical_optimizer/remove_exec_above_empty.rs +++ b/crates/core-e...
2
2
0
[{"id": "G0", "claim": "Move the aggregate-preserving check to the beginning of transform_up so that EmptyExec and AggregateExec nodes are skipped up front instead of inside the all_empty branch.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add also a ...
null
Embucket__embucket-labs__1619
Embucket/embucket-labs
1,619
defect
ef7f86bc731cbada1a69dbacafedb44d82f5ac8b
33fef8462fe498c402dddfaacd3e373c0fe91b28
Implement parse_ip
As well part of dbt-gitlab. Closes #643
diff --git a/Cargo.lock b/Cargo.lock index 8155bcd75..9f70901ce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3192,6 +3192,7 @@ dependencies = [ "hex", "indexmap 2.10.0", "insta", + "ipnet", "jsonpath_lib", "lazy_static", "paste", diff --git a/crates/embucket-functions/Cargo.toml b/crates/embucket-functions/...
5
5
0
[{"id": "G0", "claim": "The manual match converting args[0]/args[1] to arrays is unnecessary; they can be converted with `.into_array()` instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Building an array for the permissive argument seems ...
null
Embucket__embucket-labs__1622
Embucket/embucket-labs
1,622
defect
199b64de5fb0bc1bdb9cdde7c1337033ab96ecc4
7091b9a5d052e27602acac0d8b6289280889e73f
fix timestamps optimize_projections
Closes #1612 Closes #1604 If the input in to_timestamp func is already a timestamp, we don't need to change it type since during execution it will be used as is with initial type. By this we avoid optimize_projections error when cheking return type and actual result type for the function call.
diff --git a/crates/core-executor/src/datafusion/logical_analyzer/cast_analyzer.rs b/crates/core-executor/src/datafusion/logical_analyzer/cast_analyzer.rs index 3625e76eea..73785c94a7 100644 --- a/crates/core-executor/src/datafusion/logical_analyzer/cast_analyzer.rs +++ b/crates/core-executor/src/datafusion/logical_ana...
1
1
1
[{"id": "G0", "claim": "The insta snapshot file for the newly added timestamp_with_timezone_to_timestamp test was not committed, as if `cargo insta review` had been forgotten, so the new test in query.rs has no snapshot.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
Embucket__embucket-labs__1646
Embucket/embucket-labs
1,646
defect
86e92a44b806d0aac33a14320a48ac8b1f9d87b9
f286e3437f41a8f45da6b3f93d4357337a7ecb71
Fix type_of, is_decimal
- Fixed type_of for already specified types - Added missing is_decimal - Fixed incorrect 'null' hardcoded value related to #1645
diff --git a/crates/embucket-functions/src/conversion/to_variant.rs b/crates/embucket-functions/src/conversion/to_variant.rs index b7b97d58a1..19c9da4a73 100644 --- a/crates/embucket-functions/src/conversion/to_variant.rs +++ b/crates/embucket-functions/src/conversion/to_variant.rs @@ -2,7 +2,8 @@ use crate::macros::ma...
2
2
0
[{"id": "G0", "claim": "If the new Decimal128-to-Float64 cast in encode_decimal128_array is required, it should be explained with a code comment, and the reviewer questions why the existing encode_float64_array helper is not reused.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "intr...
null
Embucket__embucket-labs__1661
Embucket/embucket-labs
1,661
defect
6446a107953075cd3061cd7c88f85f771143c9b6
7087058b36c32b5b4072106f1d9391afd51afb6d
Update list medatata when creating table with insert
Closes #1648 dbt-gitlab badge generated with **92.2%** success rate Added physical optimizer rule to propogate List field metadata for **CreateTable** statements with CTE for inserts ```sql CREATE TABLE array as (SELECT [1,2]::ARRAY) CREATE TABLE array as (SELECT 'A'::ARRAY) CREATE TABLE array as (SELECT ar...
diff --git a/crates/core-executor/src/datafusion/logical_analyzer/cast_analyzer.rs b/crates/core-executor/src/datafusion/logical_analyzer/cast_analyzer.rs index ab41ec18c..fa063af38 100644 --- a/crates/core-executor/src/datafusion/logical_analyzer/cast_analyzer.rs +++ b/crates/core-executor/src/datafusion/logical_analy...
2
1
1
[{"id": "G0", "claim": "The reviewer asked what happens when the rule gets a literal that cannot be rebuilt, i.e. whether the fallback silently keeps the original literal.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Casting to/from our own array ty...
null
Embucket__embucket-labs__1681
Embucket/embucket-labs
1,681
defect
d5de549e82d611a5e5068559d33110a5e6c41868
15ffc5ce9517660c53afaad21f08dcfaae206069
engine: `Like` type coercion fix
Closes #1679 - [x] Added a logical analyzer rule checking the type of the **subject** & **pattern** in the `Like` expr - [x] Restructured the rule ordering, since default analyzer base rules fail on logical analysis if the newly added rule is not called before them - [x] Other rules are ordered as before after the bas...
diff --git a/crates/core-executor/src/datafusion/logical_analyzer/like_type_analyzer.rs b/crates/core-executor/src/datafusion/logical_analyzer/like_type_analyzer.rs new file mode 100644 index 000000000..635288327 --- /dev/null +++ b/crates/core-executor/src/datafusion/logical_analyzer/like_type_analyzer.rs @@ -0,0 +1,1...
3
3
1
[{"id": "G0", "claim": "Replace the `/// TODO DOCS` placeholder on the `LikeTypeAnalyzer` struct with real documentation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Simplify `analyzer_rules` to extend `before_base_rules` directly instead of bu...
null
Embucket__embucket-labs__1692
Embucket/embucket-labs
1,692
defect
29213668096b096228b9f1b63e1ccd96bb0da560
02dd77e7e6e10f7fe942b45d03013a317e6e73bc
engine: `dbt-gitlab` seed csv string to int32 cast fix
Closes #1639 - [x] Int32 & Int64 casts from Utf8 are cast `to_decimal` before to be able to cast values like `'50.0'` (this is supported by Snowflake, but not by DataFusion) - [x] Integer & Int now -> Int64, instead of Int32 for better compatibility - [x] Insta tests - [x] dbt-gitlab tested P.S. Should later b...
diff --git a/crates/core-executor/src/datafusion/logical_analyzer/cast_analyzer.rs b/crates/core-executor/src/datafusion/logical_analyzer/cast_analyzer.rs index 3cf5db4ba..6dbaaa6bb 100644 --- a/crates/core-executor/src/datafusion/logical_analyzer/cast_analyzer.rs +++ b/crates/core-executor/src/datafusion/logical_analy...
3
3
1
[{"id": "G0", "claim": "Integer values above the Int32 range fail to cast when loading dbt seeds (e.g. 1073741824000 gives 'out of range Int32'), so Int32 is the wrong type and a bigger one should be chosen — for now, Int64 could be used everywhere.", "category": "correctness", "verdict": "supported", "priority": "P1",...
null
Embucket__embucket-labs__1845
Embucket/embucket-labs
1,845
defect
2b9167dbd81bde9423e0cbc83d53e971a48f86b9
92ede09fd4e7eb704aa2ba43658f56f7d637ff22
Add ability to execute the full SQL query directly using DuckDB in-memory engine
- added ability to bypass DataFusion entirely and execute the full SQL query directly using DuckDB in-memory engine - added duckdb flag to benchmark - **added cli flag to use duckdb by default (this will work only for SELECT, not for any other statement)** - fixed metastore metadata location issue after any data upd...
diff --git a/Cargo.lock b/Cargo.lock index 00563d60ec..e2546a5117 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -873,6 +873,7 @@ version = "56.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b3aa9e59c611ebc291c28582077ef25c97f1975383f1479b12f3b9ffee2ffabe" dependencies = [ + "bitflags...
10
7
0
[{"id": "G0", "claim": "The reviewer asks whether the error raised when the DuckDB stream fails should be a DataFusion error or a DuckDB-specific error, given it is wrapped with DataFusionSnafu.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The session ...
null
Embucket__embucket-labs__1917
Embucket/embucket-labs
1,917
defect
ac49c8ebc1f789af3c6ea9b2446b9f6f6184f47d
bb7bd360e88b293724583fad49774ee05eaffd7f
engine: Incorrect status message fix
Closes #1916 - Before for `arrow` we sent an empty null array. Which resulted in a seg-fault of the snowflake cli - For `json` we sent `No data` - an empty array. - Both were incorrect, changed to one `status` column with a successful execution message - Added insta tests - Checked other statements which use the...
diff --git a/crates/core-executor/src/query.rs b/crates/core-executor/src/query.rs index c0947ab55..5bb27c9f4 100644 --- a/crates/core-executor/src/query.rs +++ b/crates/core-executor/src/query.rs @@ -27,7 +27,7 @@ use core_metastore::{ TableFormat as MetastoreTableFormat, TableIdent as MetastoreTableIdent, Volume...
2
2
1
[{"id": "G0", "claim": "The \"Statement executed successfully.\" status message should not be produced by the query executor by modifying QueryResult; it naturally belongs to the snowflake-rest layer.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "This c...
null
EmmyLuaLs__emmylua-analyzer-rust__1022
EmmyLuaLs/emmylua-analyzer-rust
1,022
defect
381d67737fd068a9056572716461219d28aa9c23
8200729418f757f402d2303b3f926ca84f6c7abd
fix(type): canonicalize identical callable unions
## Summary - deduplicate semantically identical callable members when building unions - keep v.func from pairs(t) from reaching pcall as a raw callable union - add the exact #1020 regression ## Testing - cargo test -p emmylua_code_analysis pcall_test - cargo test -p emmylua_code_analysis member_infer_test - cargo test...
diff --git a/crates/emmylua_code_analysis/src/compilation/test/pcall_test.rs b/crates/emmylua_code_analysis/src/compilation/test/pcall_test.rs index e1a8cadf3..df344f052 100644 --- a/crates/emmylua_code_analysis/src/compilation/test/pcall_test.rs +++ b/crates/emmylua_code_analysis/src/compilation/test/pcall_test.rs @@ ...
3
2
0
[{"id": "G0", "claim": "In the union-merge loops, union_members_eq re-runs as_callable_type on the same side once per comparison (N times for the constant `right` in the single-union arm, and for `member` in every inner iteration of the two-union arm); pre-resolving the callable type once outside the inner loop would i...
null
EmmyLuaLs__emmylua-analyzer-rust__1039
EmmyLuaLs/emmylua-analyzer-rust
1,039
defect
3530d817d7640a20894133736a1beb932d016048
94f34c8f5d44cefe3775fcbf89b129e4b89ef531
fix(flow): separate dynamic loop divergence from infinite loops
## Summary - split runtime-dependent loop divergence from proven infinite loops in return-flow analysis - keep `MissingReturn` fallthrough-friendly for dynamic `while` and `repeat` loops when a later `return` is still reachable - rename the helper to `does_func_body_satisfy_missing_return` so the API matches the softer...
diff --git a/crates/emmylua_code_analysis/src/compilation/analyzer/lua/func_body.rs b/crates/emmylua_code_analysis/src/compilation/analyzer/lua/func_body.rs index 7ce9036e9..a3671bee3 100644 --- a/crates/emmylua_code_analysis/src/compilation/analyzer/lua/func_body.rs +++ b/crates/emmylua_code_analysis/src/compilation/a...
2
2
2
[{"id": "G0", "claim": "For `while true` loops whose body contains a `break`, the loop should be treated as dynamic divergence (`may_diverge`) rather than a proven infinite loop (`is_infinite`), to avoid false positives in `MissingReturn` diagnostics when a `return` follows the loop.", "category": "correctness", "verdi...
null
EmmyLuaLs__emmylua-analyzer-rust__362
EmmyLuaLs/emmylua-analyzer-rust
362
defect
5f82e42eda5a499690c41866fd405b57225c5b02
90ce0620f800e378fac35440d6185f6bff14f306
Support basic generic inheritance
This patch adds generic inheritance allowing to derive classes from the generic types suggesting the completions and inferring types. Example. ```lua ---@class foo<T>: T local foo_mt = {} ---@type foo<{a: string}> local bar = { a = 'test' } c = bar.a -- should be string ---@class buz<T>: foo<T> local...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 14f7ffd44..c97e53797 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ `NEW` Now language server configuration might be provided globally via the `<os-specific home dir>/.emmyrc.json`, `<os-specific config dir>/emmylua_ls/.emmyrc.json`, or by setting a variable...
3
3
0
[{"id": "G0", "claim": "In infer_generic_members_from_super_generics, use `type_index.get_type_decl(&type_decl_id)?` instead of the if-let-else that returns None.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Keep one empty line between the two...
null
EmmyLuaLs__emmylua-analyzer-rust__371
EmmyLuaLs/emmylua-analyzer-rust
371
defect
1917807482770c79e7c5aa511a2b935ef1e193e9
eab69c9697b796dc7adeb5d63ddaf30976c345d4
feat: treat array index as nil-able
Expressions like this: ```lua ---@type integer[] local arr = {1, 2, 3} return arr[2] ``` should be considered as type `integer|nil`, since array accesses can always *potentially* return `nil`. This commit marks those expressions as such. Related to #248
diff --git a/crates/emmylua_code_analysis/src/diagnostic/test/unnecessary_assert_test.rs b/crates/emmylua_code_analysis/src/diagnostic/test/unnecessary_assert_test.rs index 51aa18072..e63248e47 100644 --- a/crates/emmylua_code_analysis/src/diagnostic/test/unnecessary_assert_test.rs +++ b/crates/emmylua_code_analysis/sr...
3
1
1
[{"id": "G0", "claim": "Applying the nil-union to infer_member_by_index_array as well may be unnecessary (\"I am assuming this is also necessary?\").", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Treating array indexing as nil-able may be too annoy...
null
EmmyLuaLs__emmylua-analyzer-rust__431
EmmyLuaLs/emmylua-analyzer-rust
431
defect
07c845b8cd95b4336219d750721edbe38ae1e968
780c0f9907bd414832ece1b514756cbf3c87c86a
fix
fixes #438 仍然不稳定, 目前只是将 std 优先级降低, 如果存在多个非 std 定义仍可能出现异常
diff --git a/crates/emmylua_code_analysis/resources/std/global.lua b/crates/emmylua_code_analysis/resources/std/global.lua index 804429369..ccc8173e3 100644 --- a/crates/emmylua_code_analysis/resources/std/global.lua +++ b/crates/emmylua_code_analysis/resources/std/global.lua @@ -454,7 +454,7 @@ function unpack(list, i...
11
6
0
[{"id": "G0", "claim": "The purpose and expected behavior of the new deep_guard, especially how it interacts with recursive calls in function type resolution, should be documented.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The TODO marking th...
null
EmmyLuaLs__emmylua-analyzer-rust__692
EmmyLuaLs/emmylua-analyzer-rust
692
defect
6646630659e142941f435587d637881709b5a5f1
a8a6a18f4ced6c480a4cd6e8cf378b0b114903a2
fix(hover): use left token when cursor is before '.', ':', '[', ']'
Fixes an issue with hover behavior on dot selectors. When the cursor was placed to the left of the dot (e.g., `struct|.field`), the hover would incorrectly show information for the field and highlight the dot token. Before/After: <img width="933" height="310" alt="1754560858_screenshot" src="https://github.com/user...
diff --git a/crates/emmylua_ls/src/handlers/hover/mod.rs b/crates/emmylua_ls/src/handlers/hover/mod.rs index b82a8b62a..21bee6a53 100644 --- a/crates/emmylua_ls/src/handlers/hover/mod.rs +++ b/crates/emmylua_ls/src/handlers/hover/mod.rs @@ -9,7 +9,7 @@ mod std_hover; pub use build_hover::build_hover_content_for_comple...
3
3
2
[{"id": "G0", "claim": "The pull request's changed hover behaviour needs a test to ensure correct execution.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The Between-arm should also treat ':' and '[' and ']' like '.' (returning the left token), and ca...
null
EmmyLuaLs__emmylua-analyzer-rust__698
EmmyLuaLs/emmylua-analyzer-rust
698
defect
5c6f4e1394e8d06b9d269a789ca1e010cfb96081
8445839c939ef1b3aa7d387dfcd93d446b4b9430
Reuse doc completion, hover, and definition for `@see`
This PR improves handling of `@see` contents by reusing machinery introduced for parsing documentation comments. The behavior is backwards-compatible with the old syntax (`@see class#member`). Fix #671
diff --git a/crates/emmylua_code_analysis/src/compilation/analyzer/doc/type_ref_tags.rs b/crates/emmylua_code_analysis/src/compilation/analyzer/doc/type_ref_tags.rs index 00e0014cf..0ea401836 100644 --- a/crates/emmylua_code_analysis/src/compilation/analyzer/doc/type_ref_tags.rs +++ b/crates/emmylua_code_analysis/src/c...
1
1
1
[{"id": "G0", "claim": "The lexer must not be changed to structure `@see` content, because anything can follow after `@see` (e.g. `---@see Program Files/...` would show only `Program` in the hover and give different semantic tokens after splitting by spaces), structuring it during the parser phase doesn't make much sen...
null