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
weaveworks__scope__3253
weaveworks/scope
3,253
defect
3c07c93847eeaa9a16af976673b0ab8905a532e3
68adde2e7cde50fefab2cc4175af7e4507ce79ed
Optimise merge where one side is a subset of the other
This is beneficial because Scope very often merges multiple versions of the same node over time that have exactly the same labels, tags, etc., so we detect this and avoid copying. This PR covers just three data structures - `StringSet`, `StringLatestMap` and `NodeControlDataLatestMap` - which benefit the most in profi...
diff --git a/extras/generate_latest_map b/extras/generate_latest_map index f402160efa..2e3e024113 100755 --- a/extras/generate_latest_map +++ b/extras/generate_latest_map @@ -53,7 +53,7 @@ function generate_latest_map() { // String returns the StringLatestEntry's string representation. func (e *${entry_type...
3
3
1
[{"id": "G0", "claim": "The new Merge is performance-non-commutative: merging two equal maps whose entries' timestamps all differ on one side still copies instead of returning the other input, and the reviewer asks to compare the first elements' timestamps of equal-length arguments and swap if necessary.", "category": ...
null
weaveworks__scope__3268
weaveworks/scope
3,268
defect
dad34df57501ac0d3591c86fd343a64f51c508fa
715351d4ce064ef183e0f9b06a3be64a17eca734
Optimise Node.WithLatests()
This is a different take on solving the same problem as in #3137. It's not quite as fast but has lower memory usage, and it doesn't have the same readability issue. Here we make one memory allocation to resize the array, then add the contents of the map, sort to regain the `LatestMap` invariant, then remove any key...
diff --git a/probe/kubernetes/reporter_test.go b/probe/kubernetes/reporter_test.go index 54cda42042..70e083b3a6 100644 --- a/probe/kubernetes/reporter_test.go +++ b/probe/kubernetes/reporter_test.go @@ -8,6 +8,7 @@ import ( "testing" apiv1 "k8s.io/api/core/v1" + apiv1beta1 "k8s.io/api/extensions/v1beta1" metav1...
1
1
0
[{"id": "G0", "claim": "In the duplicate-shuffling loop, ditching the `continue` and using an `else` clause instead would be neater.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
weaveworks__scope__3274
weaveworks/scope
3,274
defect
69e61cb3625f550425845bc042d76d5c7f4bfa0d
bb7ca5552757f16481f057bbc7ef4f6a7728d9a5
Enable Kubernetes objects to be reported just once in a cluster
This set of changes allows you to configure the probe on each node with Kubernetes probing disabled, and run one extra probe with Kubernetes enabled and processes, containers, etc., disabled. This is quite simple to arrange with one DaemonSet and one Deployment. Benefits: * less impact on the Kubernetes api-server...
diff --git a/probe/host/tagger.go b/probe/host/tagger.go index 29e5413243..f466c96e71 100644 --- a/probe/host/tagger.go +++ b/probe/host/tagger.go @@ -30,7 +30,8 @@ func (t Tagger) Tag(r report.Report) (report.Report, error) { // Explicitly don't tag Endpoints, Addresses and Overlay nodes - These topologies include...
6
4
0
[{"id": "G0", "claim": "The PR should remove probe/kubernetes/kubelet.go and its test file (replacing direct kubelet access).", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The apps in Weave Cloud should be updated ASAP because k8s rendering will break...
null
weaveworks__scope__3281
weaveworks/scope
3,281
defect
21af8992c63c5f844b4acc3b06584f4bb507c4bc
1742fa8f70e05a90ecbf8168f5ae86842f254f98
Fix WithLatests() fixup on duplicate keys
The `fixup()` method was modifying a copy of its input, so you could get duplicate keys in the output. Thankfully this is rare: in most cases `WithLatests()` is called with fields that are not duplicates of existing ones. Added a test that would have caught it. I made this PR against the release-1.9 branch so ...
diff --git a/report/map_helpers.go b/report/map_helpers.go index 5339dc6c0f..9ccabb6345 100644 --- a/report/map_helpers.go +++ b/report/map_helpers.go @@ -148,19 +148,21 @@ func (m StringLatestMap) Swap(i, j int) { m[i], m[j] = m[j], m[i] } func (m StringLatestMap) Less(i, j int) bool { return m[i].key < m[j].key...
1
1
0
[{"id": "G0", "claim": "Make fixup() return a slice instead of mutating the receiver in place, which would simplify the call sites to something like `return out.fixup()` — while noting the downside that the returning signature might make the function look pure even though it still modifies m.", "category": "design", "v...
null
weaveworks__scope__3333
weaveworks/scope
3,333
defect
5634e8c07e7a3ba5dba43410fe302469b3da8fcc
a7a26f4aa57fb326b31641f750e07010ef0cd66f
Move to CircleCI 2.0
Fixes #3217 Once the changes are merged to master I will update the `image:` lines to a master tag, the same tag for both images.
diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000000..af47b602e6 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,186 @@ +version: 2 + +defaults: &defaults + working_directory: /go/src/github.com/weaveworks/scope + docker: + - image: weaveworks/scope-backend-build:circl...
5
1
1
[{"id": "G0", "claim": "The `export PATH=\"$PATH:$HOME/.local/bin\"` step might not work, since CircleCI does not persist environment variables set inside a run step (per its bash_env documentation).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Do...
null
weaveworks__scope__3566
weaveworks/scope
3,566
defect
fb32d6e9bb35a5d47d35808dfe0de6ea5deeb016
1aadf5c6064d7008e3b94c23c5565c843a5f7fa5
Fix dnssnooper probe for multiple CNAMEs.
Hello, Playing with scope I noticed a bug where the dns snooper does not identify some external hosts. Digging a bit deeper I found the faulty pattern - if there are multiple CNAMEs in a record but only one of it has a corresponding A address then the match will not be done. Here's an example: ``` 100.x.x.x.domain...
diff --git a/probe/endpoint/dns_snooper.go b/probe/endpoint/dns_snooper.go index 197b838fba..f0d73122e3 100644 --- a/probe/endpoint/dns_snooper.go +++ b/probe/endpoint/dns_snooper.go @@ -250,15 +250,14 @@ func (s *DNSSnooper) processDNSMessage(dns *layers.DNS) { domainQueried = question.Name records = appen...
3
1
1
[{"id": "G0", "claim": "The reviewer asks why the bytes.Equal(domainQueried, record.Name) guard was dropped when collecting CNAME records, since without it CNAME records for other hostnames in the same message would be collected as aliases.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope":...
null
weaveworks__scope__3609
weaveworks/scope
3,609
defect
cdc33855d474f5661fe351169006282b84a8eb30
36361d6b7d7adc239b4b6f3a536ea541dc021af1
Add Kubernetes Job support to Weave Scope
## This covers: - Implementation of the Job kubernetes resource in probe - Reporter changes for the Job - Add Describe Control to the Job - Pass Job object to the kube controller renderer ##### 1. Jobs in the controllers topology (In the square shape) ![Screenshot from 2019-05-19 02-36-29](https://user-image...
diff --git a/probe/kubernetes/client.go b/probe/kubernetes/client.go index 0cba08dfa8..352ba855d3 100644 --- a/probe/kubernetes/client.go +++ b/probe/kubernetes/client.go @@ -55,6 +55,7 @@ type Client interface { WalkStorageClasses(f func(StorageClass) error) error WalkVolumeSnapshots(f func(VolumeSnapshot) error) ...
2
2
1
[{"id": "G0", "claim": "The Job topology should be drawn with the dotted `DottedTriangle` shape, like cronjob's dotted lines, replacing the placeholder `StorageSheet` once the new shape is available from ui-components.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
weaveworks__scope__3677
weaveworks/scope
3,677
defect
ce7347485135d0737da1a220bf8ca9445eeab4ba
82bb24c3747fa31fb036ea88e579038c6fb5137a
perf(probe): publish delta reports to reduce data size
Similar to video compression which uses key-frames and differences between them: every N publishes we send a full report, but inbetween we only send what has changed. Fairly simple approach in the probe - hold on to the last full report, and for the deltas remove anything that would be merged in from the full report...
diff --git a/probe/probe.go b/probe/probe.go index c609f63197..4205bc9b83 100644 --- a/probe/probe.go +++ b/probe/probe.go @@ -27,6 +27,7 @@ type Probe struct { spyInterval, publishInterval time.Duration publisher ReportPublisher rateLimiter *rate.Limiter + ticksPerFullReport ...
9
6
2
[{"id": "G0", "claim": "The log line reporting a publish failure should be at least at warning level instead of Info.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "publishCount actually counts publishes since the last error and should be renamed ...
null
weaveworks__scope__3687
weaveworks/scope
3,687
defect
c1430994122d12f43c41767d6fccd0b6b4a97157
9d5931d7bba73b8a1aaecf2039ca0e145184d4b5
Refactor report reading
There was a lot of duplication and confusingly-similar functions.
diff --git a/app/multitenant/memcache_client.go b/app/multitenant/memcache_client.go index a4443c342b..5137e2d903 100644 --- a/app/multitenant/memcache_client.go +++ b/app/multitenant/memcache_client.go @@ -1,6 +1,7 @@ package multitenant import ( + "bytes" "fmt" "net" "sort" @@ -183,13 +184,14 @@ func (c *Me...
2
2
0
[{"id": "G0", "claim": "The reviewer would prefer that ReadBinary be replaced altogether by a MakeFromBinary-style constructor that returns a report, because the mutable read-into-report API is confusing.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In...
null
weaveworks__scope__3696
weaveworks/scope
3,696
defect
ca420b07aa741d273a24399d102d240b977501ae
cbbb2ff24c2d549926b21a94680361af74d30281
handle IP addresses in binary rather than strings
This is more compact, and in some cases the code was converting to a string then parsing back to an IP address again so we save effort by deferring the conversion.
diff --git a/probe/docker/container.go b/probe/docker/container.go index 9c81a250ff..f4c7f7d8a5 100644 --- a/probe/docker/container.go +++ b/probe/docker/container.go @@ -226,19 +226,14 @@ func (c *container) NetworkMode() (string, bool) { return "", false } -func addScopeToIPs(hostID string, ips []string) []strin...
3
2
1
[{"id": "G0", "claim": "The `ipv4s` string array is no longer needed in NetworkInfo and its usage below could be directly replaced with `ipv4ips` (renaming that array back to `ipv4s`).", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Drop the redund...
null
weaveworks__scope__3709
weaveworks/scope
3,709
defect
bd9f88b985e6131a0108dfca1179ad2b43701453
71be7f18605889bacde3184b00f4e349430efed5
Report a subset of connections from/to the same endpoint
Fixes #3584 The app will only show one line, regardless of how many connections we have, so reduce the number we send to save bandwidth and rendering time. Include a note of how many connections were elided in the report, so the app can still show the same number in the detail window. I've only done this for the...
diff --git a/probe/endpoint/connection_tracker.go b/probe/endpoint/connection_tracker.go index ce39ced156..9b9f91781e 100644 --- a/probe/endpoint/connection_tracker.go +++ b/probe/endpoint/connection_tracker.go @@ -100,7 +100,7 @@ func (t *connectionTracker) ReportConnections(rpt *report.Report) { t.flowWalker.walkFl...
5
5
2
[{"id": "G0", "claim": "The variable `lv` holding the looked-up connection count is unclearly named and should be renamed to say what it is.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request adds left-over debugging code to connect...
null
weaveworks__scope__3714
weaveworks/scope
3,714
defect
5ebe9b4b1869790860ec58c7d887b848633a9ddc
635cea0b5614cdecc02e2aff51d8f00cb980cc9e
performance: send active controls as a single string per node
Scope "controls" are buttons to do something like restart a container. These controls can be turned on and off by the probe, e.g. depending on whether the container is running. Previously this information was conveyed by a complicated data structure mapping each control name to a `Dead` boolean which had a last-mod...
diff --git a/probe/awsecs/reporter.go b/probe/awsecs/reporter.go index 80baa66484..bba0a81607 100644 --- a/probe/awsecs/reporter.go +++ b/probe/awsecs/reporter.go @@ -150,17 +150,18 @@ func (r Reporter) Tag(rpt report.Report) (report.Report, error) { // Create all the services first for serviceName, service := ra...
7
4
1
[{"id": "G0", "claim": "The condition for enabling ScaleDown should be the negation of the old logic, `if service.DesiredCount > 1`, rather than `service.DesiredCount < 1`, so ScaleDown is only active when more than one task is desired.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "in...
null
weaveworks__scope__3720
weaveworks/scope
3,720
defect
4bb2a435aea9a9f0a3103493c6868af2a7b27488
7adc70c5a5b9977bd10ce2ab8c62d489037f3fc2
Adding the "user-agent" Header
Added the "user-agent" header with the value: "Scope/1.11.6" and added a test for it. Fixes #3715.
diff --git a/probe/appclient/app_client_internal_test.go b/probe/appclient/app_client_internal_test.go index e2a260d2c1..2632a0ba9f 100644 --- a/probe/appclient/app_client_internal_test.go +++ b/probe/appclient/app_client_internal_test.go @@ -3,6 +3,7 @@ package appclient import ( "compress/gzip" "fmt" + "github.c...
1
1
1
[{"id": "G0", "claim": "The user-agent header value should be built from the probe's own version (prefixed e.g. \"Scope_Probe/\") instead of the hard-coded \"1.11.6\"/app version, since the probe and the app it talks to can be at different versions.", "category": "correctness", "verdict": "supported", "priority": "P1",...
null
weaveworks__scope__3748
weaveworks/scope
3,748
defect
4eae4a97018d7a77087cf937eb3266a71455ae4a
a1b1bc13cfe2e38681f5f94e7463ea085e832846
Move Counters into Latest
The only place `Counters` are used is in rendering, for the number of nodes under a topology, so the overhead of holding a unique data structure in every `Node` is unwarranted. Counters are not set in the probe, so we don't need any backwards-compatibility in report decoding. Similarly they are not set until after a...
diff --git a/render/container.go b/render/container.go index 5e78fddfab..533f30c937 100644 --- a/render/container.go +++ b/render/container.go @@ -304,8 +304,8 @@ func MapContainer2ContainerImage(n report.Node) report.Node { // Add container id key to the counters, which will later be // counted to produce the mino...
3
3
0
[{"id": "G0", "claim": "WithCounter should reuse LookupCounter to avoid duplicating the counter-lookup logic.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A comment should be added to the test explaining that counter merges are no longer suppo...
null
weaveworks__scope__470
weaveworks/scope
470
defect
57aaf4be6fc2bfa51b7ca979a90972b44715e76b
a8c163b5d7523ed1d585f70041d94cd81459d60b
Reduce probe cpu usage
2 issues - report generation is taking too long, and cpu usage is too high. Reducing CPU usage (~40% to <20%), see #284 - WithNode -> AddNode, don't copy all the nodes every time we add a single one. - Cache generated endpoint IDs to relieve some more GC pressure. - Only gob serialise and gz compress reports once per ...
diff --git a/experimental/demoprobe/main.go b/experimental/demoprobe/main.go index c6513382d7..55cb91fb61 100644 --- a/experimental/demoprobe/main.go +++ b/experimental/demoprobe/main.go @@ -27,10 +27,11 @@ func main() { if err != nil { log.Fatal(err) } + rp := xfer.NewReportPublisher(publisher) rand.Seed(ti...
1
1
0
[{"id": "G0", "claim": "The comment above the Publisher interface is out of sync with what the interface now does and should be updated.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
weaveworks__scope__806
weaveworks/scope
806
defect
35b6a10068e00e7606bf4328207795d8894a6332
505f39e609230578acf711ad3fa7cf197df9ac48
Less hacky fix for /%2F bug
Fixes #804
diff --git a/app/api_report_test.go b/app/api_report_test.go index d355571611..081b99163d 100644 --- a/app/api_report_test.go +++ b/app/api_report_test.go @@ -2,6 +2,7 @@ package app_test import ( "encoding/json" + "net/http" "net/http/httptest" "testing" @@ -13,8 +14,13 @@ import ( func topologyServer() ...
2
1
0
[{"id": "G0", "claim": "Websocket requests (/api/topology/{topology}/ws) still go through the gorilla mux router, so they may still suffer the same /%2F bug.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The custom node-routing logic lives in two pla...
null
weaveworks__scope__941
weaveworks/scope
941
defect
2695a1a2e7ab33de67d88befab27824e8be2c3c3
1b554baa91177be5aea1e8af2e1ab91efa6339b4
Reorder the children tables in the details panel
The Container images was first on hosts, but is probably the least useful, so this moves it to the bottom. In general, it needs more thought put into the detail panel contents, but this is a quick fix to re-prioritize the data. Fixes #923
diff --git a/render/detailed/node.go b/render/detailed/node.go index 9b03cf9b4b..f3f5504bd3 100644 --- a/render/detailed/node.go +++ b/render/detailed/node.go @@ -85,9 +85,9 @@ var ( }{ {report.Host, NodeSummaryGroup{TopologyID: "hosts", Label: "Hosts", Columns: []string{host.CPUUsage, host.MemoryUsage}}}, {rep...
2
1
0
[{"id": "G0", "claim": "For host and image nodes the children tables should put the containers first, since having the processes on top only makes sense for container nodes.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The docker labels table should also...
null
weaveworks__scope__967
weaveworks/scope
967
defect
a866066769609a76ba56f4a90b7ae8dcd49cb783
1d9e3ac74d254b5cb0faf8ab26a8ca4830cbb3fb
Use connection directions from conntrack where possible
Fixes #539 Needs in-depth review from @tomwilkie and/or @peterbourgon
diff --git a/probe/endpoint/reporter.go b/probe/endpoint/reporter.go index 5999312c6f..bd3803ea70 100644 --- a/probe/endpoint/reporter.go +++ b/probe/endpoint/reporter.go @@ -1,7 +1,10 @@ package endpoint import ( + "fmt" + "sort" "strconv" + "strings" "time" "github.com/prometheus/client_golang/prometheus"...
6
6
1
[{"id": "G0", "claim": "The connection key strings should be built with net.JoinHostPort instead of hand-formatted host:port.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The conntrack flow parsing should handle ports properly since Layer4.Src...
null
weaviate__elysia__70
weaviate/elysia
70
defect
25e08ea31d7d222d7db3ede40ecf193bcdb89a33
2da2a946697e1e13472477778e03019456acf815
feat: add connect_to_custom
option for remote Weaviate clusters <!-- Before submitting any PR, please check the contributing guidelines: --> <!-- https://github.com/weaviate/elysia/blob/main/CONTRIBUTING.md --> ## 📝 Changes Description This PR contains the following changes: In order to add the custom weaviate connection,...
diff --git a/.env.example b/.env.example index 6e4ef1ff..4600275a 100644 --- a/.env.example +++ b/.env.example @@ -5,6 +5,16 @@ #LOCAL_WEAVIATE_PORT #LOCAL_WEAVIATE_GRPC_PORT +#WEAVIATE_IS_CUSTOM +# WEAVIATE_IS_CUSTOM=True +# CUSTOM_HTTP_HOST=your.weaviate.host +# CUSTOM_HTTP_PORT=443 +# CUSTOM_HTTP_SECURE=True +# ...
1
1
0
[{"id": "G0", "claim": "The custom-connection settings this PR adds are not exposed to the frontend, and the maintainer states he will add that functionality directly to the branch (with the author's consent) so the PR can be marked for the next release.", "category": "design", "verdict": "supported", "priority": "P2",...
null
weaviate__typescript-client__31
weaviate/typescript-client
31
defect
b490145f90cfbc5ab99816d52911363c3d48e4fa
c8a666ae02348909103a0f2b148d48797af86a0f
Improve Embedded DB UX
- set deterministic default `CLUSTER_HOSTNAME` - allow exported env vars to override hardcoded defaults
diff --git a/src/embedded/index.ts b/src/embedded/index.ts index 43a96e28..da59dfc5 100644 --- a/src/embedded/index.ts +++ b/src/embedded/index.ts @@ -24,12 +24,10 @@ export class EmbeddedOptions { persistenceDataPath: string; host: string; port: number; - clusterHostname: string; version: string; env: ...
1
1
0
[{"id": "G0", "claim": "The added test assertion in src/embedded/journey.test.ts should be formatted in a prettier-conforming way instead of needing an eslint-disable-next-line prettier/prettier comment.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
weaviate__typescript-client__315
weaviate/typescript-client
315
defect
d2c3b42cbca6a2ddb61b73f50e6585c408464977
cf9ad9256bd5efd88428af1ea7073b1003905c22
feat: Add support for RQ
RQ can be configured so: ```ts weaviate.configure.vectorIndex.quantizer.rq({ bits: 6, rescoreLimit: 20 }); ``` When updating, it is only possible to update `rescoreLimit`.
diff --git a/src/collections/config/index.ts b/src/collections/config/index.ts index e03533af..0c921ebd 100644 --- a/src/collections/config/index.ts +++ b/src/collections/config/index.ts @@ -19,6 +19,7 @@ import { CollectionConfigUpdate, PQConfig, QuantizerConfig, + RQConfig, SQConfig, VectorIndexConfig...
2
2
0
[{"id": "G0", "claim": "In VectorIndexConfigHNSW the quantizer field should use the shared QuantizerConfig union instead of restating PQConfig | BQConfig | SQConfig | RQConfig to reduce duplication.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
weaviate__typescript-client__33
weaviate/typescript-client
33
defect
5316c92b5f2f8f23c02aca2252b53224a887ff69
221c45a2c26c9ac1cac230d56477812887b2d4d0
Fix: Blocking background OIDC token refresh
A `setInterval` is used to run a background OIDC token refresh, but ends up blocking a script from exiting due to the interval never being cleared. This PR adds two changes to surmount this issue: 1. An explicit `client.oidcAuth?.stopTokenRefresh()` method which should be used whenever a script is expected to ex...
diff --git a/package.json b/package.json index 1450f114..fd8eed12 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "/types/**/*.d.ts" ], "scripts": { - "test": "tsc -noEmit -p tsconfig-test.json && jest --useStderr --runInBand --detectOpenHandles --forceExit", + "test": "tsc -noEmit -p ts...
1
1
0
[{"id": "G0", "claim": "The duplicated silentRefresh-defaulting block repeated in the credential constructors should be extracted into one function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
weaviate__typescript-client__34
weaviate/typescript-client
34
defect
5316c92b5f2f8f23c02aca2252b53224a887ff69
44a41dcdd77ac4e6c5a7ccc9eef0c5a4994c0475
Support 'latest' version, explicit binary URL for Embedded DB
- Allow `'latest'` version to automatically download the latest Weaviate server version - Support explicit URL to weaviate binary in the form of `binaryUrl` property of `EmbeddedOptions` - Detect machine architecture to download correct binary
diff --git a/src/embedded/index.ts b/src/embedded/index.ts index 43a96e28..0cedb81e 100644 --- a/src/embedded/index.ts +++ b/src/embedded/index.ts @@ -10,7 +10,7 @@ import { extract } from 'tar'; const defaultBinaryPath = join(homedir(), '.cache/weaviate-embedded'); const defaultPersistenceDataPath = join(homedir()...
3
2
1
[{"id": "G0", "claim": "Version handling should still support URLs, since binaries might be built for each PR in the future.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The process.arch to linux-arch mapping in buildBinaryUrl may be untested and may n...
null
weaviate__typescript-client__343
weaviate/typescript-client
343
defect
36d6e6367175351600acd89bbcfcdfb9ac1d93e9
25e96879080969d5d273c1f8d85fe379cc7e5b62
feat: add 'groups' namespace for managing RBAC groups
This PR add a new `groups` namespace for assigning / revoking roles to _user groups_ rather than individual users. The API is similar to that in `users` namespace: ```ts client.groups.oidc.assignRoles('fifth-floor-empl', [analystRole, researcherRole]); client.groups.oidc.getAssignedRoles('fifth-floor-empl'); // Re...
diff --git a/src/groups/index.ts b/src/groups/index.ts new file mode 100644 index 00000000..cd5590d0 --- /dev/null +++ b/src/groups/index.ts @@ -0,0 +1,66 @@ +import ConnectionREST from '../connection/http.js'; +import { Role } from '../roles/types.js'; +import { Map } from '../roles/util.js'; + +import { Role as Weavi...
1
1
0
[{"id": "G0", "claim": "The docstring for getAssignedRoles in src/groups/index.ts is missing the @param entry for the includePermissions parameter.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
weaviate__typescript-client__380
weaviate/typescript-client
380
defect
9de6cf1d25b76b9b46c1eee4b29a7053a6cebc6c
43c365da4be3f15d0c0484d0326a8cbe6d571d83
Object TTL
This PR adds support for Object TTL configuration in collections.
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 718cbbc6..889a47cd 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -15,6 +15,7 @@ env: WEAVIATE_132: 1.32.18 WEAVIATE_133: 1.33.6 WEAVIATE_134: 1.34.1 + WEAVIATE_135: 1.35.2 concurrency: group: ${{...
2
2
1
[{"id": "G0", "claim": "The single objectTTL options bag is confusing because its deleteOn/deleteOnCreatedTime/deleteOnUpdateTime options are mutually exclusive, so the factory should expose dedicated methods for each choice, as the other clients do.", "category": "design", "verdict": "supported", "priority": "P1", "sc...
null
weaviate__typescript-client__88
weaviate/typescript-client
88
defect
78cc66bcbaae03c8c3205a1bcabdca2857e9677c
655aa474ca59a697d0e865d39dc4e2e28d26aed6
Handle existing scheme in host
This `PR` aims to fix https://github.com/weaviate/typescript-client/issues/87 and adds a simple check before creating the `baseUrl` ``` const version = '/v1'; const baseUri = config.host.startsWith(`${config.scheme}://`) ? `${config.host}${version}` : `${config.scheme}://${config.host}${version}`; ``` ...
diff --git a/src/connection/gqlClient.ts b/src/connection/gqlClient.ts index c87d5d6d..4f3ee480 100644 --- a/src/connection/gqlClient.ts +++ b/src/connection/gqlClient.ts @@ -7,14 +7,17 @@ export interface GraphQLClient { } export const gqlClient = (config: ConnectionParams): GraphQLClient => { - const scheme = co...
1
1
1
[{"id": "G0", "claim": "Make the config.scheme parameter optional since users can now supply the scheme inside config.host, pulling the scheme out of the host by splitting on :// and throwing an error when neither the scheme parameter nor a scheme in the host is provided.", "category": "design", "verdict": "supported",...
null
weaviate__typescript-client__89
weaviate/typescript-client
89
defect
122db2aa1c1a009b1035d487908bd1ebef38cf41
8d4ff2c02bf24c8c457d676502c08fd4c139fe0e
Add nearMedia filters for multi2vec-bind model
This PR introduces functionality to filter based on media type when using the multi2vec-bind vectorisation model. In doing so, it attempts to refactor the `nearImage` filter implementation while leaving the current API unchanged to preserve BC.
diff --git a/src/graphql/aggregator.ts b/src/graphql/aggregator.ts index 29e45900..73c19e56 100644 --- a/src/graphql/aggregator.ts +++ b/src/graphql/aggregator.ts @@ -1,4 +1,13 @@ import Where from './where'; +import NearMedia, { + NearMediaArgs, + NearVideoArgs, + NearAudioArgs, + NearDepthArgs, + NearIMUArgs, +...
2
2
1
[{"id": "G0", "claim": "The reviewer asks why only withNearImage checks whether `image` is present and substitutes 'UNSET' when it is not, questioning the need for this special case.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks for a ...
null
weaviate__weaviate__10933
weaviate/weaviate
10,933
defect
e576f4e81b95d7891a0a1eea08b9a75b647347d8
f553c42e0a375c163a488bbe18eb21821d71ff86
chore: mark deleted vector indexes via VectorIndexType
### What's being changed: Sets `VectorIndexType` to `"none"` when a named vector index is dropped. This re-uses the existing `VectorIndexType` field as the single source of truth for whether an index has been removed. ### Review checklist - [ ] Documentation has been updated, if necessary. Link to changed docu...
diff --git a/adapters/handlers/rest/embedded_spec.go b/adapters/handlers/rest/embedded_spec.go index e774411995c..e9eec6ca4d0 100644 --- a/adapters/handlers/rest/embedded_spec.go +++ b/adapters/handlers/rest/embedded_spec.go @@ -9713,6 +9713,11 @@ func init() { "VectorConfig": { "type": "object", "pr...
3
3
2
[{"id": "G0", "claim": "Document that the deleted vector marker is read-only — a user cannot set it and a vector is only dropped through the respective API.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use a single source of truth for the droppe...
null
weaviate__weaviate__10934
weaviate/weaviate
10,934
defect
d70166561ee029869d3e4a144c27b2c86607c30b
24e372b1ee3238aba88ceaaf03ee3eb7cc5ecb87
Add support for S3 assume role
### What's being changed: Adds support for AWS assume role for exports ### Review checklist - [ ] Documentation has been updated, if necessary. Link to changed documentation: - [ ] Chaos pipeline run or not necessary. Link to pipeline: - [ ] All new code is covered by tests where it is reasonable. - [ ] Per...
diff --git a/modules/backup-s3/client.go b/modules/backup-s3/client.go index 4a099238b56..8c4be54f9a4 100644 --- a/modules/backup-s3/client.go +++ b/modules/backup-s3/client.go @@ -46,24 +46,15 @@ type s3Client struct { region string } -func newClient(config *clientConfig, logger logrus.FieldLogger, dataPath, bu...
3
3
3
[{"id": "G0", "claim": "resolveCredentials now always tries credentials.NewIAM first, which when static env credentials are set can introduce avoidable latency or failures (metadata/IRSA lookup) compared to the previous env-first behavior; reviewer asks to restore the env-first check (NewEnvAWS when env keys are presen...
null
weaviate__weaviate__10992
weaviate/weaviate
10,992
defect
e6eb61be52b7f9dd1ca17e68e4f7844f2dbafe36
e09f9d52fa83c0a78f2559e297e0698fbf5bc5a6
hnsw: add support for compactv2 downgrades
### What's being changed: v1.38 will introduce the new HNSW commit log / snapshot compaction: cf. https://github.com/weaviate/weaviate/pull/9988 This PR allows versions >= 1.35 and < 1.38 to downgrade safely. Major changes: - compactv2 stores the snapshot in the commit log directory instead of the snapshot di...
diff --git a/adapters/repos/db/vector/hnsw/commit_logger.go b/adapters/repos/db/vector/hnsw/commit_logger.go index f7fc1863be3..b5040688461 100644 --- a/adapters/repos/db/vector/hnsw/commit_logger.go +++ b/adapters/repos/db/vector/hnsw/commit_logger.go @@ -286,6 +286,13 @@ func skipTmpScratchOrHiddenFiles(in []os.DirEn...
3
1
0
[{"id": "G0", "claim": "The suffix literals \".condensed\", \".sorted\" and \".snapshot\" should be extracted into named constants, as Sonar suggests.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The compact v2 snapshot migration failure shoul...
null
weaviate__weaviate__11027
weaviate/weaviate
11,027
defect
b3407b7f26b668fdb825df2b69253f9c4841353f
6e7158613d65bd22f7ac6e9728ccce9e7c47072c
test: add usage related test for alter schema drop vector index
### What's being changed: This PR adds usage related test for alter schema drop vector index. ### Review checklist - [ ] Documentation has been updated, if necessary. Link to changed documentation: - [ ] Chaos pipeline run or not necessary. Link to pipeline: - [ ] All new code is covered by tests where it is...
diff --git a/test/acceptance_with_go_client/go.mod b/test/acceptance_with_go_client/go.mod index 78840e842ab..50388cd35e2 100644 --- a/test/acceptance_with_go_client/go.mod +++ b/test/acceptance_with_go_client/go.mod @@ -12,7 +12,7 @@ require ( github.com/stretchr/testify v1.11.1 github.com/tailor-platform/graphql ...
2
1
0
[{"id": "G0", "claim": "Inserting 1000 objects is excessive for this test; the count should be reduced to a smaller number (10 suggested) without changing the test's outcome, including the same over-sized count in TestAlterSchemaDropPropertyIndex.", "category": "testing", "verdict": "supported", "priority": "P2", "scop...
null
weaviate__weaviate__11031
weaviate/weaviate
11,031
defect
b3407b7f26b668fdb825df2b69253f9c4841353f
eb6577c1c5105ead363a194927f56d8d22dd2f8f
Collection export: Speed up snapshotting with concurrent tenant de-activation
### What's being changed: Exports against multi-tenant classes could hang (and time out the 2PC reservation) when a tenant operation (deactivation etc) was concurrently holding the shard's write lock (shardCreateLocks). Now we use a TryLock and re-queue the shard in case the lock is already blocked by someone els...
diff --git a/adapters/repos/db/export.go b/adapters/repos/db/export.go index b6ec30ba5f1..b5b233d4dd9 100644 --- a/adapters/repos/db/export.go +++ b/adapters/repos/db/export.go @@ -18,6 +18,7 @@ import ( "path/filepath" "runtime" "sort" + "sync/atomic" "github.com/weaviate/weaviate/adapters/repos/db/helpers" ...
8
7
2
[{"id": "G0", "claim": "The worker's re-queue send `retry <- idx` is blocking; if the dispatcher has exited on egCtx.Done() and the channel is full at that moment the send blocks forever and eg.Wait() hangs, so make the re-queue send non-blocking and context-aware.", "category": "correctness", "verdict": "supported", "...
null
weaviate__weaviate__11037
weaviate/weaviate
11,037
defect
8aa6596372e24d729939611a61acf7e836aa85fe
5b55656aff11df7caa7ecd85ea28accca0dc2990
[MCP] Refactor permissions
### What's being changed Replaces the single `manage_mcp` RBAC permission with three granular permissions, adds correct MCP tool annotations, and removes the `mcp` resource field from the Permission model for consistency with other action-only permissions like `read_cluster`. #### Permission split: `manage_mcp` →...
diff --git a/adapters/handlers/mcp/create/objects_upsert.go b/adapters/handlers/mcp/create/objects_upsert.go index f3e1e8c2b1f..b9f57dfcca5 100644 --- a/adapters/handlers/mcp/create/objects_upsert.go +++ b/adapters/handlers/mcp/create/objects_upsert.go @@ -30,16 +30,14 @@ func (c *WeaviateCreator) UpsertObject(ctx cont...
1
1
1
[{"id": "G0", "claim": "UpsertObject must authorize both CREATE and UPDATE MCP permissions since upsert is CREATE+UPDATE as in the gRPC batch API, not UPDATE alone.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
weaviate__weaviate__11038
weaviate/weaviate
11,038
defect
8aa6596372e24d729939611a61acf7e836aa85fe
c47deace23c42cce5de6cc240aad58cb547b656c
Merge stable/v1.36 into stable/v1.37
### What's being changed: Merge stable/v1.36 into stable/v1.37 ### Review checklist - [ ] Documentation has been updated, if necessary. Link to changed documentation: - [ ] Chaos pipeline run or not necessary. Link to pipeline: - [ ] All new code is covered by tests where it is reasonable. - [ ] Performance...
diff --git a/modules/backup-s3/client.go b/modules/backup-s3/client.go index a31dbf57937..f90eb43f5d6 100644 --- a/modules/backup-s3/client.go +++ b/modules/backup-s3/client.go @@ -200,8 +200,11 @@ func (s *s3Client) getClient(ctx context.Context) (*minio.Client, error) { return s.client, nil } -func (s *s3Client)...
1
1
0
[{"id": "G0", "claim": "The merge resolution keeps in HomeDir the stale remotePath variable and its override block that original PR #11033 removed, so the return line should call s.makeObjectName(overridePath, backupID) instead of passing remotePath.", "category": "maintainability", "verdict": "supported", "priority": ...
null
weaviate__weaviate__11040
weaviate/weaviate
11,040
defect
ba75015ec56308d035fac626aeab318400830064
84c98718433fcc52ee5448f33030ac0b91800107
fix: optimize zstd encoder usage in replication client and implement decoder pooling
### What's being changed: This pull request optimizes the use of Zstandard (zstd) compression and decompression in the replication client and REST handler. The main improvements are the reuse of encoder and decoder instances to reduce allocation overhead and improve performance, especially under high load. **Repl...
diff --git a/adapters/clients/replication.go b/adapters/clients/replication.go index da2d7404242..70309aef5e6 100644 --- a/adapters/clients/replication.go +++ b/adapters/clients/replication.go @@ -57,16 +57,19 @@ const ( type replicationClient struct { retryClient + zstdEncoder *zstd.Encoder } var _ (replica.C...
5
4
3
[{"id": "G0", "claim": "NewReplicationClient ignores the error returned by zstd.NewWriter(nil), leaving a nil encoder on the client that would panic on later EncodeAll calls; the error should be handled explicitly (e.g. by returning it from the constructor).", "category": "correctness", "verdict": "supported", "priorit...
null
weaviate__weaviate__11060
weaviate/weaviate
11,060
defect
03edb3190703b4dc39fe996ec7b25e7e02736205
bc1504c1fcd7d3b86851f6fdab76319711610493
fix: handle secondary index size accumulation for varying key counts
### What's being changed: - ignore secondary keys that are outside the expected from left segment ### Review checklist - [ ] Documentation has been updated, if necessary. Link to changed documentation: - [ ] Chaos pipeline run or not necessary. Link to pipeline: - [ ] All new code is covered by tests where i...
diff --git a/adapters/repos/db/lsmkv/compactor_replace.go b/adapters/repos/db/lsmkv/compactor_replace.go index d75d45ec898..715149344dd 100644 --- a/adapters/repos/db/lsmkv/compactor_replace.go +++ b/adapters/repos/db/lsmkv/compactor_replace.go @@ -237,6 +237,12 @@ func (c *compactorReplace) writeKeys(f *segmentindex.S...
1
1
1
[{"id": "G0", "claim": "Add a regression test that compacts two segments with mismatched secondary-index counts (e.g. left expects fewer indices than right provides) and asserts compaction succeeds without a panic and that secondary lookups for the expected indices still work.", "category": "testing", "verdict": "suppo...
null
weaviate__weaviate__11066
weaviate/weaviate
11,066
defect
6718a9f1ad73c0e7da258cb743715b370b9fcd7b
d129ec3496594f8004bfc7c604cafb61ff470952
Merge stable v1.34 into v1.35
### What's being changed: ### Review checklist - [ ] Documentation has been updated, if necessary. Link to changed documentation: - [ ] Chaos pipeline run or not necessary. Link to pipeline: - [ ] All new code is covered by tests where it is reasonable. - [ ] Performance tests have been run or not necessary....
diff --git a/adapters/repos/db/lsmkv/compaction_integration_test.go b/adapters/repos/db/lsmkv/compaction_integration_test.go index 262aca093f6..d1ce73f9c52 100644 --- a/adapters/repos/db/lsmkv/compaction_integration_test.go +++ b/adapters/repos/db/lsmkv/compaction_integration_test.go @@ -164,6 +164,16 @@ func TestCompa...
4
4
3
[{"id": "G0", "claim": "The new regression tests receive opts from the shared TestCompaction runner (checksum/pread variants) but the bucket creations ignore opts and hard-code options, so the *_checksum/pread subtests do not actually exercise those modes; consider appending opts... to each NewBucket call.", "category"...
null
weaviate__weaviate__11078
weaviate/weaviate
11,078
defect
b59eaa9a4c4f966d3129d752c75262eec57d6733
e4a3f89fa318f6462591a54455b33d81150c67a8
fix: optimize zstd encoder usage in replication client
### What's being changed: This pull request introduces zstd encoder and decoder pooling to improve performance and resource efficiency for compression and decompression operations in replication and REST handlers. It also adds comprehensive concurrent and error-path tests to ensure thread safety and robustness, and ...
diff --git a/adapters/clients/replication.go b/adapters/clients/replication.go index 548faba9289..312315cbfe5 100644 --- a/adapters/clients/replication.go +++ b/adapters/clients/replication.go @@ -57,15 +57,23 @@ const ( type replicationClient struct { retryClient + zstdEncoder *zstd.Encoder } -func NewReplicat...
5
5
4
[{"id": "G0", "claim": "On zstdr.Reset(body) error the pooled decoder is discarded without being closed, leaking internal decoder resources that the replaced code always released via defer; close the decoder before returning when Reset fails.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope...
null
weaviate__weaviate__11079
weaviate/weaviate
11,079
defect
3957e11feb1636c916f70e8faf5ad3ca37a09afd
fe9ac0e464237c528c494d30ce5e14cef8622d21
fix: support old stopword index config on endpoint
### What's being changed: - add extra stopword config to input - remove input parameters from output ### Review checklist - [ ] Documentation has been updated, if necessary. Link to changed documentation: - [ ] Chaos pipeline run or not necessary. Link to pipeline: - [ ] All new code is covered by tests whe...
diff --git a/adapters/handlers/rest/embedded_spec.go b/adapters/handlers/rest/embedded_spec.go index c861ef37db8..734782fe18c 100644 --- a/adapters/handlers/rest/embedded_spec.go +++ b/adapters/handlers/rest/embedded_spec.go @@ -9631,8 +9631,12 @@ func init() { "description": "Optional text analyzer configur...
3
3
2
[{"id": "G0", "claim": "The generic tokenize handler builds the fallback detector directly from params.Body.InvertedIndexConfig.Stopwords without the defaulting/validation collection config applies, so a caller sending invertedIndexConfig.stopwords without a preset (or with an empty preset) is treated as an empty prese...
null
web-fragments__web-fragments__150
web-fragments/web-fragments
150
defect
f68f01d5e3b119f17e422374e29d24c3fc64c365
ed976a497a1867207e6e8aaf547aab874c7c2b31
feat/web fragment src
feat: add support for unbound fragments Unbound fragments are fragments that don't have their location, history, navigation, and routing bound to the shell application. This means that unbound fragments have independent history and navigation that is not represented in browsers address bar, and is not navigable via...
diff --git a/.changeset/popular-buckets-try.md b/.changeset/popular-buckets-try.md new file mode 100644 index 00000000..a1f80aac --- /dev/null +++ b/.changeset/popular-buckets-try.md @@ -0,0 +1,13 @@ +--- +'web-fragments': patch +--- + +feat: add support for unbound fragments + +Unbound fragments are fragments that don...
1
1
0
[{"id": "G0", "claim": "The PR's change to docs/package.json duplicates a change already made in PR #143, and the author should review that PR instead of making the same change here.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
web-fragments__web-fragments__242
web-fragments/web-fragments
242
defect
450b393b29bcf56f0bc9d8eee9317bba3c39ae3e
f6714f75165343945e2276dacb5598fb1c208a6c
fix(gateway): pass any fragment redirect responses to the client
If a fragment returns a redirect response, the gateway should not follow this redirect, but instead should pass the redirect to the client, which can then decide to follow it. Previously the gateway would follow redirects returned by the fragment endpoint, which was not always safe, because it could result in situat...
diff --git a/.changeset/brave-cougars-thank.md b/.changeset/brave-cougars-thank.md new file mode 100644 index 00000000..10b0bd41 --- /dev/null +++ b/.changeset/brave-cougars-thank.md @@ -0,0 +1,17 @@ +--- +'web-fragments': patch +--- + +fix(gateway): pass any fragment redirect responses to the client + +If a fragment r...
3
3
1
[{"id": "G0", "claim": "The fragment-init error message should detect all 3xx redirect responses (status >= 300 && status < 400), not just status === 302.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Fix the typo 'ouf of sync' to 'out of sync' in ...
null
web-infra-dev__garfish__285
web-infra-dev/garfish
285
defect
3577f7f5e5456b1596dde21873723596c93f0bc5
3b4451d7fa329a14062408af6bc2e290e67f83b9
fix(vm): To fix MutationObserver callbacks execution after effects be cleared.
执行unmount函数之后,清除dom副作用的时候,会导致MutationObserver回调被执行。而此时子应用已被卸载,导致代码执行出错。示例代码如下: useEffect(() => { const outer = document.createElement('div'); outer.innerText = 'outer'; document.body.appendChild(outer); const inner = document.createElement('div'); inner.innerText = 'inner'; outer.append...
diff --git a/packages/browser-vm/src/modules/mutationObserver.ts b/packages/browser-vm/src/modules/mutationObserver.ts new file mode 100644 index 000000000..ff84d6b2e --- /dev/null +++ b/packages/browser-vm/src/modules/mutationObserver.ts @@ -0,0 +1,41 @@ +import { Sandbox } from '../sandbox'; + +const rawMutationObser...
2
2
1
[{"id": "G0", "claim": "The inheritance in observerModule could be written as an ES6 class (`class fakeMutationObserver extends rawMutationObserver`) instead of the hand-built prototype/fake-function construction, which would be more in line with ES6 style.", "category": "maintainability", "verdict": "supported", "prio...
null
web-infra-dev__garfish__52
web-infra-dev/garfish
52
defect
d609a2164d459166aec96e76dae85bd6d92b88a5
09a497aac224fac252a00c856fba0ca6b414babe
fix: uievent can't use fakeWindow
* uiEvent can't use fakeWindow as args * supplement uiEvent unit test
diff --git a/packages/runtime/browser-vm/__tests__/modules/uiEvent.spec.ts b/packages/runtime/browser-vm/__tests__/modules/uiEvent.spec.ts new file mode 100644 index 000000000..d093a8c5f --- /dev/null +++ b/packages/runtime/browser-vm/__tests__/modules/uiEvent.spec.ts @@ -0,0 +1,17 @@ +import { MouseEventPatch } from '...
3
2
0
[{"id": "G0", "claim": "The new __extends/extendStatics code duplicates the logic of the existing bind implementation in browser-vm, and the reviewer asks whether the two can be merged.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since the pr...
null
web-infra-dev__garfish__521
web-infra-dev/garfish
521
defect
37510e1f4452df746792c82368c833a0ed4dbd86
adde723b1a33d84963fb3cd7873ffd95984d3603
feat(loader): custom fetch
## Description <!--- Provide a general summary of your changes in the Title above --> <!--- Describe your changes in detail --> 业务自定义garfish/loader请求能力 ## Related Issue <!--- This project only accepts pull requests related to open issues --> <!--- If suggesting a new feature or change, please discuss it i...
diff --git a/dev/app-main/src/config.ts b/dev/app-main/src/config.ts index 6d4bb3745..f10db53f1 100644 --- a/dev/app-main/src/config.ts +++ b/dev/app-main/src/config.ts @@ -118,6 +118,14 @@ let defaultConfig: RunInfo = { onNotMatchRouter(path) { // console.log('子应用路由未匹配', path); }, + + // 业务自定义fetch + load...
6
6
5
[{"id": "G0", "claim": "The second generic passed to the beforeLoad/afterLoad AsyncHooks in globalLifecycle should be the async hooks' CallbackReturnType (beforeLoad can be used to terminate loading), not `unknown`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G...
null
web-infra-dev__garfish__566
web-infra-dev/garfish
566
defect
bc4f255799602c65b18765f01ff21ace3677e6e9
d2858f4d5ad5ea09ed0d46f154d1b367e4de6d9f
fix: concurrent dynamic import should analyze by order
针对类似以下这种并发import场景的代码: ```js import("./virtualDynamicEsmA"); import("./virtualDynamicEsmB"); ``` 增加锁机制,对于`virtualDynamicEsmA`和`virtualDynamicEsmB`文件内的static import,必须按照顺序加载和解析(和浏览器的顺序保持一致),避免两个文件因为异步加载的时长问题导致两者解析流程出现穿插,从而出现可能的循环引用误判问题。
diff --git a/packages/core/__tests__/esmLoader.spec.ts b/packages/core/__tests__/esmLoader.spec.ts index 6905479b9..ac7b0c930 100644 --- a/packages/core/__tests__/esmLoader.spec.ts +++ b/packages/core/__tests__/esmLoader.spec.ts @@ -1,4 +1,4 @@ -import { readFileSync } from 'fs'; +import { readFileSync as fsReadFileSyn...
1
1
0
[{"id": "G0", "claim": "The hand-rolled taskQueue in ESModuleLoader could be replaced with a Queue class: analysisModule's actions would be added to the queue and the queue drained step by step.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
web-infra-dev__garfish__610
web-infra-dev/garfish
610
defect
74c9a11c5e6914567bf6cf4552c24327d5db11a9
7b15a460401e15d835535d6ccbc5673d60cc88ac
修复 defer 脚本中错误的 no-entry 处理
## Description <!--- Provide a general summary of your changes in the Title above --> <!--- Describe your changes in detail --> ## Related Issue <!--- This project only accepts pull requests related to open issues --> <!--- If suggesting a new feature or change, please discuss it in an issue first --> <!---...
diff --git a/packages/core/__tests__/loadApp.spec.ts b/packages/core/__tests__/loadApp.spec.ts index 3b0d483c7..5657c3e2c 100644 --- a/packages/core/__tests__/loadApp.spec.ts +++ b/packages/core/__tests__/loadApp.spec.ts @@ -126,7 +126,7 @@ describe('Core: load process', () => { document.body.removeChild(container...
1
1
1
[{"id": "G0", "claim": "In the rewritten catch handler for script execution, even when the errorMountApp hook is not triggered (the defer case), the error must still be thrown upward, otherwise errors in async-type code would go unnoticed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ...
null
web-infra-dev__midscene__1528
web-infra-dev/midscene
1,528
defect
9a3f5d9e6c5c9028c0894b088c6dd3eb6fddb644
7c4dc2422a0a9ab4e6045022fc5b30c015d86e09
feat(web-integration): add chromeArgs support for YAML scripts
## Problem When running YAML scripts in headed mode, Chrome automatically blocks third-party cookies by default, causing login failures. Different Chrome versions have different default cookie blocking policies, and users need a way to customize Chrome launch arguments to disable this behavior. ## Solution This PR a...
diff --git a/packages/cli/src/create-yaml-player.ts b/packages/cli/src/create-yaml-player.ts index 107bdc0450..120e97ad68 100644 --- a/packages/cli/src/create-yaml-player.ts +++ b/packages/cli/src/create-yaml-player.ts @@ -152,10 +152,11 @@ export async function createYamlPlayer( webTarget.viewportHeight || ...
4
2
1
[{"id": "G0", "claim": "The regular expression that depends on library input may run slow (ReDoS) on strings starting with 'data:image/' and with many repetitions of 'data:image/'.", "category": "security", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Add an integration test ...
null
web-infra-dev__midscene__2095
web-infra-dev/midscene
2,095
defect
7a554183f91e2aa610f0146068dc5c1aaaafb9e8
d6789216099acd1d41a96c7974fe377e2e08fa9e
feat(core): add Skill CLI support for custom interfaces
## Summary - Add `@midscene/core/mcp` sub-path export with `runSkillCLI` API - Custom `AbstractInterface` implementations can now create Agent Skill CLIs with minimal code: ```typescript runSkillCLI({ DeviceClass: SampleDevice, scriptName: 'my-device' }); ``` - Replace "still in progress" placeholder in docs wit...
diff --git a/apps/site/docs/en/integrate-with-any-interface.mdx b/apps/site/docs/en/integrate-with-any-interface.mdx index 2688f7200b..d4d34eafc6 100644 --- a/apps/site/docs/en/integrate-with-any-interface.mdx +++ b/apps/site/docs/en/integrate-with-any-interface.mdx @@ -190,11 +190,80 @@ await server.close(); console....
1
1
1
[{"id": "G0", "claim": "mcpServerForAgent(agent).launch() exposes no options and inherits createMCPServerLauncher defaults (verbose: true), whose startup console.log output is printed to stdout before BaseMCPServer.launch() switches console.log to stderr, so stdio clients can receive non-protocol bytes and fail to esta...
null
web-infra-dev__midscene__2108
web-infra-dev/midscene
2,108
defect
0440ab59e635e6252e238a66fc2fb923c19b8d45
33c9194fbb676f733d0cf9bae449910d8eb51a91
fix(playground): recreate agent after cancel and fix orientation mismatch
## Summary - **Fix cancel/recreate bug**: After clicking Stop then Run, the system reported "agent already destroyed". Now the cancel handler calls `recreateAgent()` instead of only destroying the agent, so subsequent runs work correctly. - **Fix deviceOptions propagation**: Removed overly strict `'options' in` guard ...
diff --git a/packages/android/src/device.ts b/packages/android/src/device.ts index f28b7127c5..17f6d03998 100644 --- a/packages/android/src/device.ts +++ b/packages/android/src/device.ts @@ -600,6 +600,9 @@ ${Object.keys(size) }> { // Return cached value if not always fetching and cache exists const should...
1
1
1
[{"id": "G0", "claim": "Calling recreateAgent() in the /cancel handler breaks cancellation for servers constructed with an agent instance instead of a factory, because recreateAgent() throws when agentFactory is missing and the handler still returns status \"cancelled\" after swallowing the error, so the running task i...
null
web-infra-dev__midscene__2132
web-infra-dev/midscene
2,132
defect
49064bf4b4b16d546590c000a15947395c3fc164
76a8fb7801eb8f04476d4e93fddb511bc6439ffd
fix(android): upgrade scrcpy support to 3.3.3
## Summary - upgrade the Android scrcpy integration to use runtime and server binaries aligned on scrcpy 3.3.3 - bump the `@yume-chan` scrcpy-related dependencies to versions that support scrcpy 3.3.3 - refresh cached scrcpy server binaries when the stored version metadata is missing or stale - add a regression test th...
diff --git a/apps/android-playground/package.json b/apps/android-playground/package.json index d886fb133c..cb18b43418 100644 --- a/apps/android-playground/package.json +++ b/apps/android-playground/package.json @@ -13,12 +13,11 @@ "@midscene/android": "workspace:*", "@midscene/core": "workspace:*", "@mid...
1
1
1
[{"id": "G0", "claim": "When cached metadata is missing or stale, the script removes the existing scrcpy server binary before the new one is fetched, so a failed download (e.g. GitHub unreachable) leaves later runs without a usable cache; keep the existing binary until the replacement is ready to swap in.", "category":...
null
web-infra-dev__midscene__2177
web-infra-dev/midscene
2,177
defect
4543ab70e9e9c66f619c7beb00888eeeaa7033df
a11b50a525ab09a70f3245cb9a77ec89f46ff640
fix(chrome-extension): add start/stop controls for bridge mode
## Summary - Add Start/Stop toggle button to the bridge mode bottom status bar, allowing users to control the bridge connection lifecycle - Fix status display: show "Stopped" when bridge is closed instead of misleading "Listening for connection" - Server URL input is now editable when bridge is stopped (status `closed...
diff --git a/apps/chrome-extension/src/extension/bridge/index.less b/apps/chrome-extension/src/extension/bridge/index.less index af49150bcd..9c99ae43b7 100644 --- a/apps/chrome-extension/src/extension/bridge/index.less +++ b/apps/chrome-extension/src/extension/bridge/index.less @@ -286,6 +286,19 @@ align-items: ...
2
2
2
[{"id": "G0", "claim": "Because isBridgeActive only treats 'listening' and 'connected' as active while BridgeConnector stays in 'disconnected' and keeps retrying, the new toggle flips to Start during reconnection and the user cannot stop the retry loop.", "category": "correctness", "verdict": "supported", "priority": "...
null
web-infra-dev__midscene__2381
web-infra-dev/midscene
2,381
defect
a05fcfbb4a32f0ddebc69ec473a262fa6334e5ec
7b916ab521dee33a1b669637594f99533b978c6e
fix(web-integration): derive Playwright reportFileName from readable test title
## Summary - `PlaywrightAiFixture` was forwarding Playwright's internal `testInfo.testId` (a UUID) as the Agent's `reportFileName`, producing intermediate report files named `playwright-<uuid>-<uuid>.html` that carry no information about which spec or case produced them — impossible to triage on disk, and it breaks do...
diff --git a/packages/web-integration/src/playwright/ai-fixture.ts b/packages/web-integration/src/playwright/ai-fixture.ts index 48ebe4177f..4b0d5be855 100644 --- a/packages/web-integration/src/playwright/ai-fixture.ts +++ b/packages/web-integration/src/playwright/ai-fixture.ts @@ -135,13 +135,13 @@ export const Playwr...
1
1
1
[{"id": "G0", "claim": "Sanitize reportTag before assigning reportFileName: since groupAndCaseForTest(...).title comes from replaceIllegalPathCharsAndSpace, which intentionally preserves `/` and `\\`, a test title containing a path separator (e.g. \"login / signup\") flows into reportFileName and ReportGenerator.create...
null
web-infra-dev__midscene__2387
web-infra-dev/midscene
2,387
defect
fe8f136fc66a042a1c83d6e272488d561fe086a0
be38e0f5c4992a03071b599f279cf074939c28e1
feat(core): expose agent.aiLongPress() and agent.aiClearInput()
## Summary - Add two first-class `ai*` methods on `Agent` for actions that were previously only reachable through `agent.callActionInActionSpace()`: - `agent.aiLongPress(locate, { duration? })` - `agent.aiClearInput(locate)` - Wire `interfaceAlias: 'aiLongPress'` on the shared `defineActionLongPress()` helper so c...
diff --git a/apps/site/docs/en/api.mdx b/apps/site/docs/en/api.mdx index aaba1b8b3b..3441a6f0e6 100644 --- a/apps/site/docs/en/api.mdx +++ b/apps/site/docs/en/api.mdx @@ -122,7 +122,7 @@ Below are the main APIs available for the various Agents in Midscene. In Midscene, you can choose to use either auto planning or ins...
1
1
1
[{"id": "G0", "claim": "Switching the Android LongPress action to the shared defineActionLongPress schema, whose duration field carries a default of 500, makes schema-driven callers (Playground/Visualizer prefill Zod defaults and send them as explicit params) send duration=500 when users leave the field untouched inste...
null
web-infra-dev__midscene__2425
web-infra-dev/midscene
2,425
defect
9fc6cc7fbbb747d758d65ba063c3d33bb103d160
ce71526dd8e339b9048a61f91468a34131f833dc
feat(shared): add assert MCP tool backed by aiAssert
### Motivation - Provide a simple CLI/agent tool `assert` alongside existing `act` so skills/CLI can run natural-language assertions against the current page/screen using the same init-arg/CLI conventions. ### Description - Add a new MCP common tool named `assert` in `generateCommonTools` that accepts a `prompt` and...
diff --git a/packages/shared/src/mcp/tool-generator.ts b/packages/shared/src/mcp/tool-generator.ts index 369e339ea8..75ca57913f 100644 --- a/packages/shared/src/mcp/tool-generator.ts +++ b/packages/shared/src/mcp/tool-generator.ts @@ -621,5 +621,38 @@ export function generateCommonTools( } }, }, + ...
1
1
1
[{"id": "G0", "claim": "generateCommonTools accesses agent.aiAssert while BaseAgent (packages/shared/src/mcp/types.ts) does not declare that method, so TypeScript fails with TS2339 and blocks shared package type-check/build flows.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduc...
null
web-infra-dev__rsbuild__6008
web-infra-dev/rsbuild
6,008
defect
da961f2097ff3df60e437bbfdf69e91f131a542e
b850b7ac536ae92e810bd8d9b9de2e85b35839d8
test(e2e): add TypeScript optional chaining and nullish coalescing test
- [x] Create initial TypeScript optional chaining and nullish coalescing test - [x] Simplify testing code per review feedback - Removed separate utils.ts file (33 lines) - Simplified index.ts from 63 to 19 lines - Streamlined test assertions - Total reduction: 94 lines removed while maintaining core test covera...
diff --git a/e2e/cases/typescript/optional-chaining/index.test.ts b/e2e/cases/typescript/optional-chaining/index.test.ts new file mode 100644 index 0000000000..e4de51790e --- /dev/null +++ b/e2e/cases/typescript/optional-chaining/index.test.ts @@ -0,0 +1,35 @@ +import { build } from '@e2e/helper'; +import { expect, tes...
3
3
0
[{"id": "G0", "claim": "The testing code is too complex and should be simplified.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The optional-chaining tsconfig.json should use the same tsconfig.json as e2e/cases/typescript/const-enum/tsconfig.js...
null
web-infra-dev__rsbuild__6096
web-infra-dev/rsbuild
6,096
defect
ea3bcc674fa1bb5243f42889d2e74b6cb496f84a
08a38379110f20b95970426948e1a0e8e5ba9b58
feat(app-icon): add support for purpose field in web app manifest
## Summary Add `purpose` field to app icon configuration to specify usage contexts like 'monochrome' and 'maskable'. Update documentation and add test cases to verify the functionality. ## Related Links - resolve https://github.com/web-infra-dev/rsbuild/issues/6088 ## Checklist <!--- Check and mark with ...
diff --git a/e2e/cases/html/app-icon/index.test.ts b/e2e/cases/html/app-icon/index.test.ts index 747425c077..9fc96d187b 100644 --- a/e2e/cases/html/app-icon/index.test.ts +++ b/e2e/cases/html/app-icon/index.test.ts @@ -195,6 +195,56 @@ test('should allow to specify target for each icon', async () => { }); }); +te...
1
1
1
[{"id": "G0", "claim": "The purpose field is added to each manifest icon unconditionally, so icons without a purpose get `purpose: undefined` polluting the manifest; it should only be included when actually defined.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
web-infra-dev__rsbuild__6199
web-infra-dev/rsbuild
6,199
defect
f2c0564313e73600bb93e8f1d230ae3fcbd8c880
7d1777333d836ebef26dd3bd164938baa401f11d
test(e2e): add test case for Chinese filename
## Summary Add test case to verify proper handling of Chinese characters in filenames and directories during both development and production builds. ## Related Links - https://github.com/web-infra-dev/rspack/pull/11686 ## Checklist <!--- Check and mark with an "x" --> - [x] Tests updated (or not requi...
diff --git a/biome.json b/biome.json index 22ea34aca6..3325f918cb 100644 --- a/biome.json +++ b/biome.json @@ -65,7 +65,7 @@ }, "overrides": [ { - "includes": ["e2e/**/🦀.js"], + "includes": ["e2e/**/🦀.js", "e2e/**/charset-zh-filename/**"], "linter": { "rules": { "style"...
1
1
1
[{"id": "G0", "claim": "The fixture sets the imported string on 'window.testA' while the tests read 'window.test', so with the current code both e2e checks receive undefined and cannot pass; the global variable names should be made to match (assign to window.test or adjust the tests).", "category": "correctness", "verd...
null
web-infra-dev__rsbuild__6219
web-infra-dev/rsbuild
6,219
defect
2075c97a146457bd9fce05d3f930b9ae3e3f215b
2580cc8ba801bba12377d1906b0f581e15ec220d
fix: always output all logs in debug mode
## Summary Always output all logs in debug mode. ## Related Links <!--- Provide links of related issues or pages --> ## Checklist <!--- Check and mark with an "x" --> - [ ] Tests updated (or not required). - [ ] Documentation updated (or not required).
diff --git a/e2e/cases/cli/log-level/index.test.ts b/e2e/cases/cli/log-level/index.test.ts index ddf47dc0a5..6205ec74b2 100644 --- a/e2e/cases/cli/log-level/index.test.ts +++ b/e2e/cases/cli/log-level/index.test.ts @@ -20,3 +20,18 @@ rspackTest( expect(stdout).not.toContain('built in'); }, ); + +rspackTest( + ...
2
2
1
[{"id": "G0", "claim": "The condition preserves verbose logging only when the logger is already at 'verbose' instead of when debug mode is active; it should check isDebug() rather than the current logger level.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "...
null
web-infra-dev__rsbuild__6254
web-infra-dev/rsbuild
6,254
defect
5ad9f41c6f97fd160adb2ae62250aced0fd12972
8a104766d769632eb7242dc00dbbfc343b4db5f5
feat: add support for displaying unhandled rejection logs in terminal
## Summary - Add support for displaying unhandled rejection logs in terminal - Add test cases <img width="800" height="906" alt="image" src="https://github.com/user-attachments/assets/b73db6ce-f0fa-4d6d-bfe0-991a0085477f" /> ## Related Links - https://github.com/web-infra-dev/rsbuild/pull/6251 ## Checkl...
diff --git a/e2e/cases/server/browser-logs/index.test.ts b/e2e/cases/browser-logs/error/index.test.ts similarity index 96% rename from e2e/cases/server/browser-logs/index.test.ts rename to e2e/cases/browser-logs/error/index.test.ts index 7809ba4a23..1cc754b143 100644 --- a/e2e/cases/server/browser-logs/index.test.ts ++...
1
1
1
[{"id": "G0", "claim": "The onUnhandledRejection handler silently returns for rejection reasons that are neither Error nor string, which could miss important debugging information; other reason types should be converted to strings (e.g. via String(reason) or JSON.stringify(reason)) for more comprehensive error reportin...
null
web-infra-dev__rsbuild__6273
web-infra-dev/rsbuild
6,273
defect
efd4e357af5a5df5273b307ee13c7ac3ffb71e77
588827102cbe9b0fc8ff834cadd93a9d8c75d2af
perf: replace source-map with @jridgewell/trace-mapping
## Summary Replace `source-map` with `@jridgewell/trace-mapping`: - `@jridgewell/trace-mapping` is faster - `@rsbuild/core` already depends on `@jridgewell/remapping`, and `@jridgewell/trace-mapping` is its dependency. ### Before <img width="714" height="278" alt="Screenshot 2025-09-28 at 11 43 06" src="ht...
diff --git a/packages/core/package.json b/packages/core/package.json index 420771412c..def51143ae 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -60,6 +60,7 @@ }, "devDependencies": { "@jridgewell/remapping": "^2.3.5", + "@jridgewell/trace-mapping": "^0.3.31", "@rslib/cor...
2
1
0
[{"id": "G0", "claim": "The error logging in the catch block of resolveSourceLocation should provide more context about what operation failed, e.g. by prefixing a descriptive message like 'Failed to resolve source location:' before logging the error.", "category": "maintainability", "verdict": "supported", "priority": ...
null
web-infra-dev__rsbuild__6290
web-infra-dev/rsbuild
6,290
defect
25c591062bee2d50ae16937c1f98ff54c4138a64
bd8900d0c8eb798a3d5b63bf163aef9c87c10061
feat(core): improve module trace formatting in error messages
## Summary Refactor module trace formatting to show clearer import paths. <img width="2078" height="1010" alt="image" src="https://github.com/user-attachments/assets/b82ac3dd-5563-4814-8c5f-f547e7fb8a56" /> ### Before ```bash @ ./src/child2.js @ ./src/child1.js @ ./src/index.js ``` ### After ...
diff --git a/e2e/cases/diagnostic/import-traces/index.test.ts b/e2e/cases/diagnostic/import-traces/index.test.ts new file mode 100644 index 0000000000..41c022d369 --- /dev/null +++ b/e2e/cases/diagnostic/import-traces/index.test.ts @@ -0,0 +1,25 @@ +import { expect, test } from '@e2e/helper'; + +const EXPECTED_LOG = `I...
3
1
1
[{"id": "G0", "claim": "The errorFile string added to moduleNames gets processed again by the subsequent reverse() and map() operations, which could result in incorrect formatting or the error marker appearing in the wrong position in the final output.", "category": "correctness", "verdict": "uncertain", "priority": "P...
null
web-infra-dev__rsbuild__6329
web-infra-dev/rsbuild
6,329
defect
6d892bc6a9c4a270b1e86c76df978033622901c5
75f501d0eda391a8291cf10d03426772663bed01
test(e2e): add HMR test case for unaffected environments
## Summary Add test case to verify that HMR updates do not affect other changed environments. ## Checklist <!--- Check and mark with an "x" --> - [ ] Tests updated (or not required). - [ ] Documentation updated (or not required).
diff --git a/e2e/cases/hmr/unaffected-environment/index.test.ts b/e2e/cases/hmr/unaffected-environment/index.test.ts new file mode 100644 index 0000000000..ee3b402fe9 --- /dev/null +++ b/e2e/cases/hmr/unaffected-environment/index.test.ts @@ -0,0 +1,52 @@ +import fs from 'node:fs'; +import { join } from 'node:path'; +im...
1
1
0
[{"id": "G0", "claim": "The test description's grammar is inconsistent and should be reworded, e.g. to 'should not affect other environments during HMR' or 'HMR should not affect other environments'.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
web-infra-dev__rsbuild__6369
web-infra-dev/rsbuild
6,369
defect
bd7c2dc5dd9be8c523bf2903f0bc7036a6b6c9fb
b67004cb188afc46d7902e280eaf0593978238ab
fix: ensure `output.distPath` can be merged correctly
## Summary This PR moves the `normalizeConfigStructure` helper to the merge Rsbuild configuration phase, ensuring that the `output.distPath` config can be merged correctly. See the newly added test cases for details. ## Checklist <!--- Check and mark with an "x" --> - [ ] Tests updated (or not required). -...
diff --git a/packages/core/src/defaultConfig.ts b/packages/core/src/defaultConfig.ts index a01a339157..41d0c93ca9 100644 --- a/packages/core/src/defaultConfig.ts +++ b/packages/core/src/defaultConfig.ts @@ -296,44 +296,6 @@ export const withDefaultConfig = async ( return merged; }; -/** - * Converts a raw config ...
4
2
0
[{"id": "G0", "claim": "Consider refactoring normalizeConfigStructure to avoid mutating `dev` and `output` and then reconstructing the object, using a more functional approach that returns the transformed object directly to improve code clarity.", "category": "maintainability", "verdict": "uncertain", "priority": "P3",...
null
web-infra-dev__rsbuild__6450
web-infra-dev/rsbuild
6,450
defect
6b8b1c5eb54f32b89b7684e6e728952bc034e211
02a3c94f8c0232c0625d6e20436c316603ebf06c
fix: use relative paths in source maps
## Summary Update source map paths to use relative POSIX paths instead of absolute or webpack-specific paths. - Prevents leaking absolute system paths - Keeps maps portable across environments - Matches source map spec and debugger expectations - Aligns with esbuild/Rollup/Vite. ## Related Links - resolv...
diff --git a/e2e/cases/output/source-map/index.test.ts b/e2e/cases/output/source-map/index.test.ts index fd3f92bdeb..8cce33bf5e 100644 --- a/e2e/cases/output/source-map/index.test.ts +++ b/e2e/cases/output/source-map/index.test.ts @@ -43,31 +43,26 @@ async function testSourceMapType( const AppContentIndex = outputCo...
1
1
1
[{"id": "G0", "claim": "Computing relative source map paths from `api.context.distPath` (the common parent of all environments) instead of the map file's own output directory produces incorrect source paths — one level too shallow for nested multi-environment outputs — breaking debugger source resolution; the base shou...
null
web-infra-dev__rsbuild__6477
web-infra-dev/rsbuild
6,477
defect
5722816834fdc63d50664ef6a9ea9c9bb85abcda
b472ad47b569ca99f52220838aab59146912ddfd
test(e2e): add tests to verify env mode command handling
## Summary Added new e2e tests to verify that builds correctly reflect different environment variables (`NODE_ENV`) and environment modes (`env-mode`) in the configuration function. ## Related Links - https://github.com/web-infra-dev/rsbuild/issues/6475 ## Checklist <!--- Check and mark with an "x" --> ...
diff --git a/e2e/cases/cli/function-config/index.test.ts b/e2e/cases/cli/function-config/index.test.ts index b3dc3b912b..747b5d8078 100644 --- a/e2e/cases/cli/function-config/index.test.ts +++ b/e2e/cases/cli/function-config/index.test.ts @@ -1,19 +1,42 @@ import path from 'node:path'; -import { expect, readDirContent...
1
1
0
[{"id": "G0", "claim": "Console.log statements should not be included in example code since they are typically for debugging only; consider removing them or replacing them with comments explaining when config.env differs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
web-infra-dev__rsbuild__6560
web-infra-dev/rsbuild
6,560
defect
097fcadb30d70b96ce10cf891a09bc01f0c52090
54e5f283ca9b940553a7321a7d9030122263f099
refactor: optimize environment handling with environmentList
## Summary - add `environmentList` to `InternalContext` type and initialization - replace `Object.values(environments)` with `environmentList` for better performance and readability - update all related usages to use `environmentList` instead of `Object.values` ## Checklist <!--- Check and mark with an "x" -...
diff --git a/packages/core/src/createContext.ts b/packages/core/src/createContext.ts index b3aa141599..69f5f1d0a8 100644 --- a/packages/core/src/createContext.ts +++ b/packages/core/src/createContext.ts @@ -115,7 +115,7 @@ export async function updateEnvironmentContext( }; // EnvironmentContext is readonly....
2
1
1
[{"id": "G0", "claim": "The refactor's positional access may not match the actual environment index: devServer.ts uses the forEach iteration position instead of environment.index to read lastStats, and assets-middleware uses environmentList[index] instead of the previous find(env => env.index === index), so the lookups...
null
web-infra-dev__rsbuild__6635
web-infra-dev/rsbuild
6,635
defect
5a7e35ee0c91e6373329b4f3d263bc1231f67271
4fb5b409c119872a060bca07656281c9a86f4aee
feat(core): add showDiff option to printFileSize
Add showDiff option to printFileSize for build-to-build size comparison Add a new `showDiff` option to performance.printFileSize that displays file size changes compared to the previous build. This helps developers track how their changes affect bundle sizes over time. ## Summary Adds a showDiff option to perf...
diff --git a/packages/core/src/plugins/fileSize.ts b/packages/core/src/plugins/fileSize.ts index 1c3a7f8552..a5e2629f63 100644 --- a/packages/core/src/plugins/fileSize.ts +++ b/packages/core/src/plugins/fileSize.ts @@ -18,6 +18,15 @@ import type { Rspack, } from '../types'; +interface FileSizeCache { + [environm...
6
5
2
[{"id": "G0", "claim": "The showDiff logic is incorrect: `options.showDiff !== false` treats an unset showDiff as enabled while the documented default is false, so it should be `options.showDiff === true`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim...
null
web-infra-dev__rsbuild__6686
web-infra-dev/rsbuild
6,686
defect
7e4fffab32de8da8cde748d88d06ca95f8ba8a60
e9f7c82b23dfd7f41017e9eea62fb2224384a65e
fix: remove loader chain delimiters in module trace logs
## Summary - Ensure consistent formatting by removing loader chain delimiters from module trace logs. - Avoid duplicates and maintain the error marker in the output. ### Before <img width="1130" height="173" alt="Screenshot 2025-12-02 at 22 19 16" src="https://github.com/user-attachments/assets/af97f092-f002-...
diff --git a/packages/core/src/helpers/format.ts b/packages/core/src/helpers/format.ts index 7f30d64a3c..4ab9e1b75e 100644 --- a/packages/core/src/helpers/format.ts +++ b/packages/core/src/helpers/format.ts @@ -83,7 +83,10 @@ function formatModuleTrace(stats: StatsError, errorFile: string) { } const moduleNames...
3
3
2
[{"id": "G0", "claim": "The final `.map` calls `removeLoaderChainDelimiter` on items already processed in the earlier `.map`, which is redundant and impacts performance; the extra call should be removed.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
web-infra-dev__rsbuild__6706
web-infra-dev/rsbuild
6,706
defect
d520225aaaa2d2a179f1cf98504e710f24cdf9c6
71afae26a0f0687554b426a33d3c9c153a19fa4f
feat: support displaying the total size diff
## Summary Add support for displaying the total size diff: ```bash File (web) Size Gzip dist/static/css/index.54800c1b.css 0.34 kB (+0.34 kB) 0.25 kB (+0.25 kB) dist/index.html 0.37 kB (+0.12 kB) 0.25 kB (+0.05 kB) dist/static/js...
diff --git a/packages/core/src/plugins/fileSize.ts b/packages/core/src/plugins/fileSize.ts index ac7cf8464a..8a0d26113c 100644 --- a/packages/core/src/plugins/fileSize.ts +++ b/packages/core/src/plugins/fileSize.ts @@ -25,8 +25,14 @@ type SizeMap = { }; }; +type SizeSnapshot = { + files: SizeMap; + totalSize: n...
3
2
2
[{"id": "G0", "claim": "The new total size diff calculation logic has no test coverage; tests should be added for the diff when previous sizes exist, the diff label formatting, the zero-diff case, and the missing-previous-sizes default of 0.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "i...
null
web-infra-dev__rsbuild__6709
web-infra-dev/rsbuild
6,709
defect
7296479944f835eaa632277a1c19250684a95e74
1e206b5f4b10bc08a3fa7deabae64144e020e8d5
refactor(fileSize): optimize asset sorting and display logic
## Summary - Add `FormattedAsset` type for better type safety - Extract total size calculation into separate function - Improve filename normalization and formatting - Optimize asset sorting and display logic ## Checklist <!--- Check and mark with an "x" --> - [ ] Tests updated (or not required). - [ ] ...
diff --git a/packages/core/src/plugins/fileSize.ts b/packages/core/src/plugins/fileSize.ts index 8a0d26113c..6a76a54ad6 100644 --- a/packages/core/src/plugins/fileSize.ts +++ b/packages/core/src/plugins/fileSize.ts @@ -35,6 +35,17 @@ type SizeSnapshots = { [environmentName: string]: SizeSnapshot; }; +type Formatt...
4
2
0
[{"id": "G0", "claim": "pickAssetInfo is typed to accept PrintFileSizeAsset but is called with FormattedAsset, so its signature should be updated to accept FormattedAsset or a more generic type to maintain type safety.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
web-infra-dev__rsbuild__6828
web-infra-dev/rsbuild
6,828
defect
30101013636f34b1e1617922d4401a4b8b987dfb
37f7686b2e4590addf1823ee4235879b42e30bae
fix: should throw error when custom config file not found
## Summary fix: should throw error when custom config file not found. expect throw `config not found` error, but fallback to default config. before: <img width="789" height="171" alt="image" src="https://github.com/user-attachments/assets/2cac267f-e3d3-46c8-99c4-6247999fb49a" /> after: <img width="839"...
diff --git a/e2e/cases/cli/custom-config/index.test.ts b/e2e/cases/cli/custom-config/index.test.ts index 7fbd2a663d..4f756d2366 100644 --- a/e2e/cases/cli/custom-config/index.test.ts +++ b/e2e/cases/cli/custom-config/index.test.ts @@ -28,3 +28,15 @@ rspackTest( expect(outputFiles.length > 1).toBeTruthy(); }, )...
2
2
0
[{"id": "G0", "claim": "The thrown error message should follow the codebase's error message pattern by including a `[rsbuild:loadConfig]` prefix and removing the trailing `\\n`, for consistency with other error messages in loadConfig.ts.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope"...
null
web-infra-dev__rsbuild__6886
web-infra-dev/rsbuild
6,886
defect
bd0dacc36d6460316a1b77ae3253f3bb39c6cf96
a40ec18b5067d916e759f4929699f0bedf35147b
fix(swc): automatically unset `env.targets` when `jsc.target` is set
## Summary This PR improves the compatibility between user-defined SWC options and Rsbuild's default configuration. SWC does not allow `jsc.target` and `env.targets` to be configured simultaneously. Currently, Rsbuild provides a default `env.targets` based on Browserslist, which causes a conflict and throws an er...
diff --git a/e2e/cases/swc/jsc-target/index.test.ts b/e2e/cases/swc/jsc-target/index.test.ts new file mode 100644 index 0000000000..73313e8fb6 --- /dev/null +++ b/e2e/cases/swc/jsc-target/index.test.ts @@ -0,0 +1,18 @@ +import { expect, getFileContent, rspackTest } from '@e2e/helper'; + +rspackTest( + 'should configur...
2
1
0
[{"id": "G0", "claim": "The build test description 'should jsc.target correctly in build' is missing a verb and should read 'should configure jsc.target correctly in build' to match the dev test's phrasing.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
web-infra-dev__rsbuild__6941
web-infra-dev/rsbuild
6,941
defect
c2ef9cf68763bafa5aa12df6a7b19c5cfe6efd6b
bfcee7fbcb42ad9d8667c486035b2a9952f6d258
feat(create-rsbuild): add `@rstest/adapter-rsbuild` to reuse rsbuild's configuration
## Summary use `@rstest/adapter-rsbuild` in rstest template to reuse rsbuild's configuration in rstest. https://rstest.rs/guide/integration/rsbuild#reuse-rsbuild-config ## Related Links <!--- Provide links of related issues or pages --> ## Checklist <!--- Check and mark with an "x" --> - [ ] Tests ...
diff --git a/packages/create-rsbuild/template-rstest/react-js/package.json b/packages/create-rsbuild/template-rstest/react-js/package.json index d94718ee61..b0f8b2610d 100644 --- a/packages/create-rsbuild/template-rstest/react-js/package.json +++ b/packages/create-rsbuild/template-rstest/react-js/package.json @@ -8,6 +...
3
2
1
[{"id": "G0", "claim": "Removing `testEnvironment: 'happy-dom'` from the template rstest configs may cause tests to fail, because `withRsbuildConfig()` inherits only build configuration while `testEnvironment` is a test-runner-specific setting that would likely default to 'node', which lacks the DOM APIs these componen...
null
web-infra-dev__rsbuild__7010
web-infra-dev/rsbuild
7,010
defect
29909126b7ee34667c8137478121287ea5b5381b
823093ccb7511b17239db037d404969a391b18cb
fix(cli): exit with non-zero code when it fails to start
## Summary Ensure the CLI process exits with a non-zero exit code (1) when it fails to start. ## Checklist - [x] Tests updated (or not required). - [ ] Documentation updated (or not required).
diff --git a/e2e/cases/cli/unknown-option/index.test.ts b/e2e/cases/cli/unknown-option/index.test.ts new file mode 100644 index 0000000000..0630b9dadc --- /dev/null +++ b/e2e/cases/cli/unknown-option/index.test.ts @@ -0,0 +1,14 @@ +import { expect, test } from '@e2e/helper'; + +test('should exit with error code 1 when ...
1
1
1
[{"id": "G0", "claim": "The test would pass silently if execCliSync did not throw, since no assertions would run in that case; it should be restructured so that it fails when the CLI command succeeds (e.g. via expect().toThrow() or by throwing an error in the try block).", "category": "testing", "verdict": "supported",...
null
web-infra-dev__rsbuild__7023
web-infra-dev/rsbuild
7,023
defect
67a669a969dfdfd430f8a2e060c3daf170d3f221
481e2fe607bf0e8d43e77c9d2f48d547e62f6343
feat(core): add ignore option for public directory copy in server plugin
## Summary This PR provides an enhancement addressing issue #6337 It adds a new `server. publicDir.ignore` option that enables pattern-based exclusion of files from the public directory. ## Related Links - https://github.com/web-infra-dev/rsbuild/issues/6337 ## Checklist - [x] Tests updated (or not required)...
diff --git a/e2e/cases/server/public-dir/publicDir.test.ts b/e2e/cases/server/public-dir/publicDir.test.ts index 4b5caeb7f71..cab1cf1186f 100644 --- a/e2e/cases/server/public-dir/publicDir.test.ts +++ b/e2e/cases/server/public-dir/publicDir.test.ts @@ -397,3 +397,42 @@ test('should reload page when custom publicDir fil...
4
2
2
[{"id": "G0", "claim": "The check `ignore.length` will fail if `ignore` is undefined, since the type definition allows `ignore` to be optional (`ignore?: string[]`), so it should be guarded with `ignore?.length` or `ignore && ignore.length`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope"...
null
web-infra-dev__rsbuild__7168
web-infra-dev/rsbuild
7,168
defect
2a2c13bc6a202b58fe57e91baf992630b24d3ed0
ce761725b370e26f0194445a6904d026f134aded
test: add test cases to verify entry import array works
## Summary Added a new test case to verify that multiple entry imports work correctly in both dev and build modes. ## Checklist <!--- Check and mark with an "x" --> - [ ] Tests updated (or not required). - [ ] Documentation updated (or not required).
diff --git a/e2e/cases/source/entry-import-array/index.test.ts b/e2e/cases/source/entry-import-array/index.test.ts new file mode 100644 index 0000000000..8c6b3ddeb0 --- /dev/null +++ b/e2e/cases/source/entry-import-array/index.test.ts @@ -0,0 +1,14 @@ +import { expect, test } from '@e2e/helper'; + +test('should support...
1
1
0
[{"id": "G0", "claim": "Each test script should initialize window.__entryOrder if it doesn't already exist (window.__entryOrder = window.__entryOrder || []) before pushing, so no script is a special 'initializer' and different entry orders can be tested later.", "category": "testing", "verdict": "supported", "priority"...
null
web-infra-dev__rsbuild__7235
web-infra-dev/rsbuild
7,235
defect
3d07af26feb5d6c52158d4a4f67e2d60c0b07d3a
5d96a7854536ee929a318af0e650ebe6d57d3362
test(e2e): add test case for tailwindcss loader
## Summary Add new test cases for `@tailwindcss/webpack` package ## Related Links - https://github.com/tailwindlabs/tailwindcss/tree/main/packages/%40tailwindcss-webpack ## Checklist <!--- Check and mark with an "x" --> - [ ] Tests updated (or not required). - [ ] Documentation updated (or not requir...
diff --git a/e2e/cases/css/postcss-config-ts/index.test.ts b/e2e/cases/css/postcss-config-ts/index.test.ts index 978740ab0c..40a3d44508 100644 --- a/e2e/cases/css/postcss-config-ts/index.test.ts +++ b/e2e/cases/css/postcss-config-ts/index.test.ts @@ -4,14 +4,12 @@ test('should load postcss.config.ts correctly', async (...
2
1
0
[{"id": "G0", "claim": "The new test's title duplicates the one in tailwindcss/basic, making it harder to identify which case failed in Playwright output, and it should be made loader-specific.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
web-infra-dev__rsbuild__7249
web-infra-dev/rsbuild
7,249
defect
bc7d03b96f5fbeb3fe72f7eac2b5bb131de86b73
ea07709dd213cf548e5c357c30751b9f5fd05b27
test: add type tests for `@rsbuild/core` public types
## Summary Add new type test files to verify public types of @rsbuild/core with strict type checking (`skipLibCheck: false`). ## Checklist <!--- Check and mark with an "x" --> - [ ] Tests updated (or not required). - [ ] Documentation updated (or not required).
diff --git a/e2e/package.json b/e2e/package.json index 9ec38b3249..2f7f6fcfaa 100644 --- a/e2e/package.json +++ b/e2e/package.json @@ -6,7 +6,7 @@ "scripts": { "setup": "pnpm exec playwright install chromium --with-deps", "e2e": "cross-env NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --no-warning...
3
1
0
[{"id": "G0", "claim": "The new type test file is very minimal; expand it to cover more realistic usage of the public API (a detailed `defineConfig` config object, `createRsbuild` with an added plugin, and calling `build`).", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id"...
null
web-infra-dev__rsbuild__7290
web-infra-dev/rsbuild
7,290
defect
10791a6cc07473c36a07c7b6c44d678eac61a94f
d8ba490ad848d0e551cf5881a4084c6cbfe1d033
test: fix core-js resolved path unstable in eco-ci
## Summary fix core-js resolved path unstable in eco-ci. In the rsbuild test, it resolves to `package/core/node_modules/` (near `current directory`), but in eco-ci, it resolves to `rstack-ecosystem-ci/node_modules/` (near `rootPath`). ```ts require.resolve('core-js/package.json', { // Resolve from b...
diff --git a/packages/core/tests/__snapshots__/swc.test.ts.snap b/packages/core/tests/__snapshots__/swc.test.ts.snap index 10a446aa7e..392b4809e6 100644 --- a/packages/core/tests/__snapshots__/swc.test.ts.snap +++ b/packages/core/tests/__snapshots__/swc.test.ts.snap @@ -322,7 +322,7 @@ exports[`plugin-swc > should appl...
2
1
1
[{"id": "G0", "claim": "The test file is ESM (packages/core has type \"module\"), so the added `cwd: path.join(__dirname, '..')` will throw a ReferenceError because `__dirname` is not defined in Node ESM; use `import.meta.dirname` or derive the path from `import.meta.url` via `fileURLToPath` instead.", "category": "cor...
null
web-infra-dev__rsbuild__7333
web-infra-dev/rsbuild
7,333
defect
69389b92c0dc08ada5840df342223182646141af
b6b8471088a20198f3a58374d21a5188ea5aab6e
test: restructure type tests into separate resolution modes
## Summary - Split type tests into separate directories for bundler and nodenext resolution modes - Update package.json scripts to handle new test structure ## Checklist <!--- Check and mark with an "x" --> - [ ] Tests updated (or not required). - [ ] Documentation updated (or not required).
diff --git a/e2e/cases/cli/watch-files-array/rsbuild.config.ts b/e2e/cases/cli/watch-files-array/rsbuild.config.ts index a566655d52..66cceca281 100644 --- a/e2e/cases/cli/watch-files-array/rsbuild.config.ts +++ b/e2e/cases/cli/watch-files-array/rsbuild.config.ts @@ -1,4 +1,5 @@ import { defineConfig } from '@rsbuild/c...
3
1
1
[{"id": "G0", "claim": "In the resolution-nodenext type test the config sets skipLibCheck: true while the stated intent is to check @rsbuild/core's public .d.ts files; the comment should match or skipLibCheck should be set to false.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introd...
null
web-infra-dev__rsbuild__7340
web-infra-dev/rsbuild
7,340
defect
62d8c0d455c59579d0a72a403674f6c45bc9381e
a4e50b0c536fc2850ba6c4cb46d657d974eca1f8
feat(source-map): add `extract` option
## Summary Adds a `output.sourceMap.extract` option, so Rspack's `rules[].extractSourceMap` can be enabled. This implementation supports JS extraction only. I considered CSS extraction as well, but the current CSS pipeline does not preserve upstream CSS source maps end to end. Keeping `sourceMap.extract` as its o...
diff --git a/e2e/cases/source-map/extract/index.test.ts b/e2e/cases/source-map/extract/index.test.ts new file mode 100644 index 0000000000..c4c7778205 --- /dev/null +++ b/e2e/cases/source-map/extract/index.test.ts @@ -0,0 +1,78 @@ +import { + type Build, + expect, + getFileContent, + mapSourceMapPositions, + test,...
5
1
1
[{"id": "G0", "claim": "The docs say `extract: true` extracts from all files matched by the built-in JS rule (SCRIPT_REGEX incl. ts/tsx), but the implementation applies `extractSourceMap` to `JS_REGEX` (js/mjs/cjs/jsx); documentation and implementation should be aligned.", "category": "documentation", "verdict": "uncer...
null
web-infra-dev__rsbuild__7353
web-infra-dev/rsbuild
7,353
defect
3a798ac3926d75f41ed8411ad78dd8fc80ecf262
b3bef19c3a4c2959c19ca468a410fb5e5f9c50af
feat: export `createLogger` to create isolated logger instances
## Summary Added a `createLogger` function that creates new logger instances with their own state, allowing for custom log levels and avoiding mutation of the shared `logger` singleton. ## Checklist <!--- Check and mark with an "x" --> - [ ] Tests updated (or not required). - [ ] Documentation updated (or ...
diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 836e2a4d3d..19525b574b 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -31,7 +31,7 @@ export { PLUGIN_CSS_NAME, PLUGIN_SWC_NAME } from './constants'; export { defaultAllowedOrigins } from './defaultConfig'; export {...
4
1
0
[{"id": "G0", "claim": "Logger instances returned by createLogger do not get the shared logger's custom debug() override, so their debug output format is inconsistent with Rsbuild's built-in logger; the override logic should be extracted into a helper and applied to both the shared logger and new instances.", "category...
null
web-infra-dev__rsbuild__7357
web-infra-dev/rsbuild
7,357
defect
1b287ffb8ca9ad958b7ae94e1e6c0218476fe6da
b2b5a128609f3b3a4da1e3504d898dc0adb7b7bd
feat: add support for custom logger
## Summary This PR introduces the first part of `customLogger` support in `@rsbuild/core`. It adds a `config.customLogger` option and wires it into the current Rsbuild instance so the logger can be associated with internal context and exposed through `api.logger`. ## Scope This is only the first part of the...
diff --git a/e2e/cases/custom-logger/config-option/index.test.ts b/e2e/cases/custom-logger/config-option/index.test.ts new file mode 100644 index 0000000000..78e2b81731 --- /dev/null +++ b/e2e/cases/custom-logger/config-option/index.test.ts @@ -0,0 +1,68 @@ +import { expect, test } from '@e2e/helper'; +import { + crea...
2
1
1
[{"id": "G0", "claim": "customLogger is a runtime logger instance that will be carried through withDefaultConfig/normalizeConfig into context.normalizedConfig and thus included in debug-mode inspectConfig output (stringified and written to .rsbuild/*.mjs), which is likely noisy/non-deterministic and can break config in...
null
web-infra-dev__rsbuild__7412
web-infra-dev/rsbuild
7,412
defect
809e7a8cd53ed57f52f3ddd31372ba94455b3ace
cd0c2fd7cbad932152fe979bea5178b01233504c
fix(source-map): correct sources in CSS source map
## Summary Ensure the `sources` are relative paths when disabling JS source maps and enabling CSS source maps. ## Related Links - https://github.com/web-infra-dev/rspack/issues/12020 - close https://github.com/web-infra-dev/rsbuild/pull/6458
diff --git a/e2e/cases/source-map/basic/index.test.ts b/e2e/cases/source-map/basic/index.test.ts index e375f5d131..765cad339e 100644 --- a/e2e/cases/source-map/basic/index.test.ts +++ b/e2e/cases/source-map/basic/index.test.ts @@ -3,6 +3,7 @@ import path, { join } from 'node:path'; import { type Build, expect, +...
2
1
0
[{"id": "G0", "claim": "For consistency with the main output configuration, sourceMapFallbackTemplate should also be passed to the CSS SourceMapDevToolPlugin as fallbackModuleFilenameTemplate so CSS source maps fall back the same way as JS.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "int...
null
web-infra-dev__rsbuild__7425
web-infra-dev/rsbuild
7,425
defect
4a1cb2a0bc6b1fa604e9ca77fd1219292e6e3178
61605254a8ee5b35368ca586468fa001032090b8
test(e2e): remove lodash from transformImport case
## Summary - replace the `lodash`-based `transformImport` e2e case with a local fixture package - remove `lodash` and `@types/lodash` from `e2e/package.json`
diff --git a/e2e/cases/source/transform-import-package/fixture-package/get.js b/e2e/cases/source/transform-import-package/fixture-package/get.js new file mode 100644 index 0000000000..114d4a32cc --- /dev/null +++ b/e2e/cases/source/transform-import-package/fixture-package/get.js @@ -0,0 +1 @@ +export default 'transform...
4
2
1
[{"id": "G0", "claim": "The copyPkgToNodeModules helper can be simplified by using fse.copySync, which makes the ensureDirSync, removeSync and fs.cpSync calls redundant and allows dropping the node:fs import.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",...
null
web-infra-dev__rsbuild__7426
web-infra-dev/rsbuild
7,426
defect
143a7c74d4a9a972fdc56f5ac9153fad7ce9e7d0
9381471c3e1ed39a1f63423a9f03b1f31498cae1
feat(server): support full-reload socket type
## Summary - add `full-reload` as the preferred socket type for page reloads while keeping `static-changed` as a backward-compatible alias - switch internal full page reload messages and docs to `full-reload`, and cover both names in e2e tests ## Related Links None
diff --git a/e2e/cases/javascript-api/sock-write/index.test.ts b/e2e/cases/javascript-api/sock-write/index.test.ts index 1d5a240219..4a826b12a1 100644 --- a/e2e/cases/javascript-api/sock-write/index.test.ts +++ b/e2e/cases/javascript-api/sock-write/index.test.ts @@ -20,7 +20,11 @@ test('should allow to call `sockWrite`...
4
1
0
[{"id": "G0", "claim": "The `data` parameter of the `custom` overload in the documented `SockWrite` type (en and zh server-api docs) should not be marked optional, because it must be provided to carry the `event` name and omitting it causes a runtime error in the HMR client when destructuring the message payload.", "ca...
null
web-infra-dev__rsbuild__7427
web-infra-dev/rsbuild
7,427
defect
75230719b0b21e3e8b457b81a3f53dd0b0233e10
7381b1bbc143571cae53a96ade226a5796e657d3
feat(server): support full-reload path option
## Summary This PR adds an optional `path` payload to `sockWrite('full-reload')`, updates the HMR client to only reload the matching HTML page using the dev server base, and documents the API with an e2e regression test. ## Related Links None
diff --git a/e2e/cases/javascript-api/sock-write/index.test.ts b/e2e/cases/javascript-api/sock-write/index.test.ts index 4a826b12a1..a54086c96c 100644 --- a/e2e/cases/javascript-api/sock-write/index.test.ts +++ b/e2e/cases/javascript-api/sock-write/index.test.ts @@ -1,4 +1,4 @@ -import { expectPoll, gotoPage, test } fr...
6
1
1
[{"id": "G0", "claim": "The path-scoped reload logic is fragile when a `path` is provided: `path.slice(1)` assumes a leading `/`, the `.html`-only check limits the filter to HTML paths and falls through to a global reload, and a non-matching path triggers a reload anyway; the reviewer suggests normalizing the path and ...
null
web-infra-dev__rsbuild__7431
web-infra-dev/rsbuild
7,431
defect
7fb899a1052597ab4f1cf9e005498274b809d796
dae95f3b9ef8e58d77b43dc04e3d3cce64a32c89
test(core): cover sockWrite full-reload wildcard path
## Summary - Add an e2e assertion for `server.sockWrite('full-reload', { path: '*' })` to cover the wildcard full reload case. - Clarify in the type docs and the English and Chinese server API docs that `path: '*'` reloads all pages, while HTML paths stay relative to the dev server root. - Validation: `pnpm e2e cases/...
diff --git a/e2e/cases/javascript-api/sock-write/index.test.ts b/e2e/cases/javascript-api/sock-write/index.test.ts index 8d52abd03f..5d7923c070 100644 --- a/e2e/cases/javascript-api/sock-write/index.test.ts +++ b/e2e/cases/javascript-api/sock-write/index.test.ts @@ -28,6 +28,12 @@ test('should allow to call `sockWrite`...
2
1
0
[{"id": "G0", "claim": "The new `expectPoll(() => count > previousCount).toBeTruthy()` assertion returns a Promise and should be awaited (as should the other `expectPoll` calls in this test), otherwise the test may pass immediately without waiting for the reload and can miss failures or produce unhandled rejections.", ...
null
web-infra-dev__rsbuild__7450
web-infra-dev/rsbuild
7,450
defect
8881a6b9675fdb0a5e0e62c8084f5cf629615094
d0631fa7fd60d809840d44e9ee1a9f91caa12e00
feat(deps): update @rspack/core to 2.0.0-rc.1
## Summary Update @rspack/core to 2.0.0-rc.1. ## Related Links https://github.com/web-infra-dev/rspack/releases/tag/v2.0.0-rc.1
diff --git a/e2e/cases/overlay/type-errors/index.test.ts b/e2e/cases/overlay/type-errors/index.test.ts index f80ca31823..ccdabe381b 100644 --- a/e2e/cases/overlay/type-errors/index.test.ts +++ b/e2e/cases/overlay/type-errors/index.test.ts @@ -12,17 +12,12 @@ const expectErrorOverlay = async (page: Page) => { await e...
2
2
1
[{"id": "G0", "claim": "The file-path assertion was loosened to a plain text check, losing verification that the path is rendered as a clickable link via the `.file-link` class, so a specific locator should be kept to keep that functionality from regressing.", "category": "testing", "verdict": "supported", "priority": ...
null
web-infra-dev__rsbuild__7458
web-infra-dev/rsbuild
7,458
defect
d1b7e99b3918111b2a1340e50614f3f65cb7f8bc
5006c00773abd0613c17e7849105b0d22add1f3a
feat(plugin-react)!: drop Rsbuild v1 support
## Summary - remove `@rsbuild/core` v1 from `@rsbuild/plugin-react` peer dependencies and throw an explicit error when the plugin is used with Rsbuild v1 - remove outdated Rsbuild v1 coverage from `plugin-react` and skip the remaining legacy v1 cases in `plugin-svgr` tests ## Related Links None
diff --git a/packages/plugin-react/package.json b/packages/plugin-react/package.json index d5c93660e1..18c73c05c0 100644 --- a/packages/plugin-react/package.json +++ b/packages/plugin-react/package.json @@ -37,7 +37,7 @@ "typescript": "^6.0.2" }, "peerDependencies": { - "@rsbuild/core": "^1.0.0 || ^2.0.0-...
5
1
1
[{"id": "G0", "claim": "Skipping the entire Rsbuild v1 matrix in the plugin-svgr tests removes CI coverage for a configuration that @rsbuild/plugin-svgr still advertises as supported, so v1 regressions can ship unnoticed; restore the coverage (e.g. with a v1-compatible fixture) or drop v1 support from the package metad...
null
web-infra-dev__rsbuild__7467
web-infra-dev/rsbuild
7,467
defect
03866ab8f0098b9e55fc2fe65001fe7993f16f1d
9ece4238a129075ef2c0c24c299331378740431e
chore(deps): upgrade @rslint/core to 0.4.0
## Summary This PR upgrades `@rslint/core` to `0.4.0` and updates the affected lint config, tests, and e2e fixtures so the repository stays compatible with the new lint behavior. ## Related Links - https://github.com/web-infra-dev/rslint/releases/tag/v0.4.0
diff --git a/e2e/cases/plugin-babel/decorator/src/decorator.ts b/e2e/cases/plugin-babel/decorator/src/decorator.ts index 041b8c377c..5fa4826f93 100644 --- a/e2e/cases/plugin-babel/decorator/src/decorator.ts +++ b/e2e/cases/plugin-babel/decorator/src/decorator.ts @@ -1,8 +1,14 @@ +declare global { + interface Window { ...
4
1
1
[{"id": "G0", "claim": "The blanket file-level `// rslint-disable` in e2e/cases/syntax-ts/optional-chaining/src/index.ts can hide unrelated lint issues, so use a targeted disable of only the specific rule instead.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": ...
null
web-infra-dev__rsbuild__7486
web-infra-dev/rsbuild
7,486
defect
9c479d22619fea2e7d3f54ac3293d19c6bc0941c
e4805a916a1f76c9ff1c8e04c049c001516676d4
test(e2e): add loadBundle CJS runner coverage
## Summary - add a focused server e2e case for `environments.node.loadBundle()` on a CommonJS bundle - verify the loaded bundle can run with dynamic `import()` and access runner-provided globals like `queueMicrotask` - keep the case minimal by checking the `/check` response and the existing bundle cache behavior ## R...
diff --git a/e2e/cases/server/load-bundle-cjs/index.test.ts b/e2e/cases/server/load-bundle-cjs/index.test.ts new file mode 100644 index 0000000000..b84b3cb74a --- /dev/null +++ b/e2e/cases/server/load-bundle-cjs/index.test.ts @@ -0,0 +1,20 @@ +import { expect, test } from '@e2e/helper'; + +test('should load CJS bundle ...
2
1
1
[{"id": "G0", "claim": "With output.target 'node' the node environment defaults output.module to true, so the test likely exercises the ESM runner path rather than the CJS runner wrapper this PR set out to cover; the node environment output should explicitly set module:false to force CJS output.", "category": "correctn...
null
web-infra-dev__rsbuild__7494
web-infra-dev/rsbuild
7,494
defect
97bbbed613655d0df1f881581e3444d35cfa793f
2a6d04af5094702423affe76c20170ad6a1beb7f
feat(create-rsbuild): support create-rstack 2.0.0
## Summary Upgrade `create-rstack` to `2.0.0` in `create-rsbuild`, adapt the `react-compiler` tool condition to the new callback context, and align the CSS Modules e2e typing with `window.styles`. ## Related Links https://github.com/rstackjs/create-rstack/releases/tag/v2.0.0
diff --git a/e2e/cases/css/css-modules-export-locals/index.test.ts b/e2e/cases/css/css-modules-export-locals/index.test.ts index 1851a576b3..45da4394e3 100644 --- a/e2e/cases/css/css-modules-export-locals/index.test.ts +++ b/e2e/cases/css/css-modules-export-locals/index.test.ts @@ -2,7 +2,7 @@ import { type BuildResult...
1
1
0
[{"id": "G0", "claim": "For readability and maintainability, use Array.prototype.includes() (e.g. ['react-js', 'react-ts'].includes(templateName)) instead of the || chain when checking whether templateName is a React template.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
web-infra-dev__rsbuild__7534
web-infra-dev/rsbuild
7,534
defect
c35d1c3bdea66f992b595e3358be067487ef4f34
49ba24de17ea6176e4ae413816ea8bea7878f7a1
fix(core): print fallback URL when HTML is disabled
## Summary - print the `server.base` URL when HTML generation is disabled and at least one environment targets the web - keep non-web apps silent when there is no fallback route to print
diff --git a/packages/core/src/server/devServer.ts b/packages/core/src/server/devServer.ts index dfbc046b61..4ca30b4dd1 100644 --- a/packages/core/src/server/devServer.ts +++ b/packages/core/src/server/devServer.ts @@ -109,6 +109,15 @@ export async function createDevServer< const isHttps = Boolean(config.server.http...
2
2
1
[{"id": "G0", "claim": "In printServerURLs, `fallbackPathname` is checked only for truthiness when synthesizing the default route, so if `server.base` is configured as an empty string the fallback route will not be generated and printing is skipped; it should check `fallbackPathname !== undefined` instead.", "category"...
null
web-infra-dev__rsbuild__7542
web-infra-dev/rsbuild
7,542
defect
bc597b3b808fb5fe731948a1234e2243ca3c8cff
8ea1081064cea43dffea9b0809ab7997839e0ee8
fix(core): avoid CSS url asset name conflicts
## Summary This PR fixes a CSS `?url` asset naming conflict where different CSS files with the same basename could emit to the same `static/css/[name].css` path in development or when filename hashes are disabled. The filename template stays `static/css/[name].css`. The CSS URL loader now provides a source-dir-relati...
diff --git a/e2e/cases/css/url-query/index.test.ts b/e2e/cases/css/url-query/index.test.ts index 493c84c4c4..8891b6ea49 100644 --- a/e2e/cases/css/url-query/index.test.ts +++ b/e2e/cases/css/url-query/index.test.ts @@ -1,6 +1,10 @@ import { expect, getFileContent, test } from '@e2e/helper'; type CssUrlResult = { + ...
3
2
2
[{"id": "G0", "claim": "Adding [path] to the default CSS ?url filename template is redundant because the loader's name already includes the source path and will likely produce duplicated path segments, and ../ segments can carry emitted assets outside distPath.css, so the default template should stay [name].", "categor...
null
web-infra-dev__rslib__1106
web-infra-dev/rslib
1,106
defect
ccc4a23816c87657ebac2c2a66ff6dc49ce95aa7
f542d33071741d8305e11f306c62e5f7d96ae0e3
fix: svgr should not work in css file
## Summary svg files in css should not be transformed by svgr plugin in bundleless mode. ## Related Links <!--- Provide links of related issues or pages --> ## Checklist <!--- Check and mark with an "x" --> - [ ] Tests updated (or not required). - [ ] Documentation updated (or not required).
diff --git a/packages/core/src/asset/assetConfig.ts b/packages/core/src/asset/assetConfig.ts index 146c94454..f556bde5d 100644 --- a/packages/core/src/asset/assetConfig.ts +++ b/packages/core/src/asset/assetConfig.ts @@ -139,7 +139,9 @@ const pluginLibAsset = ({ bundle }: { bundle: boolean }): RsbuildPlugin => ({ ...
1
1
0
[{"id": "G0", "claim": "Rename the test fixture `foo.css` to `css-entry.css` in tests/integration/asset/svgr/rslib.config.ts so the exclusion of that file explicitly indicates it is another test case.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
web-infra-dev__rslib__1138
web-infra-dev/rslib
1,138
defect
6b7cadeb2c65fdde17aff6ae12cc5b1a5b41fb3d
e70c513e4da48356f6a0437550183c37b026206e
fix(dts): clean correct tsbuildinfo file
## Summary clean correct build info file ## Related Links close: #1134 <!--- Provide links of related issues or pages --> ## Checklist <!--- Check and mark with an "x" --> - [ ] Tests updated (or not required). - [ ] Documentation updated (or not required).
diff --git a/packages/plugin-dts/src/utils.ts b/packages/plugin-dts/src/utils.ts index e357aaba8..ce4f16510 100644 --- a/packages/plugin-dts/src/utils.ts +++ b/packages/plugin-dts/src/utils.ts @@ -582,19 +582,27 @@ export async function cleanTsBuildInfoFile( ): Promise<void> { const tsconfigDir = dirname(tsconfigPa...
3
1
0
[{"id": "G0", "claim": "The initialization of tsbuildInfoFilePath to 'tsconfig.tsbuildinfo' is misleading because it is overwritten in all code paths; the logic should be restructured to declare the variable without an initial value.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "i...
null
web-infra-dev__rslib__1240
web-infra-dev/rslib
1,240
defect
380fa82c8bb8402d084652819a92319e30414d1f
78a99f460abf4140d6b8553e4732e94961e7a52a
feat!: config loader default to `'auto'`
## Summary Add `'auto'` for `--config-loader` cli options to use Node.js's native loader to load configuration files first, and fallback to using jiti if it fails. **Breaking change:** The default value changes from `jiti` to `native`. More details, see RFC https://github.com/web-infra-dev/rsbuild/discussi...
diff --git a/packages/core/src/cli/commands.ts b/packages/core/src/cli/commands.ts index 0949eb95b..ec551b52a 100644 --- a/packages/core/src/cli/commands.ts +++ b/packages/core/src/cli/commands.ts @@ -43,9 +43,9 @@ const applyCommonOptions = (cli: CAC) => { ) .option( '--config-loader <loader>', - ...
3
3
0
[{"id": "G0", "claim": "The zh-docs `jiti` bullet is missing text after `.cts` and should read `当你使用 `.ts`, `.mts` 和 `.cts` 后缀的配置文件时,Rslib 会使用 ...`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the zh docs the Node.js version comment in the `...
null
web-infra-dev__rslib__1275
web-infra-dev/rslib
1,275
defect
f274031414f42da7616e7efb6460dfb6fe91e79a
7332aad710cfc5b3e7e301fbc2d0aa8a13c59a28
feat: support build without config file
## Summary support run command without config file. when no config is present, Rslib will use a fallback `lib` object accept options from CLI. ## Related Links <!--- Provide links of related issues or pages --> ## Checklist <!--- Check and mark with an "x" --> - [x] Tests updated (or not required)....
diff --git a/packages/core/src/cli/initConfig.ts b/packages/core/src/cli/initConfig.ts index db197cdd2d..542d5e3a82 100644 --- a/packages/core/src/cli/initConfig.ts +++ b/packages/core/src/cli/initConfig.ts @@ -2,7 +2,11 @@ import path from 'node:path'; import util from 'node:util'; import { loadEnv, type RsbuildEntr...
3
3
0
[{"id": "G0", "claim": "The type assertion casting an empty object as LibConfig bypasses type safety; use a proper default LibConfig object or a factory returning a valid default configuration.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In t...
null
web-infra-dev__rslib__1316
web-infra-dev/rslib
1,316
defect
2326c3c612f56453d6b0ded61684a1ac9561f38b
c29ad6ac68ade17e69a2efee23ccb0fef808f49d
feat(CLI): run `rslib` without any sub-command to trigger build
## Summary Run `rslib` without any sub-command to trigger build. ## Related Links <!--- Provide links of related issues or pages --> ## Checklist <!--- Check and mark with an "x" --> - [ ] Tests updated (or not required). - [ ] Documentation updated (or not required).
diff --git a/packages/core/src/cli/commands.ts b/packages/core/src/cli/commands.ts index 48aab9452..c3f9b9c52 100644 --- a/packages/core/src/cli/commands.ts +++ b/packages/core/src/cli/commands.ts @@ -2,6 +2,7 @@ import type { LogLevel, RsbuildMode } from '@rsbuild/core'; import cac, { type CAC } from 'cac'; import t...
2
1
1
[{"id": "G0", "claim": "The variable `RSLIB_VERSION` is used but not imported in packages/core/src/cli/commands.ts, which will cause a reference error at runtime; add an import statement for it or define it in this file.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"...
null