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
Stuk__jszip__157
Stuk/jszip
157
defect
2a832786e70b074c98a6f68dcdc457a0141651e6
b259f2fe7c6bc54810f0d51703c67eb5f957e00f
add createSubFolders option
And added unit tests for the functionality Fixes #154
diff --git a/CHANGES.md b/CHANGES.md index fbcb7afa..05517ebf 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,6 +3,8 @@ title: Changelog layout: default section: main --- +### v2.3.1 2014-07-21 +- Add `createSubFolders` option (see [#154](https://github.com/Stuk/jszip/issues/154)) ### v2.3.0 2014-06-18 - don't ge...
5
5
3
[{"id": "G0", "claim": "The pull request should not update the version numbers and changelog, because that will be done at release time.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The createSubFolders test in fileAdd should be moved to just afte...
null
Stuk__jszip__201
Stuk/jszip
201
defect
8e21585a091479588bb6da75b334784392d13455
889d1124362b3b5df5a7e1c7321635df7af7a3e0
Add an option to set the DEFLATE level.
This commit adds a new option, `compressionOptions`. If it contains a field `level`, it is used by the DEFLATE compression to set the compression level : 6 by default or any level between 1 (best speed) and 9 (best compression). Fix #165.
diff --git a/documentation/api_jszip/file_data.md b/documentation/api_jszip/file_data.md index e3e1d697..45a20f6f 100644 --- a/documentation/api_jszip/file_data.md +++ b/documentation/api_jszip/file_data.md @@ -22,6 +22,7 @@ base64 | boolean | `false` | set to `true` if the data is base64 encoded. F binary |...
1
1
0
[{"id": "G0", "claim": "The new documentation sentence should read \"doesn't know how compressed the content was\" instead of the ungrammatical \"doesn't know how was compressed the content\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Sunagatov__Iced-Latte__152
Sunagatov/Iced-Latte
152
defect
a0c9bdf11532e33a4ba9eb830f6f1dfb81d1a5e5
d15139432abcc3e80ad16495cbe6b169dbbbbb03
IL-144: Add Unit Tests for Security packages: Api and Jwt
Test for the security package - api package - jwt package
diff --git a/.github/workflows/dev-branch-pr-deployment-pipeline.yml b/.github/workflows/dev-branch-pr-deployment-pipeline.yml index cf0dc8f04..3e581fd7c 100644 --- a/.github/workflows/dev-branch-pr-deployment-pipeline.yml +++ b/.github/workflows/dev-branch-pr-deployment-pipeline.yml @@ -14,10 +14,10 @@ jobs: runs...
27
22
3
[{"id": "G0", "claim": "The hard-coded header name \"Authorization\" can be replaced with Spring's HttpHeaders constant.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request makes formatting-only changes to the deployment pipeline wor...
null
Sunagatov__Iced-Latte__184
Sunagatov/Iced-Latte
184
defect
05b3bd97819692f083cd117a4dbe058e7be6dfdd
ff250cb5c917ea12931ad314102e7678c3286a5c
add unit tests for favorite package
Created test for api package methods: - add - get - delete
diff --git a/src/test/java/com/zufar/icedlatte/favorite/api/FavoriteListProviderTest.java b/src/test/java/com/zufar/icedlatte/favorite/api/FavoriteListProviderTest.java new file mode 100644 index 000000000..b514014c9 --- /dev/null +++ b/src/test/java/com/zufar/icedlatte/favorite/api/FavoriteListProviderTest.java @@ -0,...
3
2
0
[{"id": "G0", "claim": "Add a blank line between the class declaration and the @InjectMocks field in FavoriteProductAdderTest.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Remove the extra blank line before the first @Test in FavoriteProductAd...
null
Sunagatov__Iced-Latte__212
Sunagatov/Iced-Latte
212
defect
709d2d174d86528417b1d541b7497b413d18ecaf
a0f17f186509ce4affd15e894fabecd1ac49dfb4
IL-258: Create e2e test for Security package
add: - 21 json files for sending a request and checking the response - Class with test methods - Change class RestAssertion
diff --git a/src/test/java/com/zufar/icedlatte/security/endpoint/SecurityEndpointTest.java b/src/test/java/com/zufar/icedlatte/security/endpoint/SecurityEndpointTest.java new file mode 100644 index 000000000..4ff620bdc --- /dev/null +++ b/src/test/java/com/zufar/icedlatte/security/endpoint/SecurityEndpointTest.java @@ ...
2
2
0
[{"id": "G0", "claim": "Drop the redundant 'public' modifier from the SecurityEndpointTest class declaration.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Remove the unused variable 'responseRegistration' in shouldAuthenticateUser.", "category...
null
Sunagatov__Iced-Latte__217
Sunagatov/Iced-Latte
217
defect
91cd2e452edb570e5bc343c1414a68077820cc69
cb916cf6e9cfc21446ebbd80f2f82caf96985fb4
[IL-250] Orders Module
**1. Task's name:** [[IL-250]: [BE] Orders + Orders Page](https://jira.it-sl.ru/browse/IL-250?jql=text%20~%20%22orders%22) **2. Developer's full name:** Anna Striganova **3. Changes:** - added `/api/v1/orders` GET and POST - added new endpoint tests - added `orders-openapi.yaml`
diff --git a/START.md b/START.md index 79a10a0d9..73e2b8063 100644 --- a/START.md +++ b/START.md @@ -22,6 +22,9 @@ Key variables which are used in the startup of the app. They are pre-configured - `REDIS_PORT`: Redis port - `MINIO_HOST`: Minio host - `MINIO_PORT`: Minio port +- `MINIO_DEFAULT_PRODUCT_IMAGES_PATH` + ...
12
9
1
[{"id": "G0", "claim": "The OrderApi interface is unnecessary and should be deleted.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Order creation should not live in OrderProvider (a class named Provider); put addNewOrder into a separate service class su...
null
Sunagatov__Iced-Latte__243
Sunagatov/Iced-Latte
243
defect
c949ee2918c96aed9bf045a0a2785be0ca2cd144
9a5996b8ba1935ac96b765f95d06ff1cbc9ba10a
[IL-299] Add Product Review
**1. Task's name:** [[IL-299] [Add Product Review]](http://31.132.209.218:65521/browse/IL-299) **2. Developer's full name:** Anna Striganova **3. Changes:** - implemented `/api/v1/products/{productId}/reviews` POST - implemented `/api/v1/products/{productId}/reviews/{reviewId}` GET **TODO** HTTP GE...
diff --git a/pom.xml b/pom.xml index 980aed191..8c3d8977b 100644 --- a/pom.xml +++ b/pom.xml @@ -578,6 +578,24 @@ </configOptions> </configuration> </execution> + <!-- Generate from Review OpenAPI Spec --> + ...
23
22
2
[{"id": "G0", "claim": "The ReviewCreator should not call \"...repository.existsById(productId)\" inline but should create an additional method in the product class that contains the existsById check.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The cl...
null
Sunagatov__Iced-Latte__277
Sunagatov/Iced-Latte
277
defect
512c8a404d39ec6d20280fa1f8c88bb4285250ad
3d6e88739da82ca251bf426165f77b4542c53063
New Sorting and Filtering features were added for Product's Catalog
New features: - Added filtering by price_from, price_to, minimum_average_rating, brand_names, seller_names - Added sorting by average_rating, reviews_count - Database migration scripts were updated - Swagger contracts were updated
diff --git a/src/main/java/com/zufar/icedlatte/astartup/ProductsReviewsAndRatingInfoUpdater.java b/src/main/java/com/zufar/icedlatte/astartup/ProductsReviewsAndRatingInfoUpdater.java new file mode 100644 index 000000000..15cf4a460 --- /dev/null +++ b/src/main/java/com/zufar/icedlatte/astartup/ProductsReviewsAndRatingIn...
4
2
0
[{"id": "G0", "claim": "ProductInfo.java should avoid wildcard (\"*\") jakarta.persistence imports and list them explicitly.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Storing average_rating and reviews_count in the product table instead of ...
null
Sunagatov__Iced-Latte__74
Sunagatov/Iced-Latte
74
defect
a58240fc8a324150d4709181030fcbfa5a00f357
e2b0666e3b396e05eb64841ba0e45d0073b5a258
[cart-12] Replace converter classes of Cart package with Mapstruct
![Screenshot 2023-08-16 at 10 59 53](https://github.com/Sunagatov/Online-Store/assets/101927617/8ea642e6-7468-4a1d-8d25-37547c5ad9cd) 1. Task's name: [cart-12] Replace converter classes of Cart package with Mapstruct 2. Developer's full name: Vitalii Bredun 3. Link to the PR: https://github.com/Sunagat...
diff --git a/src/main/java/com/zufar/onlinestore/cart/converter/ShoppingSessionDtoConverter.java b/src/main/java/com/zufar/onlinestore/cart/converter/ShoppingSessionDtoConverter.java index cff49fae3..ec591bbbe 100644 --- a/src/main/java/com/zufar/onlinestore/cart/converter/ShoppingSessionDtoConverter.java +++ b/src/mai...
14
12
2
[{"id": "G0", "claim": "Remove the leftover @PostConstruct debug method that prints \"Hi and point\" from ProductInfoDtoConverter.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test fixtures reuse one hardcoded UUID for id, userId and produ...
null
Suor__funcy__100
Suor/funcy
100
defect
c0292117cd56896be7b4b45990c216fc83fe0928
3b3757af918d22eb8100f4870a49627dd2a5550f
Allow `into` argument of `reraise` to be callable
This PR tweaks `reraise()` to also accept any `callable` as a second argument. This allows users to transform any exceptions before they are re-raised without introducing helper functions or another `try ... except` block.
diff --git a/docs/flow.rst b/docs/flow.rst index 8778f208..66c27e97 100644 --- a/docs/flow.rst +++ b/docs/flow.rst @@ -87,6 +87,12 @@ Flow def api_call(...): # ... + ``into`` can also be a callable to transform the error before reraising:: + + @reraise(requests.RequestsError, lambda e:...
1
1
1
[{"id": "G0", "claim": "Exception classes are also callable, so the new `callable(into)` branch would call a class passed as `into` with the caught error instead of raising it as before, breaking backward compatibility — exception classes need to be excluded from the callable check.", "category": "correctness", "verdic...
null
SuperTux__supertux__3124
SuperTux/supertux
3,124
defect
b776febc34bf9dab7c2e5da64676b962f81aa831
892c3622472676d9c69becf77ff1fe3f69dfdfe7
Compress `TileMap` tiles in level file
`TileMap` tiles are now saved with the help of negative integers, the absolute value of each one being a multiplier for the next value (ex. "0 0 0 0 0 5 5 5" -> "-5 0 -3 5"). Newline separation for tiles in file based on `TileMap` width is no longer supported to save off additional file size. Examples: * `0 0 ...
diff --git a/src/editor/object_option.cpp b/src/editor/object_option.cpp index 13afd13bee3..e0b71d4a9ff 100644 --- a/src/editor/object_option.cpp +++ b/src/editor/object_option.cpp @@ -711,11 +711,9 @@ TilesObjectOption::parse(const ReaderMapping& reader) } void -TilesObjectOption::save(Writer& write) const +TilesO...
2
2
1
[{"id": "G0", "claim": "A unit test should be implemented for the compressed tiles reading.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G3", "claim": "Newlines and width-based line separation in write_compressed seem pointless once the tiles are compressed and shou...
null
Supervisor__supervisor__1008
Supervisor/supervisor
1,008
defect
3f04badc3237f0d86fa88208455d8560c20bc2e7
90df885832317d4bb8dc2e58be0f2777331bc10b
Support [include] in options files used by supervisorctl
This is a fix for **numerous** issues: copied & modified config 'include' code from ServerOptions to ClientOpti... #277 supervisorctl ignores included configuration files #962 ctlplugin ignored in include files #993 supervisorctl doesn't load included config files, misleading and undocumented #1007 does supervi...
diff --git a/supervisor/options.py b/supervisor/options.py index e4b19397e..bf59fecdc 100644 --- a/supervisor/options.py +++ b/supervisor/options.py @@ -393,6 +393,38 @@ def import_spec(self, spec): # this causes a DeprecationWarning on setuptools >= 11.3 return ep.load(False) + def read_...
2
2
2
[{"id": "G0", "claim": "The [include] code pasted into ClientOptions uses self.parse_warnings and self.parse_infos, which are undefined in the context of ClientOptions, because differences between ServerOptions and ClientOptions were not accounted for.", "category": "correctness", "verdict": "supported", "priority": "P...
null
Supervisor__supervisor__1301
Supervisor/supervisor
1,301
defect
ae8166c9081bccf8d9825fd26a99118f07337021
21256ba96c006f5c9d7322f3e8862e97711f4095
Flag to disable stdout logging for non daemonized instances
Added a new flag to disable logging to stdout for non daemonized instances. This is of use in a dockerized env where filebeat is being used to pump log files (including supervisord) to stdout in a standard format. Without this flag there are duplicated log entries written to stdout. Closes #661
diff --git a/supervisor/options.py b/supervisor/options.py index 6ee72efde..ecc069f84 100644 --- a/supervisor/options.py +++ b/supervisor/options.py @@ -403,6 +403,7 @@ class ServerOptions(Options): pidfile = None passwdfile = None nodaemon = None + quiet = None environment = None httpserver...
5
5
2
[{"id": "G0", "claim": "The new option should be named --silent so it appears as -s/--silent instead of -s/--quiet.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Tests need to verify the option's behavior both when it is on and when it is off.", "catego...
null
Supervisor__supervisor__812
Supervisor/supervisor
812
defect
f4c55bacd502d46652444cc20405121a75d0762b
ac4f3176e9048195340aaf9b4f3764f1408348d4
Fixed logfile output to special files like /dev/stdout on Python 3.
Python 3.5.2 disallows `open('/dev/stdout', 'a')` (it causes OSError with errno=ESPIPE) but allows `open('/dev/stdout', 'w')`. This change makes Supervisor detect this error condition and fix it if possible. (I might try to get this fixed in Python itself, but this patch helps Supervisor work with existing Python 3 in...
diff --git a/supervisor/loggers.py b/supervisor/loggers.py index e2e998e01..e4e5083d9 100644 --- a/supervisor/loggers.py +++ b/supervisor/loggers.py @@ -9,6 +9,7 @@ import os import errno +import stat import sys import time import traceback @@ -138,11 +139,29 @@ class FileHandler(Handler): """File handler w...
1
1
0
[{"id": "G0", "claim": "The dual mode/open_mode logic is confusing and should be simplified back to a single mode (dropping the special 'if not mode' case) if 'w' and 'a' have the same semantics on these devices, or at least have comments explaining why separate behaviors are needed.", "category": "maintainability", "v...
null
Supreeeme__xwayland-satellite__169
Supreeeme/xwayland-satellite
169
defect
3ba30b149f9eb2bbf42cf4758d2158ca8cceef73
939fc1f3215e250076a89c40e0df418f2975cd4e
Accept and pass -listenfd on to Xwayland
Implements the part of #102 necessary for compositor-driven on-demand activation. I've got a proof-of-concept working in niri using this, but I'll leave it as a draft until I flesh out the niri part some more.
diff --git a/src/lib.rs b/src/lib.rs index 97035b86..4c713488 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,7 +8,7 @@ use log::{error, info}; use rustix::event::{poll, PollFd, PollFlags}; use smithay_client_toolkit::data_device_manager::WritePipe; use std::io::{BufRead, BufReader, Read, Write}; -use std::os::fd::{A...
3
2
0
[{"id": "G0", "claim": "RunData::listenfds could just return a Vec of OwnedFd instead of &[RawFd], so the fds can simply be dropped and thereby closed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "parse_args should just create and return a RealData rat...
null
Supreeeme__xwayland-satellite__222
Supreeeme/xwayland-satellite
222
defect
e0d1dad25a158551ab58547b2ece4b7d5a19929c
64875fe2b48a3192fc1210b6c2fd77eec91ba776
Rewrite CI from ground up
Continues on #198 and #208. Third time's the charm, surely. ;) Decided to tear out the Docker container stuff, as there were multiple nightmarish problems with describing to GitHub Actions that sometimes it would need to pull down the container and rebuild it other times and with needing to extract the container int...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a354268..dd81baf7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,77 +8,46 @@ on: env: CARGO_TERM_COLOR: always - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} - UBUNTU_DOCKERFILE: .github/workflows/ub...
2
2
0
[{"id": "G0", "claim": "The MSRV/vars logic embedded in the ci.yml run step should go into a separate script file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Getting rid of the ubuntu.dockerfile and installing dependencies on every CI run is...
null
Supreeeme__xwayland-satellite__261
Supreeeme/xwayland-satellite
261
defect
0728d59ff6463a502e001fb090f6eb92dbc04756
39d58b4d13fb343f5d9baec8a07c15cebd9ec310
Fix pile of bugs found with `wl-clip-persist`
Should close #245. This PR was an absolute rabbit hole for me. It seemed each time I fixed something, there would be a new, even weirder problem I would have to contend with.
diff --git a/src/xstate/mod.rs b/src/xstate/mod.rs index 2e0b78ac..882e88e3 100644 --- a/src/xstate/mod.rs +++ b/src/xstate/mod.rs @@ -979,15 +979,16 @@ xcb::atoms_struct! { motif_wm_hints => b"_MOTIF_WM_HINTS" only_if_exists = false, utf8_string => b"UTF8_STRING" only_if_exists = false, clip...
2
1
0
[{"id": "G0", "claim": "The XWayland misbehavior described in the comment (failing to send `PropertyNotify` events when a selection has multiple outstanding INCR transfers) seems like something that should potentially be reported to Xwayland.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope":...
null
Supreeeme__xwayland-satellite__262
Supreeeme/xwayland-satellite
262
defect
bf745144acda1343934e9a094cf9458a54d57889
80e1a08df06f2227a884e1c5aa5e658a8e3a8508
Fix 2 issues with Git Gui menus
Partially resolves #253. Apparently there is also a scaling issue, but I do not understand it and the issue author has not responded in some time.
diff --git a/src/server/event.rs b/src/server/event.rs index c877b7d9..9a9e0a33 100644 --- a/src/server/event.rs +++ b/src/server/event.rs @@ -460,6 +460,40 @@ impl Event for client::wl_pointer::Event { // Niri). Other compositors do not run into this problem because they appear to not send // wl_poin...
3
1
0
[{"id": "G0", "claim": "The else branch of the let-else destructuring PendingEnter is unnecessary because the pattern is irrefutable at the type level.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The handle_pending_enter closure should be rewri...
null
Supreeeme__xwayland-satellite__323
Supreeeme/xwayland-satellite
323
defect
f0ad674b7009a6afd80cea59d4fbf975dd68ee95
242c1b96a82bec8ee72c50fc06514313eeacdeb0
Detecting if UTILITY is popup
Ardour uses UTILITY atom all over the place for toplevel windows: Plugins, Dialogs etc However it does not provide any MOTIF_HINTS at all. WeChat however uses them for popups and also provides MOTIF_HINTS with flags 0x2 indicating that only decorations are active. MaterialMaker also follows what WeChat is doing for...
diff --git a/src/xstate/mod.rs b/src/xstate/mod.rs index 9006335e..6a5a18b7 100644 --- a/src/xstate/mod.rs +++ b/src/xstate/mod.rs @@ -686,7 +686,10 @@ impl XState { motif_hints: Option<motif::Hints>, has_transient_for: bool, ) -> XResult<bool> { + let mut no_function_motif = false; ...
4
4
3
[{"id": "G0", "claim": "The motif-popup flag should be computed as hints.functions.is_none_or(|f| f.is_empty()) instead of hints.functions.is_none(), so that a MOTIF_WM_HINTS property present with the functions bit set but no function flags also marks a UTILITY window as a popup.", "category": "correctness", "verdict":...
null
Supreeeme__xwayland-satellite__328
Supreeeme/xwayland-satellite
328
defect
bf738fffbb26669d0ba9d7a3ecdba3b47afa8a85
a9d1e8e779d80977ea8e1fed700e232e1fae9991
Detect WM_HINTS popup (yabridge popups fix)
Many windows popups have: ``` WM_HINTS(WM_HINTS) Client accepts input or input focus: False ``` Which is a good indicator window COULD be a popup. This is true for example on `yabridge `plugins and some other apps. However `toplevel` windows have this property `True`. In order to differentiate them we check if t...
diff --git a/src/xstate/mod.rs b/src/xstate/mod.rs index 2b76af2f..e1714246 100644 --- a/src/xstate/mod.rs +++ b/src/xstate/mod.rs @@ -625,6 +625,7 @@ impl XState { let class = self.get_wm_class(window); let size_hints = self.get_wm_size_hints(window); let motif_wm_hints = self.get_motif_wm_h...
7
5
4
[{"id": "G0", "claim": "The new WM_HINTS-based popup detection is a new property being taken into account and definitely needs some testing before merge, since regressions are a risk.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Battle.net (WM_HINTS i...
null
Supreeeme__xwayland-satellite__358
Supreeeme/xwayland-satellite
358
defect
7af39ce41986feee45a91acbe4d417482c9b6458
e0e1dd1c280ae2e6ed93f9f0ba65be353f42d278
Fix popup detection logic and correctly identify fcitx5 candidate windows as popups
## Description Closes #356. Fixed incorrect logic in the popup detection related to #328. ### Issue Commit 645ca1125b624ab010c39c0cad5fd2b84c68c22f introduced a logical error in the `guess_is_popup()` function where `has_skip_taskbar` was incorrectly initialized as `false` instead of `None`. Since this vari...
diff --git a/src/xstate/mod.rs b/src/xstate/mod.rs index 5079f244..e349443c 100644 --- a/src/xstate/mod.rs +++ b/src/xstate/mod.rs @@ -693,7 +693,7 @@ impl XState { ) -> XResult<bool> { let mut motif_popup = false; let mut wmhint_popup = false; - let mut has_skip_taskbar = false; + ...
3
3
3
[{"id": "G0", "claim": "The combo window type atom was added to the main WindowTypes struct but is missing from the test Atoms struct in tests/integration.rs, and should be added there (around line 345) for consistency with other window types and to enable testing of combo window type behavior.", "category": "testing",...
null
Supreeeme__xwayland-satellite__367
Supreeeme/xwayland-satellite
367
defect
37ec78ee26e158b71f42e113e0e7dd9d5eb6bdb0
fdb8779a747e954ab311653d20dc3e5e2fc58f1c
feat: handle global removals, recalc output scale
All `GlobalRemove` events sent from the server are now handled by recording them in a new clientside `vec` and passing the identifier returned by `create_global` (now stored by a map in the state) to `disable_global`. `handle_globals` (the top-level function) and `handle_new_globals` (the `InnerServerState` member func...
diff --git a/src/server/clientside.rs b/src/server/clientside.rs index 05c8cbed..8a5e20fe 100644 --- a/src/server/clientside.rs +++ b/src/server/clientside.rs @@ -1,6 +1,6 @@ use super::decoration::DecorationMarker; -use super::ObjectEvent; +use super::{GlobalName, ObjectEvent}; use hecs::{Entity, World}; use smit...
3
2
0
[{"id": "G0", "claim": "The Global/GlobalRemove dispatch handler could be written as a `match` instead of an `if let`/`else if let` chain, now that removes are handled.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ECS query in handle_globa...
null
Supreeeme__xwayland-satellite__370
Supreeeme/xwayland-satellite
370
defect
0947c4685f6237d4f8045482ce0c62feab40b6c4
7ba8de89fef6a6db3597755377da3ceb8ebb6c1d
Motif popup fix
Popups should not be resizable so for motif_popup check that also. While it does not fix the main issue (since we don't have enough information) https://github.com/Supreeeme/xwayland-satellite/issues/365 it fixes mentioned issue with wallpaper engine: https://github.com/Supreeeme/xwayland-satellite/issues/365#iss...
diff --git a/src/xstate/mod.rs b/src/xstate/mod.rs index cb6f9b0c..03e39830 100644 --- a/src/xstate/mod.rs +++ b/src/xstate/mod.rs @@ -725,6 +725,7 @@ impl XState { && !hints.functions.as_ref().is_some_and(|f| { f.contains(motif::Functions::Minimize) || f.c...
1
1
0
[{"id": "G0", "claim": "Replace the chained f.contains(motif::Functions::...) || ... checks with a single f.intersects(motif::Functions::Minimize | motif::Functions::Maximize | motif::Functions::Resize | motif::Functions::All) call.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pr...
null
Supreeeme__xwayland-satellite__399
Supreeeme/xwayland-satellite
399
defect
10f985b84cdbcc3bbf35b3e7e43d1b2a84fa9ce2
1c8f3defdecc8d22d55c0602bb49bc964f8d2cf5
fix: cast ExitStatus to correct type, remove Boxes
Absolutely no clue why Past Me thought `usize` was the correct type to convert `ExitStatus` from. Rust docs make it really clear it is a `c_int` (i32) on Unix. Past Me also decided both leaking memory with `Box::into_raw` then unsoundly calling `Box::from_raw` on a pointer to a stack-allocated array was smart. Dunno...
diff --git a/src/lib.rs b/src/lib.rs index 611c959e..8aee68d3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,7 +9,7 @@ use server::selection::{Clipboard, Primary}; use smithay_client_toolkit::data_device_manager::WritePipe; use std::io::{BufRead, BufReader, Read, Write}; use std::os::fd::{AsFd, AsRawFd, BorrowedFd, ...
1
1
0
[{"id": "G0", "claim": "The buffer size in `xwayland_exit_code` should be written with `std::mem::size_of::<i32>()` instead of `(i32::BITS / 8) as usize`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
SurgeDM__Surge__153
SurgeDM/Surge
153
defect
c53573bced1a6d5006f74afae461325a7259397d
54353886714ab11f702aec188820ec1b7f0eefb6
Fixes #151
Closes #151 Now we have consistent 3 types of settings everywhere in the code.
diff --git a/cmd/root.go b/cmd/root.go index f7c380106..f9f67b515 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -60,7 +60,7 @@ var rootCmd = &cobra.Command{ if err != nil { settings = config.DefaultSettings() } - GlobalPool = download.NewWorkerPool(GlobalProgressCh, settings.Connections.MaxConcurrentDownload...
8
5
1
[{"id": "G0", "claim": "setNetworkSetting doesn't handle the proxy_url key even though it's in the settings metadata, making the Proxy URL field effectively non-editable from the UI; add a case \"proxy_url\" that updates m.Settings.Network.ProxyURL.", "category": "correctness", "verdict": "uncertain", "priority": "P1",...
null
SurgeDM__Surge__222
SurgeDM/Surge
222
defect
a7b759cb75da165a8274d20fca727e8ed139f76f
a19e3d3d609c7bc1413a22339346b2b97e29bc53
Move pause resume to the new processing layer
<!-- greptile_comment --> <h3>Greptile Summary</h3> This PR lifts `Pause`, `Resume`, and `ResumeBatch` out of `LocalDownloadService` and into a new `processing.LifecycleManager` layer, connected back to the pool and event bus via an `EngineHooks` callback struct. This correctly breaks the cyclic dependency between `c...
diff --git a/cmd/root.go b/cmd/root.go index 148caf28d..f29ab7c00 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -201,10 +201,30 @@ func lifecycleForLocalService(service core.DownloadService) (*processing.Lifecyc func ensureGlobalLocalServiceAndLifecycle() error { if GlobalService == nil { - GlobalService = core.N...
9
2
0
[{"id": "G0", "claim": "Resume and ResumeBatch guard only on `Resume != nil` but then call `GetStatus` and `AddConfig` unconditionally, so a partially initialised EngineHooks (Resume set but GetStatus or AddConfig nil) would panic at runtime; the guard should cover every hook these methods use, or the whole struct shou...
null
SurgeDM__Surge__229
SurgeDM/Surge
229
defect
b0a476f33e548742c6245f1994bf71f29f4b2b22
468d9b3b0d3f937e960be3f63671ef6323e2b758
Minor fixes 2026 03 11
Close #211 <!-- greptile_comment --> <h3>Greptile Summary</h3> This PR delivers several targeted correctness fixes: crash-recovery normalization of stale `"downloading"` entries via `NormalizeStaleDownloads`, a shutdown ordering fix ensuring `PauseAll()` events are persisted before the lifecycle stream closes, a pro...
diff --git a/go.mod b/go.mod index ea42890a5..bae93ceea 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,6 @@ require ( github.com/gofrs/flock v0.13.0 github.com/google/uuid v1.6.0 github.com/h2non/filetype v1.1.3 - github.com/kennygrant/sanitize v1.2.4 github.com/muesli/termenv v0.16.0 github.com/spf13/cobra v1...
2
2
1
[{"id": "G0", "claim": "The control-character filter condition `c > 127` keeps C1 control characters (U+0080–U+009F), so a filename containing the UTF-8 encoding of U+009B can pass through unchanged and act as an 8-bit terminal escape sequence; the reviewer suggests filtering the C1 range explicitly.", "category": "sec...
null
SurgeDM__Surge__239
SurgeDM/Surge
239
defect
ed93432764163266b3b4f4b73d334a00d1d94e8c
b10994e4e71bbea22bce255a1bf8a0a144aea7ee
Minor bug fixes
Close #235 <!-- greptile_comment --> <h3>Greptile Summary</h3> This PR introduces `resolveClientOutputPath` in `cmd/utils.go` to fix a bug where relative output paths were resolved server-side (against the daemon's CWD) rather than client-side (against the caller's CWD). The fix is applied in `cmd/add.go`, `cmd/root...
diff --git a/cmd/add.go b/cmd/add.go index 3a854b713..63a735e74 100644 --- a/cmd/add.go +++ b/cmd/add.go @@ -47,6 +47,9 @@ var addCmd = &cobra.Command{ os.Exit(1) } + // Resolve client output path (handles local vs remote and relative vs absolute) + resolvedOutput := resolveClientOutputPath(output) + // S...
5
3
2
[{"id": "G0", "claim": "The test's exact-match assertion is silently skipped when wantExact is \"\", so the remote pass-through case can return anything without failing; gate the check on an explicit flag (or assert unconditionally) instead of on non-emptiness.", "category": "testing", "verdict": "supported", "priority...
null
SurgeDM__Surge__243
SurgeDM/Surge
243
defect
731748f60d33a36b08d61ee4dad1424a19790243
8c57313f057ab95e1c35fab76427e59575dd616c
feat: add download completed notification to settings
Close #234 <img width="619" height="161" alt="image" src="https://github.com/user-attachments/assets/3ff392d3-9098-4d06-b044-27c30c7069de" /> <!-- greptile_comment --> <h3>Greptile Summary</h3> This PR adds a **Download Complete Notification** setting that fires a system notification (via `github.com/gen2brain/b...
diff --git a/assets/embed.go b/assets/embed.go new file mode 100644 index 000000000..33f9aee61 --- /dev/null +++ b/assets/embed.go @@ -0,0 +1,6 @@ +package assets + +import _ "embed" + +//go:embed logo.png +var LogoData []byte diff --git a/go.mod b/go.mod index bae93ceea..0e11b0b99 100644 --- a/go.mod +++ b/go.mod @@ -...
6
4
2
[{"id": "G0", "claim": "The finalization-failure notification is sent unconditionally, bypassing the DownloadCompleteNotification setting that guards the success path, so a user who disables notifications still receives error popups.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intro...
null
SurgeDM__Surge__254
SurgeDM/Surge
254
defect
0329c516334100dc8c11ed150802cdf61254776e
aa71b03d2a491cf9c7eda10eb65d62471e437612
fix: record preflight error for downloads added via HTTP API
## Problem When a download added via `surge add` (HTTP API) fails during probe, the error is not recorded in the master list and no `DownloadErrorMsg` is published to the TUI. This causes the errored download to not appear as "Errored" in the Done tab. The local `processDownloads` path (`root.go:973`) already calls `...
diff --git a/cmd/root.go b/cmd/root.go index ac6658233..bbb84a5eb 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -879,6 +879,7 @@ func handleDownload(w http.ResponseWriter, r *http.Request, defaultOutputDir str newID, err = service.Add(urlForAdd, outPath, req.Filename, mirrorsForAdd, req.Headers, req.IsExplicitCatego...
1
1
1
[{"id": "G0", "claim": "No test exercises the new recordPreflightDownloadError side-effect in handleDownload's error branch, so tests should be added to prevent a future refactor from silently dropping the call.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
SurgeDM__Surge__283
SurgeDM/Surge
283
defect
f9611005850a9a1a4d0608fbd04ac02f0ef12deb
a997deac342686646ef8390d2fc1983a373d41d5
feat(tui): add spinner animations for transitional download states
## Description This PR improves the perceived responsiveness of the Surge TUI by replacing static text indicators (`⋯`, `⏸`, `▶`) with smooth, continuously animating spinners during short-lived transitional states ([Queued](cci:2://file:///home/huseynvovvusal/Documents/Open%20Source/Surge/internal/engine/events/events...
diff --git a/internal/tui/list.go b/internal/tui/list.go index 63ce93087..3dd3cd590 100644 --- a/internal/tui/list.go +++ b/internal/tui/list.go @@ -33,11 +33,16 @@ func (i DownloadItem) Description() string { var styledStatus string if d.pausing { // Custom "Pausing..." style using existing colors - styledStat...
11
10
2
[{"id": "G0", "claim": "The StatusQueued spinner rendering block is duplicated verbatim in list.go and view.go and should be extracted into a shared helper such as DownloadStatus.RenderWithSpinner.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
SurgeDM__Surge__285
SurgeDM/Surge
285
defect
f9611005850a9a1a4d0608fbd04ac02f0ef12deb
72647b6275e76d21d75ba5dd94c0a965af398876
fix: pasting in TUI
Close #284 <!-- greptile_comment --> <h3>Greptile Summary</h3> This PR fixes paste support in the TUI by adding an explicit `case tea.PasteMsg:` handler in `update.go` that routes paste events to the correct focused text-input based on the current UI state, and backs the change with nine new tests covering both acti...
diff --git a/internal/tui/update.go b/internal/tui/update.go index 59ff3182b..5bbec51ff 100644 --- a/internal/tui/update.go +++ b/internal/tui/update.go @@ -644,6 +644,43 @@ func (m RootModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { } return m, tea.Quit + case tea.PasteMsg: + switch m.state { + case Dashbo...
1
1
0
[{"id": "G0", "claim": "The guarded no-op paste branches — DashboardState with searchActive = false, SettingsState with SettingsIsEditing = false, CategoryManagerState with catMgrEditing = false, and the default branch for unlisted states — have no test coverage, so a future regression that accidentally routes paste ev...
null
SurgeDM__Surge__301
SurgeDM/Surge
301
defect
05178a5554c6d0e3a03a34fb755a20cfd1416847
9e078e04b4b639e74240380887c04831fc141903
Cmd refactor
Cleaned up error handling path its now functions -> execute -> main.go Removed os.Exit calls from deep inside functions which would result in defer functions not working <!-- greptile_comment --> <h3>Greptile Summary</h3> This PR completes a clean architectural refactor of all Cobra command handlers from `Run`+`o...
diff --git a/cmd/add.go b/cmd/add.go index b61af9901..e1aa0b050 100644 --- a/cmd/add.go +++ b/cmd/add.go @@ -2,7 +2,6 @@ package cmd import ( "fmt" - "os" "github.com/spf13/cobra" "github.com/surge-downloader/surge/internal/utils" @@ -13,38 +12,35 @@ var addCmd = &cobra.Command{ Aliases: []string{"get"}, ...
3
2
2
[{"id": "G0", "claim": "Without `SilenceUsage: true`, Cobra still prints the full command usage block on every error returned by a `RunE` handler, a behavioral regression versus the previous `os.Exit` path.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "clai...
null
SurgeDM__Surge__305
SurgeDM/Surge
305
defect
0da93aa4e021c87f2fd817e5d561774216f915dc
5f9e568d9ab65f67baf5426bccbcc83df90e6980
fix(single): fix double close and file handle leak in SingleDownloader
## Summary Fixes #304 - **Moved `defer outFile.Close()`** immediately after `os.OpenFile()` to prevent file descriptor leak when `preallocateFile()` fails - **Removed redundant explicit `outFile.Close()`** call, relying on the deferred close to avoid double-close error ## Changes `internal/engine/single/downloader....
diff --git a/internal/engine/single/downloader.go b/internal/engine/single/downloader.go index 5e21b01ef..8549f9d76 100644 --- a/internal/engine/single/downloader.go +++ b/internal/engine/single/downloader.go @@ -166,6 +166,9 @@ func (d *SingleDownloader) Download(ctx context.Context, rawurl, destPath string if err !...
2
2
2
[{"id": "G0", "claim": "The deferred `_ = outFile.Close()` silently swallows the close error, so the caller no longer learns of data-loss errors surfaced by Close on NFS/SMB or failed kernel write-back; use a named return value so the close error propagates when there is no earlier error.", "category": "correctness", "...
null
SurgeDM__Surge__311
SurgeDM/Surge
311
defect
0da93aa4e021c87f2fd817e5d561774216f915dc
7d4bdd86750bc42592be6e503ae0a0a561bd47db
fix(config): fall back to defaults when settings.json is corrupt
## Summary Fixes #310 - `LoadSettings()` now falls back to `DefaultSettings()` with a log warning when `settings.json` contains invalid JSON, instead of returning an error that prevents the application from starting ## Changes `internal/config/settings.go`: - On `json.Unmarshal` failure: log warning with file path ...
diff --git a/internal/config/settings.go b/internal/config/settings.go index 3338ba22f..7395aa2ed 100644 --- a/internal/config/settings.go +++ b/internal/config/settings.go @@ -2,6 +2,7 @@ package config import ( "encoding/json" + "log" "os" "path/filepath" "time" @@ -156,14 +157,14 @@ func GetSettingsPath()...
3
2
1
[{"id": "G0", "claim": "Use utils.Debug instead of the log library for the corruption warning, matching the rest of the codebase.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Show a message in the Activity Log when settings are corrupt, which ...
null
SurgeDM__Surge__314
SurgeDM/Surge
314
defect
bf126897cb8604a6e612478161fdd30fd25057f9
c9bc5ee317551f24520a7977f4070ff98f2c4a55
refactor: remove verbose flag and enable persistent debug logging
<!-- greptile_comment --> <h3>Greptile Summary</h3> This PR removes the `--verbose` / `-v` flag and replaces it with persistent, always-on debug logging: every Surge session now automatically writes a `debug-*.log` file to the platform-appropriate state directory, capped by the `log_retention_count` setting. The `ver...
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 7a3a04b18..692b5252d 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -24,17 +24,13 @@ A clear and concise description of what you expected to happen. If applicable, add screens...
4
3
3
[{"id": "G0", "claim": "http.DetectContentType and filetype.Match now run unconditionally on every DetermineFilename invocation even when debug logging is inactive (logsDir unconfigured), since Go evaluates arguments eagerly and the Debug fast-path cannot prevent the work — a per-download performance regression versus ...
null
SurgeDM__Surge__337
SurgeDM/Surge
337
defect
bc497df3a60ed71611a44f7278937c304b6e872e
c7a14a9cd10f5ad4f36b635247389bb4b6d8f185
add custom dns settings
- **feat: include request headers in download debug logs** - **refactor: enhance download interception with redirect tracking, cookie-based authentication, and improved filename resolution for Firefox** - **feat: add custom DNS server configuration support and utility for dialer resolution** - **feat: custom dns settin...
diff --git a/.gitignore b/.gitignore index a6bfffd48..881d1240a 100644 --- a/.gitignore +++ b/.gitignore @@ -13,7 +13,7 @@ uv.lock # analysis files speed_graph.png worker_speeds.png -logs/ +*.log # Added by goreleaser init: dist/ diff --git a/cmd/root_downloads.go b/cmd/root_downloads.go index 340f3c327..8b643a4...
6
5
1
[{"id": "G0", "claim": "The callback binds chrome.runtime.lastError to an unused variable err; it should keep reading lastError but not bind it to an unused variable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The resolver's Dial closure cal...
null
SurgeDM__Surge__339
SurgeDM/Surge
339
defect
94429800ceeb7f63ab0e8fe60be2b0fba1af4bf4
627a72ed4c5fd8e3ff39b7b690f014fc4badd404
fix: implement graceful download queue clearing and throttle concurrent server probes with a semaphore
<!-- greptile_comment --> <h3>Greptile Summary</h3> This PR introduces two related improvements: `WorkerPool.GracefulShutdown` now explicitly discards the in-memory queue and drains `taskChan` so that buffered-but-unstarted downloads are not picked up by workers after shutdown is initiated; and `LifecycleManager` gai...
diff --git a/docs/SETTINGS.md b/docs/SETTINGS.md index fcab4d05e..ccfca0acd 100644 --- a/docs/SETTINGS.md +++ b/docs/SETTINGS.md @@ -70,6 +70,7 @@ Surge follows OS conventions for storing its files. Below is a breakdown of ever | :------------------------- | :----- | :--------------------------------------------------...
2
2
1
[{"id": "G0", "claim": "The probe semaphore test never reaches the probe or semaphore because NewLifecycleManager(nil, nil) leaves addFunc nil, so Enqueue returns before probing and the test passes regardless of semaphore behavior; the inline comment claiming enqueue fails after the probe is also wrong.", "category": "...
null
SurgeDM__Surge__341
SurgeDM/Surge
341
defect
ab15dcc74e108a837e82d5edd87276ad57ccae94
b9b1030d942a8fb46cbfc02fada166faaf12fc14
feat: add Extension settings category with auth token copying and browser integration support
<!-- greptile_comment --> <h3>Greptile Summary</h3> This PR adds a new **Extension** settings tab to the TUI, moving `ExtensionPrompt` from General into a dedicated `ExtensionSettings` struct, and adding auth-token display/copy-to-clipboard and browser-extension installation links. The `AuthToken` field is deliberate...
diff --git a/cmd/connect_test.go b/cmd/connect_test.go index e63530280..dd3c473ef 100644 --- a/cmd/connect_test.go +++ b/cmd/connect_test.go @@ -81,7 +81,7 @@ func TestNewRemoteRootModel_UsesNilOrchestrator(t *testing.T) { func TestNewRemoteRootModel_DownloadRequestUsesServiceAdd(t *testing.T) { service := &fakeRemo...
3
3
1
[{"id": "G0", "claim": "token[:8] will panic with index out of range for any auth token shorter than 8 characters, since the empty-string guard leaves tokens of length 1-7 unhandled.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "ExtensionTokenCopyT...
null
SurgeDM__Surge__343
SurgeDM/Surge
343
defect
a2d94ce0009674d9eb1ecb53375a9873c8817238
238f2debe524b7ba817a690e22db92416422bd7e
refactor: update active download criteria to account for paused, pausing, and resuming states
Close #329 <!-- greptile_comment --> <h3>Greptile Summary</h3> This PR updates the TUI's active download criteria to correctly account for `pausing`, `paused`, and `resuming` states. Downloads in the `pausing` state now correctly appear in the Queued tab (not Active), with consistent logic applied across `getFiltere...
diff --git a/internal/tui/filtering_test.go b/internal/tui/filtering_test.go new file mode 100644 index 000000000..9e98de59f --- /dev/null +++ b/internal/tui/filtering_test.go @@ -0,0 +1,130 @@ +package tui + +import ( + "testing" +) + +func TestTabFiltering(t *testing.T) { + tests := []struct { + name string...
1
1
1
[{"id": "G0", "claim": "TestTabFiltering has no cases exercising the new `pausing` state directly (a regression in the `d.pausing` branch of getFilteredDownloads() would go uncaught), so test cases for Active tab excluding and Queued tab including pausing downloads should be added.", "category": "testing", "verdict": "...
null
SurgeDM__Surge__366
SurgeDM/Surge
366
defect
88bd4264ad1d1bd4f34231f73cc6fe0dc963639d
5227c6ac091daf74b85fe4c3c66c169a7fac0a37
fix(docker): Windows paths not being converted into linux while being run in WSL
<!-- greptile_comment --> <h3>Greptile Summary</h3> This PR fixes Windows absolute paths (drive letters and UNC) sent by WSL clients not being mapped to the server-side Linux download directory. It introduces `IsWindowsAbsPath`, `MapWindowsPathToDefaultDir`, and `mapClientWindowsPath` with segment-name matching and `...
diff --git a/cmd/http_handler_test.go b/cmd/http_handler_test.go index 02afbc426..1c4a1c93c 100644 --- a/cmd/http_handler_test.go +++ b/cmd/http_handler_test.go @@ -134,6 +134,34 @@ func TestHandleDownload_PathResolution(t *testing.T) { expectedPathSuffix: filepath.Base(defaultDownloadDir), // Should be just the ...
5
4
2
[{"id": "G0", "claim": "Making SURGE_VERSION a hard build requirement is a breaking change: any existing docker build or CI pipeline that omits the build arg will now exit with a hard error, so the fallback should be restored or the compose file and release notes must call out the breaking change.", "category": "correc...
null
SurgeDM__Surge__368
SurgeDM/Surge
368
defect
efe05751ba36ec4e7cf2e940ed0be82da4cbc2ac
ec7865d0b107d3a5d5e8b4b47b40635e06981975
feat: pass resolved filename from backend to extension and implement robust path truncation
<!-- greptile_comment --> <h3>Greptile Summary</h3> This PR wires the backend-resolved filename (from the HTTP probe) back through the API response to the browser extension, replacing the previous approach where the extension forwarded a browser-derived filename hint that could be a raw URL fragment. It also introduc...
diff --git a/cmd/root_downloads.go b/cmd/root_downloads.go index 739368878..c62757c6f 100644 --- a/cmd/root_downloads.go +++ b/cmd/root_downloads.go @@ -65,7 +65,7 @@ func handleDownload(w http.ResponseWriter, r *http.Request, defaultOutputDir str return } - newID, err := enqueueDownloadRequest(r, service, resol...
3
3
1
[{"id": "G0", "claim": "Byte-based slicing in sanitizeFilename (base[:maxBase] and name[:MaxFilenameLength]) can split multi-byte UTF-8 characters and produce invalid sequences, and the same pattern in truncateToSafeLength in internal/processing/file_utils.go should be fixed too.", "category": "correctness", "verdict":...
null
SurgeDM__Surge__370
SurgeDM/Surge
370
defect
b6730969376db9e91fb49038db747148d40988a6
bd2c421e6de4f1179a80bb1f783ee8f500620b98
Trace
<!-- greptile_comment --> <h3>Greptile Summary</h3> This PR adds connection pre-warming via hedged dialing (`prewarmConnections`), exposes a new `DialHedgeCount` setting end-to-end through config, engine types, and the TUI settings view, and refactors TUI initialization from `init()` functions to explicit `Initialize...
diff --git a/.gitignore b/.gitignore index 7f35a86fe..fd8ef503c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,9 @@ -# binary +# surge stuff surge *.surge Surge surge_bin +*.trace # python + uv stuff .python-version diff --git a/cmd/root.go b/cmd/root.go index 4d8099d18..adfa0fbb7 100644 --- a/cmd/root.go ...
4
2
0
[{"id": "G0", "claim": "The `wg` sync.WaitGroup in prewarmConnections is incremented and decremented but never waited on, making it inert and misleading, so it should be removed (or wg.Wait() added if draining before return is intended).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope"...
null
SurgeDM__Surge__385
SurgeDM/Surge
385
defect
a4ae4834636ef194d398bffcf9a563dfd8b4e42f
29c97755b95547f44f7845f8792d1dbee9f0e34c
feat: auto-approve non-duplicate extension requests in headless mode
Close #384 <!-- greptile_comment --> <h3>Greptile Summary</h3> This PR adds headless-mode (no TUI) auto-approval logic for extension download requests: non-duplicate URLs are approved automatically, while duplicates are rejected with 409 Conflict. To support this, `CheckForDuplicate` was refactored to always perform...
diff --git a/cmd/headless_approval_test.go b/cmd/headless_approval_test.go new file mode 100644 index 000000000..f50a79eb1 --- /dev/null +++ b/cmd/headless_approval_test.go @@ -0,0 +1,104 @@ +package cmd + +import ( + "bytes" + "fmt" + "net/http" + "net/http/httptest" + "testing" + + "github.com/SurgeDM/Surge/internal/...
1
1
1
[{"id": "G0", "claim": "Add a third test case covering the headless scenario where ExtensionPrompt=true (the default) and the URL is a duplicate in the master list while WarnOnDuplicate=false, so the new headless 409 path reached via shouldPrompt is locked in and guarded against regressions.", "category": "testing", "v...
null
SurgeDM__Surge__393
SurgeDM/Surge
393
defect
54d2d5dd2e18a71f911189af84e34cae07952e27
2f562fc67d85c2afd99f45d29bd6cd5ac2d2a7e6
fix(cmd): Fixed various bugs in connect.go
<!-- greptile_comment --> <h3>Greptile Summary</h3> This PR fixes several bugs in the remote-connect flow: the most impactful is that `StreamEvents` previously returned an empty `func(){}` cleanup, causing the SSE goroutine to be unrecoverable after use. The PR also extracts TLS/CA configuration into a dedicated `htt...
diff --git a/cmd/cli_test.go b/cmd/cli_test.go index fb443f169..948e54446 100644 --- a/cmd/cli_test.go +++ b/cmd/cli_test.go @@ -581,6 +581,63 @@ func TestActionCommandsRunE_ReturnNoServerErrors(t *testing.T) { } } +func TestConnectCmd_HostSourcesBypassLocalAutodetect(t *testing.T) { + tests := []struct { + name ...
1
1
1
[{"id": "G0", "claim": "NewHTTPClient, NewStreamingHTTPClient, HTTPClientOptions, currentRemoteClientConfig, newRemoteAPIHTTPClient, newRemoteDownloadService, and the globalInsecureHTTP/globalInsecureTLS/globalTLSCAFile variables are used but not defined anywhere, so the package will not compile as submitted.", "catego...
null
SurgeDM__Surge__404
SurgeDM/Surge
404
defect
bf375b45f7e08da387a8a2be3547aa7e1616969b
c9b27f29dc549b80b017593e0ac2751584a323ee
Implement optimistic probe fallback and concurrent bootstrap
## Overview This PR improves the robustness of the download lifecycle by handling cases where the initial HEAD/GET probe fails. Instead of failing the download immediately, it now falls back to an optimistic configuration and attempts a metadata bootstrap during the download phase. ## Changes - **Concurrent Downloader...
diff --git a/internal/download/manager.go b/internal/download/manager.go index 3aeabd108..166b48096 100644 --- a/internal/download/manager.go +++ b/internal/download/manager.go @@ -142,9 +142,19 @@ func TUIDownload(ctx context.Context, cfg *types.DownloadConfig) error { cfg.State.SetTotalSize(cfg.TotalSize) } + ...
5
4
3
[{"id": "G0", "claim": "bootstrapMetadata should be called with the per-download cancellable downloadCtx instead of the outer ctx, so that pausing or cancelling the download also interrupts the bootstrap probe request.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id":...
null
SurgeDM__Surge__407
SurgeDM/Surge
407
defect
502c5266caa3aa7203b3b3ab7b7d05994aa1bd1d
48003b85367f4069adbe956db07660da4f04f75b
fix: drain response body before signaling readiness in concurrent downloader to ensure connection reuse
<!-- greptile_comment --> <h3>Greptile Summary</h3> This PR fixes a connection-reuse bug in `prewarmConnections` where `ready` was signalled before the response body was drained and closed. Go's `net/http` transport only returns a connection to the idle pool after the body is fully consumed and closed, so signalling ...
diff --git a/internal/engine/concurrent/downloader.go b/internal/engine/concurrent/downloader.go index a16525379..a93665071 100644 --- a/internal/engine/concurrent/downloader.go +++ b/internal/engine/concurrent/downloader.go @@ -721,9 +721,10 @@ func (d *ConcurrentDownloader) prewarmConnections(ctx context.Context, cli...
2
2
0
[{"id": "G0", "claim": "The carried-over comment `// Connection is now hot in the pool.` is now misleading and should be removed or updated, since the connection is only returned to the idle pool after the body is drained and closed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "int...
null
SurgeDM__Surge__409
SurgeDM/Surge
409
defect
e4b72bffd4cab972a878c7c69e3a4b64dc87f13c
c153d882f53df4da943a21d4bcbd35373d49b04a
fix settings tui cutoff
- **refactor: introduce utility for text wrapping and replace manual truncation in TUI components** - **refactor: centralize string truncation logic into utils package and remove redundant local implementations** <!-- greptile_comment --> <h3>Greptile Summary</h3> This PR centralizes text truncation and wrapping int...
diff --git a/internal/tui/components/add_download_modal.go b/internal/tui/components/add_download_modal.go index bb5258e06..831a57b6d 100644 --- a/internal/tui/components/add_download_modal.go +++ b/internal/tui/components/add_download_modal.go @@ -4,6 +4,7 @@ import ( "image/color" "github.com/SurgeDM/Surge/inte...
4
4
0
[{"id": "G0", "claim": "TruncateMiddle is added as a public API but never called anywhere in this PR, so consider making it unexported until a caller exists instead of adding untested public surface area.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
SvenShi__forgedns__38
SvenShi/forgedns
38
defect
a45acd0f4e94e4c3c45a59e9ab185994417efad8
f6e0bc74966dc7cda2bf964c0267bdd7e146d0b3
fix(executor): use system ipset/nft commands and add linux integration tests
- replace fragile netlink writes in ipset/nftset executors with system commands - normalize response IPs to masked prefixes before writing - read response records via answers() instead of answer_ip_ttls() - add linux integration tests for real kernel object writes
diff --git a/Cargo.toml b/Cargo.toml index 1121ea70..45fa7551 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -57,9 +57,6 @@ service-manager = "0.11.0" hotpath = "0.14.0" -[target.'cfg(target_os = "linux")'.dependencies] -neli = "0.7.4" - [features] hotpath = ["hotpath/hotpath"] hotpath-alloc = ["hotpath/hotpath-al...
1
1
1
[{"id": "G0", "claim": "The new unit tests in src/plugin/executor/ipset.rs and src/plugin/executor/nftset.rs call helpers that are compiled only under #[cfg(target_os = \"linux\")], so on non-Linux hosts `cargo test` will fail to compile the test modules and cross-platform testability breaks; the tests should be gated ...
null
SwanHubX__SwanLab__1034
SwanHubX/SwanLab
1,034
defect
868c37e1d0206c55ddcb0f8ae2bddd58bc47ff50
81f68a546c648b19da30cfe09e36e85c42bd52a5
feat: leveldb
借鉴 W&B 的本地日志保存方案,使用 Google 的 LevelDB 协议保存持久化数据并实现完整性校验,防止数据损坏和篡改
diff --git a/swanlab/cli/commands/ sync/__init__.py b/swanlab/cli/commands/ sync/__init__.py new file mode 100644 index 000000000..b4b8a1799 --- /dev/null +++ b/swanlab/cli/commands/ sync/__init__.py @@ -0,0 +1,6 @@ +""" +@author: cunyue +@file: __init__.py +@time: 2025/6/5 14:03 +@description: 同步本地数据到云端 +""" diff --g...
6
1
0
[{"id": "G0", "claim": "The test functions take filename as a default argument, which may confuse pytest fixtures; define filename inside the test or use a fixture for clarity.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "test_write writes logs but ne...
null
SwanHubX__SwanLab__1191
SwanHubX/SwanLab
1,191
defect
e0b3ea7f27f89ae44d496df68dd7e924a3866e5a
89184766e60456286e4d968c9356725aa3ce777c
Fix/transformers eval
1. 修复多线程下由 tqdm 造成的奇怪句柄冲突问题,处理方式是 try-catch 后直接 pass,后续等 #1132 上线后加入此文件中 2. 修复 transformers 框架下的评测日志乱码问题 3. 改进 #1184 的测试脚本 4. 修复local环境下错误的 watch 目录提示 closes #1118
diff --git a/swanlab/data/porter/__init__.py b/swanlab/data/porter/__init__.py index 4cd140281..c6858b909 100644 --- a/swanlab/data/porter/__init__.py +++ b/swanlab/data/porter/__init__.py @@ -71,6 +71,10 @@ def wrapper(wrapped, instance, args, kwargs): # 写入备份文件失败,可能是因为没有开启备份模式或者备份文件未打开 ...
3
2
0
[{"id": "G0", "claim": "The regex \\x1b\\[?[0-9;]*[a-zA-Z]? makes the opening bracket optional and may not correctly match all ANSI escape sequences; the pattern \\x1b\\[[0-9;]*[a-zA-Z] should be used instead.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
SwanHubX__SwanLab__1204
SwanHubX/SwanLab
1,204
defect
ea588e4863ecb900e0a2d6c9e366661edcde0686
6d58156c8b3c179574bc248301e42d5bf7280138
fix: Host string parsing
## Description Replace `rstrip("api")` with an exact `"/api"` suffix removal to avoid stripping valid domain endings like `.ai`, `.app`, etc. `rstrip("api")` treats its argument as a character set and removes all trailing `a/p/i`, causing hosts such as `www.example.ai` to become `www.example.`. ~~The fix uses ...
diff --git a/swanlab/env.py b/swanlab/env.py index 9cb2b3af4..da02359fe 100644 --- a/swanlab/env.py +++ b/swanlab/env.py @@ -125,8 +125,9 @@ def set_default(cls): if os.path.exists(path): nrc = netrc.netrc(path) for host, info in nrc.hosts.items(): - web_host = info[0] ...
3
2
1
[{"id": "G0", "claim": "The tests in test/unit/test_package.py use hardcoded slicing host[:-4], which always removes the last 4 characters regardless of whether they are \"/api\", and should use remove_host_suffix(host, \"/api\") to match the actual implementation and avoid incorrect behavior when the host doesn't end ...
null
SwanHubX__SwanLab__1208
SwanHubX/SwanLab
1,208
defect
40f04ecc6a66ab838fbf908b3e8eeb9f799390b7
5dd50b3a6ee3eda4178afb5882d5b73669a72847
fix: sync resume folder
修复 sync 一个 resume 的 folder 会出现的列类型错误 现在的设计是 resume 时硬件监控不会开启,但是考虑到后续的更新,在backup file文件夹依旧保存了硬件监控相关的列信息 当 sync resume 的文件夹时就出现了列的类型错误,导致显示问题
diff --git a/swanlab/data/run/key.py b/swanlab/data/run/key.py index 8f0c2a0be..3b49f6edf 100644 --- a/swanlab/data/run/key.py +++ b/swanlab/data/run/key.py @@ -281,7 +281,15 @@ def mock_from_remote( f"Maybe you need to update swanlab: pip install -U swanlab" ) error =...
2
1
0
[{"id": "G0", "claim": "The comparison `chart.value == chart.ECHARTS.value` is redundant and unclear; consider using `chart == ChartType.ECHARTS` or `chart is ChartType.ECHARTS` instead for better readability and performance.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduce...
null
SwanHubX__SwanLab__1353
SwanHubX/SwanLab
1,353
defect
fa347a7944fce2ba7ba1c3ef8853f33310a23e5b
2e5d32ff90240d5d8c958dc7ace4f2ea72fa920c
Feat/logger
1. 支持`SWANLAB_LOG_LEVEL`环境变量设置swanlab打印日志等级 2. 取消202响应后自动停止上传的特性 3. 添加一些终端打印,包括:上传时遇见202、所有涉及后端的网络请求打印响应信息 for #1132
diff --git a/swanlab/core_python/client/__init__.py b/swanlab/core_python/client/__init__.py index 01bcc60b6..d28435fcb 100644 --- a/swanlab/core_python/client/__init__.py +++ b/swanlab/core_python/client/__init__.py @@ -176,6 +176,16 @@ def response_interceptor(response: requests.Response, *args, **kwargs): ...
7
6
2
[{"id": "G0", "claim": "The unit test no longer reflects current logic: it passes only because data is empty, not because of the removed pending-skip behaviour, and should be updated or removed.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "When the da...
null
SwanHubX__SwanLab__1375
SwanHubX/SwanLab
1,375
defect
59332e9c1143a4ab34c10a14aa47ddf4a3b21711
6151bcb64e865420e4bcec110958e987444865a4
Feature/s3
为了实现私有化后端对接多种对象存储,现将对象存储签名改为后端签名 同时优化了API部分的代码,为 #1369 做准备
diff --git a/requirements.txt b/requirements.txt index 0024f57f9..b7f8efda8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,8 +5,6 @@ click pyyaml psutil>=5.0.0 nvidia-ml-py -boto3>=1.35.49 -botocore pydantic~=2.0 pyecharts>=2.0.0 wrapt>=1.17.0 diff --git a/swanlab/core_python/__init__.py b/swanlab/cor...
9
7
7
[{"id": "G0", "claim": "When retrying failed buffers the retry loop lacks buffer.seek(0), so a retry may upload an empty or incomplete file because the file pointer is not at the start.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "future.result() ...
null
SwanHubX__SwanLab__1382
SwanHubX/SwanLab
1,382
defect
177cbc5302621d68cf95ebb3f0416e5bcc1996e3
7c41bf6d61b0b886f242c3d8a05787e77dc3bea0
feat: get all projects through OpenApi
## Description - 实现了openApi 的获取项目信息功能 - 尝试使用magicMock编写单元测试
diff --git a/swanlab/api/main.py b/swanlab/api/main.py index 5971a8103..2bfc25cb8 100644 --- a/swanlab/api/main.py +++ b/swanlab/api/main.py @@ -5,9 +5,12 @@ @description: OpenApi 模块 """ -from typing import Optional +from typing import Optional, List +from swanlab.api.model import Projects +from swanlab.api.types...
12
12
3
[{"id": "G0", "claim": "The docstring of get_entity_projects describes updating experiment status and marking the client pending instead of fetching a workspace's projects, and should be rewritten to match what the function does.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introdu...
null
SwanHubX__SwanLab__1396
SwanHubX/SwanLab
1,396
defect
54c46043acc6de41b04b51cb27430dfd3621df4d
cb8ecd57a9976e7eb9dd3244dd862842bd592194
feat: sync_tensorboard add `types` params
## Description 使用方式: ```python import swanlab swanlab.sync_tensorboardX() # 只同步标量数据(排除文本、图像等) swanlab.sync_tensorboardX(types=['scalar', 'scalars']) writer = SummaryWriter('runs/example') # 这些不会被同步(因为 types 过滤) writer.add_image('random_image', np.random.randint(0, 255, (3, 100, 100)), global_step=20) ...
diff --git a/.gitignore b/.gitignore index 88db07239..aa55cbb5b 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,9 @@ runs/ # test-integration-lightning LightningTest/ + +# claude +CLAUDE.md +AGENTS.md +FEATURE_SUMMARY.md +.claude/ \ No newline at end of file diff --git a/swanlab/sync/tensorboard.py b/swanlab/...
3
1
0
[{"id": "G0", "claim": "The new .gitignore entries (CLAUDE.md, AGENTS.md, FEATURE_SUMMARY.md, .claude/) are personal/tool-specific and should be removed from the project .gitignore in favour of a global gitignore.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": ...
null
SwanHubX__SwanLab__1400
SwanHubX/SwanLab
1,400
defect
55a93911a18c3a6d17d3f91c6f410a8a249f4145
c0e3d12865467b1535b417adb379a60d2ca7a3a4
Feat/timer
## Description 重构了定时器部分代码,现在封装了一个更通用的定时器类型,为 #1255 做准备
diff --git a/requirements-dev.txt b/requirements-dev.txt index 9147ddd37..4b77d7d4b 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,5 +1,6 @@ build pytest +pytest-mock nanoid omegaconf ipython diff --git a/swanlab/core_python/__init__.py b/swanlab/core_python/__init__.py index 40278c2b1..1cbabea...
1
1
0
[{"id": "G0", "claim": "The _run_lock in Timer appears unnecessary because _safe_execute is only called from _loop, which runs in a single dedicated background thread, so the lock provides no concurrency control and should be removed (its initialisation and the with statement) to simplify the code.", "category": "maint...
null
SwanHubX__SwanLab__1417
SwanHubX/SwanLab
1,417
defect
206afe56e20cce6df2f7b45991a1e174104df310
7f725a7520e8158e876bc02e6d0a9f47e2b96528
fix: able to modify adapter retry_times
## Description 自定义session的重试次数(在请求headers中添加重试信息,创建并传入adapter副本) 添加了1个相关单测 Closes: #1407
diff --git a/swanlab/core_python/client/session.py b/swanlab/core_python/client/session.py index 9bda123d6..e495c3839 100644 --- a/swanlab/core_python/client/session.py +++ b/swanlab/core_python/client/session.py @@ -5,12 +5,15 @@ @description: 创建会话 """ +import copy + import requests from requests.adapters import...
4
3
2
[{"id": "G0", "claim": "If the X-Custom-Retry header is present but its value is not a valid integer, int(_retry) raises an unhandled ValueError that fails the request; handle the invalid header robustly, e.g. by ignoring it and falling back to the default retry policy.", "category": "correctness", "verdict": "supporte...
null
SwanHubX__SwanLab__1420
SwanHubX/SwanLab
1,420
defect
6480312d97d5fac4a921def5fa192274b5f09471
95755afe3c50c18f9f36fe0d5c6ce02f02b990b2
feat: open api unit tests
## Description 给OpenApi中较为复杂的功能加上了单元测试,全部使用magicMock和patch模拟请求,包括: - run.history() 功能 - runs 中对分组后实验数据的展开功能 - projects 分页请求功能(找到bug并修改) - user 中权限和参数的校验
diff --git a/swanlab/api/projects/__init__.py b/swanlab/api/projects/__init__.py index ead54c51b..6a8ba1cfc 100644 --- a/swanlab/api/projects/__init__.py +++ b/swanlab/api/projects/__init__.py @@ -41,9 +41,10 @@ def __iter__(self) -> Iterator[Project]: # 按用户遍历情况获取项目信息 cur_page = 0 page_size =...
3
2
0
[{"id": "G0", "claim": "The x_axis test's assertion `result.index.name == 'accuracy' or result.index.name is None` weakens the test and could mask problems with set_index; use the stricter `assert result.index.name == 'accuracy'`.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}...
null
SwanHubX__SwanLab__1424
SwanHubX/SwanLab
1,424
defect
126e29c5506d90b2c93ffb5c96a22788a7d588d7
f326a6d885101b1f686ea42446c039056385faad
Opt open api code
## Description 优化OpenApi的代码: - 删除ApiBase类 - user类中添加属性is_self - 在api请求函数中判断api_keys和用户是否删除/创建成功 - 优化项目获取性能
diff --git a/swanlab/api/experiment/__init__.py b/swanlab/api/experiment/__init__.py index 0f5873ac2..e2a70978b 100644 --- a/swanlab/api/experiment/__init__.py +++ b/swanlab/api/experiment/__init__.py @@ -8,18 +8,18 @@ from typing import List, Dict, Any from swanlab.api.user import User -from swanlab.api.utils impo...
3
2
1
[{"id": "G0", "claim": "Passing `res.status_code` (an integer) to `check_created`/`check_deleted`, which expect a `requests.Response`, raises an `AttributeError` at runtime; the `res` object should be passed instead.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "...
null
SwanHubX__SwanLab__1425
SwanHubX/SwanLab
1,425
defect
fc07300b627af24b84170f632bd6f29c3294159f
20f8ecff786f72fbb537b78c4f2114f58e259896
check self hosted info using a wrapper instead of checking when init
## Description - 使用装饰器验证私有化部署信息,并仅在用户使用私有化相关功能时检查 - 更新了user相关的单测 - 解决了旧版OpenApi的list_workspaces的bug
diff --git a/swanlab/api/__init__.py b/swanlab/api/__init__.py index 0abd51a5b..0f6f2ff51 100644 --- a/swanlab/api/__init__.py +++ b/swanlab/api/__init__.py @@ -9,9 +9,7 @@ from swanlab.core_python import auth, Client from swanlab.core_python.api.experiment import get_single_experiment, get_project_experiments -fro...
3
3
3
[{"id": "G0", "claim": "The `create` method's return type annotation `bool` does not match its actual return value `None` when the `@self_hosted` decorator check fails, and should be `Optional[bool]`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "I...
null
SwanHubX__SwanLab__1435
SwanHubX/SwanLab
1,435
defect
dcc2f37d1412bcd7aec3d83ef8fb2e717b51b5b0
e4bbd57f8d78eeed81cd9f2b8e5233d60fad11e1
feat: treat empty run_id string as equivalent to None
## Description This PR updates the handling of the `id` parameter in `swanlab.init()` and the `SWANLAB_RUN_ID` environment variable to treat empty strings (`""`) as equivalent to `None`. ## 🎯 PRs Should Target Issues None
diff --git a/swanlab/data/sdk.py b/swanlab/data/sdk.py index 6947e1ecb..52fb20f96 100644 --- a/swanlab/data/sdk.py +++ b/swanlab/data/sdk.py @@ -303,6 +303,7 @@ def init( if mode in ["offline", "local"] and user_settings.backup is False: raise RuntimeError("You can't use offline or local mode with...
1
1
0
[{"id": "G0", "claim": "Replace `if run_id is None or run_id == \"\":` with the more concise, Pythonic `if not run_id:` for readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
SwanHubX__SwanLab__1438
SwanHubX/SwanLab
1,438
defect
620330dadf74be25ab8d50cabf2a15306b3afae2
333a6a63d7e029bf8828476568ee57513f91d4f5
feat: get all user when login as root user
## Description - 超级管理员可以获取所有用户 - 优化装饰器的身份校验 example code: ```python import swanlab if __name__ == '__main__': api = swanlab.Api() all_users = api.users() for user in all_users: print(user.json()) ```
diff --git a/swanlab/api/user/__init__.py b/swanlab/api/user/__init__.py index 587473b28..847149043 100644 --- a/swanlab/api/user/__init__.py +++ b/swanlab/api/user/__init__.py @@ -7,7 +7,7 @@ import re from functools import cached_property -from typing import List, Optional +from typing import List, Optional, Iter...
5
4
1
[{"id": "G0", "claim": "The is_self check is placed outside the if identity == 'root' block, so it runs for any action decorated with @self_hosted (not just root-level ones) and raises a root-specific error message, and 'is not True' is unidiomatic; refactor it inside the root-only check as suggested.", "category": "co...
null
SwanHubX__SwanLab__1439
SwanHubX/SwanLab
1,439
defect
620330dadf74be25ab8d50cabf2a15306b3afae2
ff6b49f2d77c993384a4f74ab258741006b545be
feat: get single project through openApi
## Description 获取单个项目信息 example code: ```python import swanlab if __name__ == '__main__': api = swanlab.Api() proj = api.project(path='bainiantest/echarts-test') print(proj.json()) ```
diff --git a/swanlab/api/__init__.py b/swanlab/api/__init__.py index 02ce044b3..26bf6cb42 100644 --- a/swanlab/api/__init__.py +++ b/swanlab/api/__init__.py @@ -15,6 +15,7 @@ from .deprecated import OpenApi from .experiment import Experiment from .experiments import Experiments +from .project import Project from .p...
5
3
1
[{"id": "G0", "claim": "The `get_project_info` return type annotation `ProjResponseType` is wrong — it should be `ProjectType`, the single-project type that `Project.__init__` expects — and the implementation would be cleaner unpacking the tuple returned by `client.get`.", "category": "correctness", "verdict": "support...
null
SwanHubX__SwanLab__1470
SwanHubX/SwanLab
1,470
defect
ea9a10fb08132920dac443b42099edffbcb7d1eb
2140bb7d9cd0dc1b670e119f4ad6875373e59bbb
refactor SDK API, add cmd entrypoints and context
1. 将公共SDK命令移至swanlab.sdk.cmd并简化顶层导出:init、finish、merge_settings和Settings现从新cmd模块重新导出;移除SwanLabRun导出项。新增具体命令模块(init、finish、login、merge_settings)及小型cmd包。 2. 引入基于contextvars的运行时上下文实现(RunConfig/RunContext/RunMetrics),用于存储运行状态和指标数据。为核心Python客户端和运行控制台代理模块添加占位实现。 3. 增强Settings功能:新增模式验证器(接受'online'映射为'cloud',校验允许模式),修改save_di...
diff --git a/swanlab/__init__.py b/swanlab/__init__.py index 605b4eb7c..61a719918 100644 --- a/swanlab/__init__.py +++ b/swanlab/__init__.py @@ -1,9 +1,8 @@ -from swanlab.sdk import Settings, SwanLabRun, finish, init, merge_settings +from swanlab.sdk import Settings, finish, init, merge_settings __all__ = [ "me...
1
1
0
[{"id": "G0", "claim": "The block merging init's parameters should be refactored from many repeated set_nested_value calls into a dict mapping iterated with a loop, to reduce duplication and improve readability and maintainability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "int...
null
SwanHubX__SwanLab__1473
SwanHubX/SwanLab
1,473
defect
208f929e4c1f71bca50261ed222b72ec76ef9605
00ffa35e07532fb2d7d56e2f66bfa3a754bd6dc7
feat: support overwrite metric
## Description - support metric overwrite (newer metric data with higher priority)(SDK) - house needs to retrieve the latest value by timestamp for the same expid-metric-key - 🐞 Fix: step auto increment,the next step should depend on the max_step in `steps` rather than the lens of `steps` arr, demo link: https...
diff --git a/swanlab/data/run/exp.py b/swanlab/data/run/exp.py index cc21d4df3..0af18667b 100644 --- a/swanlab/data/run/exp.py +++ b/swanlab/data/run/exp.py @@ -133,8 +133,12 @@ def _add( else: step = len(key_obj.steps) if step is None else step if step in key_obj.steps: - ...
1
1
1
[{"id": "G0", "claim": "Overwriting in resume mode triggers whenever the computed step collides, even when the user did not explicitly provide that step (e.g. an implicit step equal to len(key_obj.steps) that already exists gets overwritten), which can lead to unintentional data loss; overwrite should happen only in re...
null
SwanHubX__SwanLab__1479
SwanHubX/SwanLab
1,479
defect
f9bca2b2a65ba28b61028126dd3b53f53a55e871
ad1aa450fb41b8bd27138a23b1f45135c15cae56
feat: add internal diagnostic log & console/file logging
引入一个新的内部诊断日志模块(swanlab.sdk.internal.pkg.log),该模块具有内存缓冲启动功能、RotatingFileHandler绑定(bindfile)以及重置语义。 将控制台与诊断日志集成(当启用SWANLAB_DEBUG时,控制台输出将同步记录到日志中),并调整导入以使用internal.pkg.console。 增强核心客户端会话功能,以记录HTTP请求时间、跟踪ID,并通过新日志模块写入调试/错误诊断信息。新增针对日志生命周期和bindfile行为的单元测试,并更新测试配置(conftest),确保在测试间重置诊断日志记录器和客户端。 对于 SWANLAB_DEBUG 的效果如下...
diff --git a/swanlab/sdk/cmd/login.py b/swanlab/sdk/cmd/login.py index 77ab5f802..e1020edab 100644 --- a/swanlab/sdk/cmd/login.py +++ b/swanlab/sdk/cmd/login.py @@ -12,9 +12,10 @@ from swanlab.sdk.internal import apikey from swanlab.sdk.internal.context import RunConfig, RunContext, get_context, has_context, use_temp...
4
1
1
[{"id": "G0", "claim": "When SWANLAB_DEBUG is enabled, the SDK writes full HTTP request and response headers (including Set-Cookie session tokens and potential API keys) and full request/response bodies to the diagnostic log file in plain text, so sensitive headers and bodies should be sanitized before logging.", "cate...
null
SwanHubX__SwanLab__1482
SwanHubX/SwanLab
1,482
defect
745dce7e5e4459a71fd9512b2bae692287946f8d
94499beb504736241f907015e7d744738fc7f6d1
feat: add vendor lazy-loader, storage settings
## Description 添加提供商懒加载和save的s3协议参数,后者主要为未来功能做准备 懒加载的背景是,在之前的开发中有很多按需倒入的包,每次使用`try...catch`首先比较容易出错,其次无法统一管理报错信息,因此增加了这一特性 同时添加了boto3和botocore的依赖项 此外还修复了一些测试问题 最后更新了issue模版
diff --git a/.github/ISSUE_TEMPLATE/01_bug_report.yml b/.github/ISSUE_TEMPLATE/01_bug_report.yml index 05cb91eda..d2d809ba8 100644 --- a/.github/ISSUE_TEMPLATE/01_bug_report.yml +++ b/.github/ISSUE_TEMPLATE/01_bug_report.yml @@ -3,6 +3,7 @@ description: 创建 Bug 报告 labels: - 🐛 bug - 🤔 unconfirmed +type: bug bod...
5
5
2
[{"id": "G0", "claim": "The endpoint validator strips an http:// or https:// prefix without updating the use_ssl field, so if a user provides an http:// endpoint, use_ssl still keeps its default True, which will likely cause connection failure or unexpected behavior; it suggests using a @model_validator to set use_ssl ...
null
SwanHubX__SwanLab__1485
SwanHubX/SwanLab
1,485
defect
8bf826d61dcc6970ed90786971499896fe91740e
1181ed40e37826d05cb0543348c0280f4ba79f1b
Feat/webhook
此 Pull Request 为 SwanLab SDK 的初始化过程引入了 webhook 回调机制,允许在 run 初始化时(disabled 模式除外)通知外部系统。它添加了可通过环境变量配置的 webhook 设置、发送 webhook 请求的稳健实现,以及确保在不同模式下行为正确的全面单元测试。同时,为了提高清晰度和关注点分离,对初始化逻辑进行了重构。 **Webhook 集成与设置:** * 在 `swanlab/sdk/cmd/init.py` 中添加了 `send_webhook` 函数,该函数在初始化期间向配置的 webhook URL 发送包含 run 和环境详情的 POST 请求(disabled ...
diff --git a/swanlab/sdk/cmd/init.py b/swanlab/sdk/cmd/init.py index 797337ca0..166f257d0 100644 --- a/swanlab/sdk/cmd/init.py +++ b/swanlab/sdk/cmd/init.py @@ -14,6 +14,7 @@ from pathlib import Path from typing import Any, Dict, List, Optional, Tuple, Union +import requests import yaml from swanlab.sdk.interna...
2
1
1
[{"id": "G0", "claim": "The @helper.catch_and_return_none() decorator on send_webhook silently swallows all exceptions, so a webhook POST that fails (network, timeout, misconfiguration) goes unnoticed; the reviewer asks to remove the decorator and wrap requests.post in try/except to log a warning on requests.RequestExc...
null
SwanHubX__SwanLab__1491
SwanHubX/SwanLab
1,491
defect
b083cdb9172dfafad424c464cffb0ef403d7b3c7
6970ad90798a98cd65f60f5d6aaeac01b9159f43
feat: add parallel run support and update run_id validation
1. 放宽run id限制 2. 新增swanlab.init(parallel="shared")和配套"SWANLAB_RUN_PAPALLEL"环境变量,为`shared`模式定制,目前此模式等等价于`mode='cloud' and resume='allow'` closes: #1441
diff --git a/swanlab/core_python/client/__init__.py b/swanlab/core_python/client/__init__.py index a0e20182f..8f69b6116 100644 --- a/swanlab/core_python/client/__init__.py +++ b/swanlab/core_python/client/__init__.py @@ -113,7 +113,7 @@ def web_proj_url(self) -> str: @property def web_exp_url(self) -> str: ...
2
2
0
[{"id": "G0", "claim": "The `parallel` parameter's type hint `Literal['none', 'shared']` does not match the implementation, which also handles booleans and strings like 'true'/'yes'; it should be changed to `Union[Literal['none', 'shared'], bool]` like `resume`.", "category": "documentation", "verdict": "supported", "p...
null
SwanHubX__SwanLab__1504
SwanHubX/SwanLab
1,504
defect
8ef2a431319084d7d407c3047dfce7c419c9b40b
a53a6d1e8ea6b25fae28053d0bd676490a981f70
fix: add SIGINT signal handler for reliable Ctrl+C experiment abort
## Summary - Register a `signal.SIGINT` handler alongside the existing `sys.excepthook` to reliably detect Ctrl+C - `sys.excepthook` alone fails when the main thread is blocked in C extensions (NumPy, PyTorch, etc.), causing experiments to miss the "aborted" state - The SIGINT handler calls `finish(state="aborted")`, ...
diff --git a/swanlab/sdk/internal/run/__init__.py b/swanlab/sdk/internal/run/__init__.py index 2ca12d481..17d8e457c 100644 --- a/swanlab/sdk/internal/run/__init__.py +++ b/swanlab/sdk/internal/run/__init__.py @@ -9,6 +9,7 @@ """ import atexit +import signal import sys import threading import traceback @@ -145,6 ...
1
1
1
[{"id": "G0", "claim": "The SIGINT handler should do nothing when the original handler was SIG_IGN instead of raising KeyboardInterrupt, and the redundant non-callable check alongside callable(...) should be simplified.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
SwanHubX__SwanLab__1506
SwanHubX/SwanLab
1,506
defect
06bddce81d2c3a5aa084af4887d0f98527ece992
1207478879ba3ffc7d81646be6747dab7d8fe2f1
Feat/run
Background 本次 PR 对 swanlab.log_* 系列 API 进行了系统性整理,主要解决三个方面的问题:参数设计不一致、类型标注分散且...
diff --git a/swanlab/__init__.py b/swanlab/__init__.py index bb8202a6c..f48452925 100644 --- a/swanlab/__init__.py +++ b/swanlab/__init__.py @@ -20,6 +20,8 @@ from . import utils +__version__ = get_swanlab_version() + __all__ = [ # cmd "merge_settings", @@ -34,6 +36,7 @@ "log_video", "define_s...
1
1
1
[{"id": "G0", "claim": "The relative imports `from ...typings.run.transforms.{audio,image,video} import ...` resolve to `swanlab.typings.*`, which does not exist because typings lives under `swanlab/sdk/`, so the module will not be found; absolute imports consistent with the file's other imports should be used instead....
null
SwanHubX__SwanLab__1514
SwanHubX/SwanLab
1,514
defect
5b6a7560d0b5b69b2a1ec7f15346811886c31bfc
c6ea475f81c51bde583542854d5837ebaf3b9a32
fix/exp field patch
# ⚠️ Patching - `slug` 属于自定义实验 ID 保留的字段,公有云环境已更新,私有化部署环境中请确保一定在 `helm` 更新后再升发版 sdk
diff --git a/swanlab/core_python/client/utils.py b/swanlab/core_python/client/utils.py index 2d615bca1..3b9cbfcd5 100644 --- a/swanlab/core_python/client/utils.py +++ b/swanlab/core_python/client/utils.py @@ -84,8 +84,8 @@ def cuid(self): return self.__data["cuid"] @property - def slug(self): - ...
1
1
0
[{"id": "G0", "claim": "The new unit test only covers the slug-missing fallback path; refactor it (e.g. with pytest.mark.parametrize) so it also covers the case where slug exists.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
SwanHubX__SwanLab__1538
SwanHubX/SwanLab
1,538
defect
7ce710471998b20dde0ca5d25d3c498d7a37a8fb
c13c73c6c980fabcfff2f342f92316dca35bfc7c
feat: detect and handle forked child processes in Run
添加SwanLab对多进程fork的支持,由于现在swanlab为纯python实现,所以对fork进程的处理为拦截处理,要求重新执行`swanlab.init`,值得注意的是,不需要增加`reinit`参数。 通过合并`with_run`和`with_lock`,然后统一处理fork 检测(替换锁 + 抛异常)、存活检查、线程安全锁,来解决fork问题 此外,为了避免fork特性导致的线程锁死锁问题,删除了一些没有必要的锁,仅保留run api和cmd api的线程锁设计 未来实现了swanlab-core后,可以改为多个进程共用一个core服务端,不再需要重新`init`了。 顺便更改了一下一些钩子函数名...
diff --git a/swanlab/sdk/internal/run/__init__.py b/swanlab/sdk/internal/run/__init__.py index 23d99d618..d75839045 100644 --- a/swanlab/sdk/internal/run/__init__.py +++ b/swanlab/sdk/internal/run/__init__.py @@ -9,6 +9,7 @@ """ import atexit +import os import signal import sys import threading @@ -81,6 +82,11 @...
5
3
2
[{"id": "G0", "claim": "In a forked child the inherited _api_lock can be held by a parent thread that no longer exists, so any API that acquires the lock before the fork check deadlocks; the fork check must run before any lock acquisition (and for finish, the alive check must precede lock acquisition).", "category": "c...
null
SwanHubX__SwanLab__1539
SwanHubX/SwanLab
1,539
defect
cbfc0500c137bb94ffcf5ccba0dca29c5e2229c4
7071e87776554febe450cec9dfeb372519b5b01f
feat: add AsyncTaskManager and async_log type/stub
## Summary - 新增 swanlab.async_log() 异步日志接口:将耗时函数提交到后台执行,返回值自动通过 log() 写入,调用方立即获得 Future 不被阻塞 - finish() 等待所有 async_log 任务完成后再关闭,保证数据不丢失 - 支持四种执行模式:asyncio(协程)、threading(默认,线程池)、spawn(进程池,绕过 GIL)、fork(预留) - 新增 AsyncTaskManager 异步任务管理器,线程池/进程池懒初始化,handles 自清理 ## Key design - 回调时序:CPython Future....
diff --git a/swanlab/__init__.py b/swanlab/__init__.py index 6dd71251e..5eb65ad80 100644 --- a/swanlab/__init__.py +++ b/swanlab/__init__.py @@ -1,6 +1,7 @@ from swanlab.sdk import ( Run, Settings, + async_log, config, define_scalar, finish, @@ -35,6 +36,7 @@ "log_audio", "log_vid...
4
4
3
[{"id": "G0", "claim": "finish() will deadlock if async_log tasks are pending: it holds the reentrant _api_lock while shutdown() waits for callbacks that call self.log(), which needs the same lock from a different thread; refactor to release the lock while waiting or provide an internal logging method that bypasses the...
null
SwanHubX__SwanLab__1553
SwanHubX/SwanLab
1,553
defect
6cce294a4b7f20e1098f99b8e131005be1ebb9e7
98ad87c18ef046d8e115a6586d898359b7088ad8
feat: add retry limit for creating unique run dir
## Summary - 为 `ensure_run_dir` 添加 `max_retries` 参数,替代原来的无限重试循环,防止在极端情况下无限阻塞 - 超过最大重试次数后抛出 `RuntimeError`,明确错误原因 - 在 `RunSettings` 中新增 `mkdir_retries` 配置项(默认 10 次),支持用户自定义 - 新增测试用例验证超限重试时的异常抛出 ## Test plan - [x] 运行 `pytest tests/unit/sdk/cmd/init/test_init_helper.py` 确认新增测试通过 - [x] 验证默认重试次数(10次)在正常场景下不会触发异常 - [x] 验证...
diff --git a/swanlab/sdk/cmd/init.py b/swanlab/sdk/cmd/init.py index f328d3c2c..42d2f6972 100644 --- a/swanlab/sdk/cmd/init.py +++ b/swanlab/sdk/cmd/init.py @@ -410,26 +410,28 @@ def send_webhook(ctx: RunContext) -> Tuple[bool, bool]: return True, True -def ensure_run_dir(log_dir: Path, run_id: str, retry_inte...
4
1
0
[{"id": "G0", "claim": "The default retry_interval lowered from 1.0s to 0.5s means consecutive retries may generate the same directory name because _generate_run_dir_name's timestamp has second precision (%H%M%S), making retry attempts within the same second invalid; the default should be restored to 1.0s.", "category"...
null
SwanHubX__SwanLab__1555
SwanHubX/SwanLab
1,555
defect
1987b21ef7eef0b3132824bb08da5f21529f9b0c
4090517bac1cd664d798d6e56e38c180ecdc6aff
refactor: CoreProtocol mode dispatch and CorePython lifecycle
## Summary - **CoreProtocol 模式分派机制**:将 `deliver_run_start`/`publish`/`deliver_run_finish` 从 `@abstractmethod` 重构为模板方法,内置 cloud/local/offline/disabled 四模式分派,每种模式对应独立钩子(`_start_when_cloud`、`_publish_when_local` 等),disabled 提供默认 no-op 实现 - **移除 NullCore**:所有模式统一走 CorePython,`create_core` 工厂不再为 disabled 模式创建 NullCore - **...
diff --git a/swanlab/sdk/cmd/init.py b/swanlab/sdk/cmd/init.py index 42d2f6972..051f1565a 100644 --- a/swanlab/sdk/cmd/init.py +++ b/swanlab/sdk/cmd/init.py @@ -410,7 +410,7 @@ def send_webhook(ctx: RunContext) -> Tuple[bool, bool]: return True, True -def ensure_run_dir(log_dir: Path, run_id: str, max_retries:...
2
2
2
[{"id": "G0", "claim": "The `_started` flag is set to True even when the underlying `deliver_run_start` call returns a failed response, leaving the core marked as started with its components uninitialized; the reviewer asks that `_started` be set only on success.", "category": "correctness", "verdict": "supported", "pr...
null
SwanHubX__SwanLab__1556
SwanHubX/SwanLab
1,556
defect
50ce6ab9dfa693cae878981f5ed77a40f05b0615
adfc3882123e45cad4540f895678ba65b7e02413
chore: console log lifecycle refactor and test improvements
## Summary - **console log 生命周期重构**:`bindfile()`/`reset()` → `init(bind_to)`/`reset()`,`init(bind_to=None)` 时移除 MemoryHandler 禁用日志持久化,修复 disabled 模式下日志无限缓冲导致的内存泄漏 - **log 模块封装**:`init`/`reset` 通过 console 公开 API 暴露,外部不再直接访问 log 子模块 - **fork 测试 DeprecationWarning 修复**:Python 3.12+ 多线程进程中 fork 触发的警告已在测试中显式抑制并注释说明 - **fac...
diff --git a/swanlab/sdk/internal/pkg/console/__init__.py b/swanlab/sdk/internal/pkg/console/__init__.py index c901a7eea..3e976d98f 100644 --- a/swanlab/sdk/internal/pkg/console/__init__.py +++ b/swanlab/sdk/internal/pkg/console/__init__.py @@ -18,7 +18,7 @@ from .. import helper from . import log -__all__ = ["debu...
1
1
1
[{"id": "G0", "claim": "Set `_initialized = True` only after the initialization logic has successfully completed in both branches (disabled mode and file binding), because setting it at the top of `init` marks the module initialized even when setup raises (e.g. FileNotFoundError), so later calls return early and can ne...
null
SwanHubX__SwanLab__671
SwanHubX/SwanLab
671
defect
36701be5d6277384bee9ec69565e8627fd6df39e
f6d8a18e9b5c275883ca9fa05887406f45f018ec
bugfix/config_json_serializable
问题发现:在运行fastai测试脚本时,config报错,原因是框架的配置dict中带了很多函数和类。 修复:将`json_serializable`函数从与列出的类型不匹配就raise错误,改为返回str(obj),若仍出错就rasie TypeError。
diff --git a/swanlab/data/run/config.py b/swanlab/data/run/config.py index 772781fb1..927aaae8b 100644 --- a/swanlab/data/run/config.py +++ b/swanlab/data/run/config.py @@ -50,7 +50,11 @@ def json_serializable(obj): # 对于可变映射,递归调用此函数处理值,并将key转换为字典 elif isinstance(obj, MutableMapping): return {str(key)...
1
1
1
[{"id": "G0", "claim": "Returning str(obj) is not acceptable because the config should be a dict, so json_serializable should not fall back to returning a bare string for non-mapping objects.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
SwanHubX__SwanLab__903
SwanHubX/SwanLab
903
defect
21e60e44e8b1fabb708002ae7f079c19090453fd
5895bad734dc410805dd4b808ccda14a1f9c848c
feat: swanlab.Settings -- A Global Feature Switch Management Module
## Description Closes: #883 This pull request implements a global settings manager for SwanLab. The feature provides a centralized way to manage and control global settings throughout the SwanLab environment using Pydantic for robust type validation and immutable configuration. Key features: - Immutable `Setti...
diff --git a/swanlab/__init__.py b/swanlab/__init__.py index db9bb332a..ae223df59 100755 --- a/swanlab/__init__.py +++ b/swanlab/__init__.py @@ -15,10 +15,13 @@ config, get_url, get_project_url, + merge_settings, + get_settings, ) from .env import SwanLabEnv from .package import get_package_vers...
3
3
0
[{"id": "G0", "claim": "merge_settings() should merge the two pydantic models the way the reviewer's merge_models example does, via model_dump and model_validate, instead of manually copying fields with getattr loops.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",...
null
SwanHubX__SwanLab__914
SwanHubX/SwanLab
914
defect
5f23e852ad18c6a4c00d33f16b93a9735c070df3
5fa347737bba01189153b2df5e4159a1f804189c
refactor: settings
该拉取请求包含多项改进,旨在优化`swanlab`项目中的运行时信息处理、日志记录和设置管理功能。主要变更涉及新增conda环境信息收集支持、重构导入逻辑,以及更新设置管理机制以提升灵活性和可控性。 ### 运行时信息收集增强: * [`swanlab/data/callbacker/cloud.py`](diffhunk://#diff-733d6742a0ed52a329f3872a2f17de48637ce80a1af7f2a7a41a975d1d858972R148-R150):通过将`r.conda.info`纳入运行时信息更新,新增conda环境信息收集功能 * [`swanlab/data/run/main....
diff --git a/swanlab/data/callbacker/cloud.py b/swanlab/data/callbacker/cloud.py index ebc6b89b2..a33af79b0 100644 --- a/swanlab/data/callbacker/cloud.py +++ b/swanlab/data/callbacker/cloud.py @@ -145,8 +145,9 @@ def on_runtime_info_update(self, r: RuntimeInfo, *args, **kwargs): rc = r.config.to_dict() if r.co...
1
1
1
[{"id": "G0", "claim": "Iterating directly over Settings() in filter_changed_fields may not yield (field_name, default_value) pairs as expected; the loop should reliably obtain default values, e.g. via model_fields.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
SwanHubX__SwanLab__966
SwanHubX/SwanLab
966
defect
4f12c4fd3d98934937c7e219b893b2b5143dfb97
72545047b19c2d1c6f809b6c9bc8ec5abe94da4b
feat(openapi): list projects
## 获取1个workspace下的project列表 - API 文档:https://github.com/SwanHubX/SwanLab-Server/blob/main/docs/api/project.md#%E5%88%97%E5%87%BA%E7%BB%84%E7%BB%87%E6%89%80%E6%9C%89%E9%A1%B9%E7%9B%AE ## 请求与响应: ``` 列出一个 workspace 下的所有项目 Args: username (str): 工作空间名, 默认为用户个人空间 detail (bool): 是否包含项目下实验的相关信息,默认为 True ...
diff --git a/swanlab/api/openapi/main.py b/swanlab/api/openapi/main.py index 8fcced40b..84e55f685 100644 --- a/swanlab/api/openapi/main.py +++ b/swanlab/api/openapi/main.py @@ -125,3 +125,45 @@ def get_experiment(self, project: str, exp_cuid: str, username: Optional[str] = username = username if username else ...
1
1
0
[{"id": "G0", "claim": "The pagination loop re-fetches page 1 even though the initial API call already retrieves its data; the first call's data should be used for page 1 and iteration should start from page 2 to avoid duplicate API calls.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": ...
null
SwanHubX__SwanLab__967
SwanHubX/SwanLab
967
defect
29c2c9218387ff29331a9c83565eeceabd3573a3
1ba95fd42a29f0a6c4baf1ee01a3083cceb0beca
feat(openapi): types
## Description 为 OpenApi 某些复杂响应添加类型约束, 取代原先的长篇注释, 对IDE提示更友好 现: ```python from swanlab.api.openapi.types import Experiment, ApiErrorResponse def get_project_exps( self, project: str, page: int = 1, size: int = 10, username: Optional[str] =...
diff --git a/swanlab/api/openapi/base.py b/swanlab/api/openapi/base.py index ee486bbe6..9bb8b75ef 100644 --- a/swanlab/api/openapi/base.py +++ b/swanlab/api/openapi/base.py @@ -7,6 +7,7 @@ @Description: SwanLab OpenAPI API基类 """ + from functools import wraps from swanlab.api import LoginInfo diff --git a/swa...
1
1
1
[{"id": "G0", "claim": "Responses should be uniformly wrapped in a single ApiResponse type carrying Code, Message and Data instead of a Union with ApiErrorResponse, so both success and failure responses align with the API documentation.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introdu...
null
SwanHubX__SwanLab__980
SwanHubX/SwanLab
980
defect
eb410a8797c54bc3495f9926cddc1b2b20db8684
8f7c59faff162ace4d6777b699e7e5e9e9914108
feat: get_requirements support pixi
## Description get_requirements依赖包信息采集支持[Pixi](https://pixi.sh/),一个结合了Conda和UV的包管理工具。
diff --git a/swanlab/data/run/metadata/requirements.py b/swanlab/data/run/metadata/requirements.py index ebfe64b20..38b757fb4 100644 --- a/swanlab/data/run/metadata/requirements.py +++ b/swanlab/data/run/metadata/requirements.py @@ -10,17 +10,20 @@ def get_requirements(): """获取当前环境依赖""" - try: - # 运行u...
1
1
1
[{"id": "G0", "claim": "On machines where the pixi command does not exist, subprocess.run raises FileNotFoundError, so the unguarded pixi call in get_requirements crashes; the reviewer suggests wrapping it with `except FileNotFoundError:` to be safe.", "category": "correctness", "verdict": "supported", "priority": "P1"...
null
Swati4star__Images-to-PDF__1007
Swati4star/Images-to-PDF
1,007
defect
c1481c2170f1ea4f62d36f058cf5d20feb8f32ff
0d37361399e20434d0782cfc523eddf68320f53c
Storage access issue resolved for all android versions (Including Android 10 and 11 +)
### _Since this app can be considered as [Document Management app](https://support.google.com/googleplay/android-developer/answer/10467955?hl=en#:~:text=the%20device%20user-,Document%20management%20apps,file%20types%20outside%20of%20its%20app-specific%20or%20shared%20storage,-App%20must%20justify) . It comes under the ...
diff --git a/app/src/main/java/swati4star/createpdf/activity/CropImageActivity.java b/app/src/main/java/swati4star/createpdf/activity/CropImageActivity.java index c5139bcdd..dae36f645 100644 --- a/app/src/main/java/swati4star/createpdf/activity/CropImageActivity.java +++ b/app/src/main/java/swati4star/createpdf/activit...
6
6
1
[{"id": "G0", "claim": "The storage-access approach still fails on Android 10/11: writing via FileOutputStream(\"path_of_selected_file\") and reading selected files (PdfReader/FileReader) throw 'open failed: EPERM (Operation not permitted)' / EACCES even though ACTION_OPEN_DOCUMENT_TREE should grant access, so issue #1...
null
Swati4star__Images-to-PDF__620
Swati4star/Images-to-PDF
620
defect
64b1cfeaccacc8a46f663b2db2b667a4dd2832f4
31ed8f5418e46c276ea7b27899e7c2f1877b57b3
Added unit test for calculate fit size
# Description Added unit test for calculate fit size. Fixes #598 ## Type of change Just put an x in the [] which are valid. - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) # How Has This Been Tested? Please describe the tests that ...
diff --git a/app/src/main/java/swati4star/createpdf/util/ImageUtils.java b/app/src/main/java/swati4star/createpdf/util/ImageUtils.java index 1b2314ae7..d6efd55e3 100644 --- a/app/src/main/java/swati4star/createpdf/util/ImageUtils.java +++ b/app/src/main/java/swati4star/createpdf/util/ImageUtils.java @@ -34,12 +34,12 @@...
5
3
3
[{"id": "G0", "claim": "Add test cases for negative points, invalid length (length < 0), rectangle being a point, and rectangle being a line.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The tests only call calculateFitSize and never compare the resul...
null
Swati4star__Images-to-PDF__862
Swati4star/Images-to-PDF
862
defect
978ad0f164aa5565bba5498ae52089b6b20be01f
f077a176d2c9e95449d293052f0f1cbc554e7d0c
Singleton design ptn
# Description Implemented bill pug singleton design pattern for ResullUtils and StringUtils and respective files where they are implemented. Removed unused imports. Removed unused methods. Fixes #(issue) #830 ## Type of change Just put an x in the [] which are valid. - [ ] Bug fix (non-breaking change wh...
diff --git a/app/src/androidTest/java/swati4star/createpdf/util/DirectoryUtilsTest.java b/app/src/androidTest/java/swati4star/createpdf/util/DirectoryUtilsTest.java index 2f5beb1c6..ad059bcd3 100644 --- a/app/src/androidTest/java/swati4star/createpdf/util/DirectoryUtilsTest.java +++ b/app/src/androidTest/java/swati4sta...
3
3
1
[{"id": "G0", "claim": "Add a space after `()` in the new private ResultUtils constructor.", "category": "style", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a space after `()` in the new private StringUtils constructor, which otherwise will cause checkstyle to fail.", "...
null
Swati4star__Images-to-PDF__959
Swati4star/Images-to-PDF
959
defect
368f274ca65229a6d18413150f7d1b7bcf985f3c
2042004187da08e2eaace3dec593697e88a298df
Remove unused files
# Description There was some unused code/files that nobody needs ## Type of change Just put an x in the [] which are valid. - [x] Code cleanup (non-breaking change which makes working with the code easier or similar) - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking chan...
diff --git a/app/src/main/java/swati4star/createpdf/util/CreatePdf.java b/app/src/main/java/swati4star/createpdf/util/CreatePdf.java index 687b04f5f..bf021952e 100644 --- a/app/src/main/java/swati4star/createpdf/util/CreatePdf.java +++ b/app/src/main/java/swati4star/createpdf/util/CreatePdf.java @@ -1,7 +1,5 @@ packag...
1
1
1
[{"id": "G0", "claim": "The removal of the bitmap-decoding block (bmOptions/bitmap and the stage log line) in CreatePdf.java should be reverted — the maintainer questions whether that section is really unneeded, recalling functionality issues after removing it, and asks to leave it as is while endorsing the removal of ...
null
Swatinem__rollup-plugin-dts__126
Swatinem/rollup-plugin-dts
126
defect
cdd64c7ed152e8d56c073e470b108d22a8c10e52
2465719d57f7c9cb75f75170e226691fa037faf0
test: link to externals outside node_modules
In this test, the `node_modules/d3-drag` path is linked to `../../d3-drag` (which is a local package, not from node_modules). This setup mimics a monorepo, where dependencies often point to local packages. The local `d3-drag` package contains an `index.d.ts` module. This test fails with `Unexpected token` erro...
diff --git a/.gitignore b/.gitignore index dd21b94e..f30addfc 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,5 @@ .nyc_output coverage dist -node_modules +/node_modules .build diff --git a/src/index.ts b/src/index.ts index bf14a013..95a3e305 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,9 +1,10 @@ +import...
3
2
0
[{"id": "G0", "claim": "Use ts.sys.fileExists(fileName) instead of fs.existsSync(fileName) in getModule, so the fs import can be dropped since the file already uses ts.sys.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test metadata should ...
null
Swatinem__rollup-plugin-dts__348
Swatinem/rollup-plugin-dts
348
defect
d03ed24eda63d09a0aa78f0cd17a2cf7c069b4de
13138903eaff809bf784ac432e1bf76357d688e0
fix: Preserve imports for types used in typeof generic
## Problem When using typeof expressions with generic type parameters from external imports, the plugin incorrectly removed the import statements for those types. ### Example: ``` ts // Input import { Test } from './models'; import { test } from './test'; export const b: ReturnType<typeof test<Test>> = te...
diff --git a/src/transform/DeclarationScope.ts b/src/transform/DeclarationScope.ts index 566ed6c2..7bb1f02f 100644 --- a/src/transform/DeclarationScope.ts +++ b/src/transform/DeclarationScope.ts @@ -39,6 +39,7 @@ export class DeclarationScope { declaration: ESTree.FunctionDeclaration; iife?: ESTree.ExpressionStat...
2
1
0
[{"id": "G0", "claim": "The test should work on .d.ts files and bundle them, because tests that transform .ts files are considerably slower as they run the whole typescript compiler to emit intermediate .d.ts declarations.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"...
null
SylphAI-Inc__AdalFlow__165
SylphAI-Inc/AdalFlow
165
defect
bfa002e19b59e2091a7ff5bedd2d05f8ced3ecfb
e85034968989fd63901ef5066e049edf2411069b
feat: Qdrant Retriever
## Description Adds support for retrieving documents from Qdrant - https://qdrant.tech collections with vector search. Dependencies are optional.
diff --git a/adalflow/adalflow/components/retriever/__init__.py b/adalflow/adalflow/components/retriever/__init__.py index fbed2bd4e..2d2496042 100644 --- a/adalflow/adalflow/components/retriever/__init__.py +++ b/adalflow/adalflow/components/retriever/__init__.py @@ -22,12 +22,18 @@ OptionalPackages.SQLALCHEMY, ...
2
2
2
[{"id": "G0", "claim": "The new module's import paths (lightrag.*) need to be changed to the renamed package (adalflow.*) before merge.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Tests should be added in tests/test_qdrant_retriever.py for the ne...
null
SylphAI-Inc__AdalFlow__327
SylphAI-Inc/AdalFlow
327
defect
f2abc34c046cfeba8648a2e1ff7f71f94d388f7f
78dee41731deb44a7a90cd8e55185226acf051e8
Add deepseek r1 client for integration
## What does this PR do? This PR integrates deepseekR1 client into Adalflow by calling their API. It supports sync_call and not async_call at the moment. <!-- Does your PR introduce any breaking changes? If yes, please list them. --> <details> <summary><b>Before submitting</b></summary> - Was this **dis...
diff --git a/adalflow/adalflow/__init__.py b/adalflow/adalflow/__init__.py index bc20655fb..75f26ffad 100644 --- a/adalflow/adalflow/__init__.py +++ b/adalflow/adalflow/__init__.py @@ -61,6 +61,7 @@ AnthropicAPIClient, CohereAPIClient, BedrockAPIClient, + DeepSeekClient, ) # data pipeline @@ -124,...
3
2
1
[{"id": "G0", "claim": "The DEEPSEEK entry in OptionalPackages in lazy_import.py should be deleted, as users will be directed to install the openai package.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "DeepSeekClient should not rewrite everyth...
null
SylphAI-Inc__AdalFlow__36
SylphAI-Inc/AdalFlow
36
defect
6902e6dcdab2e6dde75cfd4a44535e5b42f8445e
b8b275109ffbc0898cce55bd61bb90f965c89b09
[WIP] Documentation & Evaluator Improvement
- [x] Restructure evaluators and add testing - [x] Improve documents for evaluators - [x] Update the SimpleQA code according to the latest code
diff --git a/docs/source/developer_notes/evaluation.rst b/docs/source/developer_notes/evaluation.rst index 75017a362..a5f563ead 100644 --- a/docs/source/developer_notes/evaluation.rst +++ b/docs/source/developer_notes/evaluation.rst @@ -1,7 +1,8 @@ A Guideline on LLM Evaluation ==================================== ...
3
3
1
[{"id": "G0", "claim": "Users should be able to pass their own model client to the LLM evaluator instead of the OpenAIClient being hardcoded in the module-level default, following the pattern in lightrag/optim/llm_augment.py and lightrag/optim/llm_optimizer.py.", "category": "design", "verdict": "supported", "priority"...
null
SylphAI-Inc__AdalFlow__412
SylphAI-Inc/AdalFlow
412
defect
c61fbf6cf15991fd04c4262da7c0f9a39c6a4970
969b328b973a64aa71dd01e037bdfff123645cc3
add the missing the tool call complete event
## Generator * added cache for `generator acall` * allow users to pass `max_tokens` so that it does native automatic trim for prompt to avoid the context window limit ## Runner * `tool_call_completed` was not added at all, added it * stream the planner response as RAWResponse even when its not streaming in the str...
diff --git a/adalflow/adalflow/components/agent/react.py b/adalflow/adalflow/components/agent/react.py index 4c6d4ae7b..3a8b9fec1 100644 --- a/adalflow/adalflow/components/agent/react.py +++ b/adalflow/adalflow/components/agent/react.py @@ -47,11 +47,10 @@ - For complex queries: - Step 1: Read the user query and ...
3
2
1
[{"id": "G0", "claim": "In stream_to_json_sync, the loop variable obtained from asyncio.get_running_loop() is never used, and the reviewer asks whether additional logic is needed there.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The prompt_k...
null
SylphAI-Inc__AdalFlow__43
SylphAI-Inc/AdalFlow
43
defect
45b2259d50d199d00261f62c1d2a7c4750654d34
f48e4e567ec3dcfeaa6405ebac804670fcf1864a
Document Update
- Update the developer notes embedder and retriever. I have written some so I'm using the previous .rst. For the use case I will use the notebook. - Fixed any problem I have seen(name error, code problem). LLM Retriever update: The previous retriever uses the prompt that supports a single query. But our retrieve q...
diff --git a/docs/source/_static/custom.css b/docs/source/_static/custom.css index 21b07dee7..bd03bdd9f 100644 --- a/docs/source/_static/custom.css +++ b/docs/source/_static/custom.css @@ -58,4 +58,8 @@ table { .card, .card img { background-color: var(--pst-color-background); - } \ No newline at end of fil...
2
1
0
[{"id": "G0", "claim": "Handling a list of queries inside one single LLM call could be a lot to handle; the retriever should instead make multiple LLM-as-retriever calls.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The author changed `self.generator.p...
null
SylphAI-Inc__AdalFlow__97
SylphAI-Inc/AdalFlow
97
defect
6040df3768fe22e60215db1386ab0ac26503acf9
4c20ac7b9ede6e9d8ba6f4f28cbe3c701f0c7a75
implemented ollama client
Implementing async and sync Ollama client per: https://github.com/SylphAI-Inc/LightRAG/issues/96 The goal with this pull, as an aside to implementation, is to collaborate and framework a contribution template for future contributers.
diff --git a/lightrag/lightrag/components/model_client/__init__.py b/lightrag/lightrag/components/model_client/__init__.py index acd0b132e..0a28ca066 100644 --- a/lightrag/lightrag/components/model_client/__init__.py +++ b/lightrag/lightrag/components/model_client/__init__.py @@ -44,6 +44,10 @@ "lightrag.component...
11
9
6
[{"id": "G0", "claim": "Rename the lazily imported module variable from `cohere` to `ollama`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The embedder conversion could auto-convert input, since both str and list[str] are supported, instead of...
null
Syncleus__aparapi__100
Syncleus/aparapi
100
defect
cd911b937c7804dac495f5fadd573fe1f2ac5a4f
c2f1b42792d3281384988ee4a2f68882086cc265
Fix and Update: Fix issue #62 and provide new API for kernel profiling under multithreading (refs #62)
Fixes issue #62 - SEVERE log level messages for the Aparapi kernel profiling functionality, due to missing multithreading safeness when multiple threads execute the same kernel class on the same device. Updates Aparapi API for kernel profiling functionality providing thread safe variants while maintaining backwards c...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a308480..b7a0ed15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ ## 1.7.0 * Fully support OpenCL 1.2 barrier() - localBarrier(), globalBarrier() and localGlobalBarrier() * Improved exception handling, stack traces no longer double print and Error and oth...
4
3
0
[{"id": "G0", "claim": "The new profiling unit tests emit many SEVERE warnings (\"ProfilingEvent.START encountered without ProfilingEvent.EXECUTED\") from the KernelDeviceProfile event parsing, and freemo asks whether these are intentional.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "in...
null
SynoCommunity__spkrepo__111
SynoCommunity/spkrepo
111
defect
905734269a3e61f3eb9fe869045ccf35d6453afd
fed32c9e347c8b706cc16481b7eca3c9f6995d4a
Improve packages webui
## Some web ui improvements ### fix beta label and use different labels for active and inactive packages - apply "beta" to package versions instead of packages - use green labels for active packages - use default (gray) label for inactive packages and add tooltip telling the package is inactive - update versi...
diff --git a/spkrepo/templates/frontend/package.html b/spkrepo/templates/frontend/package.html index fc943a1..37b4140 100644 --- a/spkrepo/templates/frontend/package.html +++ b/spkrepo/templates/frontend/package.html @@ -8,9 +8,7 @@ </a> <div class="media-body"> <h1 class="media-heading">{{ package.ver...
6
4
0
[{"id": "G0", "claim": "If the packages-page tests are meant to mirror each other, the build factories of test_get_active and test_get_not_active should be identical by adding or removing the version__report_url=None parameter.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "pre_existing"},...
null
SynoCommunity__spksrc__6404
SynoCommunity/spksrc
6,404
defect
687f1eeea28a1471bc64cb0bb9c8078f9eb83244
3e0a0e5e2a0c952491a33b460858c84489e63a8f
rutorrent: Update v4.3.7 to v5.1.12 and migrate to Python 3.12
## Description * Fixes #6387 * Cleanup installation logics related to DSM 6 support * Migrate to Python 3.12 ## Checklist - [x] Build rule `all-supported` completed successfully - [x] New installation of package completed successfully - [x] Package upgrade completed successfully (Manually install the pack...
diff --git a/cross/rutorrent/Makefile b/cross/rutorrent/Makefile index acbbe7a3d49..93935727f62 100644 --- a/cross/rutorrent/Makefile +++ b/cross/rutorrent/Makefile @@ -1,5 +1,5 @@ PKG_NAME = ruTorrent -PKG_VERS = 4.3.7 +PKG_VERS = 5.1.5 PKG_EXT = tar.gz PKG_DIST_NAME = v$(PKG_VERS).$(PKG_EXT) PKG_DIST_SITE = https...
2
2
1
[{"id": "G0", "claim": "Bumping the package to PHP 8.2 requires REQUIRED_MIN_DSM = 7.2 because DSM 7.1 is limited to PHP 8.0, so the package should either use PHP 8.0 or define two PHP profiles for DSM 7.1 and DSM 7.2 (and mreid-tt questions whether a PHP bump is needed at all, since the ruTorrent release notes mention...
null