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
sindresorhus__type-fest__1
sindresorhus/type-fest
1
defect
aea4f4d646259445b55e08a76c15b831c476dc34
85275d406d4860c9656f1fab541a22aaf04f3c9a
Add `RequireAtLeastOne` type
(Extracted from https://github.com/sindresorhus/electron-util/pull/11) I'm wondering if it would be better to change its name to just "AtLeastOne"… 🤔
diff --git a/index.d.ts b/index.d.ts index 562ebbc59..8dafc6160 100644 --- a/index.d.ts +++ b/index.d.ts @@ -84,3 +84,26 @@ const ab: Merge<Foo, Bar> = {a: 1, b: 2}; ``` */ export type Merge<FirstType, SecondType> = Omit<FirstType, Extract<keyof FirstType, keyof SecondType>> & SecondType; + +/* +Create a type that r...
3
3
0
[{"id": "G0", "claim": "Rename the generic type parameters: give `T` a better name and rename `Keys` to `KeysType`, following the naming of the other types in the file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Describe in words how the typ...
null
sine-fdn__polytune__126
sine-fdn/polytune
126
defect
5524fbb1e98aa79be33db99d9e04af88778917e7
635b85fd12e57a7225f72f6be7d192adc11b193d
61 sequential sending receiving in faand
Part of the work on https://github.com/sine-fdn/polytune/issues/61. This introduces concurrent sending and receving in the src/faand.rs implementation of preprocessing. Note: This commit was created with the help of claude code in an interactive session. I instructed claude to change the loops containing awaited ...
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index cfb9e34d..4c9596a4 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -15,6 +15,7 @@ env: jobs: lint: runs-on: ubuntu-latest + timeout-minutes: 15 steps: - uses: ac...
2
2
1
[{"id": "G0", "claim": "This pull request's change causes a deadlock in the iroh-p2p-channels example.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "broadcast_first_send_second scatters data while only implicitly (unverified-)broadcasting the first...
null
sine-fdn__polytune__144
sine-fdn/polytune
144
defect
b257cbdf2fd6fed5db47c232a5d220140ae50df4
7a38abca024282756e666fc6d0e0240acbacee90
Sql-integration use case update
We had an interesting use case with a German municipality where we bring together location (address) data from the municipality with the database of individuals who have "care level"s (Pflegestufen in German) in order to be able to generate a heat map for the disaster management team about the distribution of individua...
diff --git a/examples/sql-integration/.example.garble.rs b/examples/sql-integration/.example.garble.rs index d8b9f08b..60532305 100644 --- a/examples/sql-integration/.example.garble.rs +++ b/examples/sql-integration/.example.garble.rs @@ -2,29 +2,16 @@ const ROWS_0: usize = PARTY_0::ROWS; const ROWS_1: usize = PARTY_1...
6
4
1
[{"id": "G0", "claim": "The file examples/sql-integration/seeds/db0/init.sql is missing a trailing newline and should end with one.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The file examples/sql-integration/seeds/db1/disability.csv is missing ...
null
sine-fdn__polytune__204
sine-fdn/polytune
204
defect
6528959ce82befd515709674255f2286c42d92ba
5446d9e6bb0ec054605d88cffb691cc7e411a1ce
Optionally store intermediate data in tmp files
To reduce peak memory consumption (#113) this PR adds the optional to provide a directory to the `mpc` function. When provided, intermediate data such as `random_shares`, `auth_bit`, `garbled_gates`, etc. will be written to a temporary file in chunks. When needed, these files are read chunk by chunk. This improves peak...
diff --git a/.github/workflows/bench_large_join.yml b/.github/workflows/bench_large_join.yml index b9bd6893..ffa90737 100644 --- a/.github/workflows/bench_large_join.yml +++ b/.github/workflows/bench_large_join.yml @@ -9,7 +9,7 @@ env: jobs: bench_large_join: - runs-on: ubicloud-standard-30-ubuntu-2404 + ru...
3
2
0
[{"id": "G0", "claim": "The PR author is not happy with adding an `Option<&Path>` tmp_dir parameter to `mpc` and suggests alternative APIs instead (a `mpc_with_tmp_dir` function, a general `Options` struct, or a `mpc_with` function).", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}...
null
sine-fdn__polytune__255
sine-fdn/polytune
255
defect
c25b186d1c3c7819f2a829bdfb91f8797b6d96d7
c9b15da5f6e146387a15b52fcc7079571f19db0f
Introduce tracing for structured logging
This PR addresses #65 by introducing `tracing` for more structured logging in our code. Supersedes #187 (a lot has changed since then in the core protocol implementation, e.g., register-based circuits and files were introduced).
diff --git a/src/mpc/faand.rs b/src/mpc/faand.rs index 6e8a233f..8211a23d 100644 --- a/src/mpc/faand.rs +++ b/src/mpc/faand.rs @@ -5,6 +5,7 @@ use futures::future::try_join_all; use rand::{Rng, SeedableRng, random, seq::SliceRandom}; use rand_chacha::ChaCha20Rng; use serde::{Deserialize, Serialize, de::DeserializeOw...
6
4
1
[{"id": "G0", "claim": "The `mpc` span's `#[instrument]` level should be `INFO` instead of `DEBUG` so that its `info!` events appear when the collected level is set to `info`.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The mismatch branch in `si...
null
sine-fdn__polytune__276
sine-fdn/polytune
276
defect
2fe960c8250fabf95d5b37730b1a8682bddf35c8
bff4614f2616a3c4d1e23f0c07dc6a6da1a33597
http-server: improved testing
This adds a second integration test for the http-server which tests the concurrent evaluation of multiple random policies. The seed for the PRG is printed in the logs and can be explicitly set with the POLYTUNE_TEST_SEED env variable.
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7ff92ee3..a910c19d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -161,7 +161,7 @@ jobs: with: toolchain: stable - uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 - - run: c...
2
1
0
[{"id": "G0", "claim": "The garble program's approach (pairwise check vs. private set intersection depending on the size of measles_procedure_file_state_ids) should be documented in a doc comment on the program.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
sine-fdn__polytune__280
sine-fdn/polytune
280
defect
0994e16005b16062d0038fe254c2a2f90930ec42
ce55c2dde4c7c0c9b8c7ac4541ae95674e9f4c84
Fix issue with differing output for different parties
In #255 we realized that the outputs were not anymore the same for all parties in one of the tests. This was caused when introducing register-based circuits.
diff --git a/src/mpc/faand.rs b/src/mpc/faand.rs index 8211a23d..db4b6c2f 100644 --- a/src/mpc/faand.rs +++ b/src/mpc/faand.rs @@ -1,5 +1,5 @@ //! Preprocessing protocol generating authenticated triples for secure multi-party computation. -use std::vec; +use std::{fmt, vec}; use futures::future::try_join_all; use ...
3
3
2
[{"id": "G0", "claim": "The pull request still does not return an Error when the differing-output issue occurs, and the author asks how errors should be surfaced (possibly deferring the error-logging question to a separate PR).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"...
null
sine-fdn__polytune__73
sine-fdn/polytune
73
defect
805cc5dd454a39aba67f748cc2b19fc395e5786a
b589cb770524601ebaee5a558a03198bde766d15
Memory benchmarking
This implements an initial version of memory benchmarking for the mpc evaluation. This is done via a custom global allocator that checks a thread local for the current party id and a future wrapper that sets this id when the future is polled.
diff --git a/.gitignore b/.gitignore index ea8c4bf7..e6e952ff 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ /target + +heaptrack*.zst +*.tmp diff --git a/benches/main.rs b/benches/main.rs index 35a6e86e..da1f2c5a 100644 --- a/benches/main.rs +++ b/benches/main.rs @@ -1,16 +1,26 @@ use criterion::Criterion; ...
4
2
1
[{"id": "G0", "claim": "Criterion's required minimum of 10 samples unnecessarily increases the benchmark runtimes for peak-memory benchmarking, and forking criterion to lower that minimum is floated as an option.", "category": "performance", "verdict": "opposed", "priority": "P3", "scope": "pre_existing"}, {"id": "G1",...
null
sinelaw__fresh__1712
sinelaw/fresh
1,712
defect
29c11c83cfdbebdd2e80ddbfbbff84fd7e7d0c21
79594abb5388bec8fc65389e9787c29e29bc1d0c
feat: add new keybindings for quick open buffers and files
# Summary Add dedicated keybindings for `Quick Open palette` variants: - `Ctrl+;` → buffers palette (`#` prefix) - switch between open tabs - `Ctrl+'` → files palette (empty prefix) - find files in project - `Ctrl+P` → command palette (`>` prefix) - unchanged Currently, pressing `Ctrl+P` opens the command palette ...
diff --git a/crates/fresh-editor/keymaps/default.json b/crates/fresh-editor/keymaps/default.json index 7de8925448..2db242aa61 100644 --- a/crates/fresh-editor/keymaps/default.json +++ b/crates/fresh-editor/keymaps/default.json @@ -9,6 +9,22 @@ "args": {}, "when": "global" }, + { + "comment": ...
4
4
3
[{"id": "G0", "claim": "The locale keys `t!(\"action.quick_open_buffers\")` and `t!(\"action.quick_open_files\")` called in keybindings.rs are absent from all 14 locale files under crates/fresh-editor/locales/; real translations (or at minimum English values) must be added to every locale file.", "category": "correctne...
null
sinelaw__fresh__1764
sinelaw/fresh
1,764
defect
0784fb8a1dd720e7ac0e9232620211d7a7a402c7
6f876e9da3b5f26665e72277bc668254d7bf5624
feat: Add go to line with selection feature (absolute + relative)
~This is `go to line with selection` feature for non vim mode (and a follow up for the `go to negative numbers for the relative line numbers mode` feature). We already have `ctrl + g` and `:` in command palette which moves cursor to the line. This PR adds `Got to line with selection` action and `::` (for consistency wi...
diff --git a/crates/fresh-editor/plugins/goto_with_selection.i18n.json b/crates/fresh-editor/plugins/goto_with_selection.i18n.json new file mode 100644 index 0000000000..eebc8558d0 --- /dev/null +++ b/crates/fresh-editor/plugins/goto_with_selection.i18n.json @@ -0,0 +1,58 @@ +{ + "en": { + "cmd.goto_line_with_selec...
3
3
3
[{"id": "G0", "claim": "The maintainer states this feature is better implemented as a plugin or custom init.ts script (he had to fix gotoline mark handling to get the original approach to work), and asks for the implementation to be reworked.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "u...
null
sinelaw__fresh__1803
sinelaw/fresh
1,803
defect
d3bc4c6cfd68c41176f11ebae0011f78e60c3a00
995fc5dce060e751dc1e3e186ab05dbcdeef45c3
feat(file-explorer): add follow_active_buffer config option
<details><summary>Claude summary</summary> Adds `file_explorer.follow_active_buffer` (default: `false`) so users can opt in to automatic file explorer sync on tab switch. When enabled, switching tabs expands the tree and highlights the file corresponding to the newly active buffer — without stealing keyboard focus fr...
diff --git a/crates/fresh-editor/src/app/active_focus.rs b/crates/fresh-editor/src/app/active_focus.rs index 42aa2089ae..b7801255e8 100644 --- a/crates/fresh-editor/src/app/active_focus.rs +++ b/crates/fresh-editor/src/app/active_focus.rs @@ -120,8 +120,12 @@ impl Editor { // Ensure the newly active tab is vis...
3
2
2
[{"id": "G0", "claim": "The new follow_active_buffer feature ships with no test, violating CONTRIBUTING.md §Testing #1; an e2e test must be added that opens multiple files, switches tabs, and asserts the explorer selection matches the active buffer by observing rendered output only.", "category": "testing", "verdict": ...
null
sinelaw__fresh__693
sinelaw/fresh
693
defect
ad3b3f80a15bc5f006671b8785d25a8dd6e4c37b
3c08526754c8d85ab1e57455d0e72c3e404230de
fix make lsp auto completion more natural #601
fix #601 with opus 4.5 <img width="1478" height="1000" alt="image" src="https://github.com/user-attachments/assets/c2c21616-1851-467a-88cc-5aa2c3f2e272" /> Changes Made 1. src/services/async_bridge.rs - Added completion_trigger_characters field to LspInitialized message to pass trigger characters from...
diff --git a/src/app/input.rs b/src/app/input.rs index 74374889bc..166db4c2d9 100644 --- a/src/app/input.rs +++ b/src/app/input.rs @@ -2507,6 +2507,9 @@ impl Editor { let _ = self.request_signature_help(); } + // Auto-trigger completion on trigger characters + self.maybe_trigger_co...
5
2
1
[{"id": "G0", "claim": "Triggering completion does not check whether a completion popup is already visible, so typing a trigger character while a popup is shown sends a new completion request that may unnecessarily replace the current popup; the reviewer asks to check completion_items or a pending completion request be...
null
single-spa__single-spa__156
single-spa/single-spa
156
defect
988a7fd5cce54ff5aca6c657d79b5e050d16e634
ba2b2d8c76e8a9845665953dc86cdbb894c6e610
Added a property to pass information from the root app to the child apps
I've added a third parameter to registerApplication which allows you to pass an object down to the child applications live cycle methods. We needed something like this to enable cross application communication by injecting an instance of our event emitter down to the child app. There was also a discussion about t...
diff --git a/spec/apps/lifecycle-props/lifecycle-props.spec.js b/spec/apps/lifecycle-props/lifecycle-props.spec.js index 332f56d9..5958033f 100644 --- a/spec/apps/lifecycle-props/lifecycle-props.spec.js +++ b/spec/apps/lifecycle-props/lifecycle-props.spec.js @@ -4,10 +4,6 @@ export default function() { describe(`lif...
5
3
2
[{"id": "G0", "claim": "Consider allowing the customProps argument to be a function that gets invoked with the app and the other apps to transform the props passed down to the child app, for added flexibility.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
single-spa__single-spa__198
single-spa/single-spa
198
defect
2e7745e1396c89eba66cc9d67689b651f3a0ddb4
2a9dd76607985f46243181bec675e85a49d4cee0
Implementing update lifecycle for parcels.
See https://github.com/CanopyTax/single-spa/issues/185
diff --git a/.gitignore b/.gitignore index 2bd07dfa..8337dc41 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ dist/ *.build.spec.js *.build.spec.js.map .DS_Store +yarn-error.log diff --git a/spec/parcels/mount-root-parcel.spec.js b/spec/parcels/mount-root-parcel.spec.js index d06ffa34..8401de2b 100644 ---...
5
2
0
[{"id": "G0", "claim": "The UPDATING status should live in a new parcel-helpers file instead of app.helpers.js, since it does not apply to applications.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Shared lifecycle helpers such as reasonableTi...
null
single-spa__single-spa__395
single-spa/single-spa
395
defect
2dd1f0fd9be5ff6a8bf2e3cb218ec37b7e2e74e0
edd93e664989b10ad45d5c51d766ba2e3f059f47
(5.0): Refactoring navigateToUrl to reduce byte size
Before: ```sh 23778 bytes - lib/esm/single-spa.min.js 23800 bytes - lib/system/single-spa.min.js 23985 bytes - lib/umd/single-spa.min.js ``` After: ```sh 23012 bytes - lib/esm/single-spa.min.js 23034 bytes - lib/system/single-spa.min.js 23231 bytes - lib/umd/single-spa.min.js ``` Two perf things here: ...
diff --git a/.eslintrc b/.eslintrc index 9472ae7f..55c67f8a 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,3 +1,10 @@ { - "extends": "canopy" + "extends": [ + "canopy", + "important-stuff" + ], + "env": { + "browser": true, + "node": true + } } diff --git a/package.json b/package.json index 00cd4c8b..5...
2
2
1
[{"id": "G0", "claim": "The anchor-tag return object from the rewritten parseUri may not have the same shape as the object the old parser returned, and the reviewer asks whether it does.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Adding @rollup/plugi...
null
single-spa__single-spa__482
single-spa/single-spa
482
defect
af9309cf473a3d27d912f5982a678b2fda682f67
ea62cb97f9bc651ce08d480dec6e289c7560d19b
RegisterApplication with object config
## What this PR does? - Enhance current registerApplication API to use object configuration. (#475 ) - Created a new error to help users to identify invalid keys in runtime (If this PR is approved, I'll open a PR to S-SPA blog to add this new error) - Tried to separate internals to handle obj configuration vs argume...
diff --git a/spec/apis/app-names.spec.js b/spec/apis/app-names.spec.js index 08b1ba6e..cf8f2d0b 100644 --- a/spec/apis/app-names.spec.js +++ b/spec/apis/app-names.spec.js @@ -14,14 +14,22 @@ describe(`app-names`, () => { } }; singleSpa.registerApplication( - "./app-names.app.js", + "usingArgu...
17
16
4
[{"id": "G0", "claim": "The new validation/sanitization functions are only used in one place, so they should be moved out of the shared app.helpers.js file into apps.js.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "registerApplication should p...
null
single-spa__single-spa__519
single-spa/single-spa
519
defect
e40629bc21859eac10d4a8b3ab38d431443a257d
2629e29b12e0da140f731208ed5f8a0b692efee1
fix: compre destination serch to current search
i think we should compare destination serch to current search, maybe it's a clerical error?
diff --git a/src/navigation/navigation-events.js b/src/navigation/navigation-events.js index 6f901b9c..703d5737 100644 --- a/src/navigation/navigation-events.js +++ b/src/navigation/navigation-events.js @@ -52,7 +52,7 @@ export function navigateToUrl(obj) { } } else if ( destination.pathname === current.pa...
1
1
1
[{"id": "G0", "claim": "Could you please add a test for this bug fix (comparing destination.search to current.search) in spec/apis/navigate-to-url.spec.js.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
single-spa__single-spa__532
single-spa/single-spa
532
defect
93a95f08f044bfa583c556ede40ac10deb4ea0f6
e01e5adba2ab2ac674039431b89769531ddf3e68
chore (NavigationEvents)[#528]: Identify extraneous popstate event on push/replace state
## Summary Addresses #528 by adding properties to the `PopStateEvent` instance which identify the event as being generated by SingleSpa and indicate which original history method triggered it. ### Code Change Update the `PopStateEvent` returned by `createPopStateEvent` to look like: ```js const evt = new P...
diff --git a/spec/apis/navigate-to-url.spec.js b/spec/apis/navigate-to-url.spec.js index 6e7a3fe4..bf7240cb 100644 --- a/spec/apis/navigate-to-url.spec.js +++ b/spec/apis/navigate-to-url.spec.js @@ -66,7 +66,7 @@ describe("navigateToUrl", function () { singleSpa.navigateToUrl("/start-path#a/other"); expectPat...
4
3
2
[{"id": "G0", "claim": "IE11 sometimes goes into the catch branch of createPopStateEvent, and the change should account for that by setting the new singleSpa/originalMethodName identification properties on that path too.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id...
null
single-spa__single-spa__547
single-spa/single-spa
547
defect
9245218a1a4685ad80dda58d28e8fde8f60ef31d
0bc6bb2b57271213c686cb362719039aae430c28
before-app-change and before-no-app change events. Resolves #545
See #545. Use case for this is "place a loader while apps are changing, then remove loader once they're done"
diff --git a/spec/apis/single-spa-events-api.spec.js b/spec/apis/single-spa-events-api.spec.js index 396aed13..f0bbc964 100644 --- a/spec/apis/single-spa-events-api.spec.js +++ b/spec/apis/single-spa-events-api.spec.js @@ -47,7 +47,9 @@ describe(`events api :`, () => { russellApp, () => window.location.ha...
2
1
0
[{"id": "G0", "claim": "Filling the detail of `single-spa:before-routing-event` and `single-spa:before-mount-routing-event` from the planned app changes instead of the apps that actually changed is technically a breaking change to those events' `newAppStatuses`/`appsByNewStatus` properties, even though it may amount to...
null
single-spa__single-spa__594
single-spa/single-spa
594
defect
140abd60d9997d19c560c93e20ffe64a77538a3c
f937f5502835f04d7ac2432f667443d1e4b9482b
Issue 593 Improve activeWhen to support query-strings in URL
# What does this PR do? This implements the fix in issue #593 In order to support both query-strings in pathname and in hash pathname, I opted for cleaning the route before trying to match with the regex. Now we always remove location.search and EVERYTHING after the '?' I'm assuming, after the location.search is rem...
diff --git a/spec/apis/path-to-active-when.spec.js b/spec/apis/path-to-active-when.spec.js index c2b9cb04..e9d25a2d 100644 --- a/spec/apis/path-to-active-when.spec.js +++ b/spec/apis/path-to-active-when.spec.js @@ -2,182 +2,121 @@ import { pathToActiveWhen } from "single-spa"; import { toDynamicPathValidatorRegex } fr...
2
1
0
[{"id": "G0", "claim": "activeWhen/path patterns that do not start with '/' (e.g. '#/subpath/:dynamic' or ':dynamic/:dynamic') can never match a real location.href, so the reviewers ask whether those asserts can be made true and suggest automatically prepending a '/' to such patterns.", "category": "correctness", "verd...
null
single-spa__single-spa__641
single-spa/single-spa
641
defect
340e3965d2fe29f92a986e50ff6bd3a9c2954057
1b164c5626b2e9e6378a360fb15d19c554a817a4
Add cancelNavigation, oldUrl, and newUrl to event detail.
This resolves #629
diff --git a/spec/apis/single-spa-events-api.spec.js b/spec/apis/single-spa-events-api.spec.js index a1e5933d..3b6fd880 100644 --- a/spec/apis/single-spa-events-api.spec.js +++ b/spec/apis/single-spa-events-api.spec.js @@ -526,4 +526,42 @@ describe(`events api :`, () => { .catch(fail); }); }); + + des...
1
1
1
[{"id": "G0", "claim": "An extra test covering cancelNavigation for popstate navigation should be added too, since hash routing is different from popstate and only the hash-navigation case is tested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
single-spa__single-spa__827
single-spa/single-spa
827
defect
a79e58ba2e9c7d41216b856b1c6b2edc80e392e3
7870a1272381d59a887b7213e57deed1e0812a4f
Expose patchHistoryApi. Improve DX for parcel-only usage.
Resolves #816 This implements all three of the proposals in #816. It makes things easier for those using single-spa history patching but not using single-spa applications. This PR's base branch is 6.0 because it contains breaking changes. - (Breaking) Delay patching history api until start() is called. - (Breaki...
diff --git a/spec/apis/patch-history-api.spec.js b/spec/apis/patch-history-api.spec.js new file mode 100644 index 00000000..d2efa559 --- /dev/null +++ b/spec/apis/patch-history-api.spec.js @@ -0,0 +1,42 @@ +import { navigateToUrl, patchHistoryApi } from "../../src/single-spa"; + +describe("patchHistoryApi", () => { + ...
1
1
1
[{"id": "G0", "claim": "patchHistoryApi should take a urlRerouteOnly parameter and pass it through to the patched updateState, because urlRerouteOnly callers still have to call start() to get that behaviour while patching is now deferred.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "...
null
single-spa__single-spa__828
single-spa/single-spa
828
defect
a79e58ba2e9c7d41216b856b1c6b2edc80e392e3
5934701d61647a571ea47d680197a91d35ae689f
Change urlRerouteOnly default value to true.
When urlRerouteOnly is true, single-spa does not reroute, fire extraneous popstate events, etc when the URL does not change during a navigation. The option was introduced in a minor version of single-spa@5, but turned off. However, I think it's a good default to have it on, as it's a good performance boost for those...
diff --git a/spec/apis/event-listeners.spec.js b/spec/apis/event-listeners.spec.js index 100daedb..cb4a39b0 100644 --- a/spec/apis/event-listeners.spec.js +++ b/spec/apis/event-listeners.spec.js @@ -120,39 +120,20 @@ describe(`event listeners after single-spa is started`, () => { } }); - it(`Does trigger a r...
2
1
1
[{"id": "G0", "claim": "The new `Fires artificial popstate events with correct target` test could take an `async (done)` parameter instead of the promise-based pattern, if that makes things easier.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "It...
null
single-spa__single-spa__868
single-spa/single-spa
868
defect
adef2a67834c7d5882a1843e2d4ecf3fa0ad0ceb
a6811c9f5c9e5c6843e7ce95679186e6e7e286b4
Implement profiler for lifecycle events.
This sets up the approach for profiling and then implements it for application and parcel lifecycles. To start with, I've just added the profiler to the single-spa dev build, not prod build. I know that React has a production profiler build but didn't think the performance difference between the dev and prod build to b...
diff --git a/.eslintrc b/.eslintrc index c923155b..59d78257 100644 --- a/.eslintrc +++ b/.eslintrc @@ -6,7 +6,8 @@ "node": true }, "globals": { - "__DEV__": true + "__DEV__": true, + "__PROFILE__": true }, "plugins": ["es5"], "rules": { diff --git a/.github/workflows/build-and-test.yml b/.g...
2
1
0
[{"id": "G0", "claim": "The lifecycle timing code should use performance.now() instead of Date.now() for the profiler timestamps.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "addProfileEntry could take its data as a single object parameter instead...
null
single-spa__single-spa__90
single-spa/single-spa
90
defect
4ceb2c69a26c1aec9fc0675516dca0e347c4e87b
fffe180e6d76557b69da8aedcb23adb041d996fb
Implementing unload lifecycle and unloadChildApplication. Fixes #89
See #89. This will provide for a lot of cool features, like hot-reloading child applications.
diff --git a/package.json b/package.json index c676b19f..f3aba22c 100644 --- a/package.json +++ b/package.json @@ -5,14 +5,15 @@ "main": "lib/single-spa.js", "scripts": { "jspm-install": "jspm install", - "build": "./bin/build-code", + "build": "./bin/build-code -p", + "build:dev": "./bin/build-code...
1
1
0
[{"id": "G0", "claim": "Add tests for calling `unloadChildApplication` when an app is in the other lifecycle statuses (LOADING_SOURCE_CODE, NOT_BOOTSTRAPPED, BOOTSTRAPPING, NOT_MOUNTED, MOUNTING, UNMOUNTING, UNLOADING), since the current tests only cover unloading from MOUNTED and NOT_LOADED status.", "category": "test...
null
singular-labs__parametrization__1
singular-labs/parametrization
1
defect
e654bdd313a957f50738a0f970d5c53271d4c41a
7b654dcaac4de99477296060d129c87896f4c0af
Add support for generating test case name based on case arguments
Some times one parameter (or a combination of parameters) describe the test case. In these cases I have found out that I want to duplicate parameter values to the name. This PR adds support for name factory, i.e. a callable that receives all the case parameters and returns the name for the case.
diff --git a/README.md b/README.md index 42a495b..204413d 100644 --- a/README.md +++ b/README.md @@ -45,3 +45,17 @@ from parametrization import Parametrization def test_somthing(actual, expected): assert actual == expected ``` +### Generate name based on arguments +```python +from parametrization import Parametr...
1
1
1
[{"id": "G0", "claim": "The README example's name-factory lambda uses undefined names 'a' and 'b' instead of its declared parameters 'actual' and 'expected', and yoyonel asks to fix the example (suggesting f-strings or consistent parameter naming).", "category": "documentation", "verdict": "supported", "priority": "P1"...
null
sinkillerj__ProjectE__1792
sinkillerj/ProjectE
1,792
defect
9d4282098a41ff7164f8ba3300e608c20e47543e
4e45de932fa03672775fc91066ddecf2cfe54133
Crafttweaker Integration
Updated minetweaker integration to work with CraftTweaker PhiloStone CrT methods: ``` mods.projecte.PhiloStone.addPhiloSmelting(String name, IItemStack output, IIngredient input, @Optional IIngredient fuel); mods.projecte.PhiloStone.removePhiloSmelting(IItemStack output); mods.projecte.PhiloStone.removeAllPhiloSme...
diff --git a/build.gradle b/build.gradle index 6ee9bd4da..9d6930eca 100644 --- a/build.gradle +++ b/build.gradle @@ -80,7 +80,9 @@ dependencies { deobfCompile "mezz.jei:jei_1.12:4.7.0.67" deobfCompile "com.azanor.baubles:Baubles:1.12-1.5.2" - deobfCompile "CraftTweaker2:CraftTweaker2-API:4.1.9.481" + ...
2
1
0
[{"id": "G0", "claim": "Delete the whole src/main/java/moze_intel/projecte/integration/Integration.java file, which this pull request left as an empty husk (empty modChecks, init only calling it).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
sinkillerj__ProjectE__1805
sinkillerj/ProjectE
1,805
defect
5982ad284a8de48979e94d443fe89a8bba5b0293
c5aeaa7003fcbd93d39de4130a5a45fe2791e8ef
Fix freeze when long overflows
Apparently I didn't test (or didn't test all cases) when a long can overflow and this fixes it so that Minecraft does not freeze if it does. Also removes comment that is from before the int -> long conversion which is not true for BigFraction
diff --git a/src/main/java/moze_intel/projecte/emc/arithmetics/FullBigFractionArithmetic.java b/src/main/java/moze_intel/projecte/emc/arithmetics/FullBigFractionArithmetic.java index b5cf9180f..276cfa990 100644 --- a/src/main/java/moze_intel/projecte/emc/arithmetics/FullBigFractionArithmetic.java +++ b/src/main/java/mo...
4
2
2
[{"id": "G0", "claim": "A test case should be written for the overflow case the pull request is trying to fix.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The overflow check limits the possible EMC range: an item whose numerator exceeds max long but ...
null
sinonjs__fake-timers__112
sinonjs/fake-timers
112
defect
104f1cceff48b916de4a0851d8a61703cc967d31
966e206c88a72c36de9561262c2f64053a2c2300
error on incorrect install use
Error on incorrect install use of lolex 2. Fixes https://github.com/sinonjs/lolex/issues/108
diff --git a/src/lolex-src.js b/src/lolex-src.js index 5cfb465c..89b1e9e6 100644 --- a/src/lolex-src.js +++ b/src/lolex-src.js @@ -637,6 +637,10 @@ exports.createClock = createClock; * @param config.loopLimit {number} the maximum number of timers that will be run when calling runAll() */ exports.install = function...
2
2
1
[{"id": "G0", "claim": "The install() type check should also throw a TypeError when config is a Date, more than one argument is passed, or config is an array.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The number-parameter TypeError test should ...
null
sinonjs__fake-timers__123
sinonjs/fake-timers
123
defect
4824ca832314cef9546f80a066be00344d0b66ec
0ef1d37b94db48e30315b3a74e62b553e333ba8a
Next tick parameters
Lesson learned, test added, code fixed. Fixes https://github.com/sinonjs/lolex/issues/122
diff --git a/.gitignore b/.gitignore index 07e6e472..68b21f0a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /node_modules +.DS_Store diff --git a/src/lolex-src.js b/src/lolex-src.js index c22aeaf0..ed2497a7 100644 --- a/src/lolex-src.js +++ b/src/lolex-src.js @@ -180,7 +180,7 @@ function runJobs(clock) { ...
5
1
0
[{"id": "G0", "claim": "The test should not assign to `this.clock` (nor call the accompanying `clock.uninstall()`); a local variable suffices.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The nextTick functionality is somehow still broken: integrating...
null
sinonjs__fake-timers__124
sinonjs/fake-timers
124
defect
9b774ceb43bf918c8d8162b3aa8465f655dac115
9cb862e2a691a7375ab0316c9731f0ed7ee3f902
issue #67 - overflowing the timer correctly according to int32_t
i did not change the logic for handling `setTimeout` with a value which is smaller than 1. I think this is redundant since some users might be using `setTimeout` with a value of 0, then `tick()`ing it might result in an unexpected sequence of timers being executed. There's one test that demonstrates this (`"calls the g...
diff --git a/src/lolex-src.js b/src/lolex-src.js index ed2497a7..cbf36624 100644 --- a/src/lolex-src.js +++ b/src/lolex-src.js @@ -2,6 +2,7 @@ var userAgent = global.navigator && global.navigator.userAgent; var isRunningInIE = userAgent && userAgent.indexOf("MSIE ") > -1; +var maxTimeout = 2147483647; // Make pr...
4
3
0
[{"id": "G0", "claim": "The timer's overflow handling should be aligned with the WebIDL convert-to-int algorithm (https://heycam.github.io/webidl/#abstract-opdef-converttoint).", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The maxTimeout constant s...
null
sinonjs__fake-timers__156
sinonjs/fake-timers
156
defect
444c9384ace3853761d76aa31fa4ac3648247c9d
3805ef16836420698f4ba56388b4a68ba478c993
Expose run microtasks
Fixes https://github.com/sinonjs/lolex/issues/147 cc @SimenB @fatso83
diff --git a/Readme.md b/Readme.md index cd2679f4..dd147e34 100644 --- a/Readme.md +++ b/Readme.md @@ -233,6 +233,10 @@ This makes it easier to run asynchronous tests to completion without worrying ab It runs a maximum of `loopLimit` times after which it assumes there is an infinite loop of timers and throws an erro...
1
1
1
[{"id": "G0", "claim": "The stray semicolon the PR adds after the updateHrTime function statement makes CI unhappy (lint failure).", "category": "maintainability", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
sinonjs__fake-timers__20
sinonjs/fake-timers
20
defect
654ebd556c40154233fead90c2007a60913067a5
65fd26e7ae78a614adcc217b5a5ef482d56a7160
Fix for Sinon.JS issue #766: clearTimeout() no longer clears Immediat…
…e/Interval and vice versa A clearTimeout(), given the ID of a timer started with setImmediate() or setInterval() would erroneously clear that immediate or interval
diff --git a/src/lolex.js b/src/lolex.js index f8fc3ac0..a0d94c51 100644 --- a/src/lolex.js +++ b/src/lolex.js @@ -258,6 +258,42 @@ } } + function timerType(timer) { + if (timer.immediate) { + return "immediate"; + } else if (typeof timer.interval !== "undefined") { + ...
3
1
1
[{"id": "G0", "claim": "In clearTimer, when clock.timers has not been initialised the function could simply return instead of assigning an empty array to it.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request's type-strict clearing ma...
null
sinonjs__fake-timers__225
sinonjs/fake-timers
225
defect
85af11d97deaafa8420330eb23e363769d0088e4
e85b1aafdfc36f988a3e1b1685e4248053a4a26c
[WIP] Issue #218 – `requestIdleCallback` implementation
#### First tests for requestIdleCallback and cancelIdleCallback added For a start and be able to move on with your help I added this tests: **requestIdleCallback** - throws if no arguments - returns numeric id - returns unique id **cancelIdleCallback** - removes idle callback #### requestIdleCallb...
diff --git a/test/lolex-test.js b/test/lolex-test.js index a877de99..77cf2d6f 100644 --- a/test/lolex-test.js +++ b/test/lolex-test.js @@ -2769,4 +2769,46 @@ describe("lolex", function () { }, true); }); }); + + describe("requestIdleCallback", function () { + + beforeEach(function (...
3
3
2
[{"id": "G0", "claim": "The `removes idle callback` test needs `clock.runAll` so the cancelled callback gets a chance to run; as written the assertion holds even if cancelling does nothing.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Positive tests a...
null
sinonjs__fake-timers__323
sinonjs/fake-timers
323
defect
7f8322effa73a94dc43896cdfb49d63e821b32d1
a8a8f7bf0921e12101275f2ffbe4b1724fdc4bb2
fix: fake all supported timers by default
#### Purpose (TL;DR) - mandatory It's very weird to me that this method is excluded from default mocking. I've read #126 and to me the solution seems to be for users to specify a `toFake` themselves, not force other people to specify "yes, when I say fake timers I do mean _all_ timers". Note that this should be con...
diff --git a/README.md b/README.md index d8f3c128..805efa4f 100644 --- a/README.md +++ b/README.md @@ -143,7 +143,7 @@ Parameter | Type | Default | Description --------- | ---- | ------- | ------------ `config.target`| Object | global | installs FakeTimers onto the specified target context `config.now` | Number/Date...
4
2
2
[{"id": "G1", "claim": "Faking nextTick and microtask scheduling by default is a pretty big breaking change that will break promise-library users and, more broadly, virtually every fake-timers install that uses the current API.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"...
null
sinonjs__fake-timers__400
sinonjs/fake-timers
400
defect
aaa815359a978c38c9f6d1238b37f5e15c113064
227160ce42e7ac337bce9bb93e51fbfe46ff7e8b
Faking performance when not present should throw an error (and minor changes) - fix for #374
#### Original purpose: enabling adding performance to toFake array - apparently this was already possible so a few minor changes were made. Issue #374 refers to the fact that `fake-timers` overrides `performance` object (as in other properties/methods in addition to overriding `performance.now()`). The first sugges...
diff --git a/src/fake-timers-src.js b/src/fake-timers-src.js index 58bce356..03922584 100644 --- a/src/fake-timers-src.js +++ b/src/fake-timers-src.js @@ -1525,20 +1525,6 @@ function withGlobal(_global) { if (performancePresent) { clock.performance = Object.create(null); - - if (hasPe...
5
3
0
[{"id": "G0", "claim": "The `clock.methods.includes(\"performance\")` check duplicates the `config.toFake` check, so it should be replaced with a `config.toFake.includes(\"performance\")` guard that throws early and flattens the conditionals.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "i...
null
sinonjs__fake-timers__412
sinonjs/fake-timers
412
defect
1b1ac4a781c57498b8aa9015c6448bd02e54830c
d725c33748db0ff8986e133100ac5e5fb2c7e9dc
fix global performance node 16
#### Purpose (TL;DR) - mandatory Fixes `performance` on Node 16 which has a global `performance` but not a global `Performance` cc @fatso83 @SimenB @itayperry
diff --git a/src/fake-timers-src.js b/src/fake-timers-src.js index 90346ca6..93349e4a 100644 --- a/src/fake-timers-src.js +++ b/src/fake-timers-src.js @@ -1,6 +1,13 @@ "use strict"; -const globalObject = require("@sinonjs/commons").global; +// Node.js stores certain things like the performance object on globalThis +...
8
3
0
[{"id": "G0", "claim": "There should be a reason given, or the change moved, rather than diverging from @sinonjs/commons here: is there a reason this globalObject/globalThis preference should not be included in @sinonjs/commons itself?", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
sinonjs__fake-timers__426
sinonjs/fake-timers
426
defect
f8a09c9096715789147b1132c645281eb0c3e341
fb58a72b7dc9d8ac2fd7794c7eb030edb0838ee7
Prohibit faking of faked timers
#### Purpose This change will prohibit the faking of already faked timers. #### Background (Problem in detail) This addresses https://github.com/sinonjs/sinon/issues/2449. The problem this PR is addressing can occur when an exception is thrown before a timer is `uninstall`ed or if a nested test tries to fak...
diff --git a/src/fake-timers-src.js b/src/fake-timers-src.js index 8dcc78db..c8b11991 100644 --- a/src/fake-timers-src.js +++ b/src/fake-timers-src.js @@ -1,6 +1,7 @@ "use strict"; const globalObject = require("@sinonjs/commons").global; +const globalDate = globalObject.Date; /** * @typedef {object} IdleDeadli...
4
3
2
[{"id": "G0", "claim": "Someone writing a test with fake timers inside a suite that already uses fake timers may expect double faking plus restoring to work, so it is not clear the pull request should prohibit it.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
sinonjs__fake-timers__465
sinonjs/fake-timers
465
defect
947a7e74121909cb42dd2e04816c0e89810bef10
8555c6a1062e82859dad143b54f596d9d5410da6
Add clock.jump method
#### Purpose (TL;DR) Closes #452 by creating the `clock.jump(time)` method enabling skipping forward in time and running any timers at most once.
diff --git a/README.md b/README.md index 22f40d91..049f0672 100644 --- a/README.md +++ b/README.md @@ -255,6 +255,13 @@ Advances the clock to the the moment of the first scheduled timer, firing it. The `nextAsync()` will also break the event loop, allowing any scheduled promise callbacks to execute _before_ running t...
2
2
1
[{"id": "G0", "claim": "The test should also verify that the stub is called when the time is 2000 and not when it is 1000 (as it would have been with clock.tick(2000)).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new clock.jump method should be a...
null
sinonjs__sinon__1183
sinonjs/sinon
1,183
defect
35fe7d815c373393ab6f9f73edfa6455ec09b7a0
1ccaa94c71e8ade50b523f3d5e87bd82293587cd
Use last defined withArgs match when multiple conditions are met
This hopefully fixes #1053
diff --git a/lib/sinon/spy.js b/lib/sinon/spy.js index d98ce5556..ebc87f49b 100644 --- a/lib/sinon/spy.js +++ b/lib/sinon/spy.js @@ -53,9 +53,11 @@ function matchingFake(fakes, args, strict) { return undefined; } - for (var i = 0, l = fakes.length; i < l; i++) { - if (fakes[i].matches(args, st...
3
3
0
[{"id": "G0", "claim": "Split the whitespace-only changes in test/util/core/called-in-order-test.js into a separate commit, so each commit stays clear for git bisect.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Replace the reverse while-loop ...
null
sinonjs__sinon__1205
sinonjs/sinon
1,205
defect
bca6fe5fa6eeda69ade2714cd193162f36f79ac7
9060a4bf8fc05e252a7042fdd0a5734eff9c2336
Fix spying on *etter methods
#### Purpose (TL;DR) This PR aims to fix #1018 on `v1.17`. Basically I just needed to pass a new descriptor with only the property from the propDescriptor which is going to be spied on. I also added tests to prove both stubbing and spying work as @mroderick did on the issue itself. #### Background (Problem in det...
diff --git a/lib/sinon/spy.js b/lib/sinon/spy.js index 104f1ec59..2f3075049 100644 --- a/lib/sinon/spy.js +++ b/lib/sinon/spy.js @@ -31,11 +31,13 @@ } if (types) { + var descriptor = {}; var methodDesc = sinon.getPropertyDescriptor(object, property); + ...
3
2
0
[{"id": "G0", "claim": "The new descriptor logic in spy.js lacks code comments explaining why things are done, specifically why a new `descriptor` object is introduced.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The \"etters\" test-suite name ...
null
sinonjs__sinon__1462
sinonjs/sinon
1,462
defect
e7dbfd78037effd626ccd8f4420b5c660409e56e
ae274c3044e262994d5244b62ccac4d7f712bc56
Fix: check configurable on a prop before creating (fixes #1456)
#### Purpose (TL;DR) - mandatory Fixes #1456 by making sure propert is made `configurable` based on the object props. @lucasfcosta have created a fix with my beast understanding of your proposal. Feedback is welcome. Thanks
diff --git a/lib/sinon/default-behaviors.js b/lib/sinon/default-behaviors.js index fcd2422bc..13a8ce7b7 100644 --- a/lib/sinon/default-behaviors.js +++ b/lib/sinon/default-behaviors.js @@ -1,4 +1,7 @@ "use strict"; + +var getPropertyDescriptor = require("./util/core/get-property-descriptor"); + var slice = [].slice; ...
2
1
0
[{"id": "G0", "claim": "The regression test for #1456 should be environment-independent — a test on a plain object with a non-configurable property descriptor (moved to test/issues/issues-test.js with a description referencing the issue) rather than one that stubs the DOM-bound window.innerHeight, so it fails before th...
null
sinonjs__sinon__1496
sinonjs/sinon
1,496
defect
a6a2b8c788d2f88d6f2244b64c8752f1e859b55c
bc384ba9ff9e402bca5b4e970ee23bbc2e16bc2e
Issue #1485: Update lolex version and update fakeTimers documentation
This PR is to take care of updating to the latest lolex version, updating the fakeTimers method signatures and related tests. I've also started updating the documentation but wanted to consult beforehand. The question that arises is how to expose the lolex configuration (if at all). Right now the implementation is...
diff --git a/docs/release-source/release/fake-timers.md b/docs/release-source/release/fake-timers.md index 10c724f4a..a78772792 100644 --- a/docs/release-source/release/fake-timers.md +++ b/docs/release-source/release/fake-timers.md @@ -56,13 +56,15 @@ As above, but rather than starting the clock with a timestamp of 0,...
2
2
1
[{"id": "G0", "claim": "The rewritten useFakeTimers is hard to read: the for-loop building the config object could be a single Object.create statement, the conditionals are needlessly nested, and typeof null returns \"object\", which would cause errors if the method is called with null.", "category": "design", "verdict...
null
sinonjs__sinon__1532
sinonjs/sinon
1,532
defect
28bcedca330c5b7fd38eb024398dd015004f2b70
a85a355199a93ef9d9f7bb325a72cff1add762a2
Fix for `sinon.createFakeServer()` exception
Fixes #1531 by preserving the context of `nise.fakeServer.create` and `nise.fakeServerWithClock.create`
diff --git a/lib/sinon.js b/lib/sinon.js index 6f8827979..695a11301 100644 --- a/lib/sinon.js +++ b/lib/sinon.js @@ -29,8 +29,8 @@ exports.fakeServer = nise.fakeServer; exports.fakeServerWithClock = nise.fakeServerWithClock; exports.createSandbox = sandbox.create; -exports.createFakeServer = nise.fakeServer.create;...
1
1
1
[{"id": "G0", "claim": "The fakeServerWithClock.create mock added in the test evaluates the UUID string without returning it, so the function only returns undefined — add a return statement.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sinonjs__sinon__1626
sinonjs/sinon
1,626
defect
271d84a194493d7e4d76d862bb719ca366cc2cba
6b8b8b39b2c98b38948c5d5484cae3f2d90df25c
[feature] Spy passes through calling with `new`
#### Purpose (TL;DR) This changes the spy behavior so that if the spy is `calledWithNew()` then the original function will also get called with `new`. This was throwing an error if you tried spying on an ES6 class object. Fixes #1265 #### How to verify ``` let x = { y: class {} }; spy(x, 'y'); //...
diff --git a/lib/sinon/spy.js b/lib/sinon/spy.js index 9a44a33be..841d4828a 100644 --- a/lib/sinon/spy.js +++ b/lib/sinon/spy.js @@ -190,9 +190,15 @@ var spyApi = { try { this.invoking = true; - returnValue = (this.func || func).apply(thisValue, args); - var thisCall = th...
4
4
2
[{"id": "G0", "claim": "The `new`-call-through branch should be nested inside the first `thisCall.calledWithNew()` check instead of duplicating the condition.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the linting errors so the build passes.", "c...
null
sinonjs__sinon__1984
sinonjs/sinon
1,984
defect
f99e2ef14a24d7ba75d4d2691c4b6e740e1996fa
46940e809bf1dbb0737a5dd76dce217b317cf28f
don't call extends.nonEnum in spy.resetHistory
#### Purpose (TL;DR) - mandatory <!-- > give a concise (one or two short sentences) description of what what problem is being solved by this PR > > Example: Fix issue #123456 by re-structuring the colour selection conditional in method `paintBlue` --> Fixes #1983 by not calling `extends.nonEnum()` in `spy.rese...
diff --git a/lib/sinon/spy.js b/lib/sinon/spy.js index 3c5f70336..b91a5491b 100644 --- a/lib/sinon/spy.js +++ b/lib/sinon/spy.js @@ -152,7 +152,26 @@ function createProxy(func, proxyLength) { return p.invoke(func, this, slice(arguments)); }; } - extend.nonEnum(p, { isSinonProxy: true }); +...
3
3
1
[{"id": "G0", "claim": "If no test verifies that resetHistory doesn't make the properties enumerable again, one should be added.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The added tests should be more focused on the enumerable properties (dropping...
null
sinonjs__sinon__2012
sinonjs/sinon
2,012
defect
15a9d65122df2527d1f95a66da14add0c54de61f
30e1bb38394136cbcd36ae3744e68fc6419636cc
Fix issue #1964
#### Purpose Fix #1964 by adding a helper method to walk the stub parent links to find the `wrappedMethod` value for the `callsThrough` behavior. #### Background If you try to use the `callsThrough` behavior on a `withArgs` stub, calling the stub with the matching args will fail, because the behavior fails t...
diff --git a/lib/sinon/behavior.js b/lib/sinon/behavior.js index 15cb524e6..641e2e585 100644 --- a/lib/sinon/behavior.js +++ b/lib/sinon/behavior.js @@ -170,7 +170,8 @@ var proto = { } else if (this.reject) { return (this.promiseLibrary || Promise).reject(this.returnValue); } else if (thi...
1
1
1
[{"id": "G0", "claim": "When no stub in the parent chain carries a wrappedMethod, effectiveWrappedMethod should fail fast by throwing an explicit Error (naming the broken assumption) instead of returning undefined and letting wrappedMethod.apply fail with a null pointer exception.", "category": "correctness", "verdict"...
null
sinonjs__sinon__2088
sinonjs/sinon
2,088
defect
805d9574977459ac8daa7619b9b7059e7f0ca940
635c74f71c57f6e3e54c32cf2bdd083938290dab
Restore object implementation
Took a quick stab at this one, I probably forgot a lot of corner cases. Feel free to help me flesh this out. Fixes #2087
diff --git a/lib/sinon.js b/lib/sinon.js index 7fce809a0..3956e999a 100644 --- a/lib/sinon.js +++ b/lib/sinon.js @@ -14,6 +14,7 @@ var apiMethods = { createSandbox: createSandbox, assert: require("./sinon/assert"), match: require("@sinonjs/samsam").createMatcher, + restoreObject: require("./sinon/rest...
4
3
1
[{"id": "G0", "claim": "The test name misspells \"falsy\" as \"falsey\" and should be changed to \"falsy\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The nested condition in restoreObject could be flattened with the return-early pattern to re...
null
sinonjs__sinon__2410
sinonjs/sinon
2,410
defect
383b08323d9daa0f689f06d40cca1d2d0950b883
98a180454f32deb9ca4d7c8f4028486c8a142d25
Check call count type
#### Purpose (TL;DR) Fix #2408 by checking the type of the argument to callCount and emitting a specfic error message if it is not a number #### Details I also refactored the assert tests a bit while I was here - the current code is manually removing the stack traces in each individual test, but since we alrea...
diff --git a/lib/sinon/assert.js b/lib/sinon/assert.js index ffd34e550..5af71bbb6 100644 --- a/lib/sinon/assert.js +++ b/lib/sinon/assert.js @@ -159,10 +159,16 @@ function createAssertObject() { callCount: function assertCallCount(method, count) { verifyIsStub(method); - if (method.ca...
2
2
1
[{"id": "G0", "claim": "The comment fixup from \"Omit the error message and the two top stack frames in sinon itself\" to \"Emit the error message...\" is wrong; the original wording was correct because the code omits the first three elements of this.stack (message plus two sinon frames).", "category": "documentation",...
null
sinonjs__sinon__2539
sinonjs/sinon
2,539
defect
fe799e78967cafcdfa29ef1d7cd00c420704b926
de4a6b149036ecd8b8708364846449241421cbaf
.define method
#### Purpose (TL;DR) - mandatory Add the `.define(obj, property, value)` method to the sandbox to allow temporarily define properties on the objects (i.e. until the sandbox is restored). Fixes #2195 #### How to verify - mandatory Run the tests #### Checklist for author - [x] `npm run lint` passes - ...
diff --git a/lib/sinon/sandbox.js b/lib/sinon/sandbox.js index d5a925a94..ab5898c67 100644 --- a/lib/sinon/sandbox.js +++ b/lib/sinon/sandbox.js @@ -212,7 +212,10 @@ function Sandbox() { const descriptor = getPropertyDescriptor(object, property); function restorer() { - if (descriptor.isO...
6
5
0
[{"id": "G0", "claim": "The error thrown when the property already exists should hint that the user may want to use sandbox.replace() instead.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In .define, a descriptor whose value is undefined is a di...
null
siom79__japicmp__372
siom79/japicmp
372
defect
87ad17ff2e12cbfb746d8a5e8e717402cd92e6b1
358fbd71fedd76bd62d4a675c92c8823be91e9a5
Take `transient` modifier into account
Resolves #371
diff --git a/japicmp/src/main/java/japicmp/compat/CompatibilityChanges.java b/japicmp/src/main/java/japicmp/compat/CompatibilityChanges.java index 12f586d8f..b0bcba63f 100755 --- a/japicmp/src/main/java/japicmp/compat/CompatibilityChanges.java +++ b/japicmp/src/main/java/japicmp/compat/CompatibilityChanges.java @@ -178...
1
1
1
[{"id": "G0", "claim": "The change removed the existing check that reports FIELD_TYPE_CHANGED for non-private fields whose type changed, and the reviewer asks why that code was removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
siom79__japicmp__397
siom79/japicmp
397
defect
68727ed928502f0062cab4177eea6efe21c2e697
8a10b717347c0c7a96d1b5eb5b55a222d648d899
fix: check changes in return types
I noticed that the maven plugin does not break on `METHOD_RETURN_TYPE_GENERICS_CHANGED`. This looked to be because method is not given a JApiCompatibilityChange, but instead the return type of the method is given a JApiCompatibilityChange. https://github.com/siom79/japicmp/blob/68727ed928502f0062cab4177eea6efe2...
diff --git a/japicmp-testbase/japicmp-test-maven-plugin/pom.xml b/japicmp-testbase/japicmp-test-maven-plugin/pom.xml index 684896e67..ee4996817 100644 --- a/japicmp-testbase/japicmp-test-maven-plugin/pom.xml +++ b/japicmp-testbase/japicmp-test-maven-plugin/pom.xml @@ -635,6 +635,12 @@ <sourceCompatible>true<...
1
1
1
[{"id": "G0", "claim": "The new return-type loop should respect the method exclusion check like the loop at line 218, and if the two blocks are the same, the duplicated logic should be refactored into a method called with the two sets of JApiCompatibilityChange.", "category": "correctness", "verdict": "supported", "pri...
null
sipeed__picoclaw__118
sipeed/picoclaw
118
defect
8807d8254f202ea4852662e2d26fdfa438e1591b
8b3bc15ba2c5b7c44ee0d826b60c9643702cffea
Feature/websearch OpenAI
Enable web search functionality in OpenAI models by default. have the dependency on https://github.com/sipeed/picoclaw/pull/102
diff --git a/config/config.example.json b/config/config.example.json index 7cd0ab8c6d..531ded27e4 100644 --- a/config/config.example.json +++ b/config/config.example.json @@ -79,7 +79,8 @@ }, "openai": { "api_key": "", - "api_base": "" + "api_base": "", + "codex_web_search": true },...
5
4
3
[{"id": "G0", "claim": "CodexWebSearch is too Codex-specific a member for the generic ProviderConfig struct and should be renamed (e.g. to WebSearch); the merge conflict should also be fixed.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "With omitempty ...
null
sipeed__picoclaw__173
sipeed/picoclaw
173
defect
1cff7d4e37c9c245b192c8b8e8e0d22bfd112a96
d370ca744b14b77568fff2dd75ed041762cc9931
fix: resolve multiple bugs from code review #116
Fixes four issues identified in the community code review: - Session persistence broken on Windows: session keys like "telegram:123456" contain ':', which is illegal in Windows filenames. filepath.Base() strips drive-letter prefixes on Windows, causing Save() to silently fail. Added sanitizeFilename() to replace inv...
diff --git a/pkg/agent/loop.go b/pkg/agent/loop.go index 73e83711947..f3dd940902b 100644 --- a/pkg/agent/loop.go +++ b/pkg/agent/loop.go @@ -16,6 +16,7 @@ import ( "sync" "sync/atomic" "time" + "unicode/utf8" "github.com/sipeed/picoclaw/pkg/bus" "github.com/sipeed/picoclaw/pkg/config" @@ -768,10 +769,13 @@ ...
1
1
0
[{"id": "G0", "claim": "Use the standard library filepath package instead of a hand-written character replacer to turn session keys into safe filenames.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sipeed__picoclaw__2144
sipeed/picoclaw
2,144
defect
27f638e909a2f91245f34deab72838f1b78471dd
906adedc0eebc0c8c8a8330c7b454bfbaf7ea756
fix(feishu): enrich reply context for card and file replies
## Summary - Enrich Feishu inbound metadata with reply linkage fields (parent_id, root_id, thread_id, reply_to_message_id) and centralize metadata building. - Add best-effort reply-context reconstruction for Feishu replies by resolving reply target IDs from event payload and message-detail fallback, then prepending a ...
diff --git a/pkg/channels/feishu/feishu_64.go b/pkg/channels/feishu/feishu_64.go index 5c57cfb026..390468d8b4 100644 --- a/pkg/channels/feishu/feishu_64.go +++ b/pkg/channels/feishu/feishu_64.go @@ -14,6 +14,7 @@ import ( "strings" "sync" "sync/atomic" + "time" lark "github.com/larksuite/oapi-sdk-go/v3" lar...
3
3
3
[{"id": "G0", "claim": "For regular Feishu messages parent_id/root_id are empty, so the message-detail fallback still executes even when the event is not a reply, and since prependReplyContext is called on every inbound message regular traffic now requires an additional network round-trip request for messages.get.", "c...
null
sipeed__picoclaw__2201
sipeed/picoclaw
2,201
defect
a9c76eca2106ead71962faa6dfd0bbfdd21ca1ae
61af673bb7f33c645e16ead8ffdf8997abab77f9
feat(updater): robust self-update selection & extraction (nightly default)
## 📝 Description related to: https://github.com/sipeed/picoclaw/issues/618 <!-- Please briefly describe the changes and purpose of this PR --> - Add exported helpers for constructing GitHub release API URLs: `GetReleaseAPIURL`, `GetProdReleaseAPIURL`, `GetReleaseTagAPIURL`, `GetNightlyReleaseAPIURL`. - Default beh...
diff --git a/cmd/picoclaw/main.go b/cmd/picoclaw/main.go index bf9c0389f0..48dffbb339 100644 --- a/cmd/picoclaw/main.go +++ b/cmd/picoclaw/main.go @@ -24,6 +24,7 @@ import ( "github.com/sipeed/picoclaw/cmd/picoclaw/internal/status" "github.com/sipeed/picoclaw/cmd/picoclaw/internal/version" "github.com/sipeed/pico...
14
3
3
[{"id": "G0", "claim": "findAssetInfo claims to accept direct asset URLs but returns an error and drops the URL for them, making direct asset URLs unusable; it should return the direct URL with an empty checksum (callers opting into verification) or accept a separate checksum parameter.", "category": "correctness", "ve...
null
sipeed__picoclaw__2231
sipeed/picoclaw
2,231
defect
3b3f95c44cec309be99df08f973b26e33348bce4
48c0bb1e970a9a76d5e3179e57dc295155dcf341
fix(api): enhance model availability probing with backoff and caching mechanisms
## 📝 Description This PR fixes excessive local model availability probe traffic, especially repeated requests to local OpenAI-compatible endpoints such as LM Studio and vLLM when PicoClaw pages are open. Key improvements: - Added adaptive probe backoff for both success and failure paths, with upper bounds. - A...
diff --git a/web/backend/api/model_status.go b/web/backend/api/model_status.go index 160c4d2574..379d4e9378 100644 --- a/web/backend/api/model_status.go +++ b/web/backend/api/model_status.go @@ -1,19 +1,34 @@ package api import ( + "context" "encoding/json" "fmt" "net" "net/http" "net/url" "strings" + "...
3
3
1
[{"id": "G0", "claim": "The probe cache key only encodes whether an API key is present, not the key value, so changing the API key from an invalid value to a valid one (or vice versa) can incorrectly reuse a cached result and backoff window for up to the max delay; it suggests incorporating a non-secret fingerprint of ...
null
sipeed__picoclaw__2238
sipeed/picoclaw
2,238
defect
c7461f9e963496c4471336642ac6a8d91a456978
4b027b8050f2aecc7f1affac239dc1b81f25584b
feat(provider): add Venice AI support and update related documentation
## 📝 Description Add a new provider: Venice ## 🗣️ Type of Change - [ ] 🐞 Bug fix (non-breaking change which fixes an issue) - [x] ✨ New feature (non-breaking change which adds functionality) - [x] 📖 Documentation update - [ ] ⚡ Code refactoring (no functional changes, no api changes) ## 🤖 AI Code Genera...
diff --git a/config/config.example.json b/config/config.example.json index 814c82503fd..465fb15ee91 100644 --- a/config/config.example.json +++ b/config/config.example.json @@ -48,6 +48,11 @@ "model": "deepseek/deepseek-chat", "api_key": "sk-your-deepseek-key" }, + { + "model_name": "venice-u...
1
1
0
[{"id": "G0", "claim": "The new Venice entry in DefaultConfig's ModelList omits APIBase while the surrounding remote providers set it explicitly; for consistency and a self-explanatory default config, set APIBase to \"https://api.venice.ai/api/v1\" on that entry as well.", "category": "maintainability", "verdict": "sup...
null
sipeed__picoclaw__2241
sipeed/picoclaw
2,241
defect
c7461f9e963496c4471336642ac6a8d91a456978
54c1f40dfb09e2a66b44dfe733d68a4150433f0c
bug: fix picoToken is empty when gateway started by launcher
## 📝 Description <!-- Please briefly describe the changes and purpose of this PR --> ## 🗣️ Type of Change - [X] 🐞 Bug fix (non-breaking change which fixes an issue) - [ ] ✨ New feature (non-breaking change which adds functionality) - [ ] 📖 Documentation update - [ ] ⚡ Code refactoring (no functional chang...
diff --git a/pkg/gateway/gateway.go b/pkg/gateway/gateway.go index 64aed5e8cec..fe324fa111e 100644 --- a/pkg/gateway/gateway.go +++ b/pkg/gateway/gateway.go @@ -125,6 +125,7 @@ func Run(debug bool, homePath, configPath string, allowEmptyStartup bool) error // Enforce singleton: write PID file with generated token. ...
1
1
0
[{"id": "G0", "claim": "After the assertion was changed to expect \"stopped\", the test name TestGatewayStatusReportsRunningFromHealthProbe and its failure message still say \"running\", so rename the test and update the failure message so they match the new expectation.", "category": "testing", "verdict": "supported",...
null
sipeed__picoclaw__2262
sipeed/picoclaw
2,262
defect
415abc8cd405f0e60bf8a6a429a58d8ad3892d24
b5eb9311f21b5ecb8f958d5e9acc9bdc8a6027b2
fix(channels): fail fast when all channel startups fail
## 📝 Description <!-- Please briefly describe the changes and purpose of this PR --> ~~This PR is split from the previous combined PR (#2094) to address maintainer feedback and reduce review scope.~~ (Now 2026-4-2 16:41:32 this closed old PR(#2094) has already been scrapped, and a new solution is in the works.)...
diff --git a/pkg/channels/manager.go b/pkg/channels/manager.go index 5fbf35ebfb..b9bcd98d33 100644 --- a/pkg/channels/manager.go +++ b/pkg/channels/manager.go @@ -12,6 +12,8 @@ import ( "fmt" "math" "net/http" + "sort" + "strings" "sync" "time" @@ -513,6 +515,7 @@ func (m *Manager) StartAll(ctx context.Cont...
4
4
2
[{"id": "G0", "claim": "StartAll prints each channel startup failure to stdout via fmt.Printf in addition to the existing structured logger.ErrorCF call, bypassing the project logger; prefer emitting a structured log (or rely on the existing logger) rather than printing directly.", "category": "maintainability", "verdi...
null
sipeed__picoclaw__2316
sipeed/picoclaw
2,316
defect
d8c5183d9a9b2577a9099f451074d2e010f6843c
cbd0798a5685e97397721d0ecc6604917946f002
fix: avoid duplicate v in CLI help banner
```md ## 📝 Description Fixes a duplicate `v` prefix in the root CLI help banner. `picoclaw --help` currently displays `vv0.2.5` because the banner format string adds a hardcoded `v` even though the version string already includes that prefix. This change removes the extra `v` so the displayed version is corr...
diff --git a/cmd/picoclaw/main.go b/cmd/picoclaw/main.go index 434917c0ba..543577e680 100644 --- a/cmd/picoclaw/main.go +++ b/cmd/picoclaw/main.go @@ -29,7 +29,7 @@ import ( ) func NewPicoclawCommand() *cobra.Command { - short := fmt.Sprintf("%s picoclaw - Personal AI Assistant v%s\n\n", internal.Logo, config.GetVe...
1
1
1
[{"id": "G0", "claim": "Update the test in cmd/picoclaw/main_test.go, which still asserts the old banner with the duplicated v and would fail after the banner change.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sipeed__picoclaw__2320
sipeed/picoclaw
2,320
defect
84e42d6904f0fe94d22052a07e5868d85c1be9cc
df0d7e20e6c73ba08c366678ca44dd8b4c8a2250
fix(tool): clarify write_file nested-JSON escape semantics and add tests
## 📝 Description Clarify the escaping semantics of the `write_file` tool when arguments are passed as nested JSON strings. Because the `arguments` field is a JSON-encoded string that is decoded by the provider, escape sequences in the inner JSON (e.g., `\n`) are interpreted as actual control characters after decodin...
diff --git a/pkg/providers/common/common_test.go b/pkg/providers/common/common_test.go index 79a637d486..0a4d5f34af 100644 --- a/pkg/providers/common/common_test.go +++ b/pkg/providers/common/common_test.go @@ -262,6 +262,22 @@ func TestDecodeToolCallArguments_StringJSON(t *testing.T) { } } +func TestDecodeToolCal...
1
1
1
[{"id": "G0", "claim": "The escape examples in the write_file/edit_file/append_file tool descriptions and parameter descriptions use inner-JSON notation that differs from the outer `function.arguments` notation of the new buildCLIToolsPrompt guidance, and since both are shown together in the CLI prompt, they should be ...
null
sipeed__picoclaw__2402
sipeed/picoclaw
2,402
defect
71337b6f526ed6c7729497c4d1151d537dc03b41
7ffcd294c4f2f814b6e5bdb1ba3a03691be5ca01
feat(provider): support custom headers injection for HTTP providers
## 📝 Description Support custom headers injection for HTTP providers. ## 🗣️ Type of Change - [ ] 🐞 Bug fix (non-breaking change which fixes an issue) - [x] ✨ New feature (non-breaking change which adds functionality) - [ ] 📖 Documentation update - [ ] ⚡ Code refactoring (no functional changes, no api change...
diff --git a/docs/providers.md b/docs/providers.md index 9bb95446cb..64484adb06 100644 --- a/docs/providers.md +++ b/docs/providers.md @@ -122,6 +122,7 @@ This design also enables **multi-agent support** with flexible provider selectio | `max_tokens_field` | string | No | Override the max tokens field name in request ...
2
2
0
[{"id": "G0", "claim": "ChatStream() does not set the configured User-Agent header (WithUserAgent only affects Chat), making streaming requests inconsistent with non-streaming ones and forcing users to rely on custom_headers for User-Agent; set req.Header's User-Agent from p.userAgent in ChatStream before applying cust...
null
sipeed__picoclaw__2414
sipeed/picoclaw
2,414
defect
6ce0306c66a11d5c8ce994f0904cdcb72968b91d
e08d1c49751dccef9c69acd7a924e3095cb55153
fix(gateway): log startup errors before exit
## 📝 Description This PR fixes an issue in the gateway's `Run` function where startup errors were not being correctly captured and logged within the `defer` block. By introducing a named return variable `(runErr error)`, the deferred function can now access the error value returned when the function exits, allow...
diff --git a/pkg/gateway/gateway.go b/pkg/gateway/gateway.go index 8be84bdf6e..1585f33e23 100644 --- a/pkg/gateway/gateway.go +++ b/pkg/gateway/gateway.go @@ -111,7 +111,7 @@ func (p *startupBlockedProvider) GetDefaultModel() string { } // Run starts the gateway runtime using the configuration loaded from configPat...
1
1
1
[{"id": "G0", "claim": "The config-load and pre-check failure branches still call logger.Fatalf(), which exits immediately so the deferred structured 'Gateway startup failed' log never runs on those paths; they should return errors (or emit the structured log before fatal exit).", "category": "correctness", "verdict": ...
null
sipeed__picoclaw__2449
sipeed/picoclaw
2,449
defect
20d35220690d69174ee06f0e7a19bd72fff71e98
9982ee29a88cbb8790ab74958b91e5127b347511
fix(chat): keep tool-call summary and assistant output in sync
## 📝 Description This PR fixes Web Chat behavior in Issue #2427 so assistant text and tool-call summaries are both visible: - During live conversation: assistant text produced in tool-call turns is streamed for Pico/Web chat. - After refresh: session reconstruction keeps tool-call summary and assistant content toge...
diff --git a/pkg/agent/loop.go b/pkg/agent/loop.go index e089e6d3dd..431376be3f 100644 --- a/pkg/agent/loop.go +++ b/pkg/agent/loop.go @@ -2253,6 +2253,16 @@ turnLoop: } logger.DebugCF("agent", "LLM response", llmResponseFields) + if al.bus != nil && ts.channel == "pico" && len(response.ToolCalls) > 0 { + if...
4
4
3
[{"id": "G0", "claim": "sessionToolFeedbackMaxArgsLength is hard-coded to 300 while the live tool feedback preview length is user-configurable via Agents.Defaults.ToolFeedback.MaxArgsLength, so reconstructed session tool-call summaries can differ from what was shown live; the handler should load config and pass the con...
null
sipeed__picoclaw__2484
sipeed/picoclaw
2,484
defect
748ac58dd1c076a1dd920d4fc01a722016a03293
97eafa67e7691f334e8ab883e51fdc2628bd5fe9
membench: add LLM-as-Judge evaluation mode
## LLM-as-Judge Evaluation Mode for membench Adds `--eval-mode=llm` to the LOCOMO memory benchmark, enabling semantic scoring via any OpenAI-compatible LLM endpoint. Previously, token-overlap F1 scored near zero for rephrased answers — LLM-as-Judge makes the metrics meaningful. ### Data Source LOCOMO dataset from [sn...
diff --git a/cmd/membench/eval_llm.go b/cmd/membench/eval_llm.go new file mode 100644 index 0000000000..430548003c --- /dev/null +++ b/cmd/membench/eval_llm.go @@ -0,0 +1,271 @@ +package main + +import ( + "context" + "fmt" + "log" + "strconv" + "strings" + + "github.com/sipeed/picoclaw/pkg/seahorse" +) + +const answer...
23
18
6
[{"id": "G0", "claim": "When running with --eval-mode llm, buildLLMOptions allows Model to remain empty, which will produce invalid /v1/chat/completions requests against most OpenAI-compatible endpoints; validate model != \"\" and return a clear error early.", "category": "correctness", "verdict": "supported", "priorit...
null
sipeed__picoclaw__2547
sipeed/picoclaw
2,547
defect
7fdc9c7b6471d79ac00400bc6d0700474ac548e6
c3f40008175174d3f8c7baa47e03a1a2c9bf0f4b
feat(network): improve network error classification and fallback handling
## 📝 Description This PR improves provider fallback behavior for transport-level failures that were previously left unclassified. It adds a dedicated `network` failover reason so errors such as TLS failures, DNS lookup failures, EOF/unexpected EOF, connection reset/refused, and other concrete network errors can ...
diff --git a/pkg/providers/error_classifier.go b/pkg/providers/error_classifier.go index e7691aa93e..8ce98f8ba6 100644 --- a/pkg/providers/error_classifier.go +++ b/pkg/providers/error_classifier.go @@ -2,8 +2,12 @@ package providers import ( "context" + "errors" + "io" + "net" "regexp" "strings" + "syscall" ...
1
1
1
[{"id": "G0", "claim": "classifyByErrorType treats any net.Error and syscall.ETIMEDOUT as FailoverNetwork, reclassifying timeout conditions (e.g. *url.Error/*net.OpError with Timeout()==true) from FailoverTimeout to FailoverNetwork since it runs before message/status heuristics; consider mapping timeout-capable transpo...
null
sipeed__picoclaw__2549
sipeed/picoclaw
2,549
defect
7fdc9c7b6471d79ac00400bc6d0700474ac548e6
ab019d3f1814a5fc8228d508c01a3e5df9772811
feat(auth): add no-browser option for OAuth login
## 📝 Description This PR adds a `--no-browser` option to `picoclaw auth login` for OAuth-based providers, so users in headless or remote environments can complete login without automatically opening a local browser. It also wires the new option through the auth command flow into the OAuth browser login implementatio...
diff --git a/cmd/picoclaw/internal/auth/helpers.go b/cmd/picoclaw/internal/auth/helpers.go index 531cb76aa6..41255a04e0 100644 --- a/cmd/picoclaw/internal/auth/helpers.go +++ b/cmd/picoclaw/internal/auth/helpers.go @@ -21,20 +21,20 @@ const ( defaultAnthropicModel = "claude-sonnet-4.6" ) -func authLoginCmd(provide...
4
4
2
[{"id": "G0", "claim": "With NoBrowser set, the callback server is still started earlier in the function, so --no-browser login can still fail if cfg.Port is unavailable even though the user intends the manual paste flow; consider making the callback server optional/late when NoBrowser is set.", "category": "correctnes...
null
sipeed__picoclaw__436
sipeed/picoclaw
436
defect
b1e3b11a5d0844eb783ddfb686e0c4e8e1179972
e35a82762406cc09df43bbb8d72d1529f317b7fb
Refactor/base layer message split
## 📝 Description This PR extracts the Discord message splitting logic from pkg/channels/discord.go into the reusable base-layer utility in pkg/utils/message.go. This enables other channels (Telegram, WhatsApp, etc.) to share the same message splitting functionality. For other channel usage: please import pkg/utils ...
diff --git a/pkg/channels/discord.go b/pkg/channels/discord.go index f360c75eff..472b51c53b 100644 --- a/pkg/channels/discord.go +++ b/pkg/channels/discord.go @@ -4,7 +4,6 @@ import ( "context" "fmt" "os" - "strings" "time" "github.com/bwmarrin/discordgo" @@ -106,7 +105,7 @@ func (c *DiscordChannel) Send(ct...
8
4
2
[{"id": "G0", "claim": "FindLastUnclosedCodeBlock returns the first fence instead of the last unclosed one when the text contains multiple code blocks, and should track open/close state and record the index each time it enters an open state.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope"...
null
sipeed__picoclaw__485
sipeed/picoclaw
485
defect
521359ed4f1010a853d3640bee84ae777d739eff
2747ed1a1674e85f7a4d2c4dbe8a6d081475ec6e
fix: Templates update
## 📝 Description <!-- Please briefly describe the changes and purpose of this PR --> ## 🗣️ Type of Change - [x] 🐞 Bug fix (non-breaking change which fixes an issue) - [ ] ✨ New feature (non-breaking change which adds functionality) - [ ] 📖 Documentation update - [ ] ⚡ Code refactoring (no functional chang...
diff --git a/pkg/agent/instance.go b/pkg/agent/instance.go index 54a5396e7bc..a992945fabe 100644 --- a/pkg/agent/instance.go +++ b/pkg/agent/instance.go @@ -21,6 +21,8 @@ type AgentInstance struct { Fallbacks []string Workspace string MaxIterations int + MaxTokens int + Temperature float64 Co...
7
4
1
[{"id": "G0", "claim": "Fix the hardcoded LLM configuration in pkg/tools/subagent.go and pkg/tools/toolloop.go within this PR, as was done for the agent loop.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "Add a default fallback so a configured Tempera...
null
sipeed__picoclaw__733
sipeed/picoclaw
733
defect
100356e8ec029f689a6b43363ada3556a2163365
9e0408d7cd97d09666e9f20ebe4155a89154b69f
fix(providers): support per-model request_timeout in model_list
## 📝 Description Add per-model `request_timeout` support for OpenAI-compatible HTTP providers to fix slow local model timeout failures (Issue #637). This keeps backward compatibility with the previous 120s default while allowing model-specific overrides from `model_list`. ## 🗣️ Type of Change - [x] 🐞 Bug fix (non-...
diff --git a/README.md b/README.md index 2b770f2153..2ccbe5d476 100644 --- a/README.md +++ b/README.md @@ -232,7 +232,8 @@ picoclaw onboard { "model_name": "gpt4", "model": "openai/gpt-5.2", - "api_key": "your-api-key" + "api_key": "your-api-key", + "request_timeout": 300 }, ...
2
2
0
[{"id": "G0", "claim": "Provider construction should use the idiomatic Go functional options pattern (e.g. WithMaxTokensField, WithRequestTimeout) instead of stacked constructors, as a future improvement that need not block merging.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "in...
null
sipeed__picoclaw__734
sipeed/picoclaw
734
defect
692efb21287cd6fde4bc53e011a5dbde9706ef58
17c1c627e7d36ffe85fb3f4e5876d09025c5a4c1
fix(channels): fix memory hazards in channel abstraction layer
## 📝 Description - Fix dispatcher busy-wait: remove select+default pattern that caused CPU spin after context cancellation; SubscribeOutbound handles ctx internally - Add TTL janitor for typingStops/placeholders sync.Map entries to prevent unbounded accumulation when outbound paths fail - Reduce queue buffers from ...
diff --git a/pkg/bus/bus.go b/pkg/bus/bus.go index d2b6838c57..507a87d058 100644 --- a/pkg/bus/bus.go +++ b/pkg/bus/bus.go @@ -11,6 +11,8 @@ import ( // ErrBusClosed is returned when publishing to a closed MessageBus. var ErrBusClosed = errors.New("message bus closed") +const defaultBusBufferSize = 16 + type Messa...
6
3
1
[{"id": "G0", "claim": "The helper should not be named after a performance judgement; rename fastID to uniqueID so the name says what it does.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A comment should state that this id has nothing to do w...
null
sirius-db__sirius__253
sirius-db/sirius
253
defect
4a0aa540475a3606066cb7c0b5fd95047d8dd748
833c69e106a690f0d64e2cae35bedc41b159fae0
Getting rid of usage of static DuckDB in unit tests
The usage of static for a DuckDB context in unit tests, although convenient, when running unit tests in debug mode, results in multiple errors of the extension context file being locked. This PR also fixes the physical_paritition tests
diff --git a/test/cpp/memory/test_host_table_utils.cpp b/test/cpp/memory/test_host_table_utils.cpp index 5120334faa..365c35db65 100644 --- a/test/cpp/memory/test_host_table_utils.cpp +++ b/test/cpp/memory/test_host_table_utils.cpp @@ -70,11 +70,12 @@ std::filesystem::path get_test_config_path() return std::filesyste...
1
1
1
[{"id": "G0", "claim": "Regenerating the DuckDB instance for each unit test adds a lot of overhead; the tests could share an instance in almost all of these cases instead of creating a fresh one per test.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sirius-db__sirius__303
sirius-db/sirius
303
defect
6f59fd3968d8feb1823183a6d91818af04854b77
a73a5fa6f8bdf1152b53cc0145cb7cc23fa0316d
FEATURE: enable stream reservations for Sirius
- update cucascade with a bug fix in reservation and counting of bytes - set reservations and release at the end of each gpu task
diff --git a/cucascade b/cucascade index 74ee884c0d..aaf1a9afad 160000 --- a/cucascade +++ b/cucascade @@ -1 +1 @@ -Subproject commit 74ee884c0d2f99a8b0166878c73448bc1f6fa304 +Subproject commit aaf1a9afad75c93abb391365801a28ede4930604 diff --git a/src/pipeline/gpu_pipeline_executor.cpp b/src/pipeline/gpu_pipeline_execu...
4
1
1
[{"id": "G0", "claim": "The unit tests hang during `gpu_execution - scan single column`.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The <iostream> include in src/pipeline/gpu_pipeline_task.cpp appears unused and should be removed unless needed f...
null
sirius-db__sirius__305
sirius-db/sirius
305
defect
a45a24c5c9c2a990df1e0ad633ba75e75a35860a
47b1f14e7645ca10077f1389b872eda90add9ac4
Adding the sum widening cast also to the local ungrouped aggregate to fix q15
It was moved to the merge aggregate in #299 to fix a problem in the unit tests. But change caused q15 to not work anymore. Maybe it needs to happen in both places, but maybe we should look into why the test had a problem because I think doing the cast here should be enough.
diff --git a/src/op/aggregate/gpu_aggregate_impl.cpp b/src/op/aggregate/gpu_aggregate_impl.cpp index 9f3ceb2b48..2d47eae06e 100644 --- a/src/op/aggregate/gpu_aggregate_impl.cpp +++ b/src/op/aggregate/gpu_aggregate_impl.cpp @@ -73,7 +73,6 @@ std::shared_ptr<cucascade::data_batch> gpu_aggregate_impl::local_ungrouped_aggr...
1
1
1
[{"id": "G0", "claim": "The SUM widening upcast belongs in the local grouped aggregate, and to avoid a scenario where it is applied twice it should also be removed from gpu_merge_impl::merge_grouped_aggregate.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sirius-db__sirius__306
sirius-db/sirius
306
defect
a45a24c5c9c2a990df1e0ad633ba75e75a35860a
58fd1b0be2edb0c441e0f93322af4bfa64a72120
Add Anti Join Support
Fixes #274
diff --git a/src/op/sirius_physical_hash_join.cpp b/src/op/sirius_physical_hash_join.cpp index 133edfb2c0..3cd3131d47 100644 --- a/src/op/sirius_physical_hash_join.cpp +++ b/src/op/sirius_physical_hash_join.cpp @@ -27,9 +27,9 @@ #include "duckdb/planner/expression/bound_cast_expression.hpp" #include "duckdb/planner/e...
2
2
2
[{"id": "G0", "claim": "The collect-flag block must set `collect_right` to false for ANTI and `collect_left` to false for RIGHT_ANTI, otherwise the newly added anti join paths collect the wrong side's columns.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "c...
null
sirius-db__sirius__307
sirius-db/sirius
307
defect
a45a24c5c9c2a990df1e0ad633ba75e75a35860a
247fd5436d40099692c6d8f23d8904ea22636891
Add Mark Join Support
Fixes #275 - [x] Enabled TPC-H Q16 - [x] Unit Test(s)
diff --git a/src/op/sirius_physical_hash_join.cpp b/src/op/sirius_physical_hash_join.cpp index 133edfb2c0..67fb83049d 100644 --- a/src/op/sirius_physical_hash_join.cpp +++ b/src/op/sirius_physical_hash_join.cpp @@ -88,7 +88,7 @@ sirius_physical_hash_join::sirius_physical_hash_join( conditions(std::move(cond)), ...
2
1
0
[{"id": "G0", "claim": "Use the cudf scalar-scatter copying API instead of materializing the whole true column.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The mark join left-column pass-through could be done in a zero-copy fashion instead of cop...
null
sirius-db__sirius__327
sirius-db/sirius
327
defect
e4009ea385d29c1010708f14ec00d3239ddea520
16cc47e623973285bd6b8e89896822f3bc99301d
Multi-file support for `parquet_scan_task`
Fixes #323.
diff --git a/src/include/op/scan/parquet_scan_task.hpp b/src/include/op/scan/parquet_scan_task.hpp index 1ec7c1e84b..131349029d 100644 --- a/src/include/op/scan/parquet_scan_task.hpp +++ b/src/include/op/scan/parquet_scan_task.hpp @@ -58,17 +58,20 @@ class parquet_scan_task_global_state : public pipeline::sirius_pipeli...
2
2
0
[{"id": "G0", "claim": "The byte-range read in compute_task should throw when something is wrong with a file (bytes read not matching what the metadata reserved) instead of relying on a debug-only assert.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "clai...
null
sirius-db__sirius__350
sirius-db/sirius
350
defect
2c14a718a7db17a8cc1a42483c2c6266f4bf73a2
982f888ad9d769b7103c3ad7c141b632d9da1542
Update duckdb to 1.4.4 to fix mixed right semi/anti joins integration tests
`compare_gpu_cpu` utility uses `duckdb` execution to generate the reference results which had a bug in `v1.4.3` that was later fixed in `v1.4.4`. This confirms that we don't have an actual bug in our mixed join implementation but our validation logic was using a buggy version of duckdb for that specific join logic. ...
diff --git a/duckdb b/duckdb index d1dc88f950..6ddac802ff 160000 --- a/duckdb +++ b/duckdb @@ -1 +1 @@ -Subproject commit d1dc88f950d456d72493df452dabdcd13aa413dd +Subproject commit 6ddac802ffa9bcfbcc3f5f0d71de5dff9b0bc250 diff --git a/test/cpp/integration/test_gpu_execution_tpch.cpp b/test/cpp/integration/test_gpu_exe...
1
1
1
[{"id": "G0", "claim": "The extension-ci-tools submodule should also be bumped to its v1.4.4 tag to match the duckdb 1.4.4 update.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sirius-db__sirius__389
sirius-db/sirius
389
defect
967786559a44c7e3aeb16db82c4609a02206a169
cfc9a11249ae56647bde44dd4134aac4d909a18c
Bug fixes on streams
Currently cudf::default_stream() is still used in several places such as in `auto table = batch->get_data()->cast<cucascade::gpu_table_representation>().get_table();` This will trigger a deep copy of `cudf::table` on the `cudf::default_stream`. This causes a bunch of validation error in larger scale factor, because...
diff --git a/src/data/host_parquet_representation_converters.cpp b/src/data/host_parquet_representation_converters.cpp index 364434cf0c..6e4fb435e0 100644 --- a/src/data/host_parquet_representation_converters.cpp +++ b/src/data/host_parquet_representation_converters.cpp @@ -141,6 +141,7 @@ std::unique_ptr<cucascade::id...
6
4
2
[{"id": "G0", "claim": "The dead code (the commented-out owned_tables machinery) in sirius_physical_top_n_merge::execute should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The explicit stream.synchronize() calls in gpu_pipeline_ta...
null
sirius-db__sirius__473
sirius-db/sirius
473
defect
3beb338f2abf80b9243ff9d168659930793c6d29
813fdaa4fd6a44087ef7ea1de229c7673fd07d83
Operator task memory consumption history and improve peak memory consumption estimation
Implements #472 Requires https://github.com/NVIDIA/cuCascade/pull/92 If the above change in cuCascade is not desired, I can make a couple small changes to explicitly account for the host_parquet_representation. This PR adds the following functions/concepts: - local_state::get_task_consumption_basis(), which ba...
diff --git a/CMakeLists.txt b/CMakeLists.txt index b9d8cefc3c..467d6f81d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -327,6 +327,7 @@ set(TEST_SOURCES test/cpp/parallel/test_task_executor.cpp test/cpp/pipeline/test_gpu_pipeline_executor.cpp test/cpp/pipeline/test_oom_reschedule.cpp + test/cpp...
23
11
5
[{"id": "G0", "claim": "get_size_in_bytes() does not include e.g. the metadata of a packed representation, so the output size recorded for memory estimation may not be the full memory footprint.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The estim...
null
sirius-db__sirius__537
sirius-db/sirius
537
defect
e354d846c0cde8f41b87b4e7f87a8d607131ac59
55aaeb952f6e911613dbb3683d1ba2884564b293
Fix count(*)/MIN/MAX crashes with cpu_source_task (related to #487, #492)
### Repro ```sql -- All of these crash on gpu_execution (DuckDB 1.5): CALL gpu_execution('SELECT count(*) FROM lineitem'); CALL gpu_execution('SELECT min(l_orderkey) FROM lineitem'); CALL gpu_execution('SELECT max(l_orderkey) FROM lineitem'); CALL gpu_execution('SELECT count(*), min(l_orderkey), max(l_orderkey)...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2a260707d3..cde599291f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,6 +85,7 @@ set(EXTENSION_SOURCES src/op/result/host_table_chunk_reader.cpp src/op/scan/cached_ranges.cpp src/op/scan/duckdb_scan_executor.cpp + src/op/scan/cpu_source_task....
5
5
5
[{"id": "G0", "claim": "If the CPU_SOURCE operator is scheduled multiple times before the first cpu_source_task flips exhausted, get_next_task_hint() keeps returning READY and the task creator can create duplicate cpu_source tasks, duplicating batches into the repo and potentially changing query results; task creation ...
null
sirius-db__sirius__539
sirius-db/sirius
539
defect
1dfd1807652dfc8ff537ca3d23c09d0df666b46c
881954d9afd7332b1bdfbacbe813b464fd4312e9
renaming get_logical_data_size_in_bytes() to get_uncompressed_data_size_in_bytes()
This is a small change that I forgot to add to https://github.com/sirius-db/sirius/pull/473 It needs to be merged with https://github.com/NVIDIA/cuCascade/pull/92
diff --git a/cucascade b/cucascade index 5248babcdc..77d759084b 160000 --- a/cucascade +++ b/cucascade @@ -1 +1 @@ -Subproject commit 5248babcdc9403e95b6b546e3c3f5827fc5d8d08 +Subproject commit 77d759084bff2a6da3e9e73d1388ada6981d19d4 diff --git a/src/data/host_parquet_representation_converters.cpp b/src/data/host_parq...
1
1
1
[{"id": "G0", "claim": "The cucascade submodule must first wait for NVIDIA/cuCascade#92 to land and then be bumped to a commit from the main branch, instead of pointing at the current (not-yet-landed) commit 77d7590.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sirius-db__sirius__558
sirius-db/sirius
558
defect
00fd0c8561ee53eca3bdf538417d02b79891756e
2c817035a9cb45078ecd3b5c315a637fafc009e1
Alternative: use cudf::distinct_hash_join via logical plan uniqueness proof
## Summary Alternative implementation for #541, taking a different approach from #546. I started working on this independently after seeing the issue — great to have two approaches to compare and discuss which design direction we want to go. ### Approach: logical plan uniqueness proof engine Instead of propagating p...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 95b820f5b1..c8d4d87eb4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -304,6 +304,7 @@ set(TEST_SOURCES test/cpp/operator/test_physical_top_n.cpp test/cpp/operator/test_physical_ungrouped_aggregate.cpp test/cpp/parallel/test_task_executor.cpp + t...
1
1
0
[{"id": "G0", "claim": "The reviewer asks whether uniqueness propagation through joins (INNER, LEFT, RIGHT, SEMI/ANTI, FULL OUTER rules) is being left as future work, suggesting it could be considered.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sirius-db__sirius__615
sirius-db/sirius
615
defect
425f8f8bf0e12413bd15bf24568b535c8e0d7574
8f10f568b7a60f4bf12fa0b81875d06b7c34573e
Support decimals in `gpu_expression_translator` bc libcudf version bump
We can now support flat decimal evaluation in the `gpu_expression_translator`. This will propagate to the parquet scan row group pruning and filter pushdown for parquet scans, in particular. Nested decimal evaluation is still waiting on this [bug fix](https://github.com/rapidsai/cudf/pull/21996), so remains disabled. T...
diff --git a/src/expression_executor/gpu_expression_translator.cpp b/src/expression_executor/gpu_expression_translator.cpp index 3b2a06bd2f..e1ab746028 100644 --- a/src/expression_executor/gpu_expression_translator.cpp +++ b/src/expression_executor/gpu_expression_translator.cpp @@ -563,40 +563,31 @@ std::optional<expr_...
1
1
0
[{"id": "G0", "claim": "The new make_decimal32_table helper should perform its host-to-device copy on the passed stream (e.g. an async cudaMemcpyAsync) instead of a synchronous cudaMemcpy.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sirmalloc__ccstatusline__278
sirmalloc/ccstatusline
278
defect
8d8819af737d5f4bb67ac616a519b6d70a32b4a0
d4c0eaf6ec0d51bef339a5e3e1cd8bca87abc30c
Fix token overcounting from streaming duplicate JSONL entries
## Summary - Claude Code writes multiple JSONL entries per API call during streaming (intermediate entries have `stop_reason: null`, final entries have `"end_turn"` or `"tool_use"`) - `getTokenMetrics` was summing **all** entries, inflating the `tokens-total` widget by ~2.5x - Now only counts entries with a truthy `st...
diff --git a/src/types/TokenMetrics.ts b/src/types/TokenMetrics.ts index cb63cac3..8ac4aca7 100644 --- a/src/types/TokenMetrics.ts +++ b/src/types/TokenMetrics.ts @@ -6,7 +6,7 @@ export interface TokenUsage { } export interface TranscriptLine { - message?: { usage?: TokenUsage }; + message?: { usage?: TokenUs...
1
1
1
[{"id": "G0", "claim": "When any entry has a truthy stop_reason, the new filter also drops legacy entries whose stop_reason field is absent, so in mixed-format transcripts those usage rows are excluded from totals and contextLength, undercounting despite the backward-compatibility goal.", "category": "correctness", "ve...
null
sirupsen__logrus__1127
sirupsen/logrus
1,127
defect
d417be0fe654de640a82370515129985b407c7e3
7d248fa1b145f2d5aea8d147c6eea99fc0461db7
Add loggers that take functions as arguments
**This is connected to #1105** Having functions as log parameters can greatly improve performance in some cases. E.g.: a big output is logged on trace level, when the current log-level is warn. Prior to the change, the log message would've always been generated. Now, we can pass a function and the log message is...
diff --git a/.gitignore b/.gitignore index 6b7d7d1e8..1fb13abeb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ logrus vendor + +.idea/ diff --git a/example_function_test.go b/example_function_test.go new file mode 100644 index 000000000..f61460eca --- /dev/null +++ b/example_function_test.go @@ -0,0 +1,26 @...
1
1
1
[{"id": "G0", "claim": "The new TestLogger_LogFn should be improved so it actually verifies that the function is not called when the level is disabled and is called when the level is enabled.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sirupsen__logrus__1459
sirupsen/logrus
1,459
defect
d1e6332644483cfee14de11099f03645561d55f8
4e6b60b2a320cdcb06fd86b09dddc42deb19dea6
CI: update actions and golangci-lint
- supersedes, closes https://github.com/sirupsen/logrus/pull/1425
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 66f76aeda..26fad91ee 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -18,26 +18,27 @@ jobs: platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v2 - - u...
3
3
1
[{"id": "G0", "claim": "The golangci-lint config needs updating to the new (v2) configuration format, since the updated golangci-lint fails to load it ('unsupported version of the configuration') and the lint job errors out.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, ...
null
sirupsen__logrus__1477
sirupsen/logrus
1,477
defect
2a50399cac12b6cf83bdd600e9a7ca4f44edda45
298465ea0510e6980dd39faba2598cf05b228276
ci: enable linting test files
This is a followup to #1476, inspired by https://github.com/sirupsen/logrus/pull/1476#discussion_r2707454572. See individual commits for details.
diff --git a/.golangci.yml b/.golangci.yml index 16ec373f6..27cba9ded 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,6 +1,4 @@ version: "2" -run: - tests: false linters: enable: - asasalint @@ -23,8 +21,16 @@ linters: - noctx - reassign - recvcheck + - testifylint - unparam ex...
2
2
0
[{"id": "G0", "claim": "In TestJSONEnableHTMLEscape the output should be predictable enough to just match the escaped sequence for & < > instead of three separate Contains checks.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In TestJSONMessageKey the ...
null
sirupsen__logrus__1482
sirupsen/logrus
1,482
defect
6053a4e6f7e3dac1c1616a4919c5ab638b2a7f09
9cbb3493cc9261a3eba3a74b3fedd096eb4af1ab
fix: resolve deadlock when formatting triggers reentrant logging
## Summary - **Fixes a deadlock** when a log field value's serialization method (e.g., `MarshalJSON`) triggers another log call on the same logger instance (#1448, #1440) - Moves `Format()` outside the `Logger.mu` lock scope in `Entry.write()`, while still snapshotting `Formatter` and `Out` under the lock to preserve ...
diff --git a/entry.go b/entry.go index 87b6f9c70..f9922b8dd 100644 --- a/entry.go +++ b/entry.go @@ -288,15 +288,26 @@ func (entry *Entry) fireHooks() { } func (entry *Entry) write() { + // Snapshot the formatter and output under the lock to protect against + // concurrent SetFormatter/SetOutput calls, then release...
6
5
2
[{"id": "G0", "claim": "The change in locking (formatting outside Logger.mu) reveals a data race between Logger.SetReportCaller's write and Entry.HasCaller's read during Format, shown as a race-detector test failure; it should be resolved (the maintainer pointed to #1494) rather than merged as is.", "category": "correc...
null
sirupsen__logrus__1489
sirupsen/logrus
1,489
defect
34027eac4204ca5b093a25a0f9d1e83428879e77
1b42202e37b9a28e6ce7e622501a09841b76bb92
TextFormatter: optimize formatting and quoting values
Add fast-paths to avoid fmt.Sprint Before / after: benchstat before.txt after.txt goos: darwin goarch: arm64 pkg: github.com/sirupsen/logrus cpu: Apple M3 Pro │ before.txt │ after.txt │ │ sec/op ...
diff --git a/formatter_bench_test.go b/formatter_bench_test.go index d9481589f..4c9f9497d 100644 --- a/formatter_bench_test.go +++ b/formatter_bench_test.go @@ -1,13 +1,42 @@ -package logrus +package logrus_test import ( "fmt" "testing" "time" + + "github.com/sirupsen/logrus" ) +type benchStringer string + ...
4
3
1
[{"id": "G0", "claim": "The new appendValue fast paths (string/[]byte/bool/error/Stringer and numeric primitives) have no tests asserting their formatting and quoting behavior; targeted tests, including quoting edge cases, should be added to prevent accidental output regressions.", "category": "testing", "verdict": "su...
null
sirupsen__logrus__1495
sirupsen/logrus
1,495
defect
76976373d6bdc068f4bbf767f3ccbb6561ad1b41
28e8e9f5d4536ed2f25d28c8f45b028aad920c40
entry: snapshot per-level hooks before firing
- fixes https://github.com/sirupsen/logrus/issues/1272 Entry.fireHooks previously used maps.Clone to copy Logger.Hooks. However, maps.Clone only performs a shallow copy; the []Hook slices for each level remain shared. This can lead to races if hooks are mutated concurrently. We only fire hooks for the Entry’s lev...
diff --git a/entry.go b/entry.go index dbb98b5e8..2f016ae18 100644 --- a/entry.go +++ b/entry.go @@ -245,7 +245,7 @@ func (entry *Entry) log(level Level, msg string) { newEntry.Caller = getCaller() } - newEntry.fireHooks() + newEntry.fireHooks(level) buffer = bufPool.Get() defer func() { newEntry.Buffer =...
4
2
1
[{"id": "G0", "claim": "The PR description says this change introduces Logger.copyHooks(level) while the implementation adds Logger.hooksForLevel(level); align the description with the code (or rename the method) to avoid confusion when backporting/reviewing.", "category": "documentation", "verdict": "uncertain", "prio...
null
sirupsen__logrus__1510
sirupsen/logrus
1,510
defect
8b814ab33b55d839967d0047b8c14df6d40e18a2
6789d787b1c835824c11267304c9ef6a88399f78
TextFormatter: cleanup and optimizations
See individual commits for details. Benchmark before/after: ```console goos: darwin goarch: arm64 pkg: github.com/sirupsen/logrus cpu: Apple M3 Pro │ master.txt │ after3.txt │ │ sec/op │ sec/op vs base │ ...
diff --git a/formatter.go b/formatter.go index 8c7615515..d9930c453 100644 --- a/formatter.go +++ b/formatter.go @@ -2,15 +2,16 @@ package logrus import "time" +const defaultTimestampFormat = time.RFC3339 + // Default key names for the default fields const ( - defaultTimestampFormat = time.RFC3339 - FieldKeyMsg ...
3
2
2
[{"id": "G0", "claim": "TestDisableLevelTruncation discards the error returned by TextFormatter.Format; assert that it is nil (and fail the test if not) so that a future Format error is not silently masked.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
sirupsen__logrus__1511
sirupsen/logrus
1,511
defect
cc9714f2053998bac58489a465014a0b49d91165
15997af85a30793b42d04772cc6e0ce02792bb7b
JSONFormatter, TextFormatter: minor cleanups, optimizations
Also brings some performance improvements; ```console goos: darwin goarch: arm64 pkg: github.com/sirupsen/logrus cpu: Apple M3 Pro │ before.txt │ after.txt │ │ sec/op │ sec/op vs base │ ZeroTextFormatter...
diff --git a/entry.go b/entry.go index a5ede2d27..042d88347 100644 --- a/entry.go +++ b/entry.go @@ -73,8 +73,8 @@ type Entry struct { func NewEntry(logger *Logger) *Entry { return &Entry{ Logger: logger, - // Default is three fields, plus one optional. Give a little extra room. - Data: make(Fields, 6), + // ...
2
1
0
[{"id": "G0", "claim": "When DataKey is set, newData should be pre-allocated with defaultFields+1 instead of defaultFields, so the capacity accounts for the DataKey entry itself and preserves the previous allocation behaviour of 4.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introdu...
null
sirupsen__logrus__396
sirupsen/logrus
396
defect
abc6f20dabf4b10195f233ad21ea6c5ba33acae0
d5ca23f998921ce222ad9227e09a254e68fda4b8
Added customizable keys to JSON formatter
I have found a need for this and I'm sure it would be useful to others as well. If a user needs to customize the keys of the JSON message to fit a particular parsing scheme, they are currently disallowed from changing the key `msg` to `message` for example or `level`, or `time` as they are all hard-coded. This fix allo...
diff --git a/json_formatter.go b/json_formatter.go index 2ad6dc5cf..1e3e2bc86 100644 --- a/json_formatter.go +++ b/json_formatter.go @@ -4,10 +4,27 @@ import ( "encoding/json" "fmt" ) +type fieldKey string +type FieldMap map[fieldKey]string + +const ( + FieldKeyMsg = "msg" + FieldKeyLevel = "level" + FieldKeyTim...
3
3
1
[{"id": "G0", "claim": "The JSON formatter should expose a single typed FieldMap (map[fieldKey]string) for key customization instead of three separate key fields, keeping key translation consistent and avoiding struct bloat as new keys are added.", "category": "design", "verdict": "supported", "priority": "P1", "scope"...
null
sirupsen__logrus__471
sirupsen/logrus
471
defect
3c3917e6254529d51056704e46bc9cbc973d028f
1a2f8be31d0232a6d8cd945939ec6e3a2f9a91a1
text_formatter: detect tty based on fd
@stevvooe we have a lot of problems with Logrus' TTY detection. I think the root of this is that `log.Out` when set to not `stderr` the TTY detection logic will _still_ use `os.Stderr` to check for TTY... this doesn't make sense as many people will want the text formatter to a file. This PR changes this for all platfor...
diff --git a/terminal_appengine.go b/terminal_appengine.go index 1960169ef..632ecbec1 100644 --- a/terminal_appengine.go +++ b/terminal_appengine.go @@ -3,6 +3,6 @@ package logrus // IsTerminal returns true if stderr's file descriptor is a terminal. -func IsTerminal() bool { +func IsTerminal(f io.Writer) bool { r...
2
2
1
[{"id": "G0", "claim": "In Format, the local isTerminal is read before the determination block, so on the first call, when terminalDetermined is still false, the freshly determined value is not used; isTerminal needs to be set inside the determination block.", "category": "correctness", "verdict": "supported", "priorit...
null
sirupsen__logrus__591
sirupsen/logrus
591
defect
00386b3fbd637582f90cb17482dc3087646c0ac2
159e991025068d28cccc4138c1c19ff93b1e1df3
Fix trailing space
Closes #99
diff --git a/text_formatter.go b/text_formatter.go index cf3f17f2f..ec8d47356 100644 --- a/text_formatter.go +++ b/text_formatter.go @@ -154,11 +154,12 @@ func (f *TextFormatter) needsQuoting(text string) bool { } func (f *TextFormatter) appendKeyValue(b *bytes.Buffer, key string, value interface{}) { - + if b.Stri...
2
1
1
[{"id": "G0", "claim": "appendKeyValue's buffer parameter could be a string slice so strings.Join() could be used instead, though the reviewer frames this refactoring as out of scope for this PR and says the change does the job.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "pre_exis...
null
sirupsen__logrus__74
sirupsen/logrus
74
defect
6ebb4e7b3c24b9fef150d7693e728cb1ebadf1f5
0e6a27180fbe01789fd181452d949952ec327e86
Added sentry hook
Added a hook to log errors to sentry, it depends on getsentry/raven-go.
diff --git a/.travis.yml b/.travis.yml index d5a559f84..c3af3ce27 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,3 +7,4 @@ install: - go get github.com/stretchr/testify - go get github.com/stvp/go-udp-testing - go get github.com/tobi/airbrake-go + - go get github.com/getsentry/raven-go diff --git a/hooks/se...
7
6
1
[{"id": "G0", "claim": "The lines the pull request adds to hooks/sentry/README.md should be wrapped to 80-column formatting.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The DSN should not be stored on the SentryHook struct at all since it is ...
null
sirupsen__logrus__762
sirupsen/logrus
762
defect
ea8897e79973357ba785ac2533559a6297e83c44
4225d694ba95bda1ce8bcbd67c5701beef4491d0
feat: new methods to check enabled log level
Adding 6 methods on `exported`, `logger` and `entry`: - IsDebugEnabled() bool - IsInfoEnabled() bool - IsWarnEnabled() bool - IsErrorEnabled() bool - IsFatalEnabled() bool - IsPanicEnabled() bool Replace duplicated `if logger.level() >= XxxxLevel` by a call to the new corresponding methods in `logger` and in `...
diff --git a/entry.go b/entry.go index d075d7237..29bcae64f 100644 --- a/entry.go +++ b/entry.go @@ -139,7 +139,7 @@ func (entry *Entry) write() { } func (entry *Entry) Debug(args ...interface{}) { - if entry.Logger.level() >= DebugLevel { + if entry.IsDebugEnabled() { entry.log(DebugLevel, fmt.Sprint(args...)) ...
3
3
1
[{"id": "G0", "claim": "The pull request should not implement the per-level IsXxxEnabled methods at Entry level; the property belongs to the Logger and the forwarding calls are simple enough not to warrant adding them to Entry.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"...
null
sirupsen__logrus__781
sirupsen/logrus
781
defect
e3292c4c4d7fc915224d48222565b02f6af1900e
caa713ef53639d7aaf1b02e9b51851caa76cbdda
Override time in log entries
This PR allows users to have control over the timestamps in their logs. It solves #778. The first commit prevents `Entry.log()` from using `time.Now()` if the entry already has a non-zero `Time` value. The second commit adds `WithTime()` methods to the `FieldLogger` , `Entry`, and `Logger` types.
diff --git a/entry.go b/entry.go index d075d7237..14f0a263b 100644 --- a/entry.go +++ b/entry.go @@ -83,14 +83,28 @@ func (entry *Entry) WithFields(fields Fields) *Entry { for k, v := range fields { data[k] = v } - return &Entry{Logger: entry.Logger, Data: data} + return &Entry{Logger: entry.Logger, Data: data, ...
2
2
1
[{"id": "G0", "claim": "The PR should include a test that an entry reused for several log calls keeps getting fresh timestamps, so a future change of the non-pointer receiver would be caught by the test suite.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim...
null