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
seaweedfs__seaweedfs__9058
seaweedfs/seaweedfs
9,058
defect
50f25bb5cd02442de1ce7d03996cfa47b872afe0
e2ae548f326fec0cf8309af7efa0cab6b3cd01a9
admin: include EC volumes in bucket size reporting
## Summary - The Object Store buckets page (`/object-store/buckets`) was computing per-collection size by iterating only regular volumes in `collectCollectionStats`, silently dropping EC-encoded data from the reported bucket size. This made usage-based billing from the admin portal unreliable. - Walk `EcShardInfos` alo...
diff --git a/weed/admin/dash/admin_server.go b/weed/admin/dash/admin_server.go index a339e4d39f9..e17217d00ee 100644 --- a/weed/admin/dash/admin_server.go +++ b/weed/admin/dash/admin_server.go @@ -23,6 +23,7 @@ import ( "github.com/seaweedfs/seaweedfs/weed/pb/plugin_pb" "github.com/seaweedfs/seaweedfs/weed/pb/schem...
3
2
1
[{"id": "G0", "claim": "The EC loop adds shard sizes to PhysicalSize/LogicalSize but never updates FileCount, so buckets holding only EC-encoded data report 0 objects and mixed buckets under-report object counts in the admin dashboard.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "int...
null
seaweedfs__seaweedfs__9060
seaweedfs/seaweedfs
9,060
defect
ef77df61417560de88f60829cc2ddd5b1a54de93
2e857fee0d519797c01c4bef559902e458afe65f
admin: report file and delete counts for EC volumes
## Summary Follow-up to #9058, which made bucket size reporting EC-aware but left object counts stuck at zero for EC-encoded data because `VolumeEcShardInformationMessage` carried no file count. Billing and monitoring dashboards therefore still under-report objects once a bucket is EC-encoded. This PR threads `file_co...
diff --git a/weed/admin/dash/admin_server.go b/weed/admin/dash/admin_server.go index ef775034892..0abe1f940d9 100644 --- a/weed/admin/dash/admin_server.go +++ b/weed/admin/dash/admin_server.go @@ -1674,6 +1674,10 @@ type collectionStats struct { func collectCollectionStats(topologyInfo *master_pb.TopologyInfo) map[s...
7
7
4
[{"id": "G0", "claim": "The new file_count field and the fileCount struct field are commented as 'live needles', but for consistency with regular volumes and the admin aggregation that subtracts delete_count the comments should say the field is the total number of needles in the .ecx index.", "category": "documentation...
null
seaweedfs__seaweedfs__9064
seaweedfs/seaweedfs
9,064
defect
c8433a19f0dcdf7359cacf94b86c3b45a8f7df9f
f2ad28f93ea64e4bbca56c4c29cbf548922fe038
fix(mount): serialize hard-link mutations on HardLinkId
## Summary - Fixes a data race flagged in the review of #9062: concurrent `Unlink`s on different links of the same file could leave the mount metacache with a stale `HardLinkCounter` one higher than the filer's authoritative shared blob. - Adds a new `hardLinkLockTable *util.LockTable[string]` on `WFS` keyed by `HardL...
diff --git a/weed/mount/weedfs.go b/weed/mount/weedfs.go index af12cb41f3d..42f3348e4e7 100644 --- a/weed/mount/weedfs.go +++ b/weed/mount/weedfs.go @@ -123,6 +123,7 @@ type WFS struct { fuseServer *fuse.Server IsOverQuota bool fhLockTable *util.LockTable[FileHandleId] + hardLinkLockTa...
2
2
2
[{"id": "G0", "claim": "In Unlink, if maybeLoadEntry after acquiring the HardLinkId lock fails (e.g. ENOENT because another thread unlinked the file while waiting), the code ignores the error and proceeds with the stale pre-lock entry, whose outdated HardLinkCounter can then be propagated to siblings in syncHardLinkSib...
null
seaweedfs__seaweedfs__9066
seaweedfs/seaweedfs
9,066
defect
64af80c78d2d61a4c04cf7b416f31f66a47b1c6f
31457ca752737996148928a3ea2a28cf1318a40a
feat(mount): cap write buffer with -writeBufferSizeMB
## Summary - Add `-writeBufferSizeMB` flag (default `0` = unlimited) to bound the per-mount write pipeline across all open file handles, backed by a new `page_writer.WriteBufferAccountant` shared via `WFS`. - Each `UploadPipeline` reserves one `ChunkSize` slot before allocating a mem or swap page chunk, and releases at...
diff --git a/weed/command/fuse_std.go b/weed/command/fuse_std.go index 3fb7236af12..7a5400dc57b 100644 --- a/weed/command/fuse_std.go +++ b/weed/command/fuse_std.go @@ -189,6 +189,12 @@ func runFuse(cmd *Command, args []string) bool { } case "cacheDirWrite": mountOptions.cacheDirForWrite = &parameter.value +...
6
5
2
[{"id": "G0", "claim": "Releasing the budget in moveToSealed's replace path double-releases the slot (the chunk's uploader also releases when it completes) and releases it while the replaced chunk still occupies space, so the budget should be released only once, when the resource is actually freed.", "category": "corre...
null
seaweedfs__seaweedfs__9073
seaweedfs/seaweedfs
9,073
defect
eaf561e86c417c14b26316807d84b7dc2feec246
4286902e4981fbd5e6ce7fbf031792484180b186
fix(s3): allow anonymous ListBuckets with prefix-scoped List action
## Summary - Fixes #9072 — anonymous identities with a prefix-scoped `List:prefix-*` action were getting `AccessDenied` on `GET /` because the auth middleware ran `CanDo` with an empty bucket, which never matches a scoped action. - Defer ListBuckets authorization to `ListBucketsHandler` for the anonymous identity when ...
diff --git a/weed/s3api/auth_credentials.go b/weed/s3api/auth_credentials.go index 3a924c44d4b..ee3a5221bd6 100644 --- a/weed/s3api/auth_credentials.go +++ b/weed/s3api/auth_credentials.go @@ -1413,8 +1413,14 @@ func (iam *IdentityAccessManagement) authRequestWithAuthType(r *http.Request, ac // through buckets and ch...
1
1
0
[{"id": "G0", "claim": "Consider refactoring the package-level helper anonymousHasListAction into an unexported method of the Identity struct (e.g. hasListAction) for consistency with isAdmin()/CanDo(), including an isAdmin() check so an anonymous identity granted admin rights is not inadvertently blocked, and moving t...
null
seaweedfs__seaweedfs__9076
seaweedfs/seaweedfs
9,076
defect
ad2aa3135c9b754d1c75d578dceebc3d00e59b56
e59d740b5f908c1bd28e9bc519033c08d8555342
fix(s3): honor ChecksumAlgorithm on presigned URL uploads
## Summary - Presigned PUT URLs generated with `ChecksumAlgorithm: 'SHA256'` (or any other flexible-checksum algorithm) were validated but never stored — HEAD/GET returned no `x-amz-checksum-*` header. - Root cause: AWS SDK presigners hoist headers like `x-amz-sdk-checksum-algorithm` and `x-amz-checksum-algorithm` into...
diff --git a/weed/s3api/s3api_object_handlers_put.go b/weed/s3api/s3api_object_handlers_put.go index 15006e3b8e5..2990ea564ad 100644 --- a/weed/s3api/s3api_object_handlers_put.go +++ b/weed/s3api/s3api_object_handlers_put.go @@ -657,7 +657,7 @@ func (s3a *S3ApiServer) putToFiler(r *http.Request, filePath string, dataRe...
6
5
1
[{"id": "G0", "claim": "getHeaderOrQuery can be optimized and simplified: skip parsing when RawQuery is empty, use EqualFold alone, and avoid re-parsing the query on every call.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Calling getHeaderOrQuery...
null
seaweedfs__seaweedfs__9077
seaweedfs/seaweedfs
9,077
defect
40c1797f8e55a2b4baf38e5774f9c418c348ef0b
036fa384e5ae24435a1fd4c8648a51977ddea2f9
fix(iceberg): clean stale data before creating a table (#9074)
## Summary - `CREATE TABLE AS` from Trino against the SeaweedFS Iceberg REST catalog fails with `Cannot create a table on a non-empty location: s3://<bucket>/<ns>/<table>`. The catalog assigns every new table the deterministic `<ns>/<table>` path, so Trino's pre-write emptiness check rejects the CTAS whenever leftover ...
diff --git a/weed/s3api/iceberg/handlers_table.go b/weed/s3api/iceberg/handlers_table.go index a4987d197048..b26d3dcc5459 100644 --- a/weed/s3api/iceberg/handlers_table.go +++ b/weed/s3api/iceberg/handlers_table.go @@ -120,21 +120,26 @@ func (s *Server) handleCreateTable(w http.ResponseWriter, r *http.Request) { //...
6
4
3
[{"id": "G0", "claim": "Validate the table name before composing the table path: req.Name is only checked for non-empty, so inputs like ../foo or a/b can alter the intended namespace path and cause metadata writes outside the expected table prefix.", "category": "security", "verdict": "uncertain", "priority": "P1", "sc...
null
seaweedfs__seaweedfs__9079
seaweedfs/seaweedfs
9,079
defect
40c1797f8e55a2b4baf38e5774f9c418c348ef0b
f8d381e7930142c24e26bc9ac276e7d933e26648
perf(filer.sync): don't serialize descendants behind dir attribute updates
## Summary `MetadataProcessor` in `filer.sync` treated every in-flight directory job as a subtree barrier: any active dir job at `/foo` forced every subsequent file event under `/foo` to wait, and because `AddSyncJob`'s admit loop runs on the single `stream.Recv()` goroutine, a stalled descendant also stalled the whol...
diff --git a/weed/command/filer_sync_jobs.go b/weed/command/filer_sync_jobs.go index f0f886394f3..337e3329849 100644 --- a/weed/command/filer_sync_jobs.go +++ b/weed/command/filer_sync_jobs.go @@ -27,10 +27,32 @@ func (h *tsMinHeap) Pop() any { return x } +// jobKind classifies a sync job for conflict detection. D...
3
2
2
[{"id": "G0", "claim": "The pathConflicts implementation misses several same-path conflict scenarios — barrier dirs do not check for an active job at the same path, and file/barrier-dir operations do not check against each other at the same path — so same-path operations can run in parallel and a more comprehensive imp...
null
seaweedfs__seaweedfs__9090
seaweedfs/seaweedfs
9,090
defect
d292d3640d43ca9b22684c090f27a37e61f2b874
5b2e2bbf3daf48d86a83db64596e6944df891517
fix(balance): guard against destination overshoot and oscillation
## Summary Fixes a regression in plugin-worker `volume.balance` detection that caused: - Continuous volume copying between servers (A→B→A→B oscillation within a single detection cycle) - Destination nodes filled past their proportional share of the cluster ideal utilization - No respect for "safe" thresholds when `Max...
diff --git a/weed/worker/tasks/balance/detection.go b/weed/worker/tasks/balance/detection.go index ac4181a0087..3df4bcf2e3c 100644 --- a/weed/worker/tasks/balance/detection.go +++ b/weed/worker/tasks/balance/detection.go @@ -279,6 +279,38 @@ func detectForDiskType(diskType string, diskMetrics []*types.VolumeHealthMetri...
1
1
0
[{"id": "G2", "claim": "Also increment maxNode.freeSlots when a planned global-rebalance move takes a shard from the source, to keep freeSlots accurate for source nodes rather than only decrementing the destination's.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
seaweedfs__seaweedfs__9097
seaweedfs/seaweedfs
9,097
defect
f9df187928be79ef89ed5f30848ede9030edfab6
809f0691f38ab53fa0da6599405e79a2c0e4b136
feat(mount): set FOPEN_KEEP_CACHE on re-open of unchanged files
## Summary - Add a per-inode mtime cache (`sync.Map`) to `WFS` that tracks the last-seen mtime on each `Open()` call. - On read-only re-opens where the file mtime matches the cached value, set `FOPEN_KEEP_CACHE` in the FUSE response so the kernel preserves its existing page cache instead of re-reading from volume serv...
diff --git a/weed/mount/weedfs.go b/weed/mount/weedfs.go index 6c4fa0de040..ffc38db02f2 100644 --- a/weed/mount/weedfs.go +++ b/weed/mount/weedfs.go @@ -144,6 +144,10 @@ type WFS struct { dirIdleEvict time.Duration fileIdPool *FileIdPool + // openMtimeCache maps inode -> mtime (Unix seconds) fro...
7
7
3
[{"id": "G0", "claim": "The openMtimeCache is an unbounded sync.Map, so a long-running mount touching many files grows memory without limit; use a bounded cache with a named size constant, an eviction policy, and a comment explaining the memory vs. performance trade-off.", "category": "performance", "verdict": "support...
null
seaweedfs__seaweedfs__9098
seaweedfs/seaweedfs
9,098
defect
f9df187928be79ef89ed5f30848ede9030edfab6
08e8fa9f845fa67058b76191d484d52284fe0428
perf(cache): drop OS page cache after disk cache reads
## Summary - After reading chunk data from the on-disk cache, call `posix_fadvise(FADV_DONTNEED)` on the read byte range so the kernel drops those pages from its page cache - Prevents double-caching: data already lives in SeaweedFS's user-space disk cache, so keeping a second copy in the kernel page cache wastes RAM -...
diff --git a/weed/storage/backend/disk_file.go b/weed/storage/backend/disk_file.go index 1573f8467f5..752a2a3e5b2 100644 --- a/weed/storage/backend/disk_file.go +++ b/weed/storage/backend/disk_file.go @@ -115,6 +115,13 @@ func (df *DiskFile) Name() string { return df.fullFilePath } +func (df *DiskFile) Fd() uintpt...
2
2
2
[{"id": "G0", "claim": "dropReadCache should check that length is greater than 0 — on Linux posix_fadvise with a zero length means \"until the end of the file\", so a zero-length needle read could inadvertently drop the page cache for the entire remainder of the cache volume — and verify the file descriptor is valid (f...
null
seaweedfs__seaweedfs__9100
seaweedfs/seaweedfs
9,100
defect
f9df187928be79ef89ed5f30848ede9030edfab6
e19b03395be315774b267fbd9da1a04659dab3ac
feat(mount): singleflight dedup for concurrent chunk reads
## Summary - Add a lightweight `SingleFlightGroup` in `weed/util/singleflight.go` that deduplicates concurrent function calls keyed by a string. When multiple goroutines call `Do` with the same key, only one executes the function; the rest wait and share the result. - Integrate the singleflight group into `ReaderCache...
diff --git a/weed/filer/reader_cache.go b/weed/filer/reader_cache.go index 66cbac1e3f3..9a2f636ab83 100644 --- a/weed/filer/reader_cache.go +++ b/weed/filer/reader_cache.go @@ -8,6 +8,7 @@ import ( "time" "github.com/seaweedfs/seaweedfs/weed/glog" + "github.com/seaweedfs/seaweedfs/weed/util" "github.com/seaweed...
9
4
2
[{"id": "G0", "claim": "The PR should use golang.org/x/sync/singleflight, already a direct dependency of the module, instead of adding and maintaining a hand-rolled SingleFlightGroup implementation.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
seaweedfs__seaweedfs__9108
seaweedfs/seaweedfs
9,108
defect
f9df187928be79ef89ed5f30848ede9030edfab6
5ed9ee830e6e45ae105b88b36a8d1a4c29becf0b
fix(master): eagerly remove volume from writable when assign hits limit
## Summary - Volumes could grow 8–20x past the configured size limit under sustained concurrent writes (observed on a 100MB-limit cluster: median 530MB, peak 1.98GB). - Root cause: a volume was only removed from the writable list by the heartbeat-driven `CollectDeadNodeAndFullVolumes` pass. With a 5s pulse + 5s heartbe...
diff --git a/weed/topology/topology.go b/weed/topology/topology.go index 30fbfc1f019..2c55e4cd7e2 100644 --- a/weed/topology/topology.go +++ b/weed/topology/topology.go @@ -354,7 +354,9 @@ func (t *Topology) PickForWrite(requestedCount uint64, option *VolumeGrowOption, sizePerFile = expectedDataSize } pendingByt...
2
2
2
[{"id": "G0", "claim": "Holding the VolumeLayout read lock while calling UpAdjustDiskUsageDelta risks a deadlock, since UpAdjustDiskUsageDelta propagates up the topology hierarchy taking DataNode/Rack/DataCenter/Topology locks that other threads may already hold while trying to take the VolumeLayout lock; the node list...
null
seaweedfs__seaweedfs__9109
seaweedfs/seaweedfs
9,109
defect
886d50a6a558ee11b2cb1533baf0e0b33c29531f
931297058b739d15824d4ff312fbf7fe596162e1
fix(iceberg): route catalog clients to the right bucket and vend S3 endpoint
## Summary Fixes #9103. DuckDB clients using the SeaweedFS Iceberg REST catalog saw two symptoms: 1. `ATTACH 's3://<bucket>/' AS cat (TYPE 'ICEBERG', ...); SELECT * FROM cat.<ns>.<tbl>;` failed with `schema <ns> does not exist`, even though the namespace exists. 2. `SELECT * FROM iceberg_scan('s3://<bucket>/<ns>/<tbl...
diff --git a/test/s3tables/catalog/issue_9103_test.go b/test/s3tables/catalog/issue_9103_test.go new file mode 100644 index 00000000000..e4ba4b5ac0e --- /dev/null +++ b/test/s3tables/catalog/issue_9103_test.go @@ -0,0 +1,327 @@ +// Reproduction tests for https://github.com/seaweedfs/seaweedfs/issues/9103 +// +// The is...
9
5
2
[{"id": "G0", "claim": "deriveS3AdvertisedEndpoint always returns http:// and ignores externalUrl, so TLS-only deployments are vended an endpoint Iceberg clients cannot connect to, and IPv6 literals are left unbracketed (invalid URLs); it should honor externalUrl, follow the TLS configuration with portHttps, and bracke...
null
seaweedfs__seaweedfs__9115
seaweedfs/seaweedfs
9,115
defect
108e6b0d5f1022dacf41384889fa6444f83820bf
4198e7b78ffa16c1e0945c300f56c4d345d19727
fix(volume): keep vacuum running past dangling .idx entries
## Summary - Vacuum compaction aborted entirely on the first `.idx` entry whose offset pointed past the end of the `.dat` file (`cannot hydrate needle from file: EOF`), so a single corrupt volume blocked progress on every other volume in the same scheduling cycle. - Compaction now drops the unreadable entry and contin...
diff --git a/seaweed-volume/src/storage/volume.rs b/seaweed-volume/src/storage/volume.rs index 2ee94b5b222..22199d48f99 100644 --- a/seaweed-volume/src/storage/volume.rs +++ b/seaweed-volume/src/storage/volume.rs @@ -19,6 +19,7 @@ use std::time::{SystemTime, UNIX_EPOCH}; use tracing::warn; +use crate::storage::idx...
4
4
2
[{"id": "G0", "claim": "The vacuum skip predicate is inverted and too broad — Go skips every non-EIO error and Rust skips every non-raw-os-5 error — so transient failures (tiered S3 timeouts, permission errors, and on Windows any hardware disk error, since syscall.EIO/errno 5 never surface there) silently drop needles ...
null
seaweedfs__seaweedfs__9120
seaweedfs/seaweedfs
9,120
defect
e8767f42b631618c78a321a259dd65fc0cc532ee
dc21f066c8140719687460ea5806c77b7042c22a
fix(s3): strip client-supplied X-SeaweedFS-Principal/Session-Token in AuthSignatureOnly
## Summary - `AuthSignatureOnly` is the only auth gate in front of the S3Tables routes (including `CreateTableBucket`) and `UnifiedPostHandler`, but unlike `authenticateRequestInternal` (`weed/s3api/auth_credentials.go:1343`) it did not clear the internal IAM trust headers before running signature verification. - `wee...
diff --git a/weed/s3api/auth_credentials.go b/weed/s3api/auth_credentials.go index aae2bfd4df0..49c2fcc54fe 100644 --- a/weed/s3api/auth_credentials.go +++ b/weed/s3api/auth_credentials.go @@ -1482,6 +1482,14 @@ func (iam *IdentityAccessManagement) authRequestWithAuthType(r *http.Request, ac // Returns the authenticat...
2
2
0
[{"id": "G0", "claim": "Refactor AuthSignatureOnly to call authenticateRequestInternal instead of duplicating its internal-IAM-header stripping and auth-type dispatch logic, so the security guards stay consistent across all authentication paths.", "category": "maintainability", "verdict": "supported", "priority": "P2",...
null
sebbo2002__ical-generator__736
sebbo2002/ical-generator
736
defect
42c0c9d043e90a296b08c44ada7d3671db70c361
9350160ccc1201c40a1b6c863b34b63a9d2f8bb0
Add support for Apple Calendar travel time
### About this Pull Request - **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...) - Feature - **What is the current behavior?** (You can also link to an open issue here) - Setting X-APPLE-TRAVEL-DURATION is not yet included as a standalone function, it is already supported b...
diff --git a/package-lock.json b/package-lock.json index fece45110..afeb6f97c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ical-generator", - "version": "10.1.1-develop.1", + "version": "10.2.0-develop.1", "lockfileVersion": 2, "requires": true, "package...
6
3
1
[{"id": "G0", "claim": "The calendar-color changes in src/calendar.ts belong to #735 and should be made in a separate PR instead of this one.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR should not change package.json or package-lock.json becaus...
null
seborama__govcr__122
seborama/govcr
122
defect
720aeb9831da57861c9590722255e69c25780228
7393425af58877c1f4471a4b783b26e44b12566a
update go deps
Please, ensure your pull request meet these guidelines: - [ ] My code is written in TDD (test driven development) fashion. - [ ] My code adheres to Go standards I have run `make lint`, or I have used https://goreportcard.com/ and I have taken the necessary compliance actions. - [ ] I have prov...
diff --git a/go.mod b/go.mod index 570c208..b8e72ad 100644 --- a/go.mod +++ b/go.mod @@ -1,40 +1,38 @@ module github.com/seborama/govcr/v17 -go 1.23.0 - -toolchain go1.23.7 +go 1.25.0 require ( - github.com/aws/aws-sdk-go-v2 v1.36.3 - github.com/aws/aws-sdk-go-v2/config v1.29.12 - github.com/aws/aws-sdk-go-v2/fea...
1
1
1
[{"id": "G0", "claim": "The CI workflow go-version '^1.23' does not match the go.mod floor raised to 1.25.0, so CI never validates the 1.25.0 requirement; update the workflow to '^1.25' and consider documenting the Go 1.25 requirement in README.", "category": "correctness", "verdict": "supported", "priority": "P1", "sc...
null
seborama__govcr__24
seborama/govcr
24
defect
616933dc2aae6ad9992123716e02306851179aca
4df70756e3b62c694642ed7d414c09b29ee6496c
Fix usage when body is binary
The conversion of a `[]byte` to a `string` can (and does) fail if the byte content is not valid unicode. To avoid this, pass around the `[]byte`. Allows binary body payloads to function correctly.
diff --git a/cassette.go b/cassette.go index 1e371c6..c804986 100644 --- a/cassette.go +++ b/cassette.go @@ -21,7 +21,7 @@ type request struct { Method string URL *url.URL Header http.Header - Body string + Body []byte } // response is a recorded HTTP response. @@ -33,7 +33,7 @@ type response struct { ...
1
1
0
[{"id": "G0", "claim": "A test validating the binary-body scenario should be added to the pull request.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
seccomp__libseccomp__155
seccomp/libseccomp
155
defect
3570b5cf9acbd1711d417e08ec608eea7b83d416
bff818a02151eed5041994f2444a2da0ba48c4e9
RFE: add notification support
This PR takes @tych0's original patch, adds the necessary Python support, sorts out some corner cases, and cleans up the API a bit. @tych0 I left your sign-off on the main patch and the test patch as they inherited a large chunk of your code, please let me know if that's okay.
diff --git a/doc/man/man3/seccomp_api_get.3 b/doc/man/man3/seccomp_api_get.3 index d358c6d7..6fa83a85 100644 --- a/doc/man/man3/seccomp_api_get.3 +++ b/doc/man/man3/seccomp_api_get.3 @@ -53,6 +53,9 @@ The SCMP_FLTATR_CTL_LOG filter attribute and the SCMP_ACT_LOG action are support .TP .B 4 The SCMP_FLTATR_CTL_SSB fi...
4
3
1
[{"id": "G0", "claim": "A carriage return appears to be missing at include/seccomp.h.in line 721.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "With tsync and user_notif both possibly returning > 0 there could be a collision if a filter enables...
null
seccomp__libseccomp__241
seccomp/libseccomp
241
defect
777b647a59a089612c4eb354c67ecc0bbe70cb9a
46bbcd034a88ae44775df04876405bee6c7a5fb7
RFE: cleanup the API return values and document them the in the manpages
This has already been covered in detail in issue #97 so I won't repeat the details here. In summary, this PR establishes the APIs error codes as part of the API from here moving forwards.
diff --git a/src/api.c b/src/api.c index 837d020a..961c3f84 100644 --- a/src/api.c +++ b/src/api.c @@ -449,7 +449,7 @@ API int seccomp_rule_add_array(scmp_filter_ctx ctx, if (rc < 0) return rc; if (action == col->attr.act_default) - return -EPERM; + return -EACCES; return db_col_rule_add(col, 0, action, sy...
3
2
0
[{"id": "G0", "claim": "The PR's switch to -ECANCELED throws away the errno data, so libseccomp should consider adding a log/debug feature that could capture that errno information for future debugging.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Some...
null
seccomp__libseccomp__250
seccomp/libseccomp
250
defect
34bf78abc9567b66c72dbe67e7f243072162a25f
8acb47523e9909884028949905e73b5c0506245f
RFE: add API level 6
API level 6 allows callers to use both the TSYNC and notify APIs at the same time. This is due to the TSYNC_ESRCH flag which was added in Linux v5.7. Signed-off-by: Paul Moore <paul@paul-moore.com>
diff --git a/doc/man/man3/seccomp_api_get.3 b/doc/man/man3/seccomp_api_get.3 index 6fa83a85..ab2f5525 100644 --- a/doc/man/man3/seccomp_api_get.3 +++ b/doc/man/man3/seccomp_api_get.3 @@ -1,4 +1,4 @@ -.TH "seccomp_api_get" 3 "8 October 2017" "paul@paul-moore.com" "libseccomp Documentation" +.TH "seccomp_api_get" 3 "13 J...
3
3
2
[{"id": "G0", "claim": "When the kernel supports TSYNC_ESRCH, the filter flags must still set TSYNC in addition to TSYNC_ESRCH (as written in S1, TSYNC_ESRCH is used instead of TSYNC, so thread syncing would not happen).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id...
null
seccomp__libseccomp__280
seccomp/libseccomp
280
defect
2366f6380198c7af23d145a153ccaa9ba37f9db1
02b89ec4d95d9d9ede6c1dc2f09571e308366dde
BUG: change our internal handling of the notification fd
**UPDATE:** In addition to the original patch (the descrption of which is below), this PR also contains a patch which only requests the notification fd if the filter requires it. The patch also changes the behavior of `seccomp_reset(NULL, ...)` so that is closes the notification fd. See the individual patches/commits...
diff --git a/doc/man/man3/seccomp_init.3 b/doc/man/man3/seccomp_init.3 index 3ab68fef..87520cd3 100644 --- a/doc/man/man3/seccomp_init.3 +++ b/doc/man/man3/seccomp_init.3 @@ -36,7 +36,15 @@ The function releases the existing filter context state before reinitializing it and can only be called after a call to .BR sec...
3
2
1
[{"id": "G0", "claim": "Add a test that calls seccomp_reset() with a NULL context, since the new seccomp_reset(NULL, ...) path appears to have no test coverage.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Initializing every member of the task state i...
null
seccomp__libseccomp__390
seccomp/libseccomp
390
defect
b86e5a337fdbff13c018c4ea92a0691d779b1391
e24f74fc6d4cf379eedbe87588996dec8d0e847c
RFE: add seccomp_precompute() to the API
This patch adds a seccomp_precompute() API to precompute the seccomp filter prior to calling seccomp_load() or similar functions. Not only does this improve the performance of seccomp_load(), it ensures that seccomp_load() is async-signal-safe if no additional changes have been made since the filter was precomputed. ...
diff --git a/doc/Makefile.am b/doc/Makefile.am index a21d4c8f..2eff0ad2 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -33,6 +33,7 @@ dist_man3_MANS = \ man/man3/seccomp_init.3 \ man/man3/seccomp_load.3 \ man/man3/seccomp_merge.3 \ + man/man3/seccomp_precompute.3 \ man/man3/seccomp_release.3 \ man/man3...
1
1
0
[{"id": "G0", "claim": "The man page should read 'made to the filter' rather than 'made to filter' (nitpick on the wording of the DESCRIPTION paragraph).", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
secdev__scapy__2585
secdev/scapy
2,585
defect
421eafcdeeb1c784e70c023c30bc27238ab936c0
7782e0fd2b1b90ed51edfafa22a196e2b2d46b29
[TLS13] Add client auth
- rebase of https://github.com/romain-perez/scapy/tree/add-tls13-client-auth - PR finished - unit tests added
diff --git a/.travis.yml b/.travis.yml index e335a067742..570a7001a36 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: python +dist: bionic # OpenSSL 1.1.1 cache: directories: - $HOME/.cache/pip @@ -13,7 +14,7 @@ jobs: - TOXENV=py27-linux_root,codecov - os: linux - ...
4
4
0
[{"id": "G0", "claim": "Automaton.debug() should log through the logging framework instead of printing for non-interactive sessions.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The removal of the blank line between the two isinstance checks in TLS Cli...
null
secdev__scapy__2625
secdev/scapy
2,625
defect
2233f7305d52802dda510b31f7cfb6d4fa6fec94
e6201498dba1cb1d327a02108f80c219e423438b
[TLS13] Add tls13 resume session
- rebase of https://github.com/romain-perez/scapy/tree/add-tls13-resume-session - add tls unit tests
diff --git a/scapy/layers/tls/automaton_cli.py b/scapy/layers/tls/automaton_cli.py index 8c3ada4eb0c..91ce7840fe7 100644 --- a/scapy/layers/tls/automaton_cli.py +++ b/scapy/layers/tls/automaton_cli.py @@ -20,11 +20,14 @@ from __future__ import print_function import socket import binascii +import struct +import time ...
6
5
0
[{"id": "G0", "claim": "The added comment should read 'the PSK is given as an argument' instead of 'as argument'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Asks whether importing unpack with `from struct import unpack` would remove the need f...
null
secdev__scapy__2630
secdev/scapy
2,630
defect
e38a46dda55017bbff8fc4c6f30ca395db655d00
f42ad9b4ed68fd2e92aa9e0da3b0f2160344e4d4
[TLS 1.3] Extra
A custom PR in between romain-perez ones. This allows to do more practical tests against real world things.. - add support for RFC 8701: TLS GREASE (the server now works with chrome as a client) - add support for SNI in the TLS client (server now works with www.google.com) - add debug options to the TLS client and s...
diff --git a/scapy/layers/tls/automaton_cli.py b/scapy/layers/tls/automaton_cli.py index 9078160dc77..0789cab2497 100644 --- a/scapy/layers/tls/automaton_cli.py +++ b/scapy/layers/tls/automaton_cli.py @@ -33,7 +33,8 @@ from scapy.layers.tls.session import tlsSession from scapy.layers.tls.extensions import TLS_Ext_Sup...
3
3
1
[{"id": "G0", "claim": "The reviewer asked whether the newly added self.cur_pkt.show() debug lines in the alert-handling states of scapy/layers/tls/automaton_srv.py should be kept.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The example clien...
null
secdev__scapy__3111
secdev/scapy
3,111
defect
c38a4782928aaa0e657c41638ce1f469aac2edb1
9370d79911fe708671a10655d566e11834ad1982
Chore : fixed code quality issues
## Description Hi 👋 I ran the [DeepSource](https://deepsource.io/) static analyzer on the forked copy of this repo and found some [interesting code quality issues](https://deepsource.io/gh/ankitdobhal/scapy/issues/). This PR fixes a few of them. ## Summary of Fixes - Remove unnecessary use of comprehension -...
diff --git a/.deepsource.toml b/.deepsource.toml new file mode 100644 index 00000000000..d51c102b1a8 --- /dev/null +++ b/.deepsource.toml @@ -0,0 +1,10 @@ +version = 1 + +test_patterns = ["test/**"] + +[[analyzers]] +name = "python" +enabled = true + + [analyzers.meta] + runtime_version = "3.x.x" diff --git a/scapy/c...
1
1
0
[{"id": "G0", "claim": "The newly added .deepsource.toml may not be needed: the reviewer asks whether the project is going to use DeepSource at all, noting that the changes it drives amount to barely some extended linter rules.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
secdev__scapy__3378
secdev/scapy
3,378
defect
40f5bb8c5a40f0fe86ed96e9156475e50a47f123
23b18e98cc7f0bfba06f605dd33d5f3e6bda6ca0
Bugfix in ISOTPSoftSocket timers
In the TimeoutScheduler object of ISOTPSoftSockets, `time.clock()` was used to get a monotonic time value in seconds. I discovered a wrong behavior of this function on Linux with python 2 (my system). This lead to completely wrong timeouts. For now, I've changed this function to use time.time(), which is not monotoni...
diff --git a/scapy/contrib/isotp/isotp_soft_socket.py b/scapy/contrib/isotp/isotp_soft_socket.py index e10a1b82cf8..7d55738d969 100644 --- a/scapy/contrib/isotp/isotp_soft_socket.py +++ b/scapy/contrib/isotp/isotp_soft_socket.py @@ -400,7 +400,7 @@ def _poll(): def _time(): # type: () -> float if...
2
2
1
[{"id": "G0", "claim": "The 20000-bytes-send test's mess of manually managed threads makes little sense and should be replaced with a cleaner approach such as started_callback or an AsyncSniffer whose prn callback sends the ack.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introd...
null
secdev__scapy__4538
secdev/scapy
4,538
defect
30b0398863cb0f54a1988b7e42f63c3cd5b5d506
450d941930c3dd894fdbf5014cca4b433e62b7da
Restore sndrcv behaviour from before 53afe84
This PR rolls back the internal behaviour of sndrcv from before 53afe84 Two major changes happend in 53afe84 - `inter` is only forwarded to `time.sleep` if it is not `0`. However, calling `time.sleep(0)` gives the python threading system the possibility to do a context switch. - before 53afe84 `sr` was always e...
diff --git a/scapy/sendrecv.py b/scapy/sendrecv.py index 18775d50291..eef8340d0d7 100644 --- a/scapy/sendrecv.py +++ b/scapy/sendrecv.py @@ -266,8 +266,7 @@ def _sndrcv_snd(self): self.hsent.setdefault(p.hashret(), []).append(p) # Send packet self.pks.send(p) - ...
3
2
1
[{"id": "G0", "claim": "The reviewer asked why sndrcv forces kwargs['threaded'] to always be True (the line looks like a redundant/undebugged leftover rather than the intended 'default to True').", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
secdev__scapy__4938
secdev/scapy
4,938
defect
2c787cd2c72890c9e21ff205a15b12b5f5fc1027
4519f30d37d10e9d8c6127137da7868e18063b48
Fix slcan w IsoTPSoftSocket
( I worked on this one with copilot / Claude 4.6 and also some gemini-cli over in https://github.com/BenGardiner/scapy/pull/2/ ) In addition to the change introduced in #4929 , this PR also introduces testcases to trigger the isotp soft socket regression with sr1() timeout on an MF response to a SF request that I ha...
diff --git a/scapy/contrib/cansocket_python_can.py b/scapy/contrib/cansocket_python_can.py index baf4a6cbd74..26eb7f2d39e 100644 --- a/scapy/contrib/cansocket_python_can.py +++ b/scapy/contrib/cansocket_python_can.py @@ -14,8 +14,6 @@ import struct import threading -from functools import reduce -from operator impor...
1
1
1
[{"id": "G0", "claim": "The pull request removes the bus-level CAN filter merging in SocketsPool.register entirely, and the reviewer questions why the filters are gone.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
secondlife__viewer__2451
secondlife/viewer
2,451
defect
6f454ad8366ed33bbe199c3fc3ed69e6d3448cec
364ea79ab3a4d48e0d10fbeabb9b8e88f226baac
Give certain `LLInventoryListener` queries an API based on result sets.
Add `LL.setdtor()` function to set a "destructor" for any Lua object. `setdtor('description', object, function)` returns a proxy userdata object referencing object and function. When the proxy is garbage-collected, or at the end of the script, its destructor calls `function(object)`. The original object may be ...
diff --git a/indra/llcommon/lua_function.cpp b/indra/llcommon/lua_function.cpp index 880bc209f61..f61cf3fe10b 100644 --- a/indra/llcommon/lua_function.cpp +++ b/indra/llcommon/lua_function.cpp @@ -99,6 +99,34 @@ fsyspath source_path(lua_State* L) } // namespace lluau +/*********************************************...
1
1
0
[{"id": "G0", "claim": "The setdtor() error warning should also identify the Lua script (coroutine) it came from.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
secretflow__kuscia__71
secretflow/kuscia
71
defect
475ba6d34ceea9ee0705bbd58cc6076f38cbe213
c750be54fc5875a3603689f1a547c9db79e668e6
KusciaTask 任务支持全链路时间观测开发任务 #29
#29 在center模式下验证了下正常 ![0fcd69c9c3b2edd32d94b4073dbed48](https://github.com/secretflow/kuscia/assets/129133814/84fcb38e-f2af-412f-8f57-dffdad1193b5) 具体实现细节可能有疏漏,辛苦一起re一下呀@gshilei
diff --git a/crds/v1alpha1/kuscia.secretflow_appimages.yaml b/crds/v1alpha1/kuscia.secretflow_appimages.yaml index b6b424ac8..44f33deab 100644 --- a/crds/v1alpha1/kuscia.secretflow_appimages.yaml +++ b/crds/v1alpha1/kuscia.secretflow_appimages.yaml @@ -351,7 +351,10 @@ spec: ...
9
9
5
[{"id": "G0", "claim": "The 'not guaranteed to be set in happens-before order' wording copied into the pod/service time-field doc comments is unclear, and the reviewer asks what it is meant to express.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
secretflow__kuscia__716
secretflow/kuscia
716
defect
13319cc8049f1eb18e9296f9f10a176e179d31d8
62c1d71c0a6fb62e9e66226155c5cd300413d642
统一 Kuscia 项目中的测试文件
Fixed #519
diff --git a/docs/development/build_kuscia_cn.md b/docs/development/build_kuscia_cn.md index 7cd55aeb4..3925d9f45 100644 --- a/docs/development/build_kuscia_cn.md +++ b/docs/development/build_kuscia_cn.md @@ -107,7 +107,7 @@ Kuscia 的集成测试可以对 Kuscia 镜像进行测试,创建测试目录 t ```shell export KUSCIA_IMAGE={YOUR_KUSCIA_IMAGE} mkdi...
6
5
5
[{"id": "G0", "claim": "docs/development/build_kuscia_cn.md still refers to integration_test.sh by its old locations (scripts/test/integration_test.sh in prose, and /home/kuscia/scripts/test/integration_test.sh in the docker pull command) and should be updated to the migrated tests paths.", "category": "documentation",...
null
secretflow__kuscia__962
secretflow/kuscia
962
defect
b2020b9c8e077f86829cf100841d5d230c06b4f5
de1929bd7e2edec2b22f3b0b30b9d8a15cded1d7
feat:kuscia支持达梦数据源(#739)
kuscia支持达梦数据源(具体实现在dataproxy),但是kuscia也需要配套进行少量修改。 具体issue:https://github.com/secretflow/kuscia/issues/739
diff --git a/pkg/common/constants.go b/pkg/common/constants.go index f8466fd41..14d67f5c4 100644 --- a/pkg/common/constants.go +++ b/pkg/common/constants.go @@ -229,6 +229,7 @@ const ( DomainDataSourceTypeODPS = "odps" DomainDataSourceTypePostgreSQL = "postgresql" DomainDataSourceTypeHive ...
3
3
3
[{"id": "G0", "claim": "Add common.DomainDataSourceTypeDameng to the switch statement of the kusciaapi decodeDataSourceInfo function (around line 599) so that Dameng data source info is decoded correctly.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"...
null
secretflow__scql__533
secretflow/scql
533
defect
c0abda6d5a34c9d008f7829c622a6440b9c04a7b
748c7569683c127b8a53f4f6338a083cdab3647f
feat: add secret`PERCENTILE_DISC` implementation
Currently the interpreter both for private or secret, the implementations only take the "with group by" scenario into consideration, the "without group by" scenario will be covered in the later pull requets
diff --git a/pkg/interpreter/operator/constant.go b/pkg/interpreter/operator/constant.go index 02c276d2..cae36059 100644 --- a/pkg/interpreter/operator/constant.go +++ b/pkg/interpreter/operator/constant.go @@ -87,17 +87,18 @@ const ( OpNameGroupHeSum string = "GroupHeSum" OpNameGroupPercentileDisc string ...
5
2
0
[{"id": "G0", "claim": "The error message in the new AggPercentileDisc case of buildObliviousGroupAggregation refers to buildPrivateGroupAggregation, which seems incorrect, and should name buildObliviousGroupAggregation.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id...
null
secretflow__scql__569
secretflow/scql
569
defect
e53b77d3101459effb53a5b7323a4965401c69eb
5b2d001c30cbc95b455f6cde058c4e716858b1c3
Implicit Type Conversion for Temporal Types
support query like `SELECT ta.ID, date FROM ta right join tb on ta.ID = tb.ID where '2025-04-23 12:25:42' < ta.date;`
diff --git a/pkg/interpreter/translator/translator.go b/pkg/interpreter/translator/translator.go index 2368e02f..ef7c47e2 100644 --- a/pkg/interpreter/translator/translator.go +++ b/pkg/interpreter/translator/translator.go @@ -34,6 +34,7 @@ import ( "github.com/secretflow/scql/pkg/status" "github.com/secretflow/scq...
9
5
1
[{"id": "G0", "claim": "StringToUnixMilli returning 0 together with an error for unsupported formats is misleading since 0 is a valid timestamp; it should return a specific error value or a more descriptive error instead.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "...
null
secretflow__scql__574
secretflow/scql
574
defect
e53b77d3101459effb53a5b7323a4965401c69eb
408a943d8271dbf164d034a3e9321a4f18c855ed
feat: Implement the archive project API
- Any project member can initiate an archive project request and broadcast it to the other members of the project. - As long as the project creator receives the request and responds with success, the member who initiated the archive project can consider the archive operation successful. - For members who did not rece...
diff --git a/cmd/brokerctl/cmd/archive.go b/cmd/brokerctl/cmd/archive.go new file mode 100644 index 00000000..f383b112 --- /dev/null +++ b/cmd/brokerctl/cmd/archive.go @@ -0,0 +1,42 @@ +// Copyright 2025 Ant Group Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this...
10
8
0
[{"id": "G0", "claim": "ArchiveProject updates the project's archived status before sending the sync request to the project creator, so a failed sync would leave the project archived locally but not on the creator's side; the sync should be sent before updating the status.", "category": "correctness", "verdict": "suppo...
null
secretflow__scql__606
secretflow/scql
606
defect
b61cb172cb7e4ebf832175f47776e41acd160b16
cee8d4dd4d5c6d82731a1af869b1e9362017afd5
Feat: Support str_to_date
Supports queries such as: ```sql SELECT ta.ID, ta.date FROM ta right join tb on ta.ID = tb.ID where ta.date > str_to_date('2025-06-05', '%Y-%m-%d'); SELECT ta.ID, ta.date FROM ta right join tb on ta.ID = tb.ID where ta.date > str_to_date(tb.str_date, '%Y/%m/%d '); ``` The format string should conform to my...
diff --git a/engine/operator/BUILD.bazel b/engine/operator/BUILD.bazel index dbd31783..dafd149c 100644 --- a/engine/operator/BUILD.bazel +++ b/engine/operator/BUILD.bazel @@ -59,6 +59,7 @@ cc_library( ":shape", ":shuffle", ":sort", + ":str_to_date", ":trigonometric", ...
3
3
3
[{"id": "G0", "claim": "The StrToDate operator should be merged into the existing generic ArrowFunc operator (located in arrow_func) rather than being a standalone operator.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The format pattern should be pass...
null
secretflow__scql__608
secretflow/scql
608
defect
7ffdd0e56571525e941b9379e188351e6afdb0b9
f16db46acbef03a41cc51bc7e24397029fe1a89c
Fix: Convert date-strings into Unix sec instead of Unix millisec
- engine uses Unix sec to represent temporal types
diff --git a/pkg/interpreter/graph/graph_optimizer.go b/pkg/interpreter/graph/graph_optimizer.go index ce3bbee8..c7843a81 100644 --- a/pkg/interpreter/graph/graph_optimizer.go +++ b/pkg/interpreter/graph/graph_optimizer.go @@ -215,11 +215,11 @@ func castValue(scalarAttr *Attribute, originType, castType proto.PrimitiveD...
2
1
0
[{"id": "G0", "claim": "In pkg/util/stringutil/string_util_test.go the variable unixMilli should be renamed (e.g. to unixSec) since it now stores Unix seconds.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In pkg/util/stringutil/string_util.go ...
null
secretflow__scql__611
secretflow/scql
611
defect
61f83166a5fed6c5bc3945b517c7834c0627b3bc
728d358a634fd6e8d9e99a6dae25de6d1819e114
Refactor: Support timezone for timestamp(Implicit Conversion)
support queries such as `select * from ta.ts > '2024-05-01T18:00:00+08:00'` `select * from ta.ts > '2024-05-01T10:00:00Z'`
diff --git a/pkg/interpreter/graph/graph_optimizer.go b/pkg/interpreter/graph/graph_optimizer.go index c7843a81..3c3cdd95 100644 --- a/pkg/interpreter/graph/graph_optimizer.go +++ b/pkg/interpreter/graph/graph_optimizer.go @@ -213,16 +213,23 @@ func castValue(scalarAttr *Attribute, originType, castType proto.PrimitiveD...
4
3
0
[{"id": "G0", "claim": "The \"2006-01-02 15:04:05 MST\" layout can parse timezone abbreviations inconsistently or fail depending on the system's timezone database, and its limitations should at least be documented in a code comment.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introd...
null
secretflow__scql__629
secretflow/scql
629
defect
4e2614069d016f839f4be4f88f36d0fc21ea5b7a
b7252a7f50fc2611056ecc1bf477c8e8422340a7
add `rank` window function private implementation
add the implementation of rank window function both for the interpreter and the engine operator
diff --git a/cmd/regtest/testdata/single_party.json b/cmd/regtest/testdata/single_party.json index 89f25133..361c467b 100644 --- a/cmd/regtest/testdata/single_party.json +++ b/cmd/regtest/testdata/single_party.json @@ -1,5 +1,10 @@ { "queries": [ + { + "name": "rank", + "query": "select ta.plain_int_0,...
8
5
2
[{"id": "G0", "claim": "The test case `row_number and rank(private)` in cmd/regtest/testdata/two_parties.json aliases both rank() and row_number() as `num`, which the reviewer says is a syntax error that will likely cause the test to fail; unique aliases should be used.", "category": "correctness", "verdict": "supporte...
null
secretflow__scql__742
secretflow/scql
742
defect
5de28ec2adb5af61385c7d3f2b9ec811bf6a796c
69e7a0f3d63ad33d366c64bbfada5a1835cf375c
SCDB 支持以 DRY-RUN 模式执行 Query
#477 测试截图如下: <img width="1846" height="766" alt="802621cb5099dd67c1b626960f8d3efd" src="https://github.com/user-attachments/assets/e4b25624-cb93-4b91-bfab-ac6dab883adb" /> <img width="1836" height="744" alt="3d862e7ccfd232d6eda73cedb77ee3e4" src="https://github.com/user-attachments/assets/d2ae52fb-b724-43f2-a...
diff --git a/api/scdb_api.proto b/api/scdb_api.proto index f94ea5df..f9e6f43a 100644 --- a/api/scdb_api.proto +++ b/api/scdb_api.proto @@ -97,6 +97,8 @@ message SCDBQueryRequest { // Current database name string db_name = 6; + // If true, only validate query syntax and CCL without actually executing the query ...
10
10
3
[{"id": "G0", "claim": "Test 5's assertion logic is unclear and non-deterministic: the CCL-dependent error is discarded with `_ = err`, so the test setup should be changed to guarantee the query fails for lack of CCL and the error asserted with r.Error(err).", "category": "testing", "verdict": "supported", "priority": ...
null
securego__gosec__1177
securego/gosec
1,177
defect
a5d9ef67e2c945ab409da174596ee8be564633fe
669c41153f13ec8e73e9f8814f44a2da2117e3ba
Add support to generate auto fixes using LLM (AI)
This feature adds support to generate auto fixes for Go scanning findings using LLM (AI). In a first instance, it relies on Gemini API to get a suggestion for a solution. This can be later extended, to integrate also other AI providers.
diff --git a/Makefile b/Makefile index 6b92d64aca..c703c21351 100644 --- a/Makefile +++ b/Makefile @@ -92,4 +92,4 @@ image-push: image tlsconfig: go generate ./... -.PHONY: test build clean release image image-push tlsconfig +.PHONY: test build clean release image image-push tlsconfig \ No newline at end of file d...
25
20
8
[{"id": "G0", "claim": "The flag should be named generically (e.g. `ai-api-key`) and a second `ai-api-provider` option with default `none` should be introduced so other providers can be supported in the future.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
securego__gosec__1180
securego/gosec
1,180
defect
56f943b802579b69d96f0999a7943c588e600ae7
b8bc4f4fd85b88d6c5349358c7f924b2af2f4565
Allow excluding analyzers globally
* This change does not exclude analyzers for inline comment * Changed the expected issues count for G103, G109. Previously G115 has been included in those issues count. * Show analyzers IDs(G115, G602) in gosec usage help * See #1175 fixes #1175
diff --git a/analyzer.go b/analyzer.go index 07498ce808..df1e0c5e0d 100644 --- a/analyzer.go +++ b/analyzer.go @@ -182,7 +182,7 @@ type Analyzer struct { showIgnored bool trackSuppressions bool concurrency int - analyzerList []*analysis.Analyzer + analyzerSet *AnalyzerSet mu ...
6
5
0
[{"id": "G0", "claim": "Add a godoc comment to the exported AnalyzerBuilder type since it is public.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename the AnalyzersInfo receiver from rl to al and use a pointer receiver.", "category": "maintain...
null
securego__gosec__1194
securego/gosec
1,194
defect
c52dc0ea4e0fed5898f6b1d1f1028bd20ac0fa86
c92e798ef559c13b57c54784c9f51d26893bd2db
Improvement the int conversion overflow logic to handle bound checks
As per discussion in #1187, the implementation was lacking. This PR extends the bounds check logic to validate that the integer size is checked within the bounds of the destination type. I'd like to hear @rittneje's opinion on the changes as they reported the issues with it and @ben-krieger's too since he is alread...
diff --git a/analyzers/conversion_overflow.go b/analyzers/conversion_overflow.go index 540964a369..364d7213aa 100644 --- a/analyzers/conversion_overflow.go +++ b/analyzers/conversion_overflow.go @@ -50,10 +50,10 @@ func runConversionOverflow(pass *analysis.Pass) (interface{}, error) { case *ssa.Convert: src ...
18
17
8
[{"id": "G0", "claim": "The minBoundChecked and maxBoundChecked flags need not be preinitialized to false; assign the helper calls directly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The recursive closure should not be declared with a var s...
null
securego__gosec__1197
securego/gosec
1,197
defect
4ae73c8ba3a6b38e3c1bafad75f59cb4910e389f
0e503a67a0776d7cbfaa985d58c2d1416f3af857
Add new rule G407 to detect hard-coded nonce and initialization vectors in crypto algorithms
This rule looks for hard-coded nonce/ initialization vectors or variables which have hard-coded nonces/IV, that are given to multiple encryption algorithms such as: AES CBC,CTR,OFB,CFB,ASCON,CHACHA20 The rule has the following features: * Ability to track hard-coded args passed directly to the function * Ability t...
diff --git a/README.md b/README.md index a9384c970c..7b8b526a83 100644 --- a/README.md +++ b/README.md @@ -157,6 +157,7 @@ directory you can supply `./...` as the input argument. - G404: Insecure random number source (rand) - G405: Detect the usage of DES or RC4 - G406: Detect the usage of MD4 or RIPEMD160 +- G407: ...
17
16
6
[{"id": "G0", "claim": "The CI run reports lint errors that need fixing.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Check that iterateAndGetArgsFromTrackedFunctions doesn't return a nil pointer before dereferencing its result.", "category": ...
null
securego__gosec__1328
securego/gosec
1,328
defect
5fd2a370447223541cddb35da8d1bc707b7bb153
2e5f9b0f6f63b6fb69660677e5646c3c5689fbb9
remove G113. It only affects old/unsupported versions of Go
Newer versions of go (>=1.16.14, >=1.17.7, 1.18+) are not affected by this. Don't warn at all on those newer versions. See https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-23772
diff --git a/rules/math_big_rat.go b/rules/math_big_rat.go index 1aac1fa201..5c6a83f716 100644 --- a/rules/math_big_rat.go +++ b/rules/math_big_rat.go @@ -21,13 +21,12 @@ func (r *usingOldMathBig) Match(node ast.Node, ctx *gosec.Context) (gi *issue.Is return nil, nil } - confidence := issue.Low major, minor, b...
3
3
2
[{"id": "G0", "claim": "The G113 version condition should also cover minor < 16 so the rule alerts on all affected Go versions, per the suggested one-liner.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The G113 check should be removed completely...
null
securego__gosec__1431
securego/gosec
1,431
defect
fde75152394005b98542190c73b8eeea4c10db15
fdaa16d47f85805cd2281446bfc638a186bd34a9
feature: add rule for trojan source
### Description Add rule to detect Trojan Source attacks (CVE-2021-42574) using bidirectional Unicode control characters as G116. The rule scans entire file content to detect dangerous bidirectional text control characters: RLO (U+202E), LRI/RLI/FSI (U+2066/2067/2068), LRE/RLE (U+202A/202B), PDF (U+202C), LRO ...
diff --git a/issue/issue.go b/issue/issue.go index b7c804e455..28c876b339 100644 --- a/issue/issue.go +++ b/issue/issue.go @@ -67,6 +67,7 @@ var ruleToCWE = map[string]string{ "G112": "400", "G114": "676", "G115": "190", + "G116": "838", "G201": "89", "G202": "89", "G203": "79", diff --git a/rules/rulelist....
3
2
1
[{"id": "G0", "claim": "Reading the whole file with os.ReadFile may run into memory and performance issues on large files; use a streaming bufio.Scanner instead.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request's code still has lint i...
null
securego__gosec__1480
securego/gosec
1,480
defect
15cba7fae1b53a2dc6bb4092232f9a84033d121a
8c307d61c90b968440cf0355e2ac191b0ee6e80a
feat: implement global cache usage in rules
Split out from https://github.com/securego/gosec/pull/1467
diff --git a/gosec_cache.go b/gosec_cache.go new file mode 100644 index 0000000000..f9e460f40a --- /dev/null +++ b/gosec_cache.go @@ -0,0 +1,96 @@ +package gosec + +import ( + "container/list" + "regexp" + "sync" +) + +// GlobalCache is a shared LRU cache for expensive operations (Regex matching, Entropy analysis). +va...
3
3
1
[{"id": "G0", "claim": "The RegexMatch helper should be moved out of gosec_cache.go into its own regex utility file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The RegexMatch function should be renamed to RegexMatchWithCache.", "category": "...
null
securego__gosec__1630
securego/gosec
1,630
defect
1af5d582f8fa08ac6621ccc1168b4d3d9d2b2eec
d1daf503104e489b79aa7f03804bdc91bdce686e
fix(taint): gate *http.Request auto-taint on entry-point detection
**Fix G704 false positive on interface wrapper methods** Fixes #1629 `isParameterTainted` unconditionally treated any `*http.Request` parameter as tainted by type, without checking whether callers actually passed tainted data. This caused false positives on wrapper methods like `NamedClient.Do` called exclusively...
diff --git a/taint/taint.go b/taint/taint.go index f9adbe4db2..4adff1459e 100644 --- a/taint/taint.go +++ b/taint/taint.go @@ -858,23 +858,47 @@ func (a *Analyzer) isParameterTainted(param *ssa.Parameter, fn *ssa.Function, vi } } - // Check if parameter type is a source type. - // This is the ONLY place where ty...
1
1
1
[{"id": "G0", "claim": "Gating source-type (e.g., *http.Request) auto-taint on call-graph entry-point detection makes exported functions or HTTP handlers that are called both externally and internally conclude their parameters are untainted, producing false negatives that suppress real vulnerabilities.", "category": "s...
null
securego__gosec__201
securego/gosec
201
defect
7790709b81d1871944ee999e7261e111e17e4156
6a914c43dc58f7ae272e9eda394105adde74fb23
Add an option for Go build tags
Add an option to Go build tags (https://golang.org/pkg/go/build/) @Fixes #157 cc @gcmurphy
diff --git a/analyzer.go b/analyzer.go index 6292082c00..d3a47ecb14 100644 --- a/analyzer.go +++ b/analyzer.go @@ -97,9 +97,11 @@ func (gas *Analyzer) LoadRules(ruleDefinitions map[string]RuleBuilder) { } // Process kicks off the analysis process for a given package -func (gas *Analyzer) Process(packagePaths ...str...
1
1
0
[{"id": "G0", "claim": "Could the README.md be updated with a usage example for the new build-tags option?", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
securego__gosec__247
securego/gosec
247
defect
ec32ce68d8d69178086e63edd1ea40e6c26aba62
13e2cbfd879b6bb4d6c589e46f346d816b8d0f01
Fix false positives for SQL string concatenation with constants from another file
Fixes #169. Sorry, it's been a while, was busy with work. 😅 This PR aims to handle the following case: main.go ```go package main func main() { ... rows, err := db.Query("SELECT * FROM foo WHERE gender = " + gender) ... } ``` constants.go (for example) ```go package main ... const gende...
diff --git a/analyzer.go b/analyzer.go index 231b718b56..ef8bae9729 100644 --- a/analyzer.go +++ b/analyzer.go @@ -39,6 +39,7 @@ type Context struct { Comments ast.CommentMap Info *types.Info Pkg *types.Package + PkgFiles []*ast.File Root *ast.File Config map[string]interface{} Imports *Impo...
1
1
1
[{"id": "G0", "claim": "A test should be added for the new use case handled by checkObject in rules/sql.go: SQL string concatenation with a constant that is resolved from another file of the same package.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
securego__gosec__405
securego/gosec
405
defect
28c1128b733663b49bf16953bc7005e887d7a8bf
dcd98c056dbda25963fecc61793be5cc41d96bd5
Julian add cwe rulemappings
Fixes #368 Add CWE rule mappings to gosec rules.
diff --git a/output/formatter.go b/output/formatter.go index 428661a77c..389eb96f81 100644 --- a/output/formatter.go +++ b/output/formatter.go @@ -18,6 +18,7 @@ import ( "encoding/csv" "encoding/json" "encoding/xml" + "fmt" htmlTemplate "html/template" "io" "strconv" @@ -31,6 +32,52 @@ import ( // ReportFo...
1
1
1
[{"id": "G0", "claim": "Unit tests should be added in formatter_test.go to validate the CWE rule mapping.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
securego__gosec__435
securego/gosec
435
defect
459e2d3e91bd0c6d4b989238a613b40cadd1ab1f
6f7b736a6cdd657ce014a1089fdadfc56dd2d2c9
Fix the errors rule whitelist to work on types methods
fixes #267
diff --git a/call_list.go b/call_list.go index 556a1e8c96..f22c7373fb 100644 --- a/call_list.go +++ b/call_list.go @@ -56,9 +56,22 @@ func (c CallList) Contains(selector, ident string) bool { return false } -// ContainsCallExpr resolves the call expression name and type -/// or package and determines if it exists ...
1
1
0
[{"id": "G0", "claim": "The comment on line 60 of call_list.go misspells \"itself\" as \"itslef\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
securego__gosec__479
securego/gosec
479
defect
8630c43b664c0778250b8f15ceabee5f82fc3a33
fabb4d8ab3bf5e67935a74d14ab969ff00aae302
Various improvements in the SQL rules
- Improve the SQL concatenation and string formatting rules to be applied only in the database/sql context - Make the heuristic case insensitive - Handle multiple strings concatenation fixes #264 #369 #345
diff --git a/helpers.go b/helpers.go index 40dc8e9c30..5e90f4053c 100644 --- a/helpers.go +++ b/helpers.go @@ -226,6 +226,27 @@ func GetIdentStringValues(ident *ast.Ident) []string { return values } +// GetBinaryExprOperands returns all operands of a binary expression by traversing +// the expression tree +func Ge...
2
1
1
[{"id": "G0", "claim": "The rewritten multi-line-statement test in issue_test.go no longer verifies that a finding spanning multiple lines reports an accurate line range (e.g. 3-4 rather than just the first line), so the goal of the test is lost.", "category": "testing", "verdict": "supported", "priority": "P1", "scope...
null
securego__gosec__735
securego/gosec
735
defect
ff17c30a974f98bf01824efec86404286c8278e3
b539328ef0a545d277ef9cd8457c0adb33cf4000
Suppression support
Add a new feature to track suppression info of GoSec. Details described in #723 fixes #723
diff --git a/analyzer.go b/analyzer.go index 3809bdcf65..7d10e006ea 100644 --- a/analyzer.go +++ b/analyzer.go @@ -43,6 +43,8 @@ const LoadMode = packages.NeedName | packages.NeedTypesInfo | packages.NeedSyntax +const externalSuppressionJustification = "Globally suppressed." + var generatedCodePattern = regexp.M...
10
8
2
[{"id": "G0", "claim": "The magic \"*\" id used to mean \"all rules are ignored\" needs to be documented.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should add a section in the README documenting the suppression-tracking featu...
null
securego__gosec__786
securego/gosec
786
defect
26f10e0a7ab6e0bfb561af1757e17243edaf93ec
923ee4c3a002e2ef7ffbad086a1e6215c98a0952
Adds directory traversal for Http.Dir("/")
Fixes #569
diff --git a/README.md b/README.md index 772e124f89..817b59c196 100644 --- a/README.md +++ b/README.md @@ -143,6 +143,7 @@ directory you can supply `./...` as the input argument. - G108: Profiling endpoint automatically exposed on /debug/pprof - G109: Potential Integer overflow made by strconv.Atoi result conversion ...
2
2
2
[{"id": "G0", "claim": "The grules list in the formatter test should include \"G111\" (it lists \"G110\" twice instead, so the new rule is not covered by the formatter tests).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new traversal rule is ...
null
securego__gosec__809
securego/gosec
809
defect
a64cde55a4499d951566243783f204e94b9197ed
f746507bc22651f3cd62044c99e3ef158520df0a
Add new rule for Slowloris Attack
fix #807 Hi! This PR add a new rule to detect if ReadHeaderTimeout is configured in the http.Server. If it's not configured, an issue will be reported. The rule is mapped to [CWE-400: Uncontrolled Resource Consumption](https://cwe.mitre.org/data/definitions/400.html), I've used google to search "cwe Slowloris Att...
diff --git a/README.md b/README.md index 732919d172..337477db8e 100644 --- a/README.md +++ b/README.md @@ -144,6 +144,7 @@ directory you can supply `./...` as the input argument. - G109: Potential Integer overflow made by strconv.Atoi result conversion to int16/32 - G110: Potential DoS vulnerability via decompression...
1
1
0
[{"id": "G0", "claim": "The comment above SampleCodeG112 should be of the form \"SampleCodeG112 ...\" to satisfy the lint warning.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
securego__gosec__819
securego/gosec
819
defect
fb587c1d106addd2efc9d62c1ebc31a6caa9d746
ebd237e814e2d620056514ecbb238c67fc5e094a
Add check for usage of Rat.SetString in math/big with an overflow error
Rat.SetString in math/big in Go before 1.16.14 and 1.17.x before 1.17.7 has an overflow that can lead to Uncontrolled Memory Consumption. It is the CVE-2022-23772. Fix of #810
diff --git a/README.md b/README.md index 337477db8e..d174c1980a 100644 --- a/README.md +++ b/README.md @@ -145,6 +145,7 @@ directory you can supply `./...` as the input argument. - G110: Potential DoS vulnerability via decompression bomb - G111: Potential directory traversal - G112: Potential slowloris attack +- G11...
1
1
1
[{"id": "G0", "claim": "Use the existing helper function (e.g. ContainsPkgCallExpr, as in rules/rsa.go) to check the math/big Rat.SetString call instead of manually parsing with GetCallInfo.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
securesecrets__shade__115
securesecrets/shade
115
defect
40a1eb4da53c9d44ecdb3dc5d5f0d3920a4c1884
24266ffeba2af3639e9abe82d029d905e5614ad8
Staking | initial contract
Created a working concept for the staking contract. It currently allows users to stake and unbond after waiting a set amount of time
diff --git a/Cargo.toml b/Cargo.toml index 0476dac38..b35976dbb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,7 @@ members = [ "packages/shade_protocol", "packages/secretcli", "contracts/governance", + "contracts/staking", "contracts/initializer", "contracts/mint", "contracts/micro_mint", diff ...
2
1
0
[{"id": "G0", "claim": "The contract should provide some way (e.g. a \"Provide Rewards\" message) for treasury/governance to give rewards to stakers.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "try_query_staker should be renamed (e.g. get_voting_power...
null
securesecrets__shade__116
securesecrets/shade
116
defect
40a1eb4da53c9d44ecdb3dc5d5f0d3920a4c1884
dfa2a743cfa21095127aba3515e8436f6c023c2a
Airdrop | contract
Added a working airdrop contract, integration tests for it are also implemented
diff --git a/Cargo.lock b/Cargo.lock index cda9d1510..0b2a361da 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -26,6 +26,22 @@ dependencies = [ "memchr", ] +[[package]] +name = "airdrop" +version = "0.1.0" +dependencies = [ + "cosmwasm-schema 0.10.0", + "cosmwasm-std", + "cosmwasm-storage", + "mockall", + "mockall_do...
5
3
0
[{"id": "G0", "claim": "Rename the redeem handler to `claim` to match `claim_status_r` naming.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename the date fields to `xxx_time` since they hold epoch timestamps.", "category": "maintainability", "verdict...
null
securesecrets__shade__138
securesecrets/shade
138
defect
2ccbe794a54698a0df50391ca47ec1fb35c93387
cf6eb3712e1e718d95981d12150058976076aadc
Airdrop | minor tweaks
Added a brute decay where the unclaimed amount gets dumped into the ```dump_address``` once ```end_date``` is reached. Replaced minting items with sending, the contract will now have to be funded before it can start distributing rewards. Fixed potential issue regarding token distribution when handling certain amounts...
diff --git a/contracts/airdrop/src/contract.rs b/contracts/airdrop/src/contract.rs index afe707a81..dcf00bfac 100644 --- a/contracts/airdrop/src/contract.rs +++ b/contracts/airdrop/src/contract.rs @@ -5,8 +5,8 @@ use shade_protocol::{ QueryMsg, Config } }; -use crate::{state::{config_w, reward_w, claim_s...
2
1
0
[{"id": "G0", "claim": "Asks whether the fallthrough return in try_decay should be an \"Unauthorized\" error as written.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Asks that the hard-coded messages vector in try_claim be initialized directly in the H...
null
securesecrets__shade__145
securesecrets/shade
145
defect
de35976c320a6161718faa869823f50ded571cab
ed47ff15dc3e0905280a70952c364aae510b8c3a
Airdrop merkle trees
Added merkle proofs to prove airdrop validity. This replaces the high gas cost of uploading the airdrop json
diff --git a/contracts/airdrop/Cargo.toml b/contracts/airdrop/Cargo.toml index 9e55f1288..fa9a6d9d7 100644 --- a/contracts/airdrop/Cargo.toml +++ b/contracts/airdrop/Cargo.toml @@ -33,5 +33,6 @@ shade-protocol = { version = "0.1.0", path = "../../packages/shade_protocol" } schemars = "0.7" serde = { version = "1.0.10...
10
4
0
[{"id": "G0", "claim": "Clarify the `// Check permit legitimacy / skip if permit is sender` comment so it explains why the sender's own permit is skipped.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the stray slash in the Config `max_amount...
null
securesecrets__shade__154
securesecrets/shade
154
defect
2e46a3a0c04fd3d69a0d79b8fb8efa44259e5504
cb910a6bbd717c7f8cad202421ff36cb5dde8642
Airdrop permit fixes
Expanded ```PubKey``` traits to allow for ```HumanAddress``` and ```CanonicalAddress``` creation. ```Account``` now has its own permit, its shorter and removes the unnecessary things needed for address proof
diff --git a/contracts/airdrop/README.md b/contracts/airdrop/README.md index 4b48a533e..43d935774 100644 --- a/contracts/airdrop/README.md +++ b/contracts/airdrop/README.md @@ -191,7 +191,7 @@ Get the account's information ##### Request |Name |Type |Description | optional | |--------|-...
3
2
0
[{"id": "G0", "claim": "Fix the README typo \"THe\" -> \"The\" in the AccountProofMsg description.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the commented-out pubkey_to_account call (or clearly comment why it is kept), since it is uncl...
null
securesecrets__shade__158
securesecrets/shade
158
defect
97dbf0df904e923d30b29d7b9d6aa925686b05ac
37ac9a41b6cd12c80651149357738c19f6b536ac
Airdrop | query protection
Since total claimed amount is public, malicious nodes can query this information and calculate user claimed amounts. Query now has a rounding or step amount to protect against it. Once the airdrop ```end_date``` is reached and decay amount is claimed then the real amount is exposed.
diff --git a/contracts/airdrop/src/contract.rs b/contracts/airdrop/src/contract.rs index 8ab513347..f1a734d23 100644 --- a/contracts/airdrop/src/contract.rs +++ b/contracts/airdrop/src/contract.rs @@ -9,6 +9,7 @@ use crate::{state::{config_w, total_claimed_w}, handle::{try_update_config, try_add_tasks, try...
1
1
0
[{"id": "G0", "claim": "In the total_claimed query the chained calls compute claimed * (1/r) * (r/1), and since (1/r) * (r/1) == 1 the reviewer asks whether this is just a no-op.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
securesecrets__shade__214
securesecrets/shade
214
defect
56aa918c655e8220741ea2fc67d89a6675968752
0be3197e49f1d1d99796ab5a7816818adaced4ad
Shd sky
# Description Adds bare bones for sky and refactors some files to cosmwasm_math_compat ## Notable changes Sky as a contract is added More contracts us cosmwasm_math_compat ## Next steps integration, unit tests, and documentation for sky
diff --git a/Cargo.toml b/Cargo.toml index 8300ec3ae..41593896f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,7 @@ members = [ "contracts/mint_router", "contracts/oracle", "contracts/snip20", + "contracts/sky", # DAO # - Core diff --git a/contracts/mint/src/contract.rs b/contracts/mint/src/con...
14
14
6
[{"id": "G0", "claim": "The test-only crates (snafu, mockall, mockall_double, query-authentication) in contracts/sky/Cargo.toml should be moved to [dev-dependencies].", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Config need not store full ...
null
securesecrets__shade__226
securesecrets/shade
226
defect
5a01aeee7ca40a533fe3012f03e3e41925493071
d20a216b00c96b6478c939d8d37992e3e96dcf42
Query auth
<!-- NOTE: Listed items are examples and should be removed when making a PR --> # Description <!-- Quick description of what this PR achieves --> <!-- If it tackles any issue use something like - Fixes # (issue) --> Added a query authentication contract that allows all deployed smart contract to use one viewi...
diff --git a/Cargo.toml b/Cargo.toml index e1b8618b6..8632eebc6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,6 +17,7 @@ members = [ "contracts/mint_router", "contracts/oracle", "contracts/sky", + "contracts/query_auth", "contracts/snip20-reference-impl", diff --git a/contracts/airdrop/Cargo.toml b/c...
3
2
1
[{"id": "G0", "claim": "The bonds changes should be done separately, since kyle already has a bonds PR open and including them here will likely introduce merge conflicts.", "category": "process", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The contract should allow multiple ...
null
securesecrets__shade__248
securesecrets/shade
248
defect
e449ddec6f61dcb09f8f2965f0cb245530e5543a
1c9984b141f2c6f64b2682d8f356d4f1549f5b37
Peg stability
<!-- NOTE: Listed items are examples and should be removed when making a PR --> # Description <!-- Quick description of what this PR achieves --> <!-- If it tackles any issue use something like - Fixes # (issue) --> ## Notable changes <!-- List what the notable changes are --> - Added a peg stability co...
diff --git a/Cargo.toml b/Cargo.toml index ed687b0f2..05b1f57cd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,6 +18,7 @@ members = [ "contracts/mint_router", "contracts/oracle", "contracts/sky", + "contracts/peg_stability", "contracts/query_auth", # DAO diff --git a/contracts/governance/src/tests/mo...
16
13
2
[{"id": "G0", "claim": "The new peg_stability crate should use Rust edition 2021 instead of 2018.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The non-peg_stability features (sky-utils, adapter) should be folded into the shade_protocol peg_sta...
null
securesecrets__shade__259
securesecrets/shade
259
defect
eaa6c62ab761fb56205c6bca587eaf2426a1d846
445a030763d60ec4000694b7de34de4f252480a9
Dao test jbs
<!-- NOTE: Listed items are examples and should be removed when making a PR --> # Description <!-- Quick description of what this PR achieves --> <!-- If it tackles any issue use something like - Fixes # (issue) --> ## Notable changes <!-- List what the notable changes are --> - Lowered gas price on con...
diff --git a/contracts/mock_adapter/src/tests/mod.rs b/contracts/mock_adapter/src/tests/mod.rs index 9efffe129..52dc9850e 100644 --- a/contracts/mock_adapter/src/tests/mod.rs +++ b/contracts/mock_adapter/src/tests/mod.rs @@ -1,5 +1,6 @@ use shade_multi_test::interfaces::{ - dao::{init_dao, system_balance}, + dao...
1
1
1
[{"id": "G0", "claim": "Moving `portion_total += token_balance - amount_total;` inside the portions loop makes portion_total grow on every iteration, so the rebalance logic likely only works when there is a single portion allocation.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intro...
null
securesecrets__shade__264
securesecrets/shade
264
defect
7dc3400e2edc90a03f1a65f8ad0bb1e31363d512
874e0e38a4a26fb1b3a67c75c18feddccd8e41d6
more more more tests + some tm unbond upgrades
<!-- NOTE: Listed items are examples and should be removed when making a PR --> # Description <!-- Quick description of what this PR achieves --> <!-- If it tackles any issue use something like - Fixes # (issue) --> ## Notable changes <!-- List what the notable changes are --> - Lowered gas price on con...
diff --git a/contracts/mock_adapter/src/tests/mod.rs b/contracts/mock_adapter/src/tests/mod.rs index 285da7e08..9a5a574a6 100644 --- a/contracts/mock_adapter/src/tests/mod.rs +++ b/contracts/mock_adapter/src/tests/mod.rs @@ -1,5 +1,5 @@ use shade_multi_test::interfaces::{ - dao::{init_dao, system_balance, update_da...
2
2
1
[{"id": "G0", "claim": "The commented-out add_or_sub_adapter_tokens helper in packages/multi_test/src/interfaces/dao.rs should be deleted unless the author expects it to be useful moving forward.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
securesecrets__shade__323
securesecrets/shade
323
defect
8cb23b6c7eedacf7a60ee99a4649b2bfb0c8110b
4d02e52d2d826e399956a3c36f10bfb028043c1c
added metrics for bonds #ELDER-187
<!-- NOTE: Listed items are examples and should be removed when making a PR --> # Description <!-- Quick description of what this PR achieves --> <!-- If it tackles any issue use something like - Fixes # (issue) --> ## Notable changes <!-- List what the notable changes are --> - Lowered gas price on con...
diff --git a/contracts/bonds/src/contract.rs b/contracts/bonds/src/contract.rs index 768047020..9de98b0b3 100644 --- a/contracts/bonds/src/contract.rs +++ b/contracts/bonds/src/contract.rs @@ -1,6 +1,15 @@ use cosmwasm_math_compat::Uint128; use cosmwasm_std::{ - to_binary, Api, Binary, Env, Extern, HandleResponse,...
1
1
0
[{"id": "G0", "claim": "The interaction count should be widened from u16 to a larger integer type (u32) just in case it overflows.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
securesecrets__shade__336
securesecrets/shade
336
defect
80d8c7c12ce4a0ff46374dc3ffd7de9edf44ff5a
731cd8f3ef77fcbbd172e711738ea0021dfd2add
Burn and mint
Contract to facilitate the migration of Snip20s to the Snip25 standard Receives a token to burn and mints the new Snip25, sending the minted tokens to the user
diff --git a/Cargo.toml b/Cargo.toml index 15b100c35..232b6ed30 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,6 +21,7 @@ members = [ "contracts/peg_stability", "contracts/query_auth", "contracts/admin", + "contracts/snip20_migration", # DAO # - Core diff --git a/Makefile.toml b/Makefile.toml index a...
8
8
3
[{"id": "G0", "claim": "The query message variant is misspelled `RegistragionStatus` and should read `RegistrationStatus`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Metrics query should return an error for unregistered tokens and report...
null
securesecrets__shade__343
securesecrets/shade
343
defect
1d543c08e6845a88b04e3f234b6984e2779319e0
e64fdd625deb231d3c1facaa30a9c2ba69b6d420
feat: migration hotfix
<!-- NOTE: Listed items are examples and should be removed when making a PR --> # Description <!-- Quick description of what this PR achieves --> <!-- If it tackles any issue use something like - Fixes # (issue) --> ## Notable changes <!-- List what the notable changes are --> - Lowered gas price on con...
diff --git a/contracts/snip20_migration/src/contract.rs b/contracts/snip20_migration/src/contract.rs index 87881712..f24c3c7c 100644 --- a/contracts/snip20_migration/src/contract.rs +++ b/contracts/snip20_migration/src/contract.rs @@ -74,6 +74,13 @@ pub fn execute(deps: DepsMut, env: Env, info: MessageInfo, msg: Execut...
1
1
1
[{"id": "G0", "claim": "A test covering the admin checks on RegisterMigrationTokens should be added before redeploying.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
security-union__videocall-rs__744
security-union/videocall-rs
744
defect
a6ab7513434d8835dc8efb460c46f2ba956d8940
8972497bfaac724d25e304976b1f27ce9df3a409
Fix/638 microphone and camera selectors to be displayed under a settings icon
## Summary Refactored the device settings modal into a more extensible **Settings modal** with support for multiple sections. Previously the modal contained only device selection (microphone, camera, speaker). This change introduces a sidebar navigation and converts the modal into a generic settings container wh...
diff --git a/dioxus-ui/src/components/device_settings_modal.rs b/dioxus-ui/src/components/device_settings_modal.rs index 6364b77da..96caab4f6 100644 --- a/dioxus-ui/src/components/device_settings_modal.rs +++ b/dioxus-ui/src/components/device_settings_modal.rs @@ -8,6 +8,15 @@ use dioxus::prelude::*; use videocall_cli...
20
15
5
[{"id": "G0", "claim": "The `device_selector::DeviceSelector` import in host.rs is no longer used after the desktop device selector section was removed and should be dropped from the imports.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR...
null
seddonym__import-linter__104
seddonym/import-linter
104
defect
3dfc428301cc0c993d39102879cc06e083e3dfbb
aa748ab351218af0627f4a8383b9378599c04c0f
Fix TOML booleans
The main application logic assumes, that booleans are passed as strings from the config. However, TOML supports native booleans which are obviously no strings. The easiest solution is to translate bools to strings when parsing the TOML.
diff --git a/src/importlinter/adapters/user_options.py b/src/importlinter/adapters/user_options.py index 58b4cf8f..fe809152 100644 --- a/src/importlinter/adapters/user_options.py +++ b/src/importlinter/adapters/user_options.py @@ -98,4 +98,14 @@ def _read_config_filename(self, config_filename: str) -> Optional[UserOpti...
3
2
1
[{"id": "G0", "claim": "The build fails with a weird error: the readme link check gets a 404 Client Error fetching https://travis-ci.com/seddonym/import-linter.", "category": "build", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "It would make more sense to handle the fix in...
null
seddonym__import-linter__152
seddonym/import-linter
152
defect
a9930148259ff1c439c0ecdbc655d6f53c7b7fc3
65c8da56eab7d909c7e4d91c7aff7802b1a42662
Switch from toml to tomli/tomllib
The toml package is unmaintained, so it was appropriate to move away from it as a dependency. The tomli package is the most appropriate alternative, because it was incorporated into the Python standard library as of Python 3.11, under the name tomllib. Due to the prevalence of tomli as a compulsory dependency of man...
diff --git a/docs/toml.rst b/docs/toml.rst index a61c156d..94cdca10 100644 --- a/docs/toml.rst +++ b/docs/toml.rst @@ -40,7 +40,3 @@ Following, an example with a layered configuration: "medium", "low", ] - -Please note, that in order to use TOML files, you need to install the extra require ``toml...
3
3
0
[{"id": "G0", "claim": "The PR should add a 'latest' entry at the top of the CHANGELOG describing the switch from the optional toml dependency to the required tomli dependency for Python versions < 3.11.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
seddonym__import-linter__153
seddonym/import-linter
153
defect
c74d593a14bdc026e7022b882513b1316f60e33a
83a129820b52751a3b49ed2696389111cd4191a1
Use new and better DetailedImport type from grimp
This provides much more accurate type information about imports. This helps not just this codebase but all plugins too. I had to replace one string containing a question mark with a `-1`, as strings are now correctly no longer accepted as line numbers. This also required adjusting the report rendering code to replac...
diff --git a/setup.py b/setup.py index 7b4265b6..4dcaf627 100755 --- a/setup.py +++ b/setup.py @@ -53,7 +53,7 @@ def read(*names, **kwargs): python_requires=">=3.7", install_requires=[ "click>=6", - "grimp>=2.0", + "grimp>=2.2", "tomli>=1.2.1; python_version < '3.11'", ...
2
1
1
[{"id": "G0", "claim": "The -1 line_number placeholder set by _pop_direct_imports could surface in the contract report shown to end users and cause confusion; the report renderer should display a question mark in place of -1 (or the return value of _pop_direct_imports should be reworked so line_number and line_contents...
null
seddonym__import-linter__194
seddonym/import-linter
194
defect
cb53dce575f6493c5e304176f3f2c6bb7ce1e34b
7b885da360392d7ecc66b67e8a1e0e47f9ddf183
Enhance: allow extra empty line & spaces between the module names in the `ignore_imports`
Enhance: allow extra empty line & spaces between the module names in the `ignore_imports` The config blow contains some extra spaces and blank lines in the `ignored_imports` section: ```ini [importlinter] root_packages = foo_proj [importlinter:contract:layers-main] name=the main layers type=layers la...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index fc8dbe85..d8994ae2 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,8 @@ Latest * Officially support Python 3.12. * Fix: Error when using `click` version 6.0 and 7.0 (#191). +* Enhance: Allow extra whitespace around the module names in the `ignore_imports` c...
4
4
1
[{"id": "G0", "claim": "Change BaseMultipleValueField to ignore blank lines directly so all multiple value fields (e.g. exhaustive_ignores) benefit, instead of the DummyValue sentinel in ImportExpressionField, which adds complexity if the field is used as a single field.", "category": "design", "verdict": "supported", ...
null
seddonym__import-linter__201
seddonym/import-linter
201
defect
053a02948819d83f1eecfdd7927fe5f0c0d43048
59c435c580581aad725b51f8a2b897470969ceb6
add exclude_type_checking_imports setting
I'm really looking forward to this functionality, so I was happy it was added to `grimp` and I hope I added all needed changes 🤞 Fixes #198
diff --git a/AUTHORS.rst b/AUTHORS.rst index 2efdb57a..b5f690e3 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -20,3 +20,4 @@ Contributors * Matthew Gamble - https://github.com/mwgamble * Nick Pope - https://github.com/ngnpope * piglei - https://github.com/piglei +* Anton Gruebel - https://github.com/gruebel diff --g...
5
5
1
[{"id": "G0", "claim": "The docs line should say \"If this is ``True``\" instead of \"If this is set to `True`\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The docs line should use ``if TYPE_CHECKING:`` double-backtick markup instead of a mal...
null
seddonym__import-linter__209
seddonym/import-linter
209
defect
a7d09acfc57c20703a7f4136e67585f5d4100f5f
1eb0c1ad50ce23fa6a766c04aca8615c9c5ad4ba
Add support for non-independent sibling modules in layer contracts
This PR contains the changes needed within import-linter to support https://github.com/seddonym/import-linter/issues/208. This continues the prerequisite work in grimp to support this feature https://github.com/seddonym/grimp/pull/136.
diff --git a/pyproject.toml b/pyproject.toml index ac482a1c..44ddc95f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ authors = [ requires-python = ">=3.8" dependencies = [ "click>=6", - "grimp>=3.1", + "git+https://github.com/seddonym/grimp.git@88d49122dd66fe6d092a69a5e8a302e667e908d1",...
1
1
1
[{"id": "G0", "claim": "pyproject.toml pins grimp to a git commit, and this pinned dependency needs to be dropped and replaced with the released version of grimp before merging.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
seddonym__import-linter__229
seddonym/import-linter
229
defect
890ff4fb781b2aec62cbbe3aae8cd2d04588a14a
6769da1b9edd0fa047618473a5cbdc0ad7cdf82e
Add as_packages to Forbidden contracts
Following on from the work to add further `as_packages` support to Grimp [here](https://github.com/seddonym/grimp/pull/157/files#diff-97edc3a895c7938b1e9c18d493b37de3f1e4d448a34ca925caf3df1e9c975f47), this PR adds the `as_packages` options to Forbidden contracts so that we can forbid modules in addition to entire packa...
diff --git a/src/importlinter/contracts/forbidden.py b/src/importlinter/contracts/forbidden.py index f10eff52..d2514690 100644 --- a/src/importlinter/contracts/forbidden.py +++ b/src/importlinter/contracts/forbidden.py @@ -39,6 +39,7 @@ class ForbiddenContract(Contract): ignore_imports = fields.SetField(subfield=f...
5
5
3
[{"id": "G1", "claim": "The multi-line @pytest.mark.parametrize decorators could be written as one-liners.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The new as_packages option should also be documented in the public-facing documentation (do...
null
seddonym__import-linter__235
seddonym/import-linter
235
defect
d3efc5466684ceb404429b762d71bcb9090a76d8
d5de7256271e9b4180b306eebda6584b4bbe7ce3
Support module wildcards everywhere
Hey, after stumbling upon [this issue](https://github.com/seddonym/import-linter/issues/232), I decided to give the problem a go myself. I tried to follow the ideas you [outlined](https://github.com/seddonym/import-linter/pull/220#discussion_r1506215615) in the linked PR. Up until now, I've implemented the followi...
diff --git a/src/importlinter/application/contract_utils.py b/src/importlinter/application/contract_utils.py index 3fb6481a..81d5d69b 100644 --- a/src/importlinter/application/contract_utils.py +++ b/src/importlinter/application/contract_utils.py @@ -1,9 +1,9 @@ import enum -from typing import List, Optional, Sequence...
4
4
0
[{"id": "G0", "claim": "resolve_module_expressions should return a set[Module] rather than an Iterable[Module], or else document its expected behaviour with respect to ordering and duplicates.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ModuleExpressi...
null
seddonym__import-linter__248
seddonym/import-linter
248
defect
890ff4fb781b2aec62cbbe3aae8cd2d04588a14a
9d2391dc46bdbb8ef5a6f0bc42809a5938b221f8
Add support for wildcard containers in layers
I took a quick stab at #247. It's probably not the most integrated way of implementing it, so do feel free to let me know if I should make adjustments. Thanks!
diff --git a/src/importlinter/contracts/layers.py b/src/importlinter/contracts/layers.py index 5237974b..e633fc06 100644 --- a/src/importlinter/contracts/layers.py +++ b/src/importlinter/contracts/layers.py @@ -10,6 +10,7 @@ from importlinter.application.contract_utils import AlertLevel from importlinter.domain impor...
2
2
0
[{"id": "G0", "claim": "Rather than computing the containers three times, compute it once and pass it in to the methods that need the set of containers.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Adjust the documentation in /docs to reflect the ...
null
seddonym__import-linter__259
seddonym/import-linter
259
defect
a115aa69899d03e540d55b85d336d0cb1e5c6e00
826f21969dd1e33b347435945a954b5c9a23e228
Fix incorrect toml encoding on Windows
TOML is always encoded in UTF-8, no matter the platform. However, `open()` selects the default encoding based on the platform, which means that on Windows, a description like ``` Sätze müssen unabhängig von Blöcken sein ``` shows up as ``` Sätze müssen unabhängig von Blöcken sein ``` in the CLI output. ...
diff --git a/src/importlinter/adapters/filesystem.py b/src/importlinter/adapters/filesystem.py index 93134369..8d07c280 100644 --- a/src/importlinter/adapters/filesystem.py +++ b/src/importlinter/adapters/filesystem.py @@ -11,8 +11,8 @@ class FileSystem(ports.FileSystem): def join(self, *components: str) -> str: ...
3
3
1
[{"id": "G0", "claim": "Reproduce the Windows encoding problem with a functional test in tests/functional/test_read_configuration.py that reads from a real file (patching the locale encoding), rather than adjusting FakeFilesystem to simulate different encodings.", "category": "testing", "verdict": "supported", "priorit...
null
seddonym__import-linter__266
seddonym/import-linter
266
defect
e17a4407aaa8145cfa6f625e0f62be118a3fdbeb
e6a0998d253913a6914c18165b5c3ff0d73c3ff0
Add a protected contract type
Add a new contract type to protect modules or packages from un-allowed imports
diff --git a/src/importlinter/contracts/protected.py b/src/importlinter/contracts/protected.py new file mode 100644 index 00000000..e91bff16 --- /dev/null +++ b/src/importlinter/contracts/protected.py @@ -0,0 +1,107 @@ +from collections.abc import Iterable +import grimp +from importlinter.application import contract_ut...
10
8
3
[{"id": "G0", "claim": "The contract cannot protect external packages because, when as_packages is enabled, it expands descendants of squashed (external) modules; the expansion should skip squashed modules (e.g. `if self.as_packages and not graph.is_module_squashed(...)`) so external packages can be protected.", "categ...
null
seddonym__import-linter__287
seddonym/import-linter
287
defect
cb719abf3184e96c99ad07e6c77a94344fe4a3bd
bc5b0de33548beb82e8c41adb4a87249c0184e59
Correct protected contract documentation
The docs currently state that `protected_modules` are "the modules that must not be imported except by the list of importers, and by each other." But this is not true - this PR corrects them. <img width="766" height="783" alt="image" src="https://github.com/user-attachments/assets/2fea4ed3-fb22-489a-9df2-34265bcd...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index a9103159..5556b2d8 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,12 @@ Changelog ========= +latest +------ + +* Correct documentation that incorrectly stated that protected modules + are allowed to import each other. + 2.5 (2025-09-15) ----------------...
2
1
0
[{"id": "G0", "claim": "Reconsider removing the ``unmatched_ignore_imports_alerting = warn`` example from docs/contract_types.rst, since the docs were meant to show an example of all options.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add anothe...
null
seddonym__import-linter__305
seddonym/import-linter
305
defect
87a85dd4de83a7c45ce3fbdc582a50cea3ca1100
58442ec91de7cde77d8b27daeaa4695d5c5b01ce
Switch to rich
Switch to using Rich for output, paving the way for a nicer UI. Because the Rich console object provides an API for capturing the output, we no longer need to use ports and adapters for the printer (and, indeed, we don't need the idea of a printer at all). So this also simplifies the code somewhat.
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index d9d29e33..f853a698 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,11 @@ Changelog ========= +latest +------ + +* Print using rich instead of click. + 2.6 (2025-11-10) ---------------- diff --git a/pyproject.toml b/pyproject.toml index 8f5a4bec..614b8f5...
1
1
0
[{"id": "G0", "claim": "The test fake FakePrinter should not be switched to subclass the production Rich implementation (RichPrinter); the reviewer asks why that switch is needed or wanted here.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
seddonym__import-linter__338
seddonym/import-linter
338
defect
4326385481d81caaa67b8efa9481a0a5d3af892c
142e3711026fb0f30a66176b741af5fc9ffffd3f
Make "explore" dependencies optional
Close #337 [x] Add tests for the change. [x] Add any appropriate documentation. [x] Run `just check`. [x] Add a summary of changes to `docs/release_notes.md`. [x] Add your name to `docs/authors.md` (in alphabetical order).
diff --git a/docs/release_notes.md b/docs/release_notes.md index c3327542..5396d762 100644 --- a/docs/release_notes.md +++ b/docs/release_notes.md @@ -2,6 +2,7 @@ ## latest +* Make `fastapi` and `uvicorn` optional via the `ui` extra (`pip install import-linter[ui]`). * Bugfix: fix back button navigation in explor...
3
3
0
[{"id": "G0", "claim": "The UI installation docs would read better in docs/get_started/install.md with a matching warning callout on the UI page instead of the new Installation section in docs/ui.md.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
seddonym__import-linter__341
seddonym/import-linter
341
defect
163668e9a860276270f437ee82bba601dd64dd8c
0a97e58c9c4e606a25420ab8302c2368b57de625
feat: add --version flag to lint-imports and import-linter commands
Adds `click.version_option` to both CLI entry points so users can check the installed version. resolve #339 [x] Add tests for the change. [x] Add any appropriate documentation. [x] Run `just check`. [x] Add a summary of changes to `docs/release_notes.md`. [x] Add your name to `docs/authors.md` (in alphabetic...
diff --git a/docs/authors.md b/docs/authors.md index df51e7a2..615778ca 100644 --- a/docs/authors.md +++ b/docs/authors.md @@ -20,6 +20,7 @@ * [Kai Mueller](https://github.com/kasium) * [Lincoln Puzey](https://github.com/LincolnPuzey) * [Łukasz Skarżyński](https://github.com/skarzi) +* [Matt Wang](https://github.com...
2
2
2
[{"id": "G0", "claim": "The --version output should be tweaked by passing the message argument so it prints 'import-linter <version>' (e.g. 'import-linter 2.10'), matching ruff and pip3-style behaviour, instead of the default output that names the command 'lint-imports'.", "category": "correctness", "verdict": "support...
null
seddonym__import-linter__79
seddonym/import-linter
79
defect
334b4d1b85bae7f21f7678e5bda17af0e7487af2
50ff7ad36afffe33b23151101e5214a7edd35864
add `SetField`
Closes #69
diff --git a/AUTHORS.rst b/AUTHORS.rst index b34e861a..b0fa74b9 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -9,3 +9,4 @@ Contributors ============ * Anthony Sottile - https://github.com/asottile +* Łukasz Skarżyński - https://github.com/skarzi diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 49ecc2c8..faddc1cf 10...
3
3
1
[{"id": "G0", "claim": "SetField's inheritance from ListField is not valid according to mypy (needing a type-ignore on the parse override) and might be accused of breaking the Liskov Substitution Principle, so the design should be reworked, e.g. via composition or a shared parent class such as _MultipleValueField.", "c...
null
seddonym__import-linter__84
seddonym/import-linter
84
defect
a3cea0f536d452994d00365435067623044885e5
f7c41ffa70d0563e8a368a6d4c0234f760b10bac
Adds ability for exception modules to have any special characters as long as the delimiter is correct
I have a Django project with a root directory that has a `-`, and I want to constrain imports between apps. This works fine, but I can't add exceptions because they have the root directory in them, and the regex disallows `-`. I have also tried evaluating the project from within using a root directory of `.` or not i...
diff --git a/src/importlinter/domain/fields.py b/src/importlinter/domain/fields.py index e226ec96..32f62fef 100644 --- a/src/importlinter/domain/fields.py +++ b/src/importlinter/domain/fields.py @@ -117,7 +117,7 @@ class DirectImportField(Field): Expects raw data in the form: "mypackage.foo.importer -> mypackage.b...
3
3
1
[{"id": "G0", "claim": "DirectImportField should parse the raw data with str.partition instead of a regular expression, avoiding the re module altogether.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "CI tests are failing on the build (a proble...
null
seddonym__import-linter__92
seddonym/import-linter
92
defect
6e3a39a68a1dc5fde3c19c80323d50c18bc68e24
de4aab42be168d6bd637a3b93c963a60672f9de4
Adds an allow indirect import option to ForbiddenContract
This way you can forbid direct contracts only. Let me know if I should change how it is configured or how I should add appropriate tests. Closes #91
diff --git a/src/importlinter/contracts/forbidden.py b/src/importlinter/contracts/forbidden.py index 6badb2b7..c122ecfb 100644 --- a/src/importlinter/contracts/forbidden.py +++ b/src/importlinter/contracts/forbidden.py @@ -7,16 +7,14 @@ class ForbiddenContract(Contract): """ Forbidden contracts check that on...
5
3
2
[{"id": "G0", "claim": "A BoolField should be added to importlinter.domain.fields so boolean options like allow_indirect_imports do not need a string field.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new allow_indirect_imports option needs unit t...
null
sedwards2009__extraterm__121
sedwards2009/extraterm
121
defect
947e83dd81d5fe6055a4e07f86961baf34ebc61c
49e5cf329b40f6664ac507da70c29fdad6627836
Added argument support to Windows Consoles
This starts the process for supporting arguments, beginning with what I needed - Windows. A new example of a session: { "args": "docker run -v c:\\Users\\nshanny:/srv -it --user nshanny devbox bash", "exe": "powershell.exe", "name": "TADocker", "type": "windows-console", "uuid"...
diff --git a/extensions/WindowsConsoleSessionBackend/src/WindowsConsoleSessionBackendExtension.ts b/extensions/WindowsConsoleSessionBackend/src/WindowsConsoleSessionBackendExtension.ts index 5fed14630..38a57900c 100644 --- a/extensions/WindowsConsoleSessionBackend/src/WindowsConsoleSessionBackendExtension.ts +++ b/exte...
3
3
2
[{"id": "G0", "claim": "sessionConfig.args is passed to the shell as one single argument instead of being parsed and split into an array of separate arguments (supporting single and double quotes), which on Linux/mac would give the shell exactly one argument containing everything.", "category": "correctness", "verdict"...
null
seed-rs__seed__620
seed-rs/seed
620
defect
a60181edc329dec4fc3aa15da48850e568f27bc5
4d02f38a37b4aa2ee130e7a6fe0c3625f9f4141a
Fix string encoding issue
~~I would love it if there were a better way to canonically turn a `JsValue` into a `String`.~~ There is! Closes #619
diff --git a/src/browser/web_socket.rs b/src/browser/web_socket.rs index 7bb5d931..cf288471 100644 --- a/src/browser/web_socket.rs +++ b/src/browser/web_socket.rs @@ -2,6 +2,7 @@ use crate::app::Orders; use gloo_file::FileReadError; +use js_sys::JSON; use serde::Serialize; use serde_wasm_bindgen as swb; use wasm...
2
1
0
[{"id": "G0", "claim": "Since JSON::stringify returns a JsString, the fallible .as_string().ok_or(...) chain should be replaced with the infallible String::from(...) or an equivalent .into().", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The su...
null
seed4j__seed4j__11794
seed4j/seed4j
11,794
defect
631dd1fab58a5af75a380d942008d76c22e2d00a
c21f739a26854c4600c7b96b00870adbed246d68
Tailwindcss V4
Fix #11792 TODO: - [x] https://github.com/heroui-inc/heroui/issues/4644 - [x] Rename repo org next-ui to heroui - [x] Remove Postcss (Vite plugin now) <img width="703" alt="image" src="https://github.com/user-attachments/assets/6a995828-f3aa-41b6-9463-51db95715090" />
diff --git a/src/main/java/tech/jhipster/lite/generator/client/react/security/jwt/domain/ReactJwtModuleFactory.java b/src/main/java/tech/jhipster/lite/generator/client/react/security/jwt/domain/ReactJwtModuleFactory.java index 8835a40bb04..a3f54dcdf8e 100644 --- a/src/main/java/tech/jhipster/lite/generator/client/react...
1
1
1
[{"id": "G0", "claim": "The new vite.config.ts replacements the comment anchors to — and likewise the index.css changes — should be verified in tests, eventually with snapshot testing.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
seed4j__seed4j__12007
seed4j/seed4j
12,007
defect
5c1538d832d9680161a2562e425d2378ad9b79bc
6b18a16c58db4d528814fbdc1e8cfc054c15199d
improve presets configuration
- Fix #11877
diff --git a/.gitignore b/.gitignore index 5a7f394acd9..17db9d91ee8 100644 --- a/.gitignore +++ b/.gitignore @@ -199,3 +199,8 @@ src/main/resources/config/application-perso.* # Approvals testing src/test/resources/**/*.received.txt .approval_tests_temp/ + +###################### +# Personal Presets Definitions +####...
5
5
1
[{"id": "G0", "claim": "Add a stream() method to Presets so RestPresets.from can map over presets.stream() for improved readability, as done in JHipsterProjectFilesPaths.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the ProjectFiles met...
null
seed4j__seed4j__12288
seed4j/seed4j
12,288
defect
8763699b10995e0dabfde8e000141eb56f80576c
0aade9937fcc401b425e6eebd60dd645776239bc
Integrate Spring Boot's Docker Compose support
Closes https://github.com/jhipster/jhipster-lite/issues/12038
diff --git a/src/main/java/tech/jhipster/lite/generator/server/springboot/broker/kafka/domain/KafkaModuleFactory.java b/src/main/java/tech/jhipster/lite/generator/server/springboot/broker/kafka/domain/KafkaModuleFactory.java index 1adc68e8510..6b17b0e5488 100644 --- a/src/main/java/tech/jhipster/lite/generator/server/s...
6
6
4
[{"id": "G0", "claim": "The CI should keep testing only the generated jar with java -jar as before instead of ./mvnw, so the feature does not change the current CI behaviour.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "The Docker Compose dependency rema...
null
seed4j__seed4j__12431
seed4j/seed4j
12,431
defect
a4fab2357a7e1aedeb3bb5c5aa74c7278ff6afa4
b560d4e9270b33db0588c1d744907f44a5635b93
Rename: Ehcache
<img width="308" alt="image" src="https://github.com/user-attachments/assets/19395327-031a-4091-a8e2-1ef18bb7cff1" />
diff --git a/src/main/java/tech/jhipster/lite/generator/server/springboot/cache/ehcache/application/EhcacheApplicationService.java b/src/main/java/tech/jhipster/lite/generator/server/springboot/cache/ehcache/application/EHCacheApplicationService.java similarity index 90% rename from src/main/java/tech/jhipster/lite/gen...
1
1
0
[{"id": "G0", "claim": "The rename to 'EHCache' casing is wrong because the proper case per ehcache.org is 'Ehcache', so the original naming was correct and should be kept.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
seed4j__seed4j__12582
seed4j/seed4j
12,582
defect
b605c966dfeca29287ccbce62f1c2b16c991fae9
c3031ea9fc28b6079c998f0f60f46924c44ecc0b
Angular: rename OAuth2 to OAuth2Keycloak
Same as Vue https://github.com/jhipster/jhipster-lite/blob/main/src/main/java/tech/jhipster/lite/generator/client/vue/security/oauth2_keycloak/application/VueOAuth2KeycloakApplicationService.java
diff --git a/src/main/java/tech/jhipster/lite/generator/client/angular/security/oauth2/application/AngularOauth2ApplicationService.java b/src/main/java/tech/jhipster/lite/generator/client/angular/security/oauth2keycloak/application/AngularOAuth2KeycloakApplicationService.java similarity index 59% rename from src/main/j...
1
1
1
[{"id": "G0", "claim": "The module slug should not be changed (angular-oauth2 renamed as part of the OAuth2-to-OAuth2Keycloak rename) unless it is totally necessary, because it is a breaking change.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null