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
LeaVerou__awesomplete__17068
LeaVerou/awesomplete
17,068
defect
ddc1573d983b18fbb7b5609399c952ac83c53e66
738154915de65bdc6e16b9fca177353f4db6c0aa
trying to meet a11y criteria
After comments here - https://twitter.com/tvararu/status/860549930552840193 Addition of aria-activedescendant to input when list item selected, with id from newly added id attributes for each item in list Swap to combobox role for input as better voiceover description Add aria-owns to connect input to list of re...
diff --git a/awesomplete.js b/awesomplete.js index 11c312f2..4e3606e9 100644 --- a/awesomplete.js +++ b/awesomplete.js @@ -16,7 +16,8 @@ var _ = function (input, o) { this.input = $(input); this.input.setAttribute("autocomplete", "off"); - this.input.setAttribute("aria-autocomplete", "list"); + this.input.setAttr...
2
2
1
[{"id": "G0", "claim": "A single hard-coded list ID won't work very well if a page has multiple instances of Awesomplete (as the reviewer suspects, unless she is missing something).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Several of the new A...
null
LeaYeh__minishell__164
LeaYeh/minishell
164
defect
c921969bcb16d07caa6bc663d3da93a41e36bea2
64610268a6feb78c7be25001fc2c121ee78c0030
[FEAT] Prepare environment list for export and normal assignment
- [x] First merge #163 --- - Add export flag to env struct - Handle the following default environment variables correctly: - If no `OLDPWD` key exists, create one with no value. - `PWD` should always be set with `getcwd()` by current shell at startup. - If `OLDPWD` exists and its value is not a real direct...
diff --git a/Makefile b/Makefile index e50dd263..9ffdea77 100644 --- a/Makefile +++ b/Makefile @@ -83,7 +83,7 @@ VALGRINDFLAGS = --errors-for-leak-kinds=all \ VALGRINDFDFLAGS := --track-fds=all VALGRINDIGNORE := cat cp diff find git grep head ls make man mkdir mv ncdu \ - norminette ps rm tail time top touch wc...
6
2
0
[{"id": "G0", "claim": "Only environment variables that are both exported and have a non-null value (an empty string is fine) should be put into the env array.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The two-state t_export enum should be a bo...
null
LeaYeh__minishell__341
LeaYeh/minishell
341
defect
ec6147f07fa426201a51513b40787a79ced4d33e
42c4c874edd7822af9d8accd1f39f126831c7f87
[LIB] Add new linked list functions to libft
- ~~`ft_lstadd_back_eff()`~~ `ft_lstadd_back_tail()` - ~~`ft_lstnew_back_eff()`~~ `ft_lstnew_back_tail()` - `ft_lstdup()` - `ft_lstsize_d()` The efficient versions of `ft_lstadd_back` expect a tail pointer of the list to avoid traversing the whole list. I made those function in an older, unmerged branch in Febru...
diff --git a/libraries/libft/build/libft.mk b/libraries/libft/build/libft.mk index 9de39323..654e7673 100644 --- a/libraries/libft/build/libft.mk +++ b/libraries/libft/build/libft.mk @@ -6,7 +6,7 @@ # By: ldulling <ldulling@student.42.fr> +#+ +:+ +#+ # # ...
1
1
0
[{"id": "G0", "claim": "LeaYeh finds the new `*_eff` functions confusing and asks why the logic is not simply replaced instead, later suggesting to use the efficient approach rather than the brief one.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Leafwing-Studios__leafwing-input-manager__106
Leafwing-Studios/leafwing-input-manager
106
defect
1e95c4c4a8d7041a51b83ec6bd89a3146694e5f1
af663de806c89bd4143fdcf268d56270c6102440
Replace run_in_state with DisableInput resource
Closes #105.
diff --git a/src/lib.rs b/src/lib.rs index 4e9b2751..13fdb7d5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -33,6 +33,7 @@ pub mod prelude { pub use crate::input_map::InputMap; pub use crate::plugin::InputManagerPlugin; + pub use crate::plugin::DisableInput; pub use crate::{Actionlike, InputManagerBun...
5
5
1
[{"id": "G0", "claim": "Add this breaking change (the replacement of `run_in_state` with the `DisableInput` resource) to the release notes, since it requires migration guidance.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Maybe the plugin shoul...
null
Leafwing-Studios__leafwing-input-manager__301
Leafwing-Studios/leafwing-input-manager
301
defect
1eeb0854694ecbee835a531474b809ee48979623
93345bd65af754bfeff6b4a25be7f7d1443dacff
Implement PressScheduler
## What was the problem? Introduce an easy way to trigger action presses from within the update loop (e.g. a UI implemented with egui) ## How did you fix it? Implement the optional PressScheduler helper which lets users easily schedule presses that are realized on the next frame ## \[Optional\] What needs special a...
diff --git a/Cargo.toml b/Cargo.toml index 26457d20..7e7d63af 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,6 +33,7 @@ petitset = {version = "0.2.1", features = ["serde_compat"]} derive_more = {version = "0.99", default-features = false, features = ["display", "error"]} itertools = "0.10" serde = {version = "1.0",...
5
3
1
[{"id": "G0", "claim": "Add an entry for `PressScheduler` to RELEASES.md (listed as blocking).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add integration tests covering the new press scheduler behaviour (listed as blocking).", "category": "tes...
null
Leafwing-Studios__leafwing-input-manager__341
Leafwing-Studios/leafwing-input-manager
341
defect
6de79df5874a70ff97ef2f482367a25731b1b04e
3eac6736f9be16f1edc7aedf84efb26c427ca7c3
Fix various errors in deadzone calculation/filtering
I noticed that a number of deadzones weren't correctly being calculated. In particular, inputs with values like (1, 0.05) and a deadzone of 0.1 would return (1, 0.05) for the axis values when I believe they should have returned (1, 0). I added initially failing tests that demonstrated this behavior. Additionally, ca...
diff --git a/src/axislike.rs b/src/axislike.rs index 4f7819f0..8561a63d 100644 --- a/src/axislike.rs +++ b/src/axislike.rs @@ -131,7 +131,7 @@ impl SingleAxis { /// Returns this [`SingleAxis`] with the deadzone set to the specified value #[must_use] pub fn with_deadzone(mut self, deadzone: f32) -> Single...
1
1
0
[{"id": "G0", "claim": "The pull request's changes should be briefly reflected in CHANGELOG.md.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Leafwing-Studios__leafwing-input-manager__361
Leafwing-Studios/leafwing-input-manager
361
defect
bab0e08dbf4deb00ba7494a7d37da36d48cb52d6
1abe71ba2b14b6d956c0876483fd0eb402c410fd
Mouse position
Problem A lot of games require mouse position as an input in some way. However, in games with multiple windows or screens, this is not a straight forward input to get, and how to transform from screen space to world space, or if you need to at all, is a bit dependent on the use case, so it's hard to have a one size fi...
diff --git a/RELEASES.md b/RELEASES.md index 3f5b584d..9a0e5462 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,5 +1,16 @@ # Release Notes +## Unreleased + +### Enhancements + +- Changed `entity` field of `ActionStateDriver` to `targets: ActionStateDriverTarget` with variants for 0, 1, or multiple targets, to...
8
6
0
[{"id": "G0", "claim": "The changelog line added by this PR reads \"Added example for getting driving a cursor position action\", which is grammatically wrong.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The BoxMovement enum in the example woul...
null
Leafwing-Studios__leafwing-input-manager__362
Leafwing-Studios/leafwing-input-manager
362
defect
887af2fec9838e3ce907c06b6fbd01fb9b972985
d0dd587a72b04f4181af860e788c8878ce036be4
Add Inversion to SingleAxis, DualAxis, and VirtualDPad
Fixes #247. Adds `inverted`, `inverted_x`, and `inverted_y` builder-style functions for `SingleAxis`, `DualAxis`, and `VirtualDPad`, where appropriate. The `SingleAxis` implementation uses an `inverted` field, the `DualAxis` implementation just inverts its internal axes, and the `VirtualDPad` implementation swaps th...
diff --git a/src/axislike.rs b/src/axislike.rs index 17dff9c4..032c9737 100644 --- a/src/axislike.rs +++ b/src/axislike.rs @@ -28,6 +28,8 @@ pub struct SingleAxis { pub positive_low: f32, /// Any axis value lower than this will trigger the input. pub negative_low: f32, + /// Whether to invert output v...
4
4
1
[{"id": "G0", "claim": "The doc comment on DualAxis::inverted should read 'Returns this [`DualAxis`] with both axes inverted.' instead of 'with inverted axes'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a changelog entry for the inversion ...
null
Leafwing-Studios__leafwing-input-manager__435
Leafwing-Studios/leafwing-input-manager
435
defect
2b04a39852dba273969378bd3b58ca293a7903cc
d51d5ddc7815ac23a77eea015cabed31dc51ee8d
Update action-diff to not include the stable component ID
This PR reworks how networking via `ActionDiff` works: - instead of using a "Stable `ID` Component" that uniquely identifies entities across client and server, we introduce the `ActionDiffEvent` type, which has: - an owner: the Entity that generates the action, or None if we are using a global `ActionState` - th...
diff --git a/examples/send_actions_over_network.rs b/examples/send_actions_over_network.rs index 8886946b..b76194cd 100644 --- a/examples/send_actions_over_network.rs +++ b/examples/send_actions_over_network.rs @@ -1,151 +1,161 @@ -//! [`ActionDiff`] event streams are minimalistic representations -//! of the action st...
3
3
0
[{"id": "G0", "claim": "The doc comment sentence 'An `ActionState` can be fully reconstructed from a stream of `ActionDiff`' should end with a period.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Detecting Pressed vs. ValueChanged based only on ...
null
Leafwing-Studios__leafwing-input-manager__438
Leafwing-Studios/leafwing-input-manager
438
defect
046e0402145c9738814e2be0a4b6502086fe62bb
e8ea096597973a69a135d7229438615f78cbcb76
Accessible Deadzones
Closes #398 The issue above describes the changes made and why really well. To-Do: - [x] Fix tests - [x] Finish updating docs - [x] Turn back on `missing_docs` - [x] Update `RELEASES.md`
diff --git a/src/axislike.rs b/src/axislike.rs index 458d1851..0b4513d4 100644 --- a/src/axislike.rs +++ b/src/axislike.rs @@ -732,32 +732,24 @@ impl From<DualAxisData> for Vec2 { /// The shape of the deadzone for a [`DualAxis`] input. /// -/// Input values that are on the boundary of the shape are counted as outsi...
4
2
0
[{"id": "G0", "claim": "The magic 0.0001 used to avoid dividing by 0.0 in the ellipse deadzone should be a standard constant (epsilon) or a clearly named constant.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "There can probably be a better nam...
null
Leafwing-Studios__leafwing-input-manager__456
Leafwing-Studios/leafwing-input-manager
456
defect
f2ae6d3974d134387d5daae5c4296e9064a48d3f
fc017ed871d04b158ec43499e757355d96781968
Replace `ToggleActions<A>` with per-action disable flags
# Objective Fixes https://github.com/Leafwing-Studios/leafwing-input-manager/issues/446, https://github.com/Leafwing-Studios/leafwing-input-manager/issues/416. # Solution Don't disable the systems that update action state. Instead, include a `disabled` flag per action within `ActionState<A>`. While `disabled` ...
diff --git a/benches/action_state.rs b/benches/action_state.rs index 82e1774e..36f305931 100644 --- a/benches/action_state.rs +++ b/benches/action_state.rs @@ -69,6 +69,7 @@ fn criterion_benchmark(c: &mut Criterion) { #[cfg(feature = "timing")] timing: Timing::default(), ...
3
1
1
[{"id": "G0", "claim": "It would be better to add a `disabled` flag and a `toggle_all()` function within `ActionState` to ensure similarity with the existing public API.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Enabling or disabling a currently-press...
null
Leafwing-Studios__leafwing-input-manager__526
Leafwing-Studios/leafwing-input-manager
526
defect
0d464470b49da73d9496cea5287c970168c7cfba
d6fcb12a3087dbe27fa2ec76e20f9070b1775e63
Add timing data behind a feature
Fixes https://github.com/Leafwing-Studios/leafwing-input-manager/issues/525
diff --git a/Cargo.toml b/Cargo.toml index f4bbc5f6..52055853 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,6 +20,9 @@ members = ["./", "tools/ci", "macros"] [features] default = ['asset', 'ui', 'bevy/bevy_gilrs'] +# Allow support for tracking timing information about actions (how long a button was pressed, etc.)...
1
1
1
[{"id": "G0", "claim": "The pull request needs a release-note entry that also notes the timing feature is off by default, and the relevant example should be double-checked to still work with the current feature config.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Leafwing-Studios__leafwing-input-manager__601
Leafwing-Studios/leafwing-input-manager
601
defect
43654e5922de1e8d3e02b38808de488289f325de
6bfe01b43505559a6762cf689eea7b16251acfa5
Add ability to filter entities for which action diffs should be generated
Fixes #600.
diff --git a/src/action_diff.rs b/src/action_diff.rs index 6e2f1518..f75667ba 100644 --- a/src/action_diff.rs +++ b/src/action_diff.rs @@ -9,6 +9,7 @@ use bevy::{ ecs::{ entity::{Entity, MapEntities}, event::Event, + query::QueryFilter, }, math::Vec2, prelude::{EntityMapper,...
2
2
1
[{"id": "G0", "claim": "The pull request should update RELEASES.md to document the new filtered action diff functionality.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Making summarize generic over F: QueryFilter without a non-filtering default ...
null
Leafwing-Studios__leafwing-input-manager__609
Leafwing-Studios/leafwing-input-manager
609
defect
e7a6e761625a18216bb2ddba4938778f97e7ba22
4e3b5c581280925a33bfaa5801e556a5ab966b69
Add `TripleAxislike`
- added `TripleAxislike` trait for inputs that track all X, Y, and Z axes. - added `KeyboardVirtualDPad3D` that consists of six `KeyCode`s to represent a triple-axis-like input. - added `TripleAxislikeChord` that groups a `Buttonlike` and a `TripleAxislike` together. - added related variants such as: - `I...
diff --git a/RELEASES.md b/RELEASES.md index 5bb32c28..ff79e9b6 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -2,6 +2,15 @@ ## Version 0.15.1 +### Enhancements (0.15.1) + +- added `TripleAxislike` trait for inputs that track all X, Y, and Z axes. + - added `KeyboardVirtualDPad3D` that consists of six `KeyCo...
1
1
0
[{"id": "G0", "claim": "The doc comment on `clamped_axis_triple` should say the `Vec3` is clamped to the cube of values bounded by -1 and 1 on all axes, not \"clamped to `[-1.0, 1.0]`\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Leafwing-Studios__leafwing-input-manager__716
Leafwing-Studios/leafwing-input-manager
716
defect
5059cb881c9d71e15491bc419ee8b14c47d2dda8
ca521041ca6aef882290dec83c00ebee79affab7
Update Gamepad compute logic to include all GamepadButtons and retain analog value
## What was the problem? Gamepad input values were only being updated IF they were marked as `pressed` or `just_released` by `bevy_input`. Closes #689 Closes #650 Closes #405 Closes #648 ## How did you fix it? I added logic to ensure all buttons were being properly computed. ## \[Optional\] What n...
diff --git a/src/user_input/gamepad.rs b/src/user_input/gamepad.rs index d502eb46..4c212692 100644 --- a/src/user_input/gamepad.rs +++ b/src/user_input/gamepad.rs @@ -658,24 +658,15 @@ impl UpdatableInput for GamepadButton { source_data: StaticSystemParam<Self::SourceData>, ) { for (gamepad_entit...
2
2
1
[{"id": "G0", "claim": "The PR should add a note about this fix to the release notes, since a point release fix will be released for it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "When an analog trigger is released it can report a small residu...
null
Leafwing-Studios__leafwing_input_playback__38
Leafwing-Studios/leafwing_input_playback
38
defect
e779860d7af609e36db17d59505d3cbc9f352054
a225b5b86440fd85fb2a2b754285cc379dc90244
Remove FrameCount in favor of Bevy counterpart
# Issues Fixes https://github.com/Leafwing-Studios/leafwing_input_playback/issues/29 - **Use built-in frame count** # Changes - Replaces `FrameCount` with bevy counterpart in all places - Updates system scheduling constraints based on new `FrameCount` behavior -- this crate's `FrameCount` was updated in `Firs...
diff --git a/src/frame_counting.rs b/src/frame_counting.rs deleted file mode 100644 index ccc9056..0000000 --- a/src/frame_counting.rs +++ /dev/null @@ -1,44 +0,0 @@ -//! Counts (and updates) the frame of the app - -use bevy::ecs::prelude::*; -use serde::{Deserialize, Serialize}; -use std::ops::{Add, Sub}; -/// Th...
1
1
0
[{"id": "G0", "claim": "The pull request's change should be documented in the project's release notes (changelog) before it can be merged.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Leafwing-Studios__leafwing_input_playback__40
Leafwing-Studios/leafwing_input_playback
40
defect
0d43392699307cf4180681834b48c98f08f0403e
21a59d4e8385baa8913805a1c15447ad67ebf53d
Upgrade Bevy to 0.15
# Issue This upgrades Bevy to 0.15. # Changes - Included the required `bevy_window` feature in dependencies - Renamed `App::observe` to `App::add_observer` - Renamed `Condition(?)::and_then` to `::and` - Added `repeat` field to keyboard inputs - `World::flush_commnads` is now private, replaced with `World:...
diff --git a/Cargo.toml b/Cargo.toml index ed69962..3db446d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,12 +21,15 @@ members = ["./", "tools/ci"] default = [] [dependencies] -bevy = { version = "0.14", default-features = false, features = ["serialize"] } +bevy = { version = "0.15", default-features = false, fea...
2
2
0
[{"id": "G0", "claim": "This pull request needs release notes documenting the change.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The crate version number should be bumped in this PR so it can be released right after merge.", "category": "proce...
null
League-of-Foundry-Developers__foundry-vtt-types__2538
League-of-Foundry-Developers/foundry-vtt-types
2,538
defect
20dfd93137254effdd2874002841b287af35d052
4735ee64facf9ca97bfbfca05be7658b12b274ff
CONFIG updates
Some ts-expect-error on account of the missing DataModel setup, but that can be handled later. The previous v10 updates to this somehow missed out on the DetectionMode stuff.
diff --git a/src/foundry/client/config.d.mts b/src/foundry/client/config.d.mts index c4b0068b8c..90976606e1 100644 --- a/src/foundry/client/config.d.mts +++ b/src/foundry/client/config.d.mts @@ -4,10 +4,11 @@ import type * as CONST from "../common/constants.d.mts"; import type { StatusEffect } from "./data/documents/t...
4
3
1
[{"id": "G0", "claim": "The pull request should probably also address issue #1590, i.e. let CONFIG.Dice accept custom Roll subclasses.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new fog.extractor and fog.manager properties should be typed boolean...
null
League-of-Foundry-Developers__foundry-vtt-types__2540
League-of-Foundry-Developers/foundry-vtt-types
2,540
defect
20dfd93137254effdd2874002841b287af35d052
e023629db5f695ce127d468a8d300b6649821c5d
Update common.constants
Had to add lint disables for scoped type at the end of the file for `SETUP_PACKAGE_PROGRESS`. Let me know if you think the way it's done make sense to y'all.
diff --git a/src/foundry/common/constants.d.mts b/src/foundry/common/constants.d.mts index d28687fc39..e40f8e70fc 100644 --- a/src/foundry/common/constants.d.mts +++ b/src/foundry/common/constants.d.mts @@ -33,13 +33,53 @@ export const ASCII = `__________________________________________________________ /** * Defin...
1
1
1
[{"id": "G0", "claim": "The ACTIONS and STEPS type aliases inside namespace SETUP_PACKAGE_PROGRESS need an `export`, which would likely also make the eslint-disable comments unnecessary.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
League-of-Foundry-Developers__foundry-vtt-types__2627
League-of-Foundry-Developers/foundry-vtt-types
2,627
defect
138e5270ffc2f6f3137597fb1264d5c44f8e35e9
096d0bfb6606c3fbddd73c3c03caf1c0179906d4
update-helpers#2604
This one took a while, but it's not that many changes after all. Added a couple of tests that was missing, and matched new comments/options signatures. Resolves #2604
diff --git a/src/foundry/common/utils/helpers.d.mts b/src/foundry/common/utils/helpers.d.mts index 0169c67b1e..abe92402be 100644 --- a/src/foundry/common/utils/helpers.d.mts +++ b/src/foundry/common/utils/helpers.d.mts @@ -34,6 +34,15 @@ export function debounce<T extends (...args: any[]) => unknown>( delay: number,...
4
4
2
[{"id": "G0", "claim": "The `type` field of ResolvedUUID should be typed with the DocumentType helper type rather than the looser `string`.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `primaryType` field of ResolvedUUID should be typed as `fo...
null
League-of-Foundry-Developers__foundry-vtt-types__2684
League-of-Foundry-Developers/foundry-vtt-types
2,684
defect
d82147eacd3f89452cba1b648a7c3543392ddfd0
6f20f8b76469c07b0bb7925e312f2b1d00b18714
Audit Application V2 Again
I would still consider my ApplicationV2 auditing work incomplete but this at least gets it closer.
diff --git a/src/foundry/client-esm/applications/_types.d.mts b/src/foundry/client-esm/applications/_types.d.mts index 48f8158048..cb93bbe4a4 100644 --- a/src/foundry/client-esm/applications/_types.d.mts +++ b/src/foundry/client-esm/applications/_types.d.mts @@ -2,6 +2,8 @@ import type ApplicationV2 from "./api/appl...
1
1
0
[{"id": "G0", "claim": "The incomplete `// TODO: Should` comment in src/foundry/client-esm/applications/api/application.d.mts should be removed, since the change already added RenderContext to the generics it gestured at.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"...
null
League-of-Foundry-Developers__foundry-vtt-types__3053
League-of-Foundry-Developers/foundry-vtt-types
3,053
defect
e3e214c3e3321137489ab315ee67a3051de3c61c
f90316f7b71abd30275baeccb6f617d458d9c486
Types and tests for `pixi/groups` and `CanvasGroupMixin`
and associated side effects (including changes to previously done mixins as discussed on discord)
diff --git a/src/foundry/client-esm/canvas/sources/base-effect-source.d.mts b/src/foundry/client-esm/canvas/sources/base-effect-source.d.mts index a928cd7b57..999eb7e632 100644 --- a/src/foundry/client-esm/canvas/sources/base-effect-source.d.mts +++ b/src/foundry/client-esm/canvas/sources/base-effect-source.d.mts @@ -5...
4
4
0
[{"id": "G0", "claim": "The AnimateReturn helper should be defined the other way around, with animate(...): AnimateReturn instead of AnimateReturn = ReturnType<typeof CanvasAnimation.animate>.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "FixedInstanceT...
null
League-of-Foundry-Developers__foundry-vtt-types__3175
League-of-Foundry-Developers/foundry-vtt-types
3,175
defect
aac4ad175d87e12c3c258f25a5348fe701a75011
c694433de613ee9ae3c04c0fb365a002c778ce57
Minor improvement to PointSourcePolygon tests
account for default mode in PSP#testCollision. noticed this when WallsLayer had a deprecated wrapper to this method.
diff --git a/src/foundry/client/pixi/core/shapes/source-polygon.d.mts b/src/foundry/client/pixi/core/shapes/source-polygon.d.mts index af3d361a5d..f7a47e336c 100644 --- a/src/foundry/client/pixi/core/shapes/source-polygon.d.mts +++ b/src/foundry/client/pixi/core/shapes/source-polygon.d.mts @@ -120,7 +120,7 @@ declare g...
2
1
1
[{"id": "G0", "claim": "The testCollision overload should be declared as `Mode extends PointSourcePolygon.CollisionModes | undefined` returning `PointSourcePolygon.TestCollision<Coalesce<Mode, \"all\">>`, because with the default `= \"all\"` a call like `testCollision(origin, destination, { mode: undefined, ...config }...
null
League-of-Foundry-Developers__foundry-vtt-types__3222
League-of-Foundry-Developers/foundry-vtt-types
3,222
defect
a1bc058e9ff0a6a553aa30fbc3b100f9b763ee1c
a4612f4132e16d0e099cd5a2f3a63ae148ff1e81
Migrate FilePicker to AppV2 & 13.337
Not sure how much to boilerplate the overrides here Closes #3219
diff --git a/src/foundry/client-esm/applications/api/application.d.mts b/src/foundry/client-esm/applications/api/application.d.mts index b66dcaea42..6dd1389c4a 100644 --- a/src/foundry/client-esm/applications/api/application.d.mts +++ b/src/foundry/client-esm/applications/api/application.d.mts @@ -309,6 +309,19 @@ decl...
19
18
8
[{"id": "G0", "claim": "The new ApplicationV2.TabsConfiguration fields `initial` and `labelPrefix` should be checked and allow `null | undefined`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Whether the ApplicationV2 constructor's options paramet...
null
League-of-Foundry-Developers__foundry-vtt-types__3338
League-of-Foundry-Developers/foundry-vtt-types
3,338
defect
aaa444fba62df13c1c359047d62c95a0f5cfddaf
5c45e263e93be0a07bd0d3709905c71c1fd3b788
Migrated TextEditor to ESM
Closes #3291
diff --git a/src/foundry/client-esm/applications/ux/context-menu.d.mts b/src/foundry/client-esm/applications/ux/context-menu.d.mts index 570b2b1eab..97f5ac0f50 100644 --- a/src/foundry/client-esm/applications/ux/context-menu.d.mts +++ b/src/foundry/client-esm/applications/ux/context-menu.d.mts @@ -72,8 +72,7 @@ declare...
4
4
2
[{"id": "G0", "claim": "The `style_formats` option is typed as a hard-coded 1-element tuple; it should be an array with a sub-interface, or better, taken from the canonical `tinyMCE` type.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "`TextEditor.Option...
null
LeanerCloud__AutoSpotting__114
LeanerCloud/AutoSpotting
114
defect
669dc3c31bf5ca4378c21ce1df5006c7e12f31f3
67b7bd1660804761b952217f70f7acc34be66645
Enable EBS pricing and automatically turn on if free
# Issue Type # <!-- Pick one below and delete the others: --> - Feature Pull Request - Bug fix ## Summary ## - Include EBS surcharging in price calculation. - Turn on EBS optimization if it is free. ( Implements #88 ) - Fix bug where launch config has EBS enabled but Autospotting selects an instance which d...
diff --git a/core/autoscaling.go b/core/autoscaling.go index 00a6a6a4..efe2dba8 100644 --- a/core/autoscaling.go +++ b/core/autoscaling.go @@ -527,10 +527,11 @@ func (a *autoScalingGroup) launchCheapestSpotInstance(azToLaunchIn *string) erro return errors.New("no cheaper spot instance found") } + newInstance := ...
1
1
0
[{"id": "G0", "claim": "The variable currentPrice should be named candidatePrice, to match the naming of the candidate variable used in the same block of code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
LeanerCloud__AutoSpotting__201
LeanerCloud/AutoSpotting
201
defect
a6f657d23d1453b6b35ae93be303538fd24b7801
78f6abb61e1df8458791c215496ab6db346fb1ed
Allow larger number of autoscaling group names
# Issue Type - Bugfix Pull Request ## Summary https://github.com/cristim/autospotting/issues/199 ## Code contribution checklist 1. [x] The contribution fixes a single existing github issue, and it is linked to it. 1. [x] The code is as simple as possible, readable and follows the idiomatic Go [gu...
diff --git a/core/region.go b/core/region.go index 219fc753..0a7f4ae1 100644 --- a/core/region.go +++ b/core/region.go @@ -303,9 +303,7 @@ func (r *region) scanForEnabledAutoScalingGroups() { svc := r.services.autoScaling - input := autoscaling.DescribeAutoScalingGroupsInput{ - AutoScalingGroupNames: asgNames, -...
7
5
2
[{"id": "G0", "claim": "Inline the autoscaling.DescribeAutoScalingGroupsInput{} literal into the call and delete the input variable line.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Inline r.services.autoScaling at the call site instead of us...
null
LeanerCloud__AutoSpotting__204
LeanerCloud/AutoSpotting
204
defect
a6f657d23d1453b6b35ae93be303538fd24b7801
757ee72cc26caa9645a226a5d870d5e1953dfae4
disallowed-type: improve logic & add option in terraform/doc
# Issue Type - Feature Pull Request - Bugfix Pull Request - Documentation Pull Request (All of the above) ## Summary As reported [here](https://github.com/cristim/autospotting/issues/198) and [there](https://github.com/cristim/autospotting/pull/196#pullrequestreview-87979399). There were couple elements t...
diff --git a/START.md b/START.md index 845c204c..e1972f11 100644 --- a/START.md +++ b/START.md @@ -121,6 +121,7 @@ use the module directly: module "autospotting" { source = "github.com/cristim/autospotting/terraform/autospotting" + autospotting_disallowed_instance_types = "t2.*" autospotting_min_on_demand_num...
3
2
0
[{"id": "G0", "claim": "The new terraform variable's description advertises glob support for disallowed instance types; the reviewer asks whether globs are really supported and requests test cases covering the glob matching.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id":...
null
LeanerCloud__AutoSpotting__209
LeanerCloud/AutoSpotting
209
defect
c1bb6f9b0aef3b03f6c5c9b9c709a6bf0a323227
558e8168ae088fb673595f1feddb22efe3fb41b7
support for filter_by_tag_values, for filtering on extra asg tags
# Issue Type - Feature Pull Request ## Summary Supporting the ability to filter on matched (found) ASG's by extra tags. For example, we have an AWS account that contains many VPCs. These VPCs contain different versions of the same ASGs (denoting the environment the ASG belongs to) These different ASGs a...
diff --git a/autospotting.go b/autospotting.go index 24bf5e15..37daf0fa 100644 --- a/autospotting.go +++ b/autospotting.go @@ -49,7 +49,8 @@ func run() { "disallowed_instance_types=%v "+ "on_demand_price_multiplier=%.2f "+ "spot_price_buffer_percentage=%.3f "+ - "bidding_policy=%s", + "bidding_policy=%s "+ +...
1
1
0
[{"id": "G0", "claim": "The new tag filter option should also be exposed to the CloudFormation and Terraform infrastructure code.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
LeanerCloud__AutoSpotting__210
LeanerCloud/AutoSpotting
210
defect
ae3eaca114614e7c8a4ce3c12c90762c600f4675
60e4272ee12b804db1a5a40fb2c25fc9a6839d6e
remove 25% cap on allowedinstancetypes
Signed-off-by: Javeria Khan <jkhan@branch.io> # Issue Type - Bugfix Pull Request ## Summary When choosing to run autospotting with AllowedInstanceTypes; the goal is to stick to a few specific types (even one); and have all of the on-demands in an ASG converted to those types. At the moment the code caps t...
diff --git a/core/instance.go b/core/instance.go index 97f41643..a46a8d09 100644 --- a/core/instance.go +++ b/core/instance.go @@ -145,12 +145,22 @@ func (i *instance) terminate() error { } // We skip it in case we have more than 25% instances of this type already running -func (i *instance) isSpotQuantityCompatibl...
3
3
1
[{"id": "G0", "claim": "The allowedInstanceTypes handling should be refactored to normalize the list (no nil/empty-string elements) so checks like `if len(allowedList)` become possible, as the current `allowedList != nil && allowedList[0] != \"\"` style is already buggy (e.g. `[]string{\"\", \"t2.medium\"}` would fail)...
null
LeanerCloud__AutoSpotting__241
LeanerCloud/AutoSpotting
241
defect
ad02ed4e8de32e47e3b0f5cc60301c49b4dec185
00b0ed5e328bd5b8ef49f4e1d7976c6f01639671
Add a sleep to let detachment initialize properly before terminating
# Issue Type - Bugfix Pull Request ## Summary When detaching an instance from a Autoscaling Group autospotting just starts the detach and then immediately terminate the instance, this will make some requests during this time fail: To reproduce: create an ALB, put 2 instances with a simple webserver for exam...
diff --git a/core/autoscaling.go b/core/autoscaling.go index 44939a38..4ff1d55a 100644 --- a/core/autoscaling.go +++ b/core/autoscaling.go @@ -917,6 +917,9 @@ func (a *autoScalingGroup) detachAndTerminateOnDemandInstance( return err } + // Wait till detachment initialize is complete before terminate instance + t...
5
3
0
[{"id": "G0", "claim": "The sleep is a hackish workaround and the better approach is to tag the detached instance and only actually terminate it on the next autospotting run (detach in the current run, terminate in the next).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id...
null
LeanerCloud__AutoSpotting__244
LeanerCloud/AutoSpotting
244
defect
038265b15eec48e84625a8dddd2ff2a6bb6e910f
836b2417727cbbc40d8985f07b0a9d5fe79eff8a
Add support for opt-out mode
Implements #242. # Issue Type - Feature Pull Request ## Summary Implements #242, see that for more details. ## Code contribution checklist <!-- The code review should be largely a matter of going through this checklist. --> 1. [x] The contribution fixes a single existing github issue, and it is l...
diff --git a/autospotting.go b/autospotting.go index 5bba619a..531fef21 100644 --- a/autospotting.go +++ b/autospotting.go @@ -44,6 +44,7 @@ func run() { "spot_price_buffer_percentage=%.3f "+ "bidding_policy=%s "+ "tag_filters=%s "+ + "tag_filter_mode=%s "+ "spot_product_description=%v", conf.Regions, ...
6
5
2
[{"id": "G0", "claim": "addDefaultFilteringMode should treat anything other than \"opt-out\" as opt-in (defaulting invalid values like \"whatever\" to opt-in, optionally with a debug/warning message) instead of only defaulting when the mode is empty.", "category": "correctness", "verdict": "supported", "priority": "P1"...
null
LeanerCloud__AutoSpotting__291
LeanerCloud/AutoSpotting
291
defect
498197977b6881bde8ba0c9ea293c77db1abeac9
292b8d672c19de04072fb2b676374b1dcd50840f
Check ASG min OD rules before launching new spot instance
# Issue Type - Bugfix Pull Request ## Summary Fixes #290 ## Code contribution checklist 1. [x] The contribution fixes a single existing github issue, and it is linked to it. 1. [x] The code is as simple as possible, readable and follows the idiomatic Go [guidelines](https://golang.org/doc/effe...
diff --git a/core/autoscaling.go b/core/autoscaling.go index 7514531d..ed8e2269 100644 --- a/core/autoscaling.go +++ b/core/autoscaling.go @@ -342,6 +342,12 @@ func (a *autoScalingGroup) process() { "No running on-demand instances were found, nothing to do here...") return } + + if !a.needReplaceOnDemandIn...
1
1
1
[{"id": "G0", "claim": "The pull request's new needReplaceOnDemandInstances guard in core/autoscaling.go is untested and lowers coverage, so the reviewer asks the author to try to add a test case covering it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
LeanerCloud__AutoSpotting__300
LeanerCloud/AutoSpotting
300
defect
b67a703a8d9ad8f0200a75d2ab08bd0eb8af7f32
438523e371fead3ea194c380b0e4a2a53249bb7d
Using filter tags with wildcard does not work #246
# Issue Type - Feature Pull Request ## Summary #246 - Using filter tags with wildcard does not work Add support for using regular expressions to filter instances at the value level for any ASG. The expressions are bounded so a plain string is treated as a basic equality test while a well formed expression nee...
diff --git a/core/region.go b/core/region.go index 35de8f95..e6ae58ee 100644 --- a/core/region.go +++ b/core/region.go @@ -3,6 +3,7 @@ package autospotting import ( "errors" "path/filepath" + "regexp" "strconv" "strings" "sync" @@ -284,7 +285,14 @@ func (r *region) requestSpotPrices() error { } func tags...
4
4
0
[{"id": "G0", "claim": "Matching tag values with regular expressions creates an inconsistency with the filesystem globs used elsewhere in the package, and regular expressions are unnecessary here, so the filtering should use globs instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "intr...
null
LeanerCloud__AutoSpotting__306
LeanerCloud/AutoSpotting
306
defect
7647f5843213cabfb045620492b3b7186a3d1ca1
a7c320cb3b6ee17d709c25c23cbeafaeec092a11
Attempt multiple instance types for launch. #263
# Issue Type - Feature Pull Request ## Summary This provides and implementation approach to the problem described in #263. It's the first form passing tests clean and probably has enough non idiomatic Go in it. I blame Haskell for that. ;) This PR is my relevant commit cherrypicked from my other branch onto...
diff --git a/core/instance.go b/core/instance.go index ba480d99..cdebcfa6 100644 --- a/core/instance.go +++ b/core/instance.go @@ -4,6 +4,7 @@ import ( "fmt" "math" "path/filepath" + "sort" "strconv" "strings" "sync" @@ -102,6 +103,11 @@ type instance struct { asg *autoScalingGroup } +type accept...
3
2
2
[{"id": "G0", "claim": "The multi-clause compatibility `if` expression added in getCheapestCompatibleSpotInstanceType (isPriceCompatible && isEBSCompatible && isClassCompatible && isStorageCompatible && isVirtualizationCompatible && isAllowed) is too complex and should be simplified.", "category": "maintainability", "v...
null
LeanerCloud__AutoSpotting__328
LeanerCloud/AutoSpotting
328
defect
a3c1ed6b3b05a1f795038b5796142514f41d547e
160e7dbc7f98994d98f6904696aab45b9d477f51
Termination Notification Configurable Action
# Issue Type <!-- Pick one below and delete the others. Also feel free to delete these comments for brevity once they were fully acknowledged. --> - Feature Pull Request ## Summary <!-- Describe the change, including rationale and design decisions, and use a brief but descriptive PR title. Plea...
diff --git a/autospotting.go b/autospotting.go index 5d66aca2..4aa2eed2 100644 --- a/autospotting.go +++ b/autospotting.go @@ -49,7 +49,8 @@ func run() { "tag_filters=%s "+ "tag_filter_mode=%s "+ "spot_product_description=%v "+ - "instance_termination_method=%s\n", + "instance_termination_method=%s "+ + "te...
4
4
1
[{"id": "G0", "claim": "The exported method SpotTermination.ExecuteAction should have a doc comment or be unexported.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The exported method SpotTermination.AsgHasHook should have a doc comment or be une...
null
LeanerCloud__AutoSpotting__329
LeanerCloud/AutoSpotting
329
defect
452fef049ee82fb93c85f3111322ac4cbd1df37c
0256b083297f6b09134a5ea00626d9d9e8a64bb4
Delete Tag 'launched-for-asg' when detaching a spot instance
# Issue Type <!-- Pick one below and delete the others. Also feel free to delete these comments for brevity once they were fully acknowledged. --> - Bugfix Pull Request ## Summary <!-- Describe the change, including rationale and design decisions, and use a brief but descriptive PR title. Pleas...
diff --git a/cloudformation/stacks/AutoSpotting/template.yaml b/cloudformation/stacks/AutoSpotting/template.yaml index bb8ca964..f8a0149f 100644 --- a/cloudformation/stacks/AutoSpotting/template.yaml +++ b/cloudformation/stacks/AutoSpotting/template.yaml @@ -244,6 +244,7 @@ - "cloudformation:DeleteStac...
1
1
0
[{"id": "G0", "claim": "The log message should say 'Tag ... deleted' rather than 'Tag ... delete'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
LeanerCloud__AutoSpotting__391
LeanerCloud/AutoSpotting
391
defect
26ca955304f6ed7093bf7f9adafab5abdb62591f
fae8b2262f83bdc4e4efe3fa8a2753968c34365b
Ignore terminating spot instances that don't belong to AutoSpotting
This is a reworking of #363 against `master`. Since this fixes a fairly serious issues for those running AutoSpotting in multi-tenant environments, I think it makes sense to merge this first and then tackle remaining issues that are preventing #354 from being merged. Credit for original code goes to @cfarrend. ...
diff --git a/autospotting.go b/autospotting.go index 3b667d93..185a7ad3 100644 --- a/autospotting.go +++ b/autospotting.go @@ -137,7 +137,15 @@ func Handler(ctx context.Context, rawEvent json.RawMessage) { return } else if instanceID != nil { spotTermination := autospotting.NewSpotTermination(cloudwatchEvent...
3
3
0
[{"id": "G0", "claim": "The spot-termination branch in Handler nests control flow statements too deeply and should avoid deep nesting.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Method SpotTermination.IsInAutoSpottingASG has 6 return stateme...
null
LeanerCloud__AutoSpotting__413
LeanerCloud/AutoSpotting
413
defect
3bfd542fb437086652033ab2c7bf108788ab0021
b4df96110906dbae24219f4c895e8ac2a63f1412
Move config loading out of main and add tests for it
The loading of config was previously untested. # Issue Type <!-- Pick one below and delete the others. Also feel free to delete these comments for brevity once they were fully acknowledged. --> - Feature Pull Request ## Summary Move `parseCommandLineFlags` into `config.go` and add some tests for it...
diff --git a/autospotting.go b/autospotting.go index 530ede36..42008842 100644 --- a/autospotting.go +++ b/autospotting.go @@ -6,16 +6,12 @@ package main import ( "context" "encoding/json" - "fmt" "log" "os" autospotting "github.com/AutoSpotting/AutoSpotting/core" "github.com/aws/aws-lambda-go/events" ...
3
2
1
[{"id": "G0", "claim": "Function ParseConfig has more lines of code than the 50 allowed (85 at S1, 87 at S2, 86 at S3) and should be refactored.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error return value of flagSet.Parse is not checke...
null
LeanerCloud__AutoSpotting__426
LeanerCloud/AutoSpotting
426
defect
caf373d71fbe6542cc7f5f25ffad04433ef7ac53
e808a6293a0ca3ef7b883699c087a1f2af45fe87
Cron timezone
Added the ability to select a timezone to check if autospotting should be run based on the users own timezone # Issue Type - Feature Pull Request ## Summary Sets the timezone in which to check the CronSchedule. Also takes into account daylight savings in the timezone. Example: If the timezone is set to '...
diff --git a/cloudformation/stacks/AutoSpotting/template.yaml b/cloudformation/stacks/AutoSpotting/template.yaml index 9e7671f1..a8059c4f 100644 --- a/cloudformation/stacks/AutoSpotting/template.yaml +++ b/cloudformation/stacks/AutoSpotting/template.yaml @@ -41,8 +41,16 @@ the usual 9-18 office hours. This is ...
1
1
0
[{"id": "G0", "claim": "Remove the out.txt file (a stray test-output log) from the patch.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
LeanerCloud__AutoSpotting__432
LeanerCloud/AutoSpotting
432
defect
fb15aa4ef8250b1c8f8996ac041dff6237da1db2
0baf0ec17477cd5fa872903d6ce81c6177a2edab
Use the larger of min-OD-instances and (min-OD-percent * current)
When an ASG has both "autospotting_min_on_demand_percentage" and "autospotting_min_on_demand_number" tags, use whichever is the larger number each time. In other words, allow the static minimum number of instances to override the percentage when the poolsize it small. # Issue Type - Feature Pull Request ##...
diff --git a/core/autoscaling_configuration.go b/core/autoscaling_configuration.go index a2804bbb..9369137c 100644 --- a/core/autoscaling_configuration.go +++ b/core/autoscaling_configuration.go @@ -183,18 +183,23 @@ func (a *autoScalingGroup) loadConfOnDemand() bool { OnDemandNumberLong: a.loadNumberOnDemand, ...
1
1
0
[{"id": "G0", "claim": "The added branch in loadConfOnDemand is a deeply nested chain of if statements that should be refactored to be easier to understand.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
LeanerCloud__AutoSpotting__436
LeanerCloud/AutoSpotting
436
defect
3a1f77a890f5dfbc1757aa0661c16c035ef069ea
b12814e658f4a33387c8bf3cf626a34857660f9f
Automatically upgrade EBS volumes of launched spot instances from GP2->GP3 and IO1->IO2 for lower cost and/or higher performance
# Issue Type - Feature Pull Request ## Summary As per https://aws.amazon.com/blogs/aws/new-ebs-volume-type-io2-more-iops-gib-higher-durability/ they have 100x Higher Durability and 10x More IOPS/GiB at the same cost. Similar awesomeness is available on GP3 as per https://aws.amazon.com/blogs/aws/new-amazon-ebs...
diff --git a/core/autoscaling_configuration.go b/core/autoscaling_configuration.go index 6942994b..13d85e4f 100644 --- a/core/autoscaling_configuration.go +++ b/core/autoscaling_configuration.go @@ -100,7 +100,11 @@ const ( // PatchBeanstalkUserdataTag is the name of the tag set on the AutoScaling Group that // c...
1
1
0
[{"id": "G0", "claim": "The doc comment on exported const DefaultGP2ConversionThreshold should be of the form \"DefaultGP2ConversionThreshold ...\" per the Go lint style rule.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
LeanerCloud__AutoSpotting__446
LeanerCloud/AutoSpotting
446
defect
d37d2cf164d17bac8922ac29c3ee4dc03d8439bf
4ada14c4ed3ebba622b10ce552b65bebf646cf85
re #430: allows counting ephemeral volumes desired via AMI specified by ASG launch template (w/ version)
# Issue Type - Feature Pull Request ## Summary Fixes #430, where ephemeral volumes weren't being counted from the AMI used by a launch template when considering the acceptable instance types. ## Code contribution checklist 1. [x] I hereby allow the Copyright holder the rights to distribute this piece of ...
diff --git a/core/autoscaling.go b/core/autoscaling.go index 66c58299..94768e8d 100644 --- a/core/autoscaling.go +++ b/core/autoscaling.go @@ -27,6 +27,7 @@ type autoScalingGroup struct { name string region *region launchConfiguration *launchConfiguration + launchTemplate *launchT...
5
2
2
[{"id": "G0", "claim": "The loadLaunchTemplate method has more than the allowed number of return statements (5, then 6, then 8, exceeding the limit of 4).", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a check above line 99 in case resp.Laun...
null
LeanerCloud__AutoSpotting__450
LeanerCloud/AutoSpotting
450
defect
805de59e7db240cd67748d3e64f8293c33127cc3
f2f57c0e6288e05bc2c94cb7ad946ac611241f22
Support for handling EC2 Rebalance Recommendation event
# Issue Type - Feature Pull Request ## Summary Fixes #448 by handling [EC2 Rebalance Recommendation](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/rebalance-recommendations.html#monitor-rebalance-recommendations) event in the same way a Spot Interruption event was already handled by AutoSpotting. ## C...
diff --git a/core/main.go b/core/main.go index bf6cf2db..171c93ee 100644 --- a/core/main.go +++ b/core/main.go @@ -259,6 +259,26 @@ func (a *AutoSpotting) EventHandler(event *json.RawMessage) { a.handleNewInstanceLaunch(cloudwatchEvent.Region, *instanceID, *state) } + } else if eventType == "EC2 Instance Rebal...
2
1
1
[{"id": "G0", "claim": "The new rebalance-recommendation branch in EventHandler should be refactored to avoid deeply nested control flow statements.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request must also update the CloudWatch ...
null
LeanerCloud__AutoSpotting__461
LeanerCloud/AutoSpotting
461
defect
36a61e3887e6cae3499ccff5e8d230e8738a7472
5f5694caf87ffb9604eef9b4c02e46613474bc76
Sequential OnDemand instance replacement through the SQS FIFO queue.
# Issue Type - Feature Pull Request ## Summary This change implements a few enhancements for the SQS workflow, in order to reduce the amount of time that Spot instances run before being added to the ASG. The On-demand instance launch events are queued through the SQS FIFO queue and processed one at a time, ...
diff --git a/cloudformation/stacks/AutoSpotting/template.yaml b/cloudformation/stacks/AutoSpotting/template.yaml index a964cc2a..073c1195 100644 --- a/cloudformation/stacks/AutoSpotting/template.yaml +++ b/cloudformation/stacks/AutoSpotting/template.yaml @@ -478,7 +478,7 @@ Properties: ContentBasedDedup...
2
2
0
[{"id": "G0", "claim": "The comment on exported const Spot should be of the form \"Spot ...\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Exported const OnDemand should have a comment (or a comment on the block) or be unexported.", "category...
null
LearningCircuit__local-deep-research__1421
LearningCircuit/local-deep-research
1,421
defect
531a28f3867d40b868c212c95094e5c7bc34b3ce
22ad586a4692866adf0955cac8668e9dc8f768b9
fix: prevent memory exhaustion in PDF uploads (issue #1176)
## Summary - Add `DiskSpoolingRequest` class that spools files >5MB to disk instead of memory - Add explicit memory cleanup with `gc.collect()` after each file in `upload_pdf()` - Close file streams after processing to release resources This reduces peak memory usage from potentially 10GB+ (200 files × 50MB) to ~50-1...
diff --git a/src/local_deep_research/__version__.py b/src/local_deep_research/__version__.py index 69c4dbbbc8b..030c60680bb 100644 --- a/src/local_deep_research/__version__.py +++ b/src/local_deep_research/__version__.py @@ -1 +1 @@ -__version__ = "1.3.20" +__version__ = "1.3.21" diff --git a/src/local_deep_research/we...
4
2
1
[{"id": "G0", "claim": "The manual garbage-collection cleanup added in upload_pdf (gc.collect() calls, del pdf_content statements and the function-level import) is unnecessary and significantly degrades upload performance.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"...
null
LearningCircuit__local-deep-research__1454
LearningCircuit/local-deep-research
1,454
defect
9e50553d7e7846e326700ddc811d080c21cc3036
8bc38da5bb99dc9272273a6418877739ff94478e
feat(security): implement per-database salt for new databases
## Summary Implements per-database random salts for new databases, addressing issue #1439. This provides better security than the shared legacy salt while maintaining full backwards compatibility. ### Security Improvement - New databases now use a **random 32-byte salt** stored in a `.salt` file alongside the databas...
diff --git a/.gitleaks.toml b/.gitleaks.toml index 9031ca7c5e6..884caae41ef 100644 --- a/.gitleaks.toml +++ b/.gitleaks.toml @@ -113,7 +113,9 @@ paths = [ '''src/local_deep_research/database/session_context\.py$''', # RAG routes and services use db_password variable names (not actual secrets) '''src/loca...
16
9
4
[{"id": "G0", "claim": "When a .salt file has an unexpected size, get_salt_for_database() logs a warning and falls back to the legacy salt, which will almost certainly fail in practice; it should raise an exception instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {...
null
LearningCircuit__local-deep-research__1547
LearningCircuit/local-deep-research
1,547
defect
919603a5868f2e58e9b959f6351fa852e9f0dc10
79637bf691795d24db6e3230ed7061489e4339fd
fix: centralize boolean type conversion for settings
## Summary Centralizes the string-to-boolean conversion logic that was scattered throughout the codebase, addressing issue #1276. ### Changes - **SettingsManager**: Added `get_bool_setting()` method for retrieving boolean settings with automatic string conversion - **thread_settings**: Added `get_bool_setting_from_s...
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bf13e02bd29..13f72ca4658 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -63,6 +63,7 @@ jobs: ldr-test \ sh -c "python -m pytest -v \ --ignore=tests/auth_tests/test_auth_ra...
3
2
0
[{"id": "G0", "claim": "The string-to-boolean conversion logic is duplicated in thread_settings.get_bool_setting_from_snapshot() and SettingsManager.get_bool_setting() instead of those calling the shared to_bool() utility internally.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "i...
null
LearningCircuit__local-deep-research__1855
LearningCircuit/local-deep-research
1,855
defect
861c37a8cf1aab9e51ef1861f65a5d2fee2f8389
7d8d16fc7145610f107e486d9a43b5160549dc03
fix(llm): remove broken llamacpp HTTP mode, guide users to openai_endpoint
## Summary The `LlamaCppClient` class referenced in HTTP mode **doesn't exist** in langchain, making HTTP mode completely broken. This PR removes the broken HTTP mode entirely and simplifies the llamacpp provider to only support local .gguf file loading. ## Problem ```python # This import ALWAYS fails - the class do...
diff --git a/src/local_deep_research/config/llm_config.py b/src/local_deep_research/config/llm_config.py index c6ec8d200fc..8df498fa957 100644 --- a/src/local_deep_research/config/llm_config.py +++ b/src/local_deep_research/config/llm_config.py @@ -178,12 +178,17 @@ def is_lmstudio_available(settings_snapshot=None): ...
1
1
0
[{"id": "G0", "claim": "The suffix check added to is_llamacpp_available is pointless because the function returns true whether or not the path has an extension, so the check serves no purpose.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
LearningCircuit__local-deep-research__1953
LearningCircuit/local-deep-research
1,953
defect
e795851e5692e57f8f3b8abc43b7a64b5315dc97
748d8cc6d8bbded727a2c32a6e9bc59e65cba730
fix: SQLCipher key derivation & crypto security fixes
## Summary - **CRITICAL**: Fix `set_sqlcipher_rekey` to use PBKDF2-derived key via `_get_key_from_password` instead of raw UTF-8 hex encoding — the previous code would make databases unopenable after password change - Replace unbounded `functools.cache` with TTL-bounded `cachetools.TTLCache` (5min TTL, thread-safe) to ...
diff --git a/src/local_deep_research/database/sqlcipher_utils.py b/src/local_deep_research/database/sqlcipher_utils.py index d30c209ed8a..d27f7595e11 100644 --- a/src/local_deep_research/database/sqlcipher_utils.py +++ b/src/local_deep_research/database/sqlcipher_utils.py @@ -5,14 +5,18 @@ consistent password handling...
4
1
0
[{"id": "G0", "claim": "Use the environment variable setting infrastructure instead of plain os.environ.get for LDR_DB_CIPHER_MEMORY_SECURITY.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "_key_cache stores raw plaintext password strings as dic...
null
LearningCircuit__local-deep-research__2157
LearningCircuit/local-deep-research
2,157
defect
7d8fdee7dd849e8e45f9f71b635440879cc1fa8a
d4c6bdc5702b62928bdbd0d7fb436be54c2c4ebc
fix: show all embedding providers in dropdown even when unreachable
## Summary - Ollama's `is_available()` makes an HTTP request to the configured URL. If the URL is wrong, the provider was completely hidden from the embedding settings dropdown — making it impossible to select Ollama and fix the URL (catch-22). - All providers now always appear in the dropdown. Unavailable ones show a...
diff --git a/src/local_deep_research/research_library/routes/rag_routes.py b/src/local_deep_research/research_library/routes/rag_routes.py index c28796b4fdb..bdd4d828c18 100644 --- a/src/local_deep_research/research_library/routes/rag_routes.py +++ b/src/local_deep_research/research_library/routes/rag_routes.py @@ -524...
2
1
0
[{"id": "G0", "claim": "Having two fallbacks for escapeHtml is redundant — only the inline fallback function should be needed, so the extra `window.escapeHtmlFallback` step in the fallback chain should be removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "cl...
null
LearningCircuit__local-deep-research__2164
LearningCircuit/local-deep-research
2,164
defect
80d44d7dd8fcd6ebe300fbf2d6e79fd9c4048651
bf6d6126e46118774aad6f14ff7492288178e7bb
security: make allow_registrations env-var-only
## Summary - Removes `app.allow_registrations` from the settings UI and database — any authenticated user could previously toggle this, defeating the purpose for public deployments - Registration control is now exclusively via the `LDR_APP_ALLOW_REGISTRATIONS` environment variable (default: `true`) - To disable regist...
diff --git a/docker-compose.yml b/docker-compose.yml index 090ffe2731b..71381de2003 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -73,6 +73,13 @@ services: - LDR_LLM_OLLAMA_URL=http://ollama:11434 - LDR_SEARCH_ENGINE_WEB_SEARXNG_DEFAULT_PARAMS_INSTANCE_URL=http://searxng:8080 + # ====...
5
2
1
[{"id": "G0", "claim": "Deployment documentation should highlight that after this update existing deployments with allow_registrations=false in their database will default to true unless the LDR_APP_ALLOW_REGISTRATIONS env var is set.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "in...
null
LearningCircuit__local-deep-research__2168
LearningCircuit/local-deep-research
2,168
defect
15a9aa86aa3599e0b040de77a906fb6619a67420
0831e4745034efdaa297da59812b1dbbe3f2aa14
security: fix multiple authentication and redirect vulnerabilities
## Summary This PR addresses several security vulnerabilities identified during a security audit of the authentication system. ### Changes | File | Issue | Fix | |------|-------|-----| | `url_validator.py` | Path traversal via redirect (`///evil.com` bypass) | Add `target.lstrip("/")` to prevent bypass | | `encrypte...
diff --git a/src/local_deep_research/database/encrypted_db.py b/src/local_deep_research/database/encrypted_db.py index dc34938babe..a52e420bee1 100644 --- a/src/local_deep_research/database/encrypted_db.py +++ b/src/local_deep_research/database/encrypted_db.py @@ -450,6 +450,12 @@ def open_user_database( db_...
7
6
5
[{"id": "G0", "claim": "The registration flow's random delay (10-50ms) applied only when passwords don't match is ineffective at preventing timing attacks and should be replaced (e.g. constant operations or removal).", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"...
null
LearningCircuit__local-deep-research__2326
LearningCircuit/local-deep-research
2,326
defect
f2ea62d92afd6d3caec66b3e81a6db2a67844edf
c512ddb1b6a44a934bf11b5dcceedcd38f147657
fix: prevent server overload and white page under sustained load
## Summary When running benchmarks or under sustained load, the server becomes unresponsive and serves all static files with `Content-Type: application/json` (instead of correct MIME types). Combined with `X-Content-Type-Options: nosniff`, browsers block JS/CSS files, rendering a blank white page. The immediate MIME ...
diff --git a/docker-compose.yml b/docker-compose.yml index 9588df2c771..eb008fd9a35 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -134,6 +134,17 @@ services: - ./local_collections/personal_notes:/local_collections/personal_notes/:ro - ./local_collections/project_docs:/local_collections/proje...
4
1
0
[{"id": "G0", "claim": "Add a docstring or comment explaining the value chosen for the global concurrency limit (why 10, e.g. based on typical memory per research task).", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The server-wide concurrency li...
null
LearningCircuit__local-deep-research__2454
LearningCircuit/local-deep-research
2,454
defect
5fe727de87590a5a6161742e7a7c798e5ae18e3f
fcd8f0fad0e81a9567f7a6f08dc36cb68b95a1c3
fix: handle RateLimitError, filter unavailable providers, resolve cancel username
## Summary Reimplements the approved changes from PR #2139 code review, directly on main (avoiding the 368-commit divergence of the original branch). - **Fix critical provider filtering bug**: `is_available()` was called without `settings_snapshot`, causing `NoSettingsContextError` in Flask request threads (no thread...
diff --git a/src/local_deep_research/llm/providers/__init__.py b/src/local_deep_research/llm/providers/__init__.py index 3b87867b28a4..3bc327884adb 100644 --- a/src/local_deep_research/llm/providers/__init__.py +++ b/src/local_deep_research/llm/providers/__init__.py @@ -2,12 +2,14 @@ from .auto_discovery import ( ...
6
5
1
[{"id": "G0", "claim": "The *_from_session notification functions catch RateLimitError without returning False, unlike the non-session variants, which could cause issues for callers expecting a boolean return.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
LearningCircuit__local-deep-research__2502
LearningCircuit/local-deep-research
2,502
defect
d1bf0a3723255986d4eb7f9a4e607c0eb42264ef
1e0125271377511306bb1f8846d182360f82eccd
fix: clean up thread-local DB engines in search strategy worker threads
## Summary - Add thread cleanup to all `ThreadPoolExecutor` submit sites in the advanced search system to prevent `NullPool` engine leaks (~3 FDs per worker thread) - Workers calling `search_engine.run()` → `tracker.record_search()` → `create_thread_safe_session_for_metrics()` store engines in `db_manager._thread_engi...
diff --git a/src/local_deep_research/advanced_search_system/candidate_exploration/parallel_explorer.py b/src/local_deep_research/advanced_search_system/candidate_exploration/parallel_explorer.py index c58f9ad0656..af6e235f0ba 100644 --- a/src/local_deep_research/advanced_search_system/candidate_exploration/parallel_exp...
4
3
0
[{"id": "G0", "claim": "In browsecomp_entity_strategy.py the submit call evaluates self._analyze_topic_async(query) in the main thread before submit is called, passing a coroutine object rather than a callable, and the pattern should be aligned with the lambda style used in modular_strategy.py.", "category": "correctne...
null
LearningCircuit__local-deep-research__2517
LearningCircuit/local-deep-research
2,517
defect
9f5afc3ed26d4aec1bcab54029cce481ced9954f
3ed05e5f8bb8d252fa9493e547f75b55adcfd4be
fix: pass settings_snapshot to CitationHandler in all strategy constructors
## Why Fixes #2516 ## What is this PR about - Six strategies create their `CitationHandler` without forwarding `settings_snapshot`, causing `general.output_instructions` (and any other settings consumed by the citation handler) to be silently ignored when using the programmatic API (`quick_summary()`, `de...
diff --git a/src/local_deep_research/advanced_search_system/strategies/direct_search_strategy.py b/src/local_deep_research/advanced_search_system/strategies/direct_search_strategy.py index 71da2c971b1..2ea2fc6c3e1 100644 --- a/src/local_deep_research/advanced_search_system/strategies/direct_search_strategy.py +++ b/src...
5
4
2
[{"id": "G0", "claim": "DirectSearchStrategy.__init__ references settings_snapshot when constructing CitationHandler without accepting a settings_snapshot parameter, so constructing the strategy raises a NameError at runtime; add the parameter and forward it to BaseSearchStrategy and CrossEngineFilter/CitationHandler."...
null
LearningCircuit__local-deep-research__2664
LearningCircuit/local-deep-research
2,664
defect
d67438b2399f6599fa9ddb7cdf38d6567c3f0cb5
88ce2befd470264146cc8a955d363736260206c3
fix: make PasswordValidator single source of truth for password rules
## Summary Makes `PasswordValidator` the single source of truth for all password validation across the app. Previously, password rules were duplicated in client-side JS, server-side route handlers, and E2E tests — leading to inconsistencies. - **Server-side:** Register and change-password routes now delegate all pass...
diff --git a/src/local_deep_research/web/templates/auth/change_password.html b/src/local_deep_research/web/templates/auth/change_password.html index de389f59bd6..aabc5158c9f 100644 --- a/src/local_deep_research/web/templates/auth/change_password.html +++ b/src/local_deep_research/web/templates/auth/change_password.html...
4
2
1
[{"id": "G0", "claim": "The password validation logic is duplicated identically in three places in the register page; extract it into a single shared function (storing the regexes as constants) so future rule changes cannot cause divergence.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sc...
null
LearningCircuit__local-deep-research__2796
LearningCircuit/local-deep-research
2,796
defect
f8b4b1bcb07addc95749a2b44b28a136f7f62269
923d4d3baa7d18cc5891d599d67cea95c42aac73
test: add settings type-safety tests to prevent fact-checking-style bugs
## Summary - **Test 11 (reverse type-consistency):** Bool values must use `checkbox` ui_element, numeric values must not use `text`/`password`/`textarea`. This is the reverse of existing Test 3 and directly catches the bug from PR #2763 where `enable_fact_checking` had `ui_element: "text"` with a boolean value. - **Tes...
diff --git a/src/local_deep_research/defaults/default_settings.json b/src/local_deep_research/defaults/default_settings.json index 8fdd9eb993c..8df69f56d2a 100644 --- a/src/local_deep_research/defaults/default_settings.json +++ b/src/local_deep_research/defaults/default_settings.json @@ -1981,7 +1981,7 @@ "opt...
2
2
0
[{"id": "G0", "claim": "The setting's old \"text\" ui_element (numeric value 2000000) was a mistake, which the pull request corrects to \"number\".", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The known snapshot/get_setting divergences that the ...
null
LearningCircuit__local-deep-research__2816
LearningCircuit/local-deep-research
2,816
defect
95276f7def6355677784b02f8ae80f8d81291f82
648e599834ef4faf184ee0d9a88057bc938620a4
fix: prevent research failure when encrypted DB password lost after restart
## Summary Fixes #2809 — Research fails with "Encrypted database for user requires password" after server/container restart. **Root cause**: The `SessionPasswordStore` is in-memory only. When a Docker container restarts, all stored passwords are lost, but browser session cookies persist. Users can still navigate...
diff --git a/src/local_deep_research/web/routes/research_routes.py b/src/local_deep_research/web/routes/research_routes.py index 1c32781a103..09a0b9e4ff9 100644 --- a/src/local_deep_research/web/routes/research_routes.py +++ b/src/local_deep_research/web/routes/research_routes.py @@ -685,9 +685,23 @@ def start_research...
2
1
0
[{"id": "G0", "claim": "The `db_manager` import placed inside the conditional block in start_research (line 688) should be moved to module level for consistency, unless the local import has a specific reason such as avoiding circular imports.", "category": "maintainability", "verdict": "supported", "priority": "P3", "s...
null
LearningCircuit__local-deep-research__2906
LearningCircuit/local-deep-research
2,906
defect
035f89d9063dd214ff8c793329e531c3264faa00
a5e4f4ef8e9bdd20e855fe98bcaf3c3cef8055b4
refactor: extract APIBasedSearchEngine base class
## Summary - Introduces `APIBasedSearchEngine`, an intermediate base class between `BaseSearchEngine` and 7 API-based search engines (SerpAPI, Serper, Tavily, Brave, ScaleSerp, Exa, Mojeek) - Consolidates duplicated patterns: `include_full_content` attribute, `FullSearchResults` lazy init (`_init_full_search()`), and `...
diff --git a/src/local_deep_research/web_search_engines/engines/search_engine_brave.py b/src/local_deep_research/web_search_engines/engines/search_engine_brave.py index b901299aec5..3b9cfda3773 100644 --- a/src/local_deep_research/web_search_engines/engines/search_engine_brave.py +++ b/src/local_deep_research/web_searc...
6
3
0
[{"id": "G0", "claim": "Removing the engines' run() methods lost the engine-specific log messages and the base class run() does not log the engine name, reducing observability during debugging; the review asks to restore engine-specific logging in run().", "category": "maintainability", "verdict": "supported", "priorit...
null
LearningCircuit__local-deep-research__3359
LearningCircuit/local-deep-research
3,359
defect
7250065c81d7408cbec126fa516a6960f5a1a5c0
7c84e267390264c58c3857881c70f9b80677d76b
Fix #2747: Error when using llama.cpp server without API key
Closes #2747 ## Motivation `get_llm()` in `llm_config.py` raised a hard `ValueError` when `llm.openai_endpoint.api_key` was unset, blocking local OpenAI-compatible servers (e.g. llama.cpp, LM Studio) that don't require authentication. ## Changes **`src/local_deep_research/config/llm_config.py`** - Removed the `Valu...
diff --git a/src/local_deep_research/config/llm_config.py b/src/local_deep_research/config/llm_config.py index 2ed944a18db..299588f5b05 100644 --- a/src/local_deep_research/config/llm_config.py +++ b/src/local_deep_research/config/llm_config.py @@ -510,10 +510,10 @@ def get_llm( "llm.openai_endpoint.api_ke...
2
1
1
[{"id": "G0", "claim": "The unconditional fallback to a placeholder API key removes the only early validation for hosted endpoints, so a missing llm.openai_endpoint.api_key when pointing at a hosted service fails later with a less actionable 401; consider using the placeholder only when the endpoint is clearly local/pr...
null
LearningCircuit__local-deep-research__3459
LearningCircuit/local-deep-research
3,459
defect
8e11dcf72901f7daf0d1c30bedd3ac17d40e1e36
d85c8845ac016a5138b099c919d74569d9a21126
fix(pdf): graceful degradation when WeasyPrint system libs are missing
## Summary Fixes #3445 - Guard WeasyPrint import with try/except so the PDF exporter module loads even when system libraries (Pango, Cairo, GLib/libgobject) are missing - Defer `get_pdf_service()` call from registration time to export time, so other exporters (ODT, LaTeX, Quarto, RIS) remain fully functional - Surfac...
diff --git a/src/local_deep_research/exporters/__init__.py b/src/local_deep_research/exporters/__init__.py index 2c7100a2cf7..10944aadf70 100644 --- a/src/local_deep_research/exporters/__init__.py +++ b/src/local_deep_research/exporters/__init__.py @@ -22,6 +22,8 @@ ExporterRegistry.get_available_formats() """ ...
6
3
2
[{"id": "G0", "claim": "Stack trace information from the caught exception flows into the HTTP error response at research_routes.py:1343 and may be exposed to an external user.", "category": "security", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The broad `except Exception` ...
null
LearningCircuit__local-deep-research__3469
LearningCircuit/local-deep-research
3,469
defect
edf93eeec484618a295d2029146145c4b7c40e06
cca145485f854b1d6db340cad94a0807194e0079
Bench/arxiv search performance
**Related to Issue:** #2297 ### Description This PR introduces a benchmark suite to evaluate the performance of the `search_engine_arxiv.py` with and without LLM-based query optimization. Because ArXiv's built-in search engine relies on strict lexical matching rather than semantic search, it often struggles wit...
diff --git a/tests/benchmarks/evaluators/arxiv_optimization/RESULTS.md b/tests/benchmarks/evaluators/arxiv_optimization/RESULTS.md new file mode 100644 index 00000000000..313106c3fcc --- /dev/null +++ b/tests/benchmarks/evaluators/arxiv_optimization/RESULTS.md @@ -0,0 +1,110 @@ +# ArXiv Query Optimization: Benchmark An...
13
6
2
[{"id": "G0", "claim": "The script computes `project_root` as the evaluators directory, so `sys.path.append(project_root / \"src\")` points at a non-existent `tests/benchmarks/evaluators/src` instead of the repo's top-level `src/`, making the subsequent `local_deep_research` imports unreliable when running the script d...
null
LearningCircuit__local-deep-research__3475
LearningCircuit/local-deep-research
3,475
defect
463e33e36db44e7ce22ce7bf27d474e448fe1dc0
dd7607aca66e727394e4503b076b4572803f4013
fix: return results on LLM exception in check_urls() instead of empty list
Closes #3474 ## Problem In `src/local_deep_research/web_search_engines/engines/full_search.py`, the `check_urls()` method returns an empty list `[]` when an LLM exception occurs, instead of returning the original unfiltered results. When the LLM invocation fails (network timeout, API rate limit, model unavailable, e...
diff --git a/src/local_deep_research/web_search_engines/engines/full_search.py b/src/local_deep_research/web_search_engines/engines/full_search.py index 4b89cbcc875..9743ba17e84 100644 --- a/src/local_deep_research/web_search_engines/engines/full_search.py +++ b/src/local_deep_research/web_search_engines/engines/full_s...
3
2
1
[{"id": "G0", "claim": "The behavior change breaks the existing unit test test_check_urls_exception, which currently asserts that an exception returns []; update that test (and any similar callers) to expect the original unfiltered results to be returned on exceptions.", "category": "testing", "verdict": "supported", "...
null
LedFx__LedFx__1223
LedFx/LedFx
1,223
defect
087e301add6d045482fd8e0d31ab114926ed5f5c
8bbceaa29d74f14d378ba9931f4a2f1d4814359c
Feat: Support last active effect from power cycle or device off
Heavy rework for how effects backing store is handled. Virtauls config including non schema content is now accessible from the virtual class, gets rid of some horrible cruft. Also allows us to more cleanly achieve PUT /api/virtuals/{virtual_id} with active: true If there not a current active effect on p...
diff --git a/ledfx/api/virtual.py b/ledfx/api/virtual.py index 2280849aa..a635eb6ed 100644 --- a/ledfx/api/virtual.py +++ b/ledfx/api/virtual.py @@ -76,6 +76,18 @@ async def put(self, virtual_id, request) -> web.Response: ) # Update the virtual's configuration + if active: + if...
4
1
0
[{"id": "G0", "claim": "Directly assigning the shared configuration object to virtual.virtual_cfg and mutating it inline at call sites risks unintended side effects from shared references (plus races and duplication where the same assignment repeats); use a deep copy, synchronization, and encapsulated configuration-upd...
null
LedFx__LedFx__1591
LedFx/LedFx
1,591
defect
fa31dcc759673e9409f06ab56c307ee8e50287c7
5ca1ff37b66969330ff1c2ce31cf9a8667e7ec6e
Feat: add GET /api/scenes/{id}
https://ledfx--1591.org.readthedocs.build/en/1591/apis/scenes.html#get-api-scenes-scene-id <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * New API endpoint to retrieve individual scene details and metadata by scene ID. * **Improvements** ...
diff --git a/ledfx/api/scenes_id.py b/ledfx/api/scenes_id.py new file mode 100644 index 000000000..cdf1abc16 --- /dev/null +++ b/ledfx/api/scenes_id.py @@ -0,0 +1,69 @@ +import logging + +from aiohttp import web + +from ledfx.api import RestEndpoint +from ledfx.utils import find_matching_preset, generate_id + +_LOGGER ...
8
3
0
[{"id": "G0", "claim": "The nonexistent-scene path calls invalid_request with the default resp_code=200, so test_get_scene_returns_error_for_nonexistent_scene fails expecting 400 and CI is red; pass resp_code=400 for missing scenes.", "category": "correctness", "verdict": "opposed", "priority": "P0", "scope": "introduc...
null
LedFx__LedFx__1632
LedFx/LedFx
1,632
defect
691b42cff4fdfaedff73925afb1fbb13c71f4f2d
edada1e19ee4c8d4c1a34e40e80822db9275d466
Feat: add cache for thumbnail
## Summary Adds transparent thumbnail caching for asset thumbnails to improve performance, particularly with animated images that are slow to generate. ## Changes - **Extended `ImageCache`** to support parameterized cache keys (size, dimension, animated parameters) - **Integrated caching into `assets_thumbnai...
diff --git a/docs/apis/assets.md b/docs/apis/assets.md index 43cdce184..c0d487909 100644 --- a/docs/apis/assets.md +++ b/docs/apis/assets.md @@ -376,6 +376,8 @@ curl -X POST http://localhost:8888/api/assets/download \ Generate a thumbnail for an asset (user or built-in). +**Thumbnail Caching:** Generated thumbnail...
9
3
1
[{"id": "G0", "claim": "The thumbnail cache path expression depends on user-provided data (the asset path embedded in the asset:// cache URL), which CodeQL flags as uncontrolled data used in a path expression.", "category": "security", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "clai...
null
LedFx__LedFx__1633
LedFx/LedFx
1,633
defect
44010f87258f0200ed57816551ffff0b03cc8b91
0a689b2416ac6caf148f458efdafaa81caf264e8
Dev: Improve cache handling for asset thumbnails
## Add force_refresh parameter and improve cache API consistency ### Features - **Thumbnail force refresh**: Added `force_refresh` parameter to `/api/assets/thumbnail` endpoint to bypass cache and regenerate thumbnails on demand - **Cache stats filtering**: Excluded thumbnail cache entries (`asset://` URLs) from `...
diff --git a/docs/apis/assets.md b/docs/apis/assets.md index c0d487909..44f17dc49 100644 --- a/docs/apis/assets.md +++ b/docs/apis/assets.md @@ -390,7 +390,8 @@ Generate a thumbnail for an asset (user or built-in). "path": "backgrounds/galaxy.jpg", // Required: asset path "size": 256, /...
7
2
2
[{"id": "G0", "claim": "Avoid bool()-coercing arbitrary client input for force_refresh and instead validate strictly, rejecting non-boolean values (optionally allowing 0/1).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new force_refresh test d...
null
LedFx__LedFx__1646
LedFx/LedFx
1,646
defect
cac853d9ebf879880a932306d59416897e5ed979
d5ab04e4aa0cc17c4bd99839cc643cb74b257b57
Dev: Browser friendly GET thumbnails
https://ledfx--1646.org.readthedocs.build/en/1646/apis/assets.html#get-api-assets-thumbnail ## Add Browser-Friendly GET Endpoint for Thumbnail Generation Implements `GET /api/assets/thumbnail` to complement the existing POST endpoint, enabling direct use in browser `<img>` tags and URLs. ### Changes **API I...
diff --git a/docs/apis/assets.md b/docs/apis/assets.md index 5795ff306..3b4901242 100644 --- a/docs/apis/assets.md +++ b/docs/apis/assets.md @@ -70,6 +70,7 @@ LedFx provides **clear separation** between user assets and built-in assets usin | `GET /api/assets_fixed` | ❌ | ✅ List only | | `GET /api/assets/download` | ✅...
3
1
1
[{"id": "G0", "claim": "The documentation should label the `animated` and `force_refresh` GET query parameters as string-encoded values (e.g. default \"true\") rather than \"boolean\", since query parameters are always transmitted as strings.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "sco...
null
LedFx__LedFx__1664
LedFx/LedFx
1,664
defect
08f7237049b7911c85e385ecd0bc789982cb46b7
80c0791108f410e1b08a7ac7f26a793686d5be3a
Fix: Memory leaks exposed by playlists
## Fix Catastrophic Memory Leak in Effect Lifecycle ### Problem Scene switching during playlist playback caused ~10 MB/min memory leak due to PIL Image accumulation and effect instances never being garbage collected. With 5-second scene changes, this resulted in performance degradation within minutes. ### Root C...
diff --git a/ledfx/effects/__init__.py b/ledfx/effects/__init__.py index f66caaf51..f580d889d 100644 --- a/ledfx/effects/__init__.py +++ b/ledfx/effects/__init__.py @@ -47,7 +47,9 @@ def _deactivate(self): self.deactivate() def deactivate(self): - pass + self.pixels = None # Free the nump...
5
3
3
[{"id": "G0", "claim": "AudioReactiveEffect.deactivate sets self.audio to None before is_active becomes False, so an in-flight audio callback on the sounddevice thread can run with is_active True but self.audio None, and subclass audio_data_updated implementations will raise AttributeError during rapid scene switching ...
null
LedFx__LedFx__1709
LedFx/LedFx
1,709
defect
9746d3657b8fb43ba969948202f1f0e1f050dda3
baf55f649c6cee67aa49ba10b58782026d0a276d
Fix: Prevent mutable default argument bug in EventListener
This is a reauthored fix under our Ledfx Contribution policy that excludes obvious bot PRs. Its technically valid, but part of karma farming. See discussion in original PR. https://github.com/LedFx/LedFx/pull/1705 Replaced mutable dict default arguments with None in both EventListener.__init__ and Events.add_list...
diff --git a/ledfx/events.py b/ledfx/events.py index 3797ecf1b..657613e95 100644 --- a/ledfx/events.py +++ b/ledfx/events.py @@ -435,9 +435,9 @@ def __init__(self): class EventListener: - def __init__(self, callback: Callable, event_filter: dict = {}): + def __init__(self, callback: Callable, event_filter: d...
2
2
1
[{"id": "G0", "claim": "The new tests use the `mocker` fixture but pytest-mock is missing from the dev dependencies, so CI fails with \"pytest fixture 'mocker' not found\"; add pytest-mock to the dev dependencies or replace mocker.Mock() with stdlib unittest.mock.", "category": "testing", "verdict": "supported", "prior...
null
LedFx__LedFx__1750
LedFx/LedFx
1,750
defect
9ccdfee7241116685c58848aaeaee78066856f49
714d5a019f353c0a54f6c8bcab4dada60ce4ee3a
Fix: Handle delete of last virtual segment correctly
## Fix: Prevent zero-segment virtuals from crashing startup ### Problem When a device is deleted, non-auto-generated virtuals that lose all their segments survived in the config. On restart, `Virtuals.create_from_config()` attempted to restore their effect via `set_effect()`, which raised `ValueError` ("Cannot ac...
diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 4e0da5cc0..9f4e49e05 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -22,6 +22,17 @@ LedFx is a real-time LED visualization system that synchronizes LED lighting wit - **Dependencies**: Audio proc...
5
4
1
[{"id": "G0", "claim": "The PR's new command policy bans pip but later guidance in the same document still tells users to run `pip show`; make the document non-contradictory (e.g., require `uv pip show` everywhere).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ...
null
LedFx__LedFx__1770
LedFx/LedFx
1,770
defect
64b7e9381a8166e726dcc52643e741cd5713d283
68946d376b24f6563c76ef463feaf32185c3b48b
Feat: Audio device persist by name
See extensive strategy doc. Audio device persistance based on index only breaks when system device changes shuffle enumeration. Extend the new name based matching used in hotplug runtime to the persistance story. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ...
diff --git a/docs/developer/dev_notes/audio-device-persistence-strategy.md b/docs/developer/dev_notes/audio-device-persistence-strategy.md new file mode 100644 index 000000000..e1a2acccb --- /dev/null +++ b/docs/developer/dev_notes/audio-device-persistence-strategy.md @@ -0,0 +1,444 @@ +# Audio Device Persistence Strat...
5
3
0
[{"id": "G0", "claim": "The strategy doc's pseudocode clears the stale audio_device_name in memory but never saves it to disk, so the same not-found warning would repeat on every startup.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Test row #30...
null
LedFx__LedFx__1771
LedFx/LedFx
1,771
defect
64b7e9381a8166e726dcc52643e741cd5713d283
fb3edbc8aa90ea4000cc5b4bc0b6c7f384335019
Feat: add startup playlist
## Add startup playlist support ### Summary Frontend PR is https://github.com/YeonV/LedFx-Frontend-v2/pull/128 Adds a `startup_playlist_id` config option that automatically starts a playlist when LedFx launches, mirroring the existing `startup_scene_id` behavior. ### Motivation Users can already conf...
diff --git a/ledfx/api/utils.py b/ledfx/api/utils.py index e4e1e2c79..0fb822e0b 100644 --- a/ledfx/api/utils.py +++ b/ledfx/api/utils.py @@ -56,6 +56,7 @@ "flush_on_deactivate", "ui_brightness_boost", "startup_scene_id", + "startup_playlist_id", "lifx_broadcast_address", ...
3
3
1
[{"id": "G0", "claim": "Remove the unused imports (asyncio and patch) from tests/test_startup_playlist.py and move the inline imports at lines 23, 28, 67, 83, and 97 to module scope.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The activation ...
null
LedFx__LedFx__1801
LedFx/LedFx
1,801
defect
93b4cb04cd2f506549ff7ea138d82c2e9686a9b4
6a66db5cb09e066e4cf70364122e8b61eb3febbe
fix: sendspin pyFlac lifecycle hardening
## Fix FLAC decoder lifecycle leak on stream/clear ### Problem Long-running Sendspin sessions using FLAC eventually die while PCM sessions remain stable. `_stream_clear_handler()` (triggered by seeks, track changes, discontinuities) clears playback buffers and leftover samples but does **not** finish/reset the `pyflac...
diff --git a/ledfx/sendspin/stream.py b/ledfx/sendspin/stream.py index 45b074ee6..ee6affd7a 100644 --- a/ledfx/sendspin/stream.py +++ b/ledfx/sendspin/stream.py @@ -393,6 +393,29 @@ def _flac_write_callback( "Error in pyFLAC write callback: %s", e, exc_info=True ) + def _finish_flac_d...
2
2
0
[{"id": "G0", "claim": "The test_stream_start_pcm_only test should also assert that _leftover is emptied and _leftover_ts reset after _stream_start_handler, to actually exercise the docstring's claim that stream/start just resets leftover state.", "category": "testing", "verdict": "supported", "priority": "P2", "scope"...
null
LedFx__LedFx__665
LedFx/LedFx
665
defect
0cf7037142cf47f58328400a41256a7b5be3d301
64cd45d5713f5ab81eff38a434786a723fda3dbc
Initial batch of pytests and CI testing
Starting point for us to build our API tests out of. We can potentially do some additional fancyness in the future looking at spinning up a pixel protocol reciever to listen in and compare output to make sure the effects are doing what we expect, but for now, this is enough. <!-- This is an auto-generated comment: re...
diff --git a/.github/workflows/ci-build-osx-arm.yml b/.github/workflows/ci-build-osx-arm.yml index 26690705f..a4efcc2b3 100644 --- a/.github/workflows/ci-build-osx-arm.yml +++ b/.github/workflows/ci-build-osx-arm.yml @@ -30,6 +30,9 @@ jobs: - name: Install poetry via Homebrew run: | brew inst...
7
2
1
[{"id": "G0", "claim": "Add error handling to send_test_api_request to manage potential exceptions from the requests library, such as requests.exceptions.RequestException, to improve the robustness of test execution.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1",...
null
LedFx__LedFx__676
LedFx/LedFx
676
defect
57ea73ab8322354254ba9d41fdb5caeda809a04c
c70dbd9b94fd09f7d532aa85102a610e82042b38
Add dynamic effect testing to test suite
This pull request adds dynamic effect testing to the test suite. It includes new test cases for setting and checking effects. Every registered effect will get activated, then its activation checked. Effects are pulled from the api schema endpoint so are completely dynamic. <!-- This is an auto-generated comment: rel...
diff --git a/ledfx/config.py b/ledfx/config.py index 74bf0f914..26d9665e9 100644 --- a/ledfx/config.py +++ b/ledfx/config.py @@ -200,8 +200,9 @@ def create_default_config(config_dir: str) -> str: return config_path except OSError: - print(f"Unable to create default configuration file {config_path...
4
2
2
[{"id": "G0", "claim": "PortPicker's random port selection may lead to occasional test failures due to port conflicts; a more robust method should be used to ensure the selected port is free.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Using global v...
null
LedgerHQ__speculos__358
LedgerHQ/speculos
358
defect
f31f2dd8d79825b5c22f27b5133fe7a44d6a7318
fd6e06d5fb77bdfe4f1b0f9518b24bbe9c4fb697
Add the support for new prototypes of os_endorsement functions
Add support for new prototypes of `os_endorsement_get_public_key` and `os_endorsement_get_public_key_certificate`
diff --git a/sdk/bolos_syscalls_unified_sdk.h b/sdk/bolos_syscalls_unified_sdk.h index 32c152195..91b2ca05f 100644 --- a/sdk/bolos_syscalls_unified_sdk.h +++ b/sdk/bolos_syscalls_unified_sdk.h @@ -107,7 +107,9 @@ #define SYSCALL_os_perso_derive_eip2333_ID_IN 0x040000a7 #define SYSCALL_os_endor...
2
2
0
[{"id": "G0", "claim": "The old os_endorsement_get_public_key syscalls were never implemented in the unified SDK and should not appear in bolos_syscalls_unified_sdk.h; instead of adding `_new`-suffixed ID defines, redefine the existing `SYSCALL_os_endorsement_get_public_key_ID_IN` / `SYSCALL_os_endorsement_get_public_k...
null
LedgerHQ__speculos__552
LedgerHQ/speculos
552
defect
9ceb7ae9080f381ff68f33ab5fb0020a625e175c
a9a787659498a872518dc7b153fafca7b3f0bb05
NVRAM data save and load support
### Description It makes a part of "App storage functionality simplification" project ( https://github.com/LedgerHQ/ledger-secure-sdk/pull/865). But it seems to me that this change is quite independent, does not break the current stuff and so can be already merged . Unless you have some objections. - [x] `--save...
diff --git a/speculos/main.py b/speculos/main.py index cfa25ff71..9f55f3f2f 100644 --- a/speculos/main.py +++ b/speculos/main.py @@ -99,11 +99,28 @@ def get_elf_infos(app_path, use_bagl): elif use_bagl: logger.info("Disabling OCR.") + # App NVRAM handling + nvram_data_symbol = symt...
4
4
0
[{"id": "G0", "claim": "The debug printf(\"app name = %s\\n\", name) added to load_app in src/launcher.c is not needed and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Avoid the redundant None checks by assigning envram_data...
null
LedgerHQ__speculos__612
LedgerHQ/speculos
612
defect
3589405a7f529b9702d72fe36370206f20cb1e83
648e7f58be80872ba166967590055c22625e2f4a
SYSCALL_os_perso_get_master_key_identifier support
Corresponds to https://github.com/LedgerHQ/ledger-secure-sdk/pull/1125. The actual use of the syscall in app-bitcoin-new: https://github.com/LedgerHQ/app-bitcoin-new/pull/373 Linked to: https://github.com/LedgerHQ/ledger-secure-sdk/pull/1324 - [x] syscall implementation - [x] syscall testing
diff --git a/sdk/bolos_syscalls.h b/sdk/bolos_syscalls.h index 4ec8324f..85a8658e 100644 --- a/sdk/bolos_syscalls.h +++ b/sdk/bolos_syscalls.h @@ -101,6 +101,7 @@ #define SYSCALL_os_perso_derive_and_set_seed_ID_IN 0x0700004f #define SYSCALL_os_perso_set_words_ID_IN 0x02...
4
4
1
[{"id": "G0", "claim": "sys_cx_hash_ripemd160 should use uint8_t* instead of unsigned char* and take an out_len parameter.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "sys_cx_hash_ripemd160's definition in cx_ripemd160.c should use uint8_t * instead of...
null
LedgerHQ__speculos__64
LedgerHQ/speculos
64
defect
2e9050187cfe4c5e145454d44b4dfec14cdd42b9
54e8600acdc85745b514c949b263ce5861c0842d
add cx_ecfp_scalar_mult syscall
Ed25519 is the only curve supported for now, but other curves should be easier to add because they are supported by OpenSSL.
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index bc2459aa..6590c5d1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -3,6 +3,7 @@ add_library(emu cx_blake2b.c cx_crc.c cx_ec.c + cx_ed25519.c cx_hmac.c cx_ripemd160.c cx_scc.c diff --git a/...
3
3
0
[{"id": "G0", "claim": "The unsupported-curve error message in sys_cx_ecfp_scalar_mult could indicate which curve was requested.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "q_minus_two appears to be never used, so the dead variable and its se...
null
LeelaChessZero__lc0__1162
LeelaChessZero/lc0
1,162
defect
51fadc34ac6d97fa28a52e822077da22c2d30935
7189ebe3e3370ab67ee69a77af53487c9c1d771b
Add input format type 3 support to encoder/training data/search.
I need to test it, and also modify node.cc GetV5TrainingData to make corresponding changes to the parts that aren't just sent in planes. But most importantly I also need to apply transform on the output probabilities as well... I need to carefully construct 8 1858 element permutation arrays... and pipe the transform...
diff --git a/libs/lczero-common b/libs/lczero-common index 5b8667e4ab..a6539d613c 160000 --- a/libs/lczero-common +++ b/libs/lczero-common @@ -1 +1 @@ -Subproject commit 5b8667e4ab51e18b2ea26ac221723d6dd8f95533 +Subproject commit a6539d613cf9076a0423b776dd5d03fc2ec0c3ac diff --git a/src/benchmark/backendbench.cc b/src/...
4
3
0
[{"id": "G0", "claim": "Introduce an enum for the transform values so that every value has a text representation instead of magic numbers.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "CompareTransposing should take a ChessBoard (or BitBoard) parameter ...
null
LeelaChessZero__lc0__1234
LeelaChessZero/lc0
1,234
defect
c4c92f6996e49f5a43f7937c563a3ebf3777b465
3f895351da8f9ec94716bb3d84e372e53c9dcee5
Allow most parts of fen to be optional.
r? @Tilps or @mooskagh Fen handling already allows some leeway, so this makes it even more generous assuming white to move, ~all castling (including 960)~ no castling, no en passant, 0 rule50ply, 1 total moves. Before: ``` position fen K1k1r b go nodes 1 error Bad fen string: K1k1r b ``` After: ``` positio...
diff --git a/src/chess/board.cc b/src/chess/board.cc index 08dde6f8be..49bb1b76f4 100644 --- a/src/chess/board.cc +++ b/src/chess/board.cc @@ -974,6 +974,7 @@ void ChessBoard::SetFromFen(const std::string& fen, int* rule50_ply, Clear(); int row = 7; int col = 0; + auto ignore_castling_errors = false; std...
5
5
2
[{"id": "G0", "claim": "Defaulting the castling field to \"KQkq\" while ignoring castling errors is unsafe because the castling validation logic is not strong enough to filter the castling FEN component down to plausible scenarios, so it should default to \"-\" instead.", "category": "correctness", "verdict": "supporte...
null
LeelaChessZero__lc0__1566
LeelaChessZero/lc0
1,566
defect
ba241420ced7bf40695f98f684e7deabaa3893da
e47af8ae002ad2a9320937073aff979a547b353b
illegal First rank pawns exception!
this commit has a test, and also the exception itself. pretty simple, when row is 0 or 8, dont allow pawns. really the commits should be cleaned up. my master isnt clean..
diff --git a/src/chess/board.cc b/src/chess/board.cc index 41a90295c4..22132c5a87 100644 --- a/src/chess/board.cc +++ b/src/chess/board.cc @@ -1,22 +1,17 @@ /* This file is part of Leela Chess Zero. Copyright (C) 2018-2019 The LCZero Authors - Leela Chess is free software: you can redistribute it and/or modif...
3
3
0
[{"id": "G0", "claim": "The exception thrown for pawns on the first/eighth rank should be in the same form as the other exceptions in the file (the project's Exception rather than std::out_of_range).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new...
null
LeelaChessZero__lc0__210
LeelaChessZero/lc0
210
defect
3abd541a1848c7f40e8903f7d33d0d4ba984fb76
bcdc3194fd584338f993397f7a49920968f3fd90
Issue209
Fixes https://github.com/LeelaChessZero/lc0/issues/209
diff --git a/meson.build b/meson.build index d7a90a2b0b..a608dc50f5 100644 --- a/meson.build +++ b/meson.build @@ -59,7 +59,7 @@ endif gen = generator(protoc, output: ['@BASENAME@.pb.cc', '@BASENAME@.pb.h'], arguments : ['--proto_path=@CURRENT_SOURCE_DIR@/libs/lczero-common', '--cpp_out=@BUILD_DIR@', '@INPUT@']) ...
1
1
0
[{"id": "G0", "claim": "The test should be renamed to say what it covers (e.g. ComputeLastMoveRepetitionsForPawnPushWithoutEnpassant) and a companion test covering pawn pushes with a legal en-passant capture should be added.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
LeelaChessZero__lc0__2140
LeelaChessZero/lc0
2,140
defect
a62649b706f2c49799888806391fdf19ad33959c
7dd9bbec3953bca951ff3785cea80d2dd3e16d8b
Add a test to the Engine class.
For now, only tests that backend is reloaded, but the PR is mostly to set up a way to test it.
diff --git a/meson.build b/meson.build index 2a30ae1ec3..be482fb4c7 100644 --- a/meson.build +++ b/meson.build @@ -729,6 +729,7 @@ endif if get_option('gtest') gtest = dependency('gtest', fallback: ['gtest', 'gtest_dep']) + gmock = dependency('gmock', fallback: ['gtest', 'gmock_dep']) lc0_lib = library('lc0_l...
4
1
1
[{"id": "G0", "claim": "The exception thrown when RemoveBackend is given an unregistered factory should include additional context such as the backend identifier to ease debugging.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The exception thr...
null
LeelaChessZero__lc0__2292
LeelaChessZero/lc0
2,292
defect
f20db7e856f7485181eb685061d3d1271758cd7b
fda20c0c0c04483f690c912c23cafd7b71aca7a2
Fix piece moves marked en passant
Fix a bug where a piece move starting from opponent's backrank was marked as en passant. This could eliminate one of opponents pieces from the board state. ``` position fen r1bqk1nr/pp1nbpp1/2pp3p/3Pp3/2P1P3/2N1B3/PP2NPPP/R2QKB1R w KQkq - 0 1 moves e2g3 g7g6 f1e2 c6c5 d1d2 e7g5 g3f1 d8e7 f2f3 g5e3 f1e3 d7b6 h2h4 g8...
diff --git a/src/chess/board.cc b/src/chess/board.cc index 8d171141b3..3ec30a6fa3 100644 --- a/src/chess/board.cc +++ b/src/chess/board.cc @@ -573,8 +573,36 @@ MoveList ChessBoard::GeneratePseudolegalMoves() const { return result; } // namespace lczero +bool ChessBoard::IsValid(Move move) const { + const auto a...
4
3
0
[{"id": "G0", "claim": "The hand-rolled BoardValidate struct in ApplyMove is boilerplate and absl::Cleanup would be less boilerplate, though the reviewer is unsure whether it is optimized out in release builds.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1...
null
LeelaChessZero__lc0__246
LeelaChessZero/lc0
246
defect
34d53b26eb9e3525ebee7376b666395656f0a8c4
ce5ae02c302368263699e0d5af4bfe1b6c334c16
Validate command line parameter constraints
https://github.com/LeelaChessZero/lc0/issues/14 This PR validates that the values entered for parameters on the command line are valid based on their allowed values. The following validations take place based on the Option type: IntOption: the value is between min and max or is equal to the min or max. FloatOpti...
diff --git a/meson.build b/meson.build index e152bd2d72..1f176a289e 100644 --- a/meson.build +++ b/meson.build @@ -403,6 +403,11 @@ if get_option('gtest') and gtest.found() files, include_directories: includes, dependencies: test_deps ), timeout: 90) + test('OptionsParserTest', + executable('optionsparser...
4
4
1
[{"id": "G0", "claim": "Instead of printing the out-of-range message to stderr and propagating a bool error, IntOption::SetVal should throw an Exception so the error also surfaces through the UCI protocol when bad parameters are set via the UCI option command.", "category": "design", "verdict": "supported", "priority":...
null
LeelaChessZero__lc0__305
LeelaChessZero/lc0
305
defect
b6a4b232da382679ff821abc9d4274f8c6c32bb5
7005924dcabe85b9559f2746814ff48976acd772
Modify EncodePositionForNN to always fill in all history planes
This PR is a reworked version of my earlier PR 253 (https://github.com/LeelaChessZero/lc0/pull/253), incorporating helpful suggestions to move the change into a lower level (encoder.cc) and also exploit the special case of en passant information. This work also builds on the wide discussion of this general issue in Dis...
diff --git a/src/chess/board.cc b/src/chess/board.cc index 7ef11de5ef..2c693e5428 100644 --- a/src/chess/board.cc +++ b/src/chess/board.cc @@ -449,6 +449,39 @@ bool ChessBoard::ApplyMove(Move move) { return reset_50_moves; } +bool ChessBoard::UndoMoveToPriorBoardIfPossible() { + // Check if any en passant bits s...
6
5
3
[{"id": "G0", "claim": "The fill-in of history planes should pass 0 repetitions instead of last_board_repetitions, since FEN cannot encode repetitions and forcing 0 would be clearer.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The encoder sho...
null
LeelaChessZero__lc0__425
LeelaChessZero/lc0
425
defect
caddb1303d72705c8d64fb8fb9e2c3ee5a359637
9ffd0e9079c79aef71697510af0d176971202a7c
Separate UCI from help text.
* Also make UCI options case insensitive. * --futile-move-aversion is now --smart-pruning-factor * Also write better help to some of options (more is welcome!) * Also StrSplit had a bug Fixes #353.
diff --git a/src/engine.cc b/src/engine.cc index d11eb326e0..efe649754f 100644 --- a/src/engine.cc +++ b/src/engine.cc @@ -37,24 +37,47 @@ namespace lczero { namespace { -// TODO(mooskagh) Move threads parameter handling to search. const int kDefaultThreads = 2; -const char* kThreadsOption = "Number of worker thre...
4
3
1
[{"id": "G0", "claim": "The comparison `result.back().size() + word.size() + 1 > width` in FlowText compares size_t against an int parameter, producing a signed vs unsigned compiler warning.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Several com...
null
LeelaChessZero__lc0__490
LeelaChessZero/lc0
490
defect
43e67645e22d20166ae8357284929588a97bfc30
f313f43fe1ae81b6c4c90b1b135bd9a276452b1d
Fix EncodePositionForNN test failure
This is in two parts, first moves kStartBoardPos to ChessBoard and second sets Appveyor to always build with WholeProgramOptimization to avoid failing to notice tings like this before the release.
diff --git a/appveyor.yml b/appveyor.yml index ff311a9725..9a122fea0c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -50,15 +50,14 @@ install: - cmd: IF %GTEST%==true IF NOT EXIST KQvKQ.rtbz curl --remote-name-all https://tablebase.lichess.ovh/tables/standard/3-4-5/K{P,N,R,B,Q}vK{P,N,R,B,Q}.rtb{w,z} - cmd: cd C:\pro...
2
2
0
[{"id": "G0", "claim": "Make kStartingFen a `const char*` instead of a `std::string` so the global constant does not depend on static initialization order.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Rename the new constants to `kStartposFen` and `k...
null
LeelaChessZero__lc0__640
LeelaChessZero/lc0
640
defect
3ac37451a12aa250aa47820ee678bb79565a98e5
3087bb839b167e619df1f8d7035aed6fa40c49c7
Movegen speedup via magic bitboards
This PR adds magic bitboards (introduced in #628) as a layer on top of #638. Unconditional speedup for random backend up to 10% (tested with LTO builds on Linux Fedora 29 64-bit, `gcc 8.2.1`). The measurements details (command line and considered positions) are given in #638. For 1 search thread: position ...
diff --git a/meson.build b/meson.build index 8881e0eaab..160e2d2b74 100644 --- a/meson.build +++ b/meson.build @@ -436,6 +436,10 @@ if not get_option('popcnt') add_project_arguments('-DNO_POPCNT', language : 'cpp') endif +if not get_option('pext') + add_project_arguments('-DNO_PEXT', language : 'cpp') +endif + ...
1
1
1
[{"id": "G0", "claim": "The magic bitboard initialization via a dummy static instance whose constructor the linker may optimize away is fragile, and the reviewer asked for an explicit initialization instead — e.g. calling an InitializeMagicBitboards() function from main(), with the code in an anonymous namespace of boa...
null
Legend-of-Dragoon-Modding__Severed-Chains__2585
Legend-of-Dragoon-Modding/Severed-Chains
2,585
defect
1036630c3f8737496e86c68bc00fd8364003c73c
c72f4fcbd0b3fb21ce0c3fc53dc630c9ae83f8f1
Add E2E testing framework with battle tests
End2End Simple Setup proving viability utilize the ReadME for testing. This has only been tested on Windows and I have a video of it working in Black castle using Intellij.
diff --git a/build.gradle b/build.gradle index ae8159848..27e2103a0 100644 --- a/build.gradle +++ b/build.gradle @@ -104,7 +104,7 @@ dependencies { testImplementation(platform("org.junit:junit-bom:6.0.0")) testImplementation("org.junit.jupiter:junit-jupiter") - testRuntimeOnly("org.junit.platform:junit-platfor...
9
3
0
[{"id": "G0", "claim": "The RunE2ETests launcher always calls System.exit(0) even when tests pass, terminating the JVM and potentially interfering with IDE test runners; only System.exit(1) on failure should be kept.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", ...
null
LegendApp__legend-state__577
LegendApp/legend-state
577
defect
7dbda8f4041288c5f7f25608f1d219b45234c7ed
74ac5543f6b6451991e089479fbe5370c6d70dbe
fix: make has-trap more resilient
In unit tests without .peek() or .get(), we encountered many exceptions due to the behavior of vitest and chai when iterating over objects for equality checks and error printing. Making this more resilient without throwing exceptions seems like a useful improvement for me.
diff --git a/src/ObservableObject.ts b/src/ObservableObject.ts index 2f475cd72..e61aa8b0d 100644 --- a/src/ObservableObject.ts +++ b/src/ObservableObject.ts @@ -1,5 +1,6 @@ import { beginBatch, createPreviousHandler, endBatch, isArraySubset, notify } from './batching'; import { createObservable } from './createObserv...
2
2
2
[{"id": "G0", "claim": "The has trap needs more logic to handle functions (and the inputs that make Reflect.has error), and tests should be added to make sure the behaviour is correct.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "The new `p === 'cons...
null
Legit-Labs__legitify__109
Legit-Labs/legitify
109
defect
0238130243b04ebbe2373d699d80f8a5aa3486b4
5dbc1738f9e2e3f11c8fba04d9f8140c203cb8bb
feat: markdown output
#### What's being changed? - add `--output-format markdown` to legitify - change legitify action to use the makdown option and send output to job summary - improve output for human-readable output #### Is this PR related to an existing issue? #105 #### Check off the following: - [x] This PR follows the C...
diff --git a/cmd/root.go b/cmd/root.go index 7d85a880..aca88f13 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -2,7 +2,6 @@ package cmd import ( "log" - "os" "github.com/Legit-Labs/legitify/internal/screen" "github.com/fatih/color" @@ -28,7 +27,7 @@ const logo = ` ___ _______ _______ ___ _______ ___...
4
4
2
[{"id": "G0", "claim": "GenericListEnrichment.HumanReadable ends with a hardcoded \"\\n\" instead of the linebreak parameter the PR added, so the hooks list ignores the formatter's configured linebreak.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
Legit-Labs__legitify__149
Legit-Labs/legitify
149
defect
63ed2d964d2d588739455bf1ef43858b99417cbb
26f48513f0d6819e1914f323b28d53d384aeb42d
feat: Convert github repository policies to be violated by default
<!-- Thank you for contributing to this project! Please fill out the information below to help us review this pull request. By explaining why you're making a change (or linking to an issue) and what changes you've made, we can best triage your pull request. See our [CONTRIBUTING.md](/main/CONTRIBUTING.md) for infor...
diff --git a/policies/github/repository.rego b/policies/github/repository.rego index df9bbb7f..b57aadfa 100644 --- a/policies/github/repository.rego +++ b/policies/github/repository.rego @@ -11,9 +11,9 @@ import data.common.webhooks as webhookUtils # severity: HIGH # requiredScopes: [repo] # threat: As new vul...
3
3
1
[{"id": "G0", "claim": "The second repository_not_maintained = false rule should be merged into the first one.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The forking_allowed_for_repository rule should require input.repository.is_private == t...
null
Legit-Labs__legitify__185
Legit-Labs/legitify
185
defect
1af8767306d3293e9915dc0f29393bef3b44f6d0
6663e9d2fdbe38cc961e9d00fb8c299c0b6539df
feat: added the enterprise namespace
<!-- Thank you for contributing to this project! Please fill out the information below to help us review this pull request. By explaining why you're making a change (or linking to an issue) and what changes you've made, we can best triage your pull request. See our [CONTRIBUTING.md](/main/CONTRIBUTING.md) for infor...
diff --git a/README.md b/README.md index 7bbdd656..731f1d27 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,7 @@ You can control which resources will be analyzed with command-line flags namespa - `--org`: will limit the analysis to the specified GitHub organizations or GitLab group - `--repo`: will limit the anal...
6
5
3
[{"id": "G0", "claim": "The json tag of MembersCanChangeRepositoryVisibilitySetting should be \"members_can_change_repository_visibility\" instead of \"visibility_change_disabled\".", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "NewEnterpriseCollect...
null
Legit-Labs__legitify__196
Legit-Labs/legitify
196
defect
468aeb2e73145a10bc6bfb9f69ecdc667d47134b
6ec996e702a32c0e74ad4d845aae92d66c9aee5a
feat: sarif action
#### What's being changed? - legitify action: add code scanning support (using sarif). - legitify action: upload json and sarif outputs to workflow artifacts. - legitify action: hide output if the repository is private (only upload code scanning results). - legitify action: add compile_legitify option to build legi...
diff --git a/Dockerfile b/Dockerfile index 9597db78..6b6d844b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM alpine:3.16.2 as certs -RUN apk --update add ca-certificates=20220614-r0 +RUN apk --update add ca-certificates FROM scratch COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs...
4
2
1
[{"id": "G0", "claim": "Instead of fully cloning the legitify repository, the compile step should download only the needed ref.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The analyze step's environment should pass the compile flag to index.js as...
null
Legit-Labs__legitify__228
Legit-Labs/legitify
228
defect
07b37e79e4a58e6c913a45b92c4765a1c5c8fbce
c002e377da82f6c5a9722e104212683b70daa7e4
feat: added e2e for analyze flags
<!-- Thank you for contributing to this project! Please fill out the information below to help us review this pull request. By explaining why you're making a change (or linking to an issue) and what changes you've made, we can best triage your pull request. See our [CONTRIBUTING.md](/main/CONTRIBUTING.md) for infor...
diff --git a/.github/workflows/e2e_testing.yaml b/.github/workflows/e2e_testing.yaml index 05d3d441..e39af757 100644 --- a/.github/workflows/e2e_testing.yaml +++ b/.github/workflows/e2e_testing.yaml @@ -24,6 +24,26 @@ jobs: scm: gitlab test_plan: TestGitLab extra: + - scm...
2
2
0
[{"id": "G0", "claim": "Rename the op value \"contains\" to \"not-contains\" for the --org Legitify-E2E test case.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use testCase.field directly in mapViolations instead of defining the local variable...
null