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
virtual-kubelet__virtual-kubelet__789
virtual-kubelet/virtual-kubelet
789
defect
ba940a9739fe0c661f9edfa3192ad84a412e23a3
8180607257e36fc7d60f5fc12c3c47ea9558076d
After handling status update, reset update timer with correct duration
If the ping timer is being used, it should be reset with the ping update interval. If the status update interval is used then Ping stops being called for long enough to cause kubernetes to mark the node as NotReady. Fixes #788
diff --git a/node/node.go b/node/node.go index 59ce9d6743..d80be29d85 100644 --- a/node/node.go +++ b/node/node.go @@ -259,10 +259,13 @@ func (n *NodeController) controlLoop(ctx context.Context) error { return nil case updated := <-n.chStatusUpdate: var t *time.Timer + var resetDuration time.Duration i...
3
2
1
[{"id": "G0", "claim": "The reset duration should be set before the control loop starts rather than being declared and assigned inside it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A test should be written to show the bug and demonstrate th...
null
virtual-kubelet__virtual-kubelet__851
virtual-kubelet/virtual-kubelet
851
defect
b7c19cb5a1ca0c76f09a03af9dccd45bfe3e1452
227146c83271b7a3fb140e604ecb8fdf3d19816c
Solve the notification on startup pod status notification race condition
This solves the race condition as described in https://github.com/virtual-kubelet/virtual-kubelet/issues/836. It does this by checking two conditions when the possible race condition is detected. If we receive a pod notification from the provider, and it is not in our known pods list: 1. Is our cache in-sync?...
diff --git a/node/pod.go b/node/pod.go index e2a720226..b0190935c 100644 --- a/node/pod.go +++ b/node/pod.go @@ -16,6 +16,8 @@ package node import ( "context" + "math/rand" + "time" "github.com/google/go-cmp/cmp" pkgerrors "github.com/pkg/errors" @@ -234,21 +236,47 @@ func (pc *PodController) updatePodStatus...
7
5
2
[{"id": "G0", "claim": "The goto-based retry loop in enqueuePodStatusUpdate should be refactored into a for loop, as some people prefer loops over goto.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The retry interval of 1-1000 microseconds is ...
null
virtual-kubelet__virtual-kubelet__870
virtual-kubelet/virtual-kubelet
870
defect
5a39c167a67dfc636325f2bc07aac96b5f5157da
484d59a1852076dec2ecb03e3dedcaa902e30216
Add envtest
I know it's not an impressive test. It just brings up a node, and makes sure it registers. Let's do more in the future.
diff --git a/.circleci/config.yml b/.circleci/config.yml index 87acf60752..3f6c0fa131 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -47,7 +47,7 @@ jobs: command: V=1 make build - run: name: Tests - command: V=1 CI=1 make test + command: V=1 CI=1 make test...
3
2
0
[{"id": "G0", "claim": "The `git diff --exit-code go.mod go.sum` check in scripts/validate/gomod.sh has only caused headaches and should be removed because there is no good reason to keep it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The ...
null
virtual-kubelet__virtual-kubelet__884
virtual-kubelet/virtual-kubelet
884
defect
4b74a01f8f4722915cfde0bc7212d6d429516bb0
14d37dba9d7a7f4f46646622b45fc66de61310a5
Create stronger separation between provider node and server node
There were some (additional) bugs that were easy-ish to introduce by interleaving the provider provided node, and the server provided updated node. This removes the chance of that confusion.
diff --git a/node/node.go b/node/node.go index ea643a0cee..8ec8a72223 100644 --- a/node/node.go +++ b/node/node.go @@ -72,10 +72,10 @@ type NodeProvider interface { //nolint:golint // underlying options, the last NodeControllerOpt will win. func NewNodeController(p NodeProvider, node *corev1.Node, nodes v1.NodeInterf...
2
2
0
[{"id": "G0", "claim": "The doc comment on the serverNode field has a typo: it reads 'should be only be' where it should read 'should only be'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new WithoutAutonomousHearbeatUpdates NodeControllerO...
null
virtual-kubelet__virtual-kubelet__941
virtual-kubelet/virtual-kubelet
941
defect
9affe97f88ab52aa1b60cfc04a8a65c3a79a00ac
eda7adbdb4641361921e5812e0313deacc91bddb
log: add klog/v2
Fixes #924
diff --git a/go.sum b/go.sum index c66c3063d..6d61a23c2 100644 --- a/go.sum +++ b/go.sum @@ -645,6 +645,7 @@ golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTk golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/lint v0...
1
1
0
[{"id": "G0", "claim": "Replace the runtime log.Logger interface test in klogv2_test.go with a compile-time assertion `var _ log.Logger = (*adapter)(nil)` in klogv2.go.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
virtual-kubelet__virtual-kubelet__962
virtual-kubelet/virtual-kubelet
962
defect
5fd08d4619980aad48dfd33467009b5817d50390
87594c4b74935c60c1e63c9636460e1618660bbc
Add the ability to dictate custom retries
Our current retry policy is naive and only does 20 retries. It is also based off of the rate limiter. If the user is somewhat aggressive in rate limiting, but they have a temporary outage on API server, they may want to continue to delay. In facts, K8s has a built-in function to suggest delays: https://pkg.go.de...
diff --git a/internal/queue/queue.go b/internal/queue/queue.go index 1b6a5e1366..d22198a4b7 100644 --- a/internal/queue/queue.go +++ b/internal/queue/queue.go @@ -61,8 +61,16 @@ type Queue struct { // wakeup wakeupCh chan struct{} + + retryFunc ShouldRetryFunc } +// ShouldRetryFunc is passed a key, the number ...
5
3
1
[{"id": "G0", "claim": "PodControllerConfig is an external config struct and must not expose fields typed with the internal queue package's ShouldRetryFunc.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The doc string should describe the default behavio...
null
visgl__deck.gl__10031
visgl/deck.gl
10,031
defect
e19733f979d7e535767a9a6819a159313b7b70bb
da6579fe762490d0cbc603e6cd5459549dfe1f5a
feat(widgets): ContextMenuWidget improvements
- fix: menu placement (currently does not work if viewport is not fullscreen) - feat: consistent CSS styling with other widgets - Avoid overwriting user props from a callback (flaky pattern)
diff --git a/docs/api-reference/widgets/context-menu-widget.md b/docs/api-reference/widgets/context-menu-widget.md index 165b29b61c0e..cc50c3819821 100644 --- a/docs/api-reference/widgets/context-menu-widget.md +++ b/docs/api-reference/widgets/context-menu-widget.md @@ -16,13 +16,13 @@ const deck = new Deck({ new ...
1
1
0
[{"id": "G0", "claim": "The inline menu styles in onRenderHTML (background, boxShadow, pointerEvents) should be moved into the CSS file and use theme variables.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
visgl__deck.gl__10071
visgl/deck.gl
10,071
defect
85138d493c2da42aeba596322b4d43adf0a33a78
98fea898751d5342fe7de534c0418826cc0d0758
feat(widgets): migrate TimelineWidget to RangeInput
<img width="591" height="100" alt="image" src="https://github.com/user-attachments/assets/fca9e07a-c8c0-481a-af55-895db5ae7ce0" /> #### Change List - TimelineWidget - Match styling guidelines of other widgets - Docs - Styling tweaks
diff --git a/docs/api-reference/widgets/scrollbar-widget.md b/docs/api-reference/widgets/scrollbar-widget.md index b8d8ca1316d..327fc5db779 100644 --- a/docs/api-reference/widgets/scrollbar-widget.md +++ b/docs/api-reference/widgets/scrollbar-widget.md @@ -108,3 +108,8 @@ Learn more about how to replace icons in the [s...
3
2
0
[{"id": "G0", "claim": "The widget doc pages should list only the new widget-specific variables and link to the shared /styles doc that documents the Range slider variables, instead of duplicating the RangeInput variable table that then has to be kept in sync.", "category": "documentation", "verdict": "supported", "pri...
null
visgl__deck.gl__10074
visgl/deck.gl
10,074
defect
3c69e49bcb6b78826de6d7577de66305fd61bf50
37f94f727e9bb58230788b1d6d42cde76c9fbce8
fix(react): DeckGL component avoid overwriting undefined props
#### Background DeckGL overwrites the following props if not provided by the user: - `layers` to `[]` - `views` to `null` This makes it difficult to detect if the user intentionally set them to empty, or simply do not want to manage them. This is technically a breaking change, though I do not expect any visibl...
diff --git a/modules/react/src/deckgl.ts b/modules/react/src/deckgl.ts index 527e96c50b6..c31b875e58a 100644 --- a/modules/react/src/deckgl.ts +++ b/modules/react/src/deckgl.ts @@ -169,12 +169,17 @@ function DeckGLWithRef<ViewsT extends ViewOrViews = null>( height: '100%', parent: containerRef.current, ...
5
1
1
[{"id": "G0", "claim": "When layers goes from a defined value to undefined at runtime, the change makes previous layers persist instead of clearing while loading, which is a visible breaking behavior change.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla...
null
visgl__deck.gl__10152
visgl/deck.gl
10,152
defect
e784bae121bbe1ec9f5c3152d7a2e04cd3780c19
47345569343acd84a3614fd33ea32a5ffc93942e
feat(core): AttributeManager allocates Buffers for constant WebGPU at…
## Summary Add WebGPU support for constant attributes in `AttributeManager` by materializing them into full per-instance buffers. This keeps layer behavior compatible on WebGPU in cases where deck.gl previously relied on WebGL-style constant vertex attributes. ## Changes - update `AttributeManager` to expan...
diff --git a/docs/developer-guide/webgpu.md b/docs/developer-guide/webgpu.md index 688ff42665b6..6f71ff8864c0 100644 --- a/docs/developer-guide/webgpu.md +++ b/docs/developer-guide/webgpu.md @@ -107,6 +107,7 @@ The table below covers the public effect classes exported by `@deck.gl/core`. | Picking | ❌ | `Deck` current...
3
2
0
[{"id": "G0", "claim": "Stop stacking device-type hacks at the updateBuffer call site; prefer WebGPU to handle the buffer update in the normal flow instead of opting out of it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The WebGPU constant path scans...
null
visgl__deck.gl__10202
visgl/deck.gl
10,202
defect
d7b36cb1875a53ce4013606148a1ed5eb9983509
ab521ba7b0d2dfab3fa8e5f046beb50da7014b6d
fix(widgets): ZoomWidget works with OrthographicView
OrthographicView no longer respects `zoom` when `zoomX` and `zoomY` are defined #### Change List - Detect OrthographicView in ZoomWidget - Add `zoomAxis` prop - Documentation - Tests <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Changes `ZoomWidget` zoom behavior and emitted view state for `Orthogr...
diff --git a/docs/api-reference/widgets/zoom-widget.md b/docs/api-reference/widgets/zoom-widget.md index 1ddd9da3cc6..fa014f4c10e 100644 --- a/docs/api-reference/widgets/zoom-widget.md +++ b/docs/api-reference/widgets/zoom-widget.md @@ -126,6 +126,13 @@ The `ZoomWidget` accepts the generic [`WidgetProps`](../core/widge...
2
1
1
[{"id": "G0", "claim": "The zoomAxis values 'X' and 'Y' would preferably be lowercase, for consistency with the widget's other string APIs.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "When zoomAxis is 'all' in an orthographic view, delta is reassigned t...
null
visgl__deck.gl__8769
visgl/deck.gl
8,769
defect
9e4fa084cec79f5454af095558eab17464af5f55
84c88fb3c1d55f80512c28c4001735e645136c8f
Only add necessary attributes in DataFilterExtension
<!-- For feature, feature enhancement or bug fix, create an issue first and finish To Do List there --> <!-- Anything doesn't work as expected is a bug, including code, doc and test --> <!-- Reference the issue that this closes --> <!-- If it only partially resolves it, change this to "For #" --> Closes #8694 ...
diff --git a/docs/api-reference/extensions/data-filter-extension.md b/docs/api-reference/extensions/data-filter-extension.md index a7d25106b27..96888a628b1 100644 --- a/docs/api-reference/extensions/data-filter-extension.md +++ b/docs/api-reference/extensions/data-filter-extension.md @@ -70,8 +70,8 @@ new deck.DataFilt...
5
2
1
[{"id": "G0", "claim": "Only the attributes needed be `#ifdef`-ed out and the uniform declarations left unconditioned, since less conditional code is better and there is little penalty for unused uniform fields.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim"...
null
visgl__deck.gl__8858
visgl/deck.gl
8,858
defect
65f9a250bf899dae9773a489efea08dc18eb86e5
303a87bbbc03adc3761561ee78291fabd82ae4a1
feat(core): Explicitly set stepMode in Attribute layout
Closes #8849 This proposed fix adds a `stepMode` attribute setting. If set to `dynamic`, it will be resolved to one of `vertex` and `instance` based on whether the target model is instanced. With this change I'm able to remove much redundancy from layers/extensions where the same buffer is shared between instanced a...
diff --git a/docs/api-reference/core/attribute-manager.md b/docs/api-reference/core/attribute-manager.md index f2ee23e6a8a..b6e17d5667c 100644 --- a/docs/api-reference/core/attribute-manager.md +++ b/docs/api-reference/core/attribute-manager.md @@ -52,7 +52,7 @@ the attributes that should be auto-calculated. ```js at...
3
1
0
[{"id": "G0", "claim": "Add JSDoc documentation to the private methods of AttributeManager (_add, _createAttribute) while touching them.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "JSDoc the isInstanced field of the modelInfo parameter of Attri...
null
visgl__deck.gl__8991
visgl/deck.gl
8,991
defect
5a90f5ff1a6cebb483ba3cec70e63cb9010885d8
b022aa64c172b16f7d65f1cba4eab96f40b78d48
fix(widgets): widget style prop keys should accept camelCase css properties and dashed css variables
Closes #8990 #### Change List - Updated the `style` prop on `CompassWidget`, `ZoomWidget`, and `FullscreenWidget` to support camelCase CSS properties (e.g. `backgroundColor`) and kabab-case CSS variables (e.g. `--button-size`).
diff --git a/docs/api-reference/widgets/overview.md b/docs/api-reference/widgets/overview.md index e55d3a34a7d..8a153a4ccd2 100644 --- a/docs/api-reference/widgets/overview.md +++ b/docs/api-reference/widgets/overview.md @@ -75,6 +75,12 @@ Apply styles to a single instance of a widget using inline styles. new Fullscre...
5
4
1
[{"id": "G0", "claim": "The PR should implement option 1 (setProperty for CSS variables, direct assignment for camelCase) instead of the regex-based approach that asks every widget author to understand regex, keeping core widgets simple to read.", "category": "design", "verdict": "supported", "priority": "P1", "scope":...
null
visgl__deck.gl__9142
visgl/deck.gl
9,142
defect
8a7c3c78095b3bf895f84829dbd282062388b866
88bde1bd16246de36fd4bd94575218f032fad4fc
GPU Aggregation: miscellaneous clean up
#### Change List - Extract common `getBinIdRange` util - Align ScreenGridLayer's `colorRange` behavior with the other layers - Add a test app (used for validating example code in docs) ![histogram](https://github.com/user-attachments/assets/33092ac5-7e18-4280-b61f-0e25c252a7c8)
diff --git a/docs/api-reference/aggregation-layers/screen-grid-layer.md b/docs/api-reference/aggregation-layers/screen-grid-layer.md index ded50266958..bdd6809b27e 100644 --- a/docs/api-reference/aggregation-layers/screen-grid-layer.md +++ b/docs/api-reference/aggregation-layers/screen-grid-layer.md @@ -229,7 +229,7 @@...
5
1
1
[{"id": "G0", "claim": "The function getBinIdRange should be renamed to estimateBinIdRange, since its doc comment says it only estimates the binIdRange.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "getBinIdRange may be worth extending to suppo...
null
visgl__deck.gl__9144
visgl/deck.gl
9,144
defect
8a7c3c78095b3bf895f84829dbd282062388b866
b9e2dae95eb864c344653500f92074a0cb8dd6d8
Upgrade mjolnir.js to v3
#### Change List - Upgrade mjolnir.js to v3, remove postinstall hack script that fixes hammer.js - Update Deck class to use v3 API - mjolnir's EventManager no longer comes with preset recognizers, they need to be explicitly defined - `tripan` event is changed to `multipan` and requires two fingers instead of three...
diff --git a/docs/api-reference/core/controller.md b/docs/api-reference/core/controller.md index e7ea89ca35b..010d3a9ef2e 100644 --- a/docs/api-reference/core/controller.md +++ b/docs/api-reference/core/controller.md @@ -61,9 +61,9 @@ Called by the event manager to handle pointer events. This method delegate to th * `...
2
2
1
[{"id": "G0", "claim": "Renaming the common click event to tap in the EVENTS map could break apps that rely on it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The map declarations in constants.ts should be properly typed now that mjolnir 3 export...
null
visgl__deck.gl__9160
visgl/deck.gl
9,160
defect
95ee077fa801baa122e3f60dc41194cf96f31cb6
cbf20d87373f53207d0d6c1b6d859f267aec0ae2
Remove updateModuleSettings from codebase
<!-- For feature, feature enhancement or bug fix, create an issue first and finish To Do List there --> <!-- Anything doesn't work as expected is a bug, including code, doc and test --> <!-- Reference the issue that this closes --> <!-- If it only partially resolves it, change this to "For #" --> For https://gith...
diff --git a/modules/aggregation-layers/src/heatmap-layer/heatmap-layer.ts b/modules/aggregation-layers/src/heatmap-layer/heatmap-layer.ts index 258c0301e9a..3ea2f082dc9 100644 --- a/modules/aggregation-layers/src/heatmap-layer/heatmap-layer.ts +++ b/modules/aggregation-layers/src/heatmap-layer/heatmap-layer.ts @@ -615...
3
2
0
[{"id": "G0", "claim": "The newly added maskProps object in layer.ts should be given a type.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The forced `as ProjectProps` cast on projectProps should be avoided, e.g. with `as const satisfies Projec...
null
visgl__deck.gl__9296
visgl/deck.gl
9,296
defect
e9eada678c485520e0e63cff9436230ae7d34fa8
90eff32ef19eb6324a34f8bb2ad67dd06607920d
feat(mapbox): support Maplibre globe projection
For #9199 Note: requires #9295 Tested for overlaid and interleaved modes #### Change List - `MapboxOverlay` switches views based on map projection mode
diff --git a/examples/get-started/pure-js/maplibre-globe/README.md b/examples/get-started/pure-js/maplibre-globe/README.md new file mode 100644 index 00000000000..6b0922daf8f --- /dev/null +++ b/examples/get-started/pure-js/maplibre-globe/README.md @@ -0,0 +1,21 @@ +## Example: Use deck.gl with Maplibre globe projectio...
7
3
2
[{"id": "G0", "claim": "The overlapping nearZ/farZ and nearZMultiplier/farZMultiplier overrides on GlobeViewport are confusing, and a warning should be issued when both are supplied (with the API audited to be more fail-proof).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"...
null
visgl__deck.gl__9352
visgl/deck.gl
9,352
defect
01d205b3e757d9adb722c70ca8eefa526259f4ee
1a5685fc92c3a3bd72ebc5d219f8a4ac87c0c9dd
CARTO: Support gzip compression in RasterLayer
<!-- For other PRs without open issue --> #### Background For more efficient storage of sparse data, we would like to support gzip directly on the payload <!-- For all the PRs --> #### Change List - Read `raster_metadata` to check for compression field - Decompress using `GZipCompression` when compressed - I...
diff --git a/modules/carto/package.json b/modules/carto/package.json index ab60c298758..f98d3516e41 100644 --- a/modules/carto/package.json +++ b/modules/carto/package.json @@ -42,7 +42,7 @@ "prepublishOnly": "npm run build-bundle && npm run build-bundle -- --env=dev" }, "dependencies": { - "@carto/api-cl...
1
1
1
[{"id": "G0", "claim": "Changing the carto raster tile loader's `worker` option from true to false should be reverted unless it was an intentional change, since disabling the worker is likely just debugging leftovers.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
visgl__deck.gl__9353
visgl/deck.gl
9,353
defect
0a5f6f00e0cf75c46e1ec41f02c5b9496d36d816
2eaf71c01ebe75e3b4c11fdcc44989bb7bf1a8ab
CARTO: update documentation for layers
<!-- For all the PRs --> #### Change List - Removes Experimental labels for 9.1 - Add docs for PointLabelLayer - Improve wording
diff --git a/docs/api-reference/carto/cluster-tile-layer.md b/docs/api-reference/carto/cluster-tile-layer.md index 47c386b29a8..1df1d14b17c 100644 --- a/docs/api-reference/carto/cluster-tile-layer.md +++ b/docs/api-reference/carto/cluster-tile-layer.md @@ -1,6 +1,6 @@ -# ClusterTileLayer (Experimental) +# ClusterTileLa...
2
1
0
[{"id": "G0", "claim": "Nit: 'valid' is implicit in the added '### Valid aggregation types' heading, so it should be renamed, e.g. to 'Aggregation types' (or 'Supported aggregation types' / 'Aggregation strategies').", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id":...
null
visgl__deck.gl__9588
visgl/deck.gl
9,588
defect
dfa6d41ceb95881cbfc7a8aaff31b90f27864e6e
a716b951964012cd4b5797926b2b6b6d1a651340
feat(core): Add View.clone() method
<!-- For feature, feature enhancement or bug fix, create an issue first and finish To Do List there --> <!-- Anything doesn't work as expected is a bug, including code, doc and test --> <!-- Reference the issue that this closes --> <!-- If it only partially resolves it, change this to "For #" --> Closes # <!--...
diff --git a/docs/api-reference/core/view.md b/docs/api-reference/core/view.md index ac4d59da56c..4fc20fb756b 100644 --- a/docs/api-reference/core/view.md +++ b/docs/api-reference/core/view.md @@ -115,6 +115,24 @@ Returns: Note: For speed, deck.gl uses shallow equality. This means that a value of `false` does not guar...
2
2
0
[{"id": "G0", "claim": "Add a test that cloning a view produces an identical view with matching matrices.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a check that View.equals() returns true for a cloned view.", "category": "testing", "verdict": "...
null
visgl__deck.gl__9607
visgl/deck.gl
9,607
defect
bd8370b7e465baa396f04506ee44546ce0c84edc
6accec41c3d97bc387d1557c93b8b28c3ba75773
feat(widgets): FpsWidget
<!-- For feature, feature enhancement or bug fix, create an issue first and finish To Do List there --> <!-- Anything doesn't work as expected is a bug, including code, doc and test --> <!-- Reference the issue that this closes --> <!-- If it only partially resolves it, change this to "For #" --> Closes # <!--...
diff --git a/docs/api-reference/widgets/fps-widget.md b/docs/api-reference/widgets/fps-widget.md new file mode 100644 index 00000000000..f08ed52ee4c --- /dev/null +++ b/docs/api-reference/widgets/fps-widget.md @@ -0,0 +1,28 @@ +# FpsWidget + +Displays the measured frames per second (FPS) as reported by the attached +`D...
2
1
0
[{"id": "G0", "claim": "The FPS widget's rendered text should use a monospace font family instead of sans-serif.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "It is unclear whether this approach would continuously measure FPS even when nothing is drawing...
null
visgl__deck.gl__9616
visgl/deck.gl
9,616
defect
9c213f4f46795c9687ef95194eaabff16abf573a
7d82e97435ca10d85d1ef7617a33a8d527793d74
feat(widgets): New ContextMenuWidget
<!-- For feature, feature enhancement or bug fix, create an issue first and finish To Do List there --> <!-- Anything doesn't work as expected is a bug, including code, doc and test --> <!-- Reference the issue that this closes --> <!-- If it only partially resolves it, change this to "For #" --> Closes # <!--...
diff --git a/modules/react/src/index.ts b/modules/react/src/index.ts index 35e67574ca5..b652beb814c 100644 --- a/modules/react/src/index.ts +++ b/modules/react/src/index.ts @@ -11,6 +11,7 @@ export {FullscreenWidget} from './widgets/fullscreen-widget'; export {ZoomWidget} from './widgets/zoom-widget'; export {Geoloca...
8
5
0
[{"id": "G0", "claim": "The example app's working _InfoWidget usages are commented out instead of kept or fixed.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The style prop on ContextMenuWidgetProps duplicates what the base Widget props alread...
null
visgl__deck.gl__9629
visgl/deck.gl
9,629
defect
58c90974a70830cd1ca7d6d012822f75f5d40b17
3514e1e71beeae412090ac440cb76b302d15081a
fix(core): onClick callback does not handle dblclick
Let onClick callback handle double click as before v9.1. Closes #9627 #### Change List - add an event handler for dblclick calling onClick callback.
diff --git a/modules/core/src/lib/constants.ts b/modules/core/src/lib/constants.ts index c7701c068e7..7b379c3e73a 100644 --- a/modules/core/src/lib/constants.ts +++ b/modules/core/src/lib/constants.ts @@ -88,6 +88,7 @@ export const UNIT = { export const EVENT_HANDLERS = { click: 'onClick', + dblclick: 'onClick',...
3
2
1
[{"id": "G0", "claim": "Does the solution let the developer distinguish a double from a single click, given that both are now routed to the same onClick callback?", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request has a failing test.", "catego...
null
visgl__deck.gl__9703
visgl/deck.gl
9,703
defect
87883cdaae08c6eeddf112382da9b572d1503674
bfcdab3c4105e2034dadc8eed8d0afc5af6b50af
fix: picking on non-geospatial tile layer with modelMatrix
<!-- For feature, feature enhancement or bug fix, create an issue first and finish To Do List there --> <!-- Anything doesn't work as expected is a bug, including code, doc and test --> <!-- Reference the issue that this closes --> <!-- If it only partially resolves it, change this to "For #" --> Closes #9702 ...
diff --git a/modules/geo-layers/src/tile-layer/tile-layer.ts b/modules/geo-layers/src/tile-layer/tile-layer.ts index 60cc4f972ff..e3defa432d9 100644 --- a/modules/geo-layers/src/tile-layer/tile-layer.ts +++ b/modules/geo-layers/src/tile-layer/tile-layer.ts @@ -26,6 +26,7 @@ import { Tileset2DProps } from '../tilese...
1
1
1
[{"id": "G0", "claim": "Add a test to tileset-2d-spec.ts covering Tileset2D#isTileVisible, alongside the existing isTileVisible test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
visgl__deck.gl__9741
visgl/deck.gl
9,741
defect
55af702e30e9bfb71e85c473fb131c49d3b4a688
9425ac600a3b6337311a73be6c2f3ce3001b136c
calls transform function on constant attribute updates
Fixes bugs that show up when inputting an accessor as a string instead of a function. <!-- For other PRs without open issue --> #### Background The bug can be seen clearly in this codepen: https://codepen.io/heebeegb/pen/RNWLyXB?editors=0010 Swapping the getIcon accessor to a function will make it work - thi...
diff --git a/modules/core/src/lib/attribute/attribute-manager.ts b/modules/core/src/lib/attribute/attribute-manager.ts index 8d518893cdb..4a117d308e4 100644 --- a/modules/core/src/lib/attribute/attribute-manager.ts +++ b/modules/core/src/lib/attribute/attribute-manager.ts @@ -208,7 +208,7 @@ export default class Attrib...
4
4
2
[{"id": "G0", "claim": "setConstantValue should take `context: any` as its leading parameter instead of the trailing optional `context?: any` added by the PR.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new local holding the transformed value shou...
null
visgl__deck.gl__9922
visgl/deck.gl
9,922
defect
b0134f025148b52b91320d16768ab5d14a745328
60354c9cca98e45822e8394118c60f7f5a6299b9
feat(core): Add `_container` to WidgetProps
#### Background `widget.viewId` is currently overloaded with two purposes: - Functionality - defines the view(port) that the widget interacts with. A widget does not receive viewport update events from unmatched views if viewId is specified. - Layout - defines the bounding box that the widget is positioned relativ...
diff --git a/docs/api-reference/core/widget.md b/docs/api-reference/core/widget.md index c64b177d4638..525ee1917eac 100644 --- a/docs/api-reference/core/widget.md +++ b/docs/api-reference/core/widget.md @@ -39,6 +39,14 @@ Additional inline CSS styles on the top HTML element of the widget. camelCase CS Additional CSS...
4
1
1
[{"id": "G0", "claim": "CSS selectors may not have been written with an external container in mind, so users might need to add classes to their container.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "'root' could also be a valid placement value, which wo...
null
visgl__deck.gl__9923
visgl/deck.gl
9,923
defect
a15c8cea047993c8a861bf542835c1988f30165c
f7b329167094fce52afdc3b97debbd0f4e717b6a
fix(core): reproduce-able viewports
#### Background In some contexts such as custom layer/widget, the component only has access to the current viewport instance, not the view or view state that produced it. Because the base viewport instance only stores low level properties like camera position and matrices, some useful view state information may not ...
diff --git a/modules/core/src/viewports/first-person-viewport.ts b/modules/core/src/viewports/first-person-viewport.ts index a60a71f76ef..7fa045b39b8 100644 --- a/modules/core/src/viewports/first-person-viewport.ts +++ b/modules/core/src/viewports/first-person-viewport.ts @@ -44,8 +44,12 @@ export type FirstPersonViewp...
7
7
3
[{"id": "G0", "claim": "FirstPersonViewport stores pitch and bearing but omits the `up` property, so cloning a viewport created with a custom `up` would fall back to the default and produce a different viewMatrix, failing the equals() reproducibility check.", "category": "correctness", "verdict": "supported", "priority...
null
visgl__deck.gl__9947
visgl/deck.gl
9,947
defect
83ac412786ff5d37c5b41d5c4290a887fd0cc2d8
71960a31279d7167d6a774fd00c86d54ec5c6b09
fix(mapbox): automatically inject 'mapbox' view in overlaid mode for multi-view consistency
## Summary Fixes an inconsistency in `MapboxOverlay` where custom views behave differently in interleaved vs overlaid modes. ## Problem When implementing multi-view examples in #9946, we discovered that when `interleaved=false` (overlaid mode), the multi-view example did not render airports/arcs layers because...
diff --git a/modules/mapbox/src/mapbox-overlay.ts b/modules/mapbox/src/mapbox-overlay.ts index 5546bf63c62..b5d46bfc3e9 100644 --- a/modules/mapbox/src/mapbox-overlay.ts +++ b/modules/mapbox/src/mapbox-overlay.ts @@ -117,7 +117,7 @@ export default class MapboxOverlay implements IControl { ...this._props, ...
3
2
2
[{"id": "G0", "claim": "In overlaid mode `setProps` spreads `this._props` directly to `deck.setProps()`, bypassing the new `_getViews()` helper, so custom `views` passed via `setProps` are not auto-injected with the 'mapbox' view until the next map render event triggers `_updateViewState`, creating a temporary inconsis...
null
visgl__deck.gl__9948
visgl/deck.gl
9,948
defect
83ac412786ff5d37c5b41d5c4290a887fd0cc2d8
aecfd6a8704947db9a47bbd1e6507ef33bfe38de
feat(core): Add Deck#getView() method
Closes #9709 ## Summary - Adds a public `Deck#getView(viewId)` method that returns a View by its id - Updates `getViewport` in `@deck.gl/mapbox` deck-utils to use the new API instead of manually searching through `deck.props.views` - Adds tests for single view and multiple views cases This extracts the view ...
diff --git a/modules/core/src/lib/deck.ts b/modules/core/src/lib/deck.ts index 0380b7211371..c22577708e66 100644 --- a/modules/core/src/lib/deck.ts +++ b/modules/core/src/lib/deck.ts @@ -599,6 +599,12 @@ export default class Deck<ViewsT extends ViewOrViews = null> { return this.viewManager.views; } + /** Get...
2
2
1
[{"id": "G0", "claim": "Given the comment asserts the view is always MapView or GlobeView in this context, cast `view` itself at its assignment instead of casting `view.props` at the nearZMultiplier line.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
visgl__deck.gl__9974
visgl/deck.gl
9,974
defect
6149b4c4ca5e33397d697c21d6729cb2cf8e4c89
94fb5b5bb6e0b39de34e6a5a7803a3605e42373d
fix(widgets): GeocoderWidget dark theme colors (#9899)
Closes #9899 Replace hardcoded colors in GeocoderWidget and DropdownMenu with CSS variables to properly support dark theme. The dropdown button, menu, and input field now inherit colors from the theme system. <img width="288" height="189" alt="Screenshot 2026-02-20 at 3 13 31 PM" src="https://github.com/user-at...
diff --git a/modules/widgets/src/geocoder-widget.tsx b/modules/widgets/src/geocoder-widget.tsx index 4bc7ab4c88b..5e211967590 100644 --- a/modules/widgets/src/geocoder-widget.tsx +++ b/modules/widgets/src/geocoder-widget.tsx @@ -87,41 +87,19 @@ export class GeocoderWidget extends Widget<GeocoderWidgetProps> { ? ...
4
2
1
[{"id": "G0", "claim": "The DropdownMenu spacing styles (margin: 2, padding '4px 2px', box-sizing) removed in the inline-to-CSS migration were not carried over to the new .deck-widget-dropdown-container rule, and the parent flexbox container defines no gap, so the dropdown button renders flush against the input field."...
null
visgl__loaders.gl__2744
visgl/loaders.gl
2,744
defect
a46d7c5c33c2b284a53a37c28a6fca61f2c6071e
3f87f5c4b334562cfab08aadaf9cee7f5c933d49
feat(arrow): GeoArrow utilities
This is a repackaging for #2738 so that those utilities fit into the right places/sub-modules in loaders.gl
diff --git a/modules/arrow/package.json b/modules/arrow/package.json index 88994138d3..28c7ed826d 100644 --- a/modules/arrow/package.json +++ b/modules/arrow/package.json @@ -47,6 +47,7 @@ }, "dependencies": { "@loaders.gl/loader-utils": "4.0.0-beta.8", + "@loaders.gl/gis": "4.0.0-beta.8", "@loaders....
1
1
1
[{"id": "G0", "claim": "The parseGeometryFromArrow test case crashes and has not been debugged yet, so it is skipped; update serializeArrowType() and deserializeArrowType() to fix the issues.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
visgl__loaders.gl__2785
visgl/loaders.gl
2,785
defect
29065e4bb72a7a31b7c03c3eba24b581c377c2e9
f0c08447a97e49eb3730ccca18cd0f69edb53fd1
feat(GeoArrow): getBinaryGeometriesFromArrow enhancement
* get triangle indices for polygons * add option `chunkIndex` to specify which chunk to get binary geometries from (for progressive rendering) * add option `meanCenters` to get mean centers for binary geometries (for polygon filtering) ToDo: - [x] add test cases after pr [#2782](https://github.com/visgl/loaders....
diff --git a/modules/arrow/package.json b/modules/arrow/package.json index bbadc01aaf..a371b17b27 100644 --- a/modules/arrow/package.json +++ b/modules/arrow/package.json @@ -49,6 +49,7 @@ "@loaders.gl/gis": "4.0.3", "@loaders.gl/loader-utils": "4.0.3", "@loaders.gl/schema": "4.0.3", + "@math.gl/polyg...
8
7
0
[{"id": "G0", "claim": "Add /** */-style doc comments above the fields of the geoarrow binary-geometry types (e.g. triangles and meanCenters in BinaryGeometryContent and BinaryDataFromGeoArrow), such as \"indices into the flatCoordinateArray\".", "category": "documentation", "verdict": "supported", "priority": "P2", "s...
null
visgl__loaders.gl__2803
visgl/loaders.gl
2,803
defect
81bf66ec904a87cbee2cb39f2d1c03f9161c1145
e62d64f01a968e8f87fd71215575815fa1b5d358
fix(GeoArrow): handle tessellation error & improve mean centers
In practice, there are many geoarrow files converted from GeoJson files using `ogr2ogr` containing invalid geometries. For example, polygon ring not closed; self-intersect polygon; multipolygon within `geoarrow.polygon` type arrow file etc. This will cause `earcut()` function to hang or return an empty triangle index. ...
diff --git a/modules/arrow/src/geoarrow/convert-geoarrow-to-binary-geometry.ts b/modules/arrow/src/geoarrow/convert-geoarrow-to-binary-geometry.ts index 9692965614..4e05e31adf 100644 --- a/modules/arrow/src/geoarrow/convert-geoarrow-to-binary-geometry.ts +++ b/modules/arrow/src/geoarrow/convert-geoarrow-to-binary-geome...
6
5
0
[{"id": "G0", "claim": "geometryType is typed as `string` - can we firm up the typing?", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Can this code be split into smaller helper functions - e.g. one that prepares the input to earcut?", "category": "main...
null
visgl__loaders.gl__2905
visgl/loaders.gl
2,905
defect
eef42ae527457bf690271af17c432c4d92cc079a
2b521bcd4dc2f235f3424322e9924e065ea810f7
Avoid reassigning loaders._state
In the scripting environment, library exports (`loaders.*`) cannot be reassigned. `loaders._state = loaders._state` throws the following error: ``` TypeError: Cannot set property _state of #<Object> which has only a getter ```
diff --git a/modules/core/src/lib/loader-utils/option-utils.ts b/modules/core/src/lib/loader-utils/option-utils.ts index 59a16c6cfb..ad19f1177c 100644 --- a/modules/core/src/lib/loader-utils/option-utils.ts +++ b/modules/core/src/lib/loader-utils/option-utils.ts @@ -26,8 +26,7 @@ export function getGlobalLoaderState():...
1
1
0
[{"id": "G0", "claim": "The added line should use an if statement rather than a statement used as an expression (`return loaders._state || (loaders._state = {});`).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
visgl__loaders.gl__2921
visgl/loaders.gl
2,921
defect
8bafe81bc462141aab10509ac768ad7617f2f51a
417592b2d80ab48fd560b54801ab74b041b80dca
Throws more useful error when fetch fails
Same response, before: ``` message: Failed to fetch resource https://some.url/not/even/very/long... at <trace_stack> ``` After: ``` message: Failed to fetch resource (500): https://some.url/not/even/very/long... at <trace_stack> cause: { url: 'https://some.url/not/even/very/long', response: '{...
diff --git a/modules/core/src/lib/utils/response-utils.ts b/modules/core/src/lib/utils/response-utils.ts index 24915d7824..dd325b3377 100644 --- a/modules/core/src/lib/utils/response-utils.ts +++ b/modules/core/src/lib/utils/response-utils.ts @@ -58,8 +58,8 @@ export async function makeResponse(resource: unknown): Prom...
5
3
1
[{"id": "G0", "claim": "Including the response body verbatim in the error's cause is problematic: JSON can be very messy and if the body is e.g. XML it can get crazy.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error message should not start with ...
null
vishvananda__netlink__1012
vishvananda/netlink
1,012
defect
92645823f36c7ed03faf4baa566078d9d5e06fda
592a422bdbdc97e2422913bfd84a691e5e25d359
Fix SetSendTimeout/SetReceiveTimeout
Before https://github.com/vishvananda/netlink/pull/793, netlink sockets were blocking. Send/receive timeouts were implemented using `SO_SNDTIMEO`/`SO_RCVTIMEO` on the socket descriptor. But, that doesn't work now the socket is non-blocking. Instead, set deadlines on the file read/write.
diff --git a/nl/nl_linux.go b/nl/nl_linux.go index 6cecc4517..f05c1c09e 100644 --- a/nl/nl_linux.go +++ b/nl/nl_linux.go @@ -4,6 +4,7 @@ package nl import ( "bytes" "encoding/binary" + "errors" "fmt" "net" "os" @@ -11,6 +12,7 @@ import ( "sync" "sync/atomic" "syscall" + "time" "unsafe" "github.co...
2
2
0
[{"id": "G0", "claim": "SetSendTimeout should store the timeout using the existing unix.Timeval conversion (timeout.Nano()) instead of manually converting Sec/Usec to a duration.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "TestReceiveTimeout ...
null
vishvananda__netlink__110
vishvananda/netlink
110
defect
3236dc177e325a54a449bbe0186159a2f8588fb1
1526c75cca2f748d7b216a8928dab476559edeaf
Add Mark field to xrfm state and policy
Tested on Ubuntu Linux 3.13, 3.19, 4.4 Signed-off-by: Alessandro Boch aboch@docker.com
diff --git a/nl/xfrm_linux.go b/nl/xfrm_linux.go index d24637d27..ebf47946d 100644 --- a/nl/xfrm_linux.go +++ b/nl/xfrm_linux.go @@ -78,6 +78,7 @@ const ( SizeofXfrmLifetimeCfg = 0x40 SizeofXfrmLifetimeCur = 0x20 SizeofXfrmId = 0x18 + SizeofXfrmMark = 0x08 ) // typedef union { @@ -256,3 +257,2...
1
1
0
[{"id": "G0", "claim": "The new Mark test should follow the format of all the other DeserializeSerialize tests instead of being a unique hand-written test for mark.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vishvananda__netlink__1115
vishvananda/netlink
1,115
defect
7af87bcf827e3c033e5a2f8ecb6058c677e80fca
e2b60038725c15c00417fa897852ea1e96bad997
feat: add additional devlink port attributes
Add the following devlink port attributes: PortNumber: the physical port number PfNumber: the PF number VfNumber: the VF number (index) SfNumber: the SF number (index) ControllerNumber: the controller number External: if set, indicates external controller iproute2 ref: https://github.com/iproute2/iproute2/...
diff --git a/devlink_linux.go b/devlink_linux.go index 45d8ee4b6..5c795c0ba 100644 --- a/devlink_linux.go +++ b/devlink_linux.go @@ -46,15 +46,21 @@ type DevlinkPortFnSetAttrs struct { // DevlinkPort represents port and its attributes type DevlinkPort struct { - BusName string - DeviceName string - PortI...
4
1
0
[{"id": "G1", "claim": "The DEVLINK_ATTR_PORT_EXTERNAL parse case indexes a.Value[0] without a length guard, which could panic on a malformed empty attribute payload; a defensive len check was requested.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G3", "claim":...
null
vishvananda__netlink__1134
vishvananda/netlink
1,134
defect
19840dbaef76768f800ba44695dcea63df178321
a0ec4a9298009df87595a4833818832282876683
add ConntrackDelete command
Add a new ConntrackDelete() function that operates directly on flows, same as the ConntrackCreate() and ConntrackUpdate() functions. We already have ConntrackDeleteFilters() that is very useful to batch operations and to express the intent based on filter matches, but having the function that operate on flows allow ...
diff --git a/conntrack_linux.go b/conntrack_linux.go index 771fa7039..990e1fa45 100644 --- a/conntrack_linux.go +++ b/conntrack_linux.go @@ -71,6 +71,12 @@ func ConntrackUpdate(table ConntrackTableType, family InetFamily, flow *Conntrac return pkgHandle.ConntrackUpdate(table, family, flow) } +// ConntrackDelete de...
4
2
1
[{"id": "G0", "claim": "The TestConntrackDeleteV4/V6 comments claim deletion goes through the package-level wrapper via pkgHandle while the code calls h.ConntrackDelete directly, so fix the comments and drop the unnecessary pkgHandle swap in both delete tests.", "category": "maintainability", "verdict": "supported", "p...
null
vishvananda__netlink__1135
vishvananda/netlink
1,135
defect
19840dbaef76768f800ba44695dcea63df178321
a82971e9ff4460ab7ee4e5ec7330b8d17cde231f
conntrack: encode conntrack labels if set
conntrack: update conntrack labels The logic for updating conntrack labels was missing. The conntrack labels is an slice of bytes, if is not nil we send its current value. The all zeros slice has a special meaning , that wipes out the existing labels. There is also some unexpected behavior, the conntrack ...
diff --git a/conntrack_linux.go b/conntrack_linux.go index 771fa7039..1a68a4eb9 100644 --- a/conntrack_linux.go +++ b/conntrack_linux.go @@ -366,6 +366,8 @@ func (s *ConntrackFlow) toNlData() ([]*nl.RtAttr, error) { // <BEuint64> // <len, CTA_TIMEOUT> // <BEuint64> + // <len, CTA_LABELS> + // <binary data> // <...
5
3
2
[{"id": "G0", "claim": "toNlData should treat nil Labels as do-not-send, a 16-byte all-zero slice as clear, and return an error when len(Labels) != 16, because the parser reads 16 bytes and any other size risks kernel EINVAL/garbage.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intro...
null
vishvananda__netlink__1136
vishvananda/netlink
1,136
defect
03b8f90390d9f38957d54cc01520cf16d89bb385
aa64282599138d3e9b713c7b0cc37730b6004293
parsing of tc pedit action
This PR adds Pedit action attributes parsing leveraging `HeaderType` set in `TCA_PEDIT_KEYS_EX` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Expanded packet-editing support across Ethernet, IPv4, IPv6 and TCP/UDP headers, including automa...
diff --git a/filter_linux.go b/filter_linux.go index fb9bab69e..1bd86e9de 100644 --- a/filter_linux.go +++ b/filter_linux.go @@ -840,6 +840,87 @@ func parsePolice(data syscall.NetlinkRouteAttr, police *PoliceAction) { } } +func parsePedit(data syscall.NetlinkRouteAttr, action *PeditAction) { + var pedit *nl.TcPedi...
18
14
11
[{"id": "G0", "claim": "The Ethernet MAC test cases use offsets 6 and 10 for the source MAC, which do not match the offsets 4 and 8 used by SetEthSrc, so the tests encode the wrong key layout and fail.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Pars...
null
vishvananda__netlink__1139
vishvananda/netlink
1,139
defect
03b8f90390d9f38957d54cc01520cf16d89bb385
a19871f4e001700f7494366b257ad3eb8a561a25
Add a basic support for nexthop
Add a basic support of Linux's `ip nexthop` equivalent. In this PR, I specifically focused on implementing a minimal feature to accomplish IPv4 prefix with IPv6 (link-local) nexthop which is used by various implementation like FRR to support technique called BGP Unnumbered. The summary of the new features are: 1. I...
diff --git a/nexthop.go b/nexthop.go new file mode 100644 index 000000000..8b3b3c90b --- /dev/null +++ b/nexthop.go @@ -0,0 +1,25 @@ +package netlink + +import ( + "fmt" + "net" + "strconv" + "strings" +) + +type Nexthop struct { + ID uint32 + Blackhole bool + OIF uint32 + Gateway net.IP +} + +func (h *N...
12
6
2
[{"id": "G0", "claim": "deriveFamilyFromNexthop defaults blackhole nexthops (nil gateway) to FAMILY_V4; per kernel semantics it should check the Blackhole field and return FAMILY_ALL for them.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Nhmsg's Len...
null
vishvananda__netlink__1159
vishvananda/netlink
1,159
defect
e79c63fbd0c217946b34fe3e9fa84189a5d849b9
bd620e67d7dd2dd48ca85acd6e699ddf13e75011
Add support for VXLAN VNI filtering
Implement bridge VNI filtering operations (add/delete/list) for VXLAN devices with VniFilter enabled. This allows managing VNI filters via RTM_NEWTUNNEL/RTM_DELTUNNEL/RTM_GETTUNNEL netlink messages. Equivalent to iproute2 bridge commands: - bridge vni add dev DEV vni VNI[-VNIEND] - bridge vni del dev DEV vni VNI[-...
diff --git a/bridge_linux.go b/bridge_linux.go index ec941e5c7..7752195cc 100644 --- a/bridge_linux.go +++ b/bridge_linux.go @@ -99,12 +99,18 @@ func parseTunnelInfo(nestAttr *syscall.NetlinkRouteAttr, results []nl.TunnelInfo return results, nil } +// BridgeVlanListEntry represents VLAN information for a single de...
3
1
1
[{"id": "G0", "claim": "Changing the exported BridgeVlanList signature is a breaking API change - existing users' programs break upon a module update - so the new method should be added alongside the old one.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":...
null
vishvananda__netlink__142
vishvananda/netlink
142
defect
293adec04146bfb07bf34f75921ebc9c1ee2cd74
382bda96f9e4c2a4ad2ecd2abbbd7cb6ec221375
Allow to subscribe to events on a specfic netns
Fixes #141 Tests would be added, but want to get feedback first Signed-off-by: Alessandro Boch aboch@docker.com
diff --git a/addr_linux.go b/addr_linux.go index b5eec6505..590f3f3ff 100644 --- a/addr_linux.go +++ b/addr_linux.go @@ -8,6 +8,7 @@ import ( "syscall" "github.com/vishvananda/netlink/nl" + "github.com/vishvananda/netns" ) // IFA_FLAGS is a u32 attribute. @@ -196,6 +197,20 @@ func AddrSubscribe(ch chan<- Addr...
5
5
2
[{"id": "G0", "claim": "The new function name ExecteInNetns is misspelled and should be spelled ExecuteInNetns.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The TODO comment above ExecteInNetns says \"his function\" and should say \"this funct...
null
vishvananda__netlink__170
vishvananda/netlink
170
defect
da7420cab5e209195f5f7387fccd4c7f48758d30
73632e0bbc2339988684a90c81b0646f52f79589
Add timeout for send and receive
Because of kernel bugs, we have seen cases where the call to netlink socket send or receive will wait indefinitely causing docker engine to hang. This PR allows client to set a timeout for socket send and receive for a netlink handle via `Handle.SetTimeout()`, in order to gracefully workaround the above situation. ...
diff --git a/handle_linux.go b/handle_linux.go index 537798875..89224355e 100644 --- a/handle_linux.go +++ b/handle_linux.go @@ -1,7 +1,9 @@ package netlink import ( + "sync" "syscall" + "time" "github.com/vishvananda/netlink/nl" "github.com/vishvananda/netns" @@ -17,6 +19,8 @@ var pkgHandle = &Handle{} ty...
3
2
1
[{"id": "G0", "claim": "The time.After calls added for the send and receive timeouts will leak a lot of timers; NewTimer with Stop should be used instead.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The timeout is implemented Go-side by waiting o...
null
vishvananda__netlink__283
vishvananda/netlink
283
defect
177f1ceba557262b3f1c3aba4df93a29199fb4eb
648aac863834ac3c23f299d48cfbd30e4ecf0048
Allow index specification at link creation time
Allow the caller to specify the desired link index at link creation. This is equivalent to ip link add link eth0 name testmacvtap index 1000 type macvtap ip link add dummy1 index 1001 type dummy Signed-off-by: Manohar Castelino <manohar.r.castelino@intel.com>
diff --git a/link_linux.go b/link_linux.go index fd8e4cda0..f2ea1f41d 100644 --- a/link_linux.go +++ b/link_linux.go @@ -851,6 +851,14 @@ func (h *Handle) linkModify(link Link, flags int) error { msg.Change |= syscall.IFF_MULTICAST msg.Flags |= syscall.IFF_MULTICAST } + if base.Index != 0 { + if flags&syscall....
1
1
1
[{"id": "G0", "claim": "The PR should not check for NLM_F_CREATE and error when a non-zero index is set, because that check will break BridgeSetMcastSnoop if you retrieve the link (which sets the index value) and then use the retrieved link to set snoop.", "category": "correctness", "verdict": "supported", "priority": ...
null
vishvananda__netlink__285
vishvananda/netlink
285
defect
177f1ceba557262b3f1c3aba4df93a29199fb4eb
77263975cc0749c970de73c0d4f525ac12533dc7
added support for Foo-over-UDP netlink calls
The Foo-over-UDP patches from Tom Herbert added some netlink calls to the kernel. Here is the support for these calls, similar to `ip fou add` and `ip fou del` as well as a list function based on `FOU_CMD_GET`, to my knowledge currently not (yet) implemented in `iproute2`.
diff --git a/fou.go b/fou.go new file mode 100644 index 000000000..8dbf02f1b --- /dev/null +++ b/fou.go @@ -0,0 +1,64 @@ +package netlink + +import ( + "encoding/binary" + "errors" +) + +var ( + // ErrAttrHeaderTruncated is returned when a netlink attribute's header is + // truncated. + ErrAttrHeaderTruncated = errors....
6
5
1
[{"id": "G0", "claim": "FouFamilyId should be restructured to read top-down: return the cached id first, then look the family up only when it is not cached.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The generic netlink family ids might bett...
null
vishvananda__netlink__293
vishvananda/netlink
293
defect
63ca7e48f59f463578ae6b6e839bef6906f048e2
669f080eb8c377d6031e8b6010f2b6b240d3d7c5
tuntap: Add multiqueue support
Add multi queue support to tuntap without breaking legacy users of tuntap. Signed-off-by: Manohar Castelino <manohar.r.castelino@intel.com>
diff --git a/link.go b/link.go index 8c9ec5161..ddc68bb5b 100644 --- a/link.go +++ b/link.go @@ -3,6 +3,7 @@ package netlink import ( "fmt" "net" + "os" ) // Link represents a link device from netlink. Shared link attributes @@ -284,8 +285,10 @@ type TuntapFlag uint16 // Tuntap links created via /dev/tun/tap,...
3
2
2
[{"id": "G0", "claim": "If LinkSetMasterByIndex succeeds, the function returns without storing the opened fds in tuntap.Fds.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The error returned by LinkSetMasterByIndex is no longer reported to the calle...
null
vishvananda__netlink__336
vishvananda/netlink
336
defect
5236321576c0c97ab02c078e60f9b1c5c1828807
40449b10a74a62486df66fda7cd183b9c5c69a73
Read conntrack connection statistics
This PR allows populating per-connection packet and byte counts to ConntrackFlow object when nf_conntrack_acct is enabled.
diff --git a/conntrack_linux.go b/conntrack_linux.go index a0fc74a37..cb51a9898 100644 --- a/conntrack_linux.go +++ b/conntrack_linux.go @@ -135,11 +135,13 @@ func (h *Handle) dumpConntrackTable(table ConntrackTableType, family InetFamily) // http://git.netfilter.org/libnetfilter_conntrack/tree/include/internal/object...
2
2
0
[{"id": "G0", "claim": "Update the example conntrack-output comment in ConntrackFlow.String so it shows the new packets and bytes fields the PR added to the format.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Replace `for _ = range []int{1, 2}`...
null
vishvananda__netlink__341
vishvananda/netlink
341
defect
85aa3b74a43a9fa174a588ce9a042c9b71b0842c
7f6f75d4ce40a839695e48da4441311084e5d9fb
Enhance u32 filters
This series of patches introduces `Divisor` and `Hash` attributes to `U32` struct. * With `Divisor` specified, a u32 hash table can be created * A filter can be created and associated with the filter that has the hash table ID specified with `Hash` attribute Although these changes enable users to construct the m...
diff --git a/filter.go b/filter.go index c2cf8e4dc..78a1048f1 100644 --- a/filter.go +++ b/filter.go @@ -212,6 +212,7 @@ type TcU32Key struct { type U32 struct { FilterAttrs ClassId uint32 + Divisor uint32 // Divisor MUT be a power of 2. RedirIndex int Sel *TcU32Sel Actions []Action diff --gi...
4
4
0
[{"id": "G0", "claim": "The comment on the newly added Divisor field should be corrected to read '// Must be power of 2' instead of the typo'd 'Divisor MUT be a power of 2.'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The redundant comment '//...
null
vishvananda__netlink__35
vishvananda/netlink
35
defect
991a7a2fa7c073968fb27f36669df199b1fdf412
7c35f7662cfd0681ae96482f78fa881e193ca7d1
Add LinkAttrs constructor NewLinkAttrs
It looks little awkward, but should be enough for people who care about defaults from kernel. Fix #26
diff --git a/link.go b/link.go index 0cb6fc375..90cac362d 100644 --- a/link.go +++ b/link.go @@ -19,7 +19,7 @@ type ( type LinkAttrs struct { Index int MTU int - TxQLen uint32 // Transmit Queue Length + TxQLen int // Transmit Queue Length Name string HardwareAddr net.Hardwar...
3
1
1
[{"id": "G0", "claim": "Drop the NewLinkAttrs constructor and instead make 'not set' be TxQLen == 0, since the code below already checks > 0 before setting the attribute.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The attribute should only be set whe...
null
vishvananda__netlink__370
vishvananda/netlink
370
defect
d77c86a2e27e1f8a2b1e7bdfa97ba2281a430277
8754cb44e4d1efe764a79aee0b0b5af02977733e
Add network namespace ID management.
Adds the ability to set and retrieve network namespace IDs. This is useful, for example, for determining the "other side" of a veth pair.
diff --git a/netns_linux.go b/netns_linux.go new file mode 100644 index 000000000..5e8a1e8d2 --- /dev/null +++ b/netns_linux.go @@ -0,0 +1,128 @@ +package netlink + +import ( + "fmt" + + "github.com/vishvananda/netlink/nl" + "golang.org/x/sys/unix" +) + +const ( + _ = iota + NETNSA_NSID + NETNSA_PID + NETNSA_FD +) + +/...
2
2
0
[{"id": "G0", "claim": "The non-linux stubs should return a zero value instead of -1 alongside the error, since signalling the error through both the int return and the error value is a redundant double error indication.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
vishvananda__netlink__387
vishvananda/netlink
387
defect
56b1bd27a9a363862ef67916bb450fe240787d07
1825df96e6202bcc68bd89476482564ab7f7e1b6
Add partial support for ipset
Looking forward to read your comments and improve my code.
diff --git a/cmd/ipset-test/main.go b/cmd/ipset-test/main.go new file mode 100644 index 000000000..c9274f42e --- /dev/null +++ b/cmd/ipset-test/main.go @@ -0,0 +1,113 @@ +package main + +import ( + "flag" + "log" + "net" + + "github.com/vishvananda/netlink" +) + +func main() { + timeout := flag.Int("timeout", -1, "time...
3
2
0
[{"id": "G0", "claim": "All exported names in the new ipset code should have docstrings following the godoc convention, as the reviewer requested.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'unknown type' log line should use log.Printf and...
null
vishvananda__netlink__404
vishvananda/netlink
404
defect
023a6dafdcdfa7068ac83b260ab7f03cd4131aca
eb1a47b20f1271cb35c01018bfa95987860e0679
Add devlink commands for devlink device information
This patch adds very basic support for getting information about devlink devices which are typically PCI devices which exposes Networking switch or legacy devices. This information includes bus name, device name and eswitch modes. This is done through devlink family of commands via generic netlink sockets provid...
diff --git a/devlink_linux.go b/devlink_linux.go new file mode 100644 index 000000000..75cea98fe --- /dev/null +++ b/devlink_linux.go @@ -0,0 +1,167 @@ +package netlink + +import ( + "syscall" + + "github.com/vishvananda/netlink/nl" + "golang.org/x/sys/unix" +) + +// DevlinkDevEswitchAttr represents device's eswitch at...
5
3
0
[{"id": "G0", "claim": "parseAttributes indexes a.Value (e.g. uint8(a.Value[0])) without checking its length, which may crash if an attribute value is shorter than expected.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment in nl/devlink_...
null
vishvananda__netlink__444
vishvananda/netlink
444
defect
fafc1e7b600abbb5cdcf1ebc90e4865423733a0c
7e03e8fb16013f6ee0d5b83a795a1afd4a048a8c
tuntap: Return TunTapLink instead of GenericLink
For tuntap interfaces, return a TunTap Interface instead of a Generic link when retrieving the interface. Use netlink extended attributes to populate the Link attributes for the tuntap link. In case of older tun driver which does not provide these attributes, use sysfs to retrieve these attributes. This commit ...
diff --git a/link.go b/link.go index 0a806ca58..d60756342 100644 --- a/link.go +++ b/link.go @@ -311,6 +311,8 @@ type Tuntap struct { NonPersist bool Queues int Fds []*os.File + Owner uint32 + Group uint32 } func (tuntap *Tuntap) Attrs() *LinkAttrs { diff --git a/link_linux.go b/link_linu...
9
7
1
[{"id": "G0", "claim": "The `owner > 0` / `group > 0` sysfs checks lose ownership information: a device owned by root (uid 0, for which sysfs returns -1) and a device with no owner both end up with Owner/Group 0.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "...
null
vishvananda__netlink__454
vishvananda/netlink
454
defect
c8c507c80ea28385caac72b682dd066e44943913
cecaa5932d0214d1e8ea2b13f212c9b5f074266d
Add RDMA subsystem network namespace mode query/set commands
Enrich netlink package for two new recently added RDMA subsystem network namespace mode commands. 1. query the current mode 1. set the new mode
diff --git a/nl/rdma_link_linux.go b/nl/rdma_link_linux.go index 47d736c28..b9ae01bb5 100644 --- a/nl/rdma_link_linux.go +++ b/nl/rdma_link_linux.go @@ -9,8 +9,10 @@ const ( ) const ( - RDMA_NLDEV_CMD_GET = 1 - RDMA_NLDEV_CMD_SET = 2 + RDMA_NLDEV_CMD_GET = 1 + RDMA_NLDEV_CMD_SET = 2 + RDMA_NLDEV_CMD_SYS_GET...
6
6
1
[{"id": "G0", "claim": "The gofmt failure in travis is caused by this pull request: the new nl/rdma files are not gofmt-formatted, which fails the fmt-nl make target and the build.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Remove the unnece...
null
vishvananda__netlink__534
vishvananda/netlink
534
defect
c79a4b7b40668c3f7867bf256b80b6b2dc65e58e
cd0b0c02887fe821c65208796e52dbca6981be80
Add SocketDiagTCPInfo with some constants and structs to get tcp_info…
… via sock_diag. Probably, needs some restructurisation.
diff --git a/inet_diag.go b/inet_diag.go new file mode 100644 index 000000000..72c1fcb59 --- /dev/null +++ b/inet_diag.go @@ -0,0 +1,30 @@ +package netlink + +// INET_DIAG constatns +const ( + INET_DIAG_NONE = iota + INET_DIAG_MEMINFO + INET_DIAG_INFO + INET_DIAG_VEGASINFO + INET_DIAG_CONG + INET_DIAG_TOS + INET_DIAG_T...
4
2
2
[{"id": "G0", "claim": "The hardcoded TCPInfo struct and sizeofTCPInfo = 0x68 do not match all kernels - the struct is actually 232 (0xe8) bytes and fields are inserted at different positions between kernel versions - so the PR should handle kernel version/size differences when parsing tcp_info (e.g. set 0xe8, detect t...
null
vishvananda__netlink__544
vishvananda/netlink
544
defect
dc0e1b988c576e51c08712dc2a431ab3a2f2aaf1
214c19c0cf881d37cf772dea0d6c485bbbecdc26
conntrack filter by protocol and port
Add a new method to the ConntrackFilter to be able to filter conntrack entries by Layer 4 protocol and ports
diff --git a/conntrack_linux.go b/conntrack_linux.go index 4bff0dcba..4ec90c47e 100644 --- a/conntrack_linux.go +++ b/conntrack_linux.go @@ -318,18 +318,25 @@ func parseRawData(data []byte) *ConntrackFlow { // --mask-src ip Source mask address // --mask-dst ip Destination mask addr...
3
3
0
[{"id": "G0", "claim": "Remove the stray blank line the PR added right after the `if len(f.ipFilter) > 0 {` opening the IP conntrack filter block.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Remove the stray blank line the PR added right afte...
null
vishvananda__netlink__582
vishvananda/netlink
582
defect
1e3d26b1b393006411752fc0196d65df9fc6fa15
d697367ffd6e04b8e886dc2b91964f9761d4e0a7
Fixed endianity problem with Geneve tunnel VNI
It seems that VNI (ID in the code) is passed in host order. The change include tests to verify that we use the correct endianity: It create a tunnel using `ip link` and read the ID of that tunnel proving that reading has the correct endianity. The test that set and read proves that the write endianity is the same as...
diff --git a/link.go b/link.go index c9d960db7..638555159 100644 --- a/link.go +++ b/link.go @@ -834,6 +834,30 @@ func (b *BondSlave) SlaveType() string { return "bond" } +// Geneve devices must specify RemoteIP and ID (VNI) on create +// https://github.com/torvalds/linux/blob/47ec5303d73ea344e84f46660fff693c57641...
3
2
1
[{"id": "G0", "claim": "Unit tests fail because the tests run on ubuntu 16.04, whose iproute2 doesn't support dstport for Geneve; the author proposed four options and the maintainer asked him to first try a newer ubuntu in the travis config to see if any other tests start failing.", "category": "testing", "verdict": "s...
null
vishvananda__netlink__617
vishvananda/netlink
617
defect
3bf47faadc7f87746ce454fb8f7ff2bb68d9f917
a73f3d30a444274a7759c57c65fd6476d396bf57
Make IPSet actually support IPs, and fix protocol errors for newer kernels
Fixes https://github.com/vishvananda/netlink/issues/609 Added support for IPSets based on IP rather than just MAC address. With the release of IPSet v7, the protocol response for `PROTOCOL_MIN` is now potentially more relevant, so the `IpsetProtocol()` function has been updated to return this too. I'd like to ...
diff --git a/cmd/ipset-test/main.go b/cmd/ipset-test/main.go index 55b39cccc..84c2a2786 100644 --- a/cmd/ipset-test/main.go +++ b/cmd/ipset-test/main.go @@ -26,8 +26,8 @@ var ( "destroy": {cmdDestroy, "creates a new ipset", 1}, "list": {cmdList, "list specific ipset", 1}, "listall": {cmdListAll, "list al...
1
1
1
[{"id": "G0", "claim": "In ipsetAddDel the ETHER attribute is built from entry.IP instead of entry.MAC, so MAC entries are sent to the kernel with the wrong payload.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
vishvananda__netlink__657
vishvananda/netlink
657
defect
14e832ae1e8fdcc80c34da6c8ce60c0b8e9cfeab
ed9a18ab1eca2a380424bf8e718b37764a33298e
add support for bareudp link type
this PR adds support for bareudp link attributes. 2 links with similar attributes - one created using this code, another one using iproute2: ``` 13: bareudp1: <POINTOPOINT,MULTICAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/none promiscuity 0 minmtu 68 maxmtu 65527 ...
diff --git a/link.go b/link.go index ca47d05aa..87c39dfc5 100644 --- a/link.go +++ b/link.go @@ -1283,11 +1283,27 @@ func (ipoib *IPoIB) Type() string { return "ipoib" } +type Bareudp struct { + LinkAttrs + Port uint16 + EtherType uint16 + SrcPortMin uint16 + MultiProto bool +} + +func (bareudp *Bareudp) At...
1
1
0
[{"id": "G0", "claim": "Capitalize UDP in the new exported type's name, renaming `Bareudp` (and its related identifiers) to `BareUDP` as in the Go standard library's naming.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vishvananda__netlink__784
vishvananda/netlink
784
defect
c591ada0fb2b33b222878936c8aeb490ac140829
39f493927b1ff20ea45157ee29fbaad982d5fa64
Add labelFilter for conntrack
This PR adds support for filtering flows based on conntrack labels. It adds two filters `ConntrackMatchLabels` && `ConntrackUnmatchLabels` through which user can provide a list of labels as type "bytes" which will then be compared to flow.Labels to see if any matches were found. Since netfilter conntrack label...
diff --git a/conntrack_linux.go b/conntrack_linux.go index 03ea1b98f..15d676e33 100644 --- a/conntrack_linux.go +++ b/conntrack_linux.go @@ -149,20 +149,26 @@ type ConntrackFlow struct { TimeStart uint64 TimeStop uint64 TimeOut uint32 + Labels []byte } func (s *ConntrackFlow) String() string { // ...
2
2
0
[{"id": "G0", "claim": "The AddLabel comment is misleading since it adds zero or more label values, so the method should be renamed AddLabels.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The zero-labels flow case should either match when the ...
null
vishvananda__netlink__812
vishvananda/netlink
812
defect
8715fe718dfdf487a919acb6df7da109346bbfd6
1704f1e4c2dea686918af8c57eef8436fa3cc5dc
add actions support for fwfilter
Signed-off-by: chengzhycn <chengzhycn@gmail.com> netlink library seems that don't support add actions for fwfilter now.
diff --git a/filter.go b/filter.go index 2d798b0fb..f960aba20 100644 --- a/filter.go +++ b/filter.go @@ -348,6 +348,7 @@ type FwFilter struct { InDev string Mask uint32 Police *PoliceAction + Actions []Action } func (filter *FwFilter) Attrs() *FilterAttrs { diff --git a/filter_linux.go b/filter_linux.go...
1
1
0
[{"id": "G0", "claim": "The new test should also assert that the parsed MirredAction round-trips as TCA_EGRESS_REDIR.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vishvananda__netlink__91
vishvananda/netlink
91
defect
8e810149a2e531fed9b837c0c7d8a8922d2bedf7
206789bbf3655232a26b32a9529a9cc64a1b0cc4
RFC: force AddList to get rid of unexpected information
# `AddList` returned all addresses when the protocol family is not supported. For example, With a kernel with IPV6 disabled. if I call `netlink.AddrList(link, netlink.FAMILY_V6)`., it will return all ips of this interface. This behavior may confuse user. After this patch it will return [] instead. When I ran docker ...
diff --git a/addr_linux.go b/addr_linux.go index 19aac0fb9..778d96de3 100644 --- a/addr_linux.go +++ b/addr_linux.go @@ -90,6 +90,10 @@ func AddrList(link Link, family int) ([]Addr, error) { continue } + if msg.Family != uint8(family) { + continue + } + attrs, err := nl.ParseRouteAttr(m[msg.Len():]) ...
1
1
1
[{"id": "G0", "claim": "The unconditionally added family filter will cause calling AddrList with FAMILY_ALL to fail (return no addresses); the reviewer asks to guard it as 'if family != FAMILY_ALL && msg.Family != uint8(family)'.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduce...
null
vishvananda__netlink__927
vishvananda/netlink
927
defect
0ced8385386ae7d3a2bdd4340d22da6a137f446c
804e1418765d2a606a392e071e65ee10f61d9d61
Add socket diagnosis for UDP
This PR adds netlink socket diagnosis support for UDP and implements parsing of the `INET_DIAG_MEMINFO` extension data.
diff --git a/inet_diag.go b/inet_diag.go index bee391a80..a483ee1a1 100644 --- a/inet_diag.go +++ b/inet_diag.go @@ -29,3 +29,8 @@ type InetDiagTCPInfoResp struct { TCPInfo *TCPInfo TCPBBRInfo *TCPBBRInfo } + +type InetDiagUDPInfoResp struct { + InetDiagMsg *Socket + Memory *MemInfo +} diff --git a/socke...
2
2
1
[{"id": "G0", "claim": "The commented-out `// default:` branches in the new attrsToInetDiagTCPInfoResp and attrsToInetDiagUDPInfoResp switches should either be uncommented to handle unknown attribute types or removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i...
null
vishvananda__netlink__950
vishvananda/netlink
950
defect
857968af1192b419c958984e96fa5154ada6baff
adb2c05811c4e4faa5b5d0cd9a3643224bbfbc28
Add functions to work with devlink device parameters
Add functions to work with devlink device parameters Functions added: ``` // DevlinkGetDeviceParams returns parameters for devlink device // Equivalent to: `devlink dev param show <bus>/<device>` DevlinkGetDeviceParams(bus string, device string) // DevlinkGetDeviceParamByName returns specific parameter for ...
diff --git a/devlink_linux.go b/devlink_linux.go index 10687a5e9..a4d38e1c5 100644 --- a/devlink_linux.go +++ b/devlink_linux.go @@ -247,6 +247,113 @@ func (dlrs *DevlinkResources) parseAttributes(attrs map[uint16]syscall.NetlinkRo return nil } +// DevlinkParams represents parameter of the device +type DevlinkPara...
6
5
2
[{"id": "G0", "claim": "DevlinkParam duplicates bus and device name already carried by DevlinkDevice and the public methods force callers to pass them, so the device info should be dropped from the param struct and only DEVLINK_ATTR_PARAM parsed.", "category": "design", "verdict": "supported", "priority": "P1", "scope"...
null
vishvananda__netlink__962
vishvananda/netlink
962
defect
aafe84169200c6bb9fe31823a80d748095ad7b83
37131bedd413300518be6accb2d5557e0895c853
rule: fix parsing zero priority rule
Fixes #709 (see issue for repro) This happens as the rule with priority=0 don't contain `nl.FRA_PRIORITY` attribute, which leaves the priority in the struct as -1 which was set by `NewRule`. Wrote a test which fails before the fix: ``` --- FAIL: TestRuleListFiltered (0.01s) --- FAIL: TestRuleListFiltered/...
diff --git a/rule_linux.go b/rule_linux.go index 5f4f98d9b..32b4fc610 100644 --- a/rule_linux.go +++ b/rule_linux.go @@ -279,6 +279,11 @@ func (h *Handle) RuleListFiltered(family int, filter *Rule, filterMask uint64) ( } } + // Fallback to priority zero when priority is not set by attribute. + if rule.Priori...
2
2
1
[{"id": "G0", "claim": "Move the priority-zero fallback out of the parsing loop and instead set rule.Priority = 0 right after the default rule struct is created at line 223.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test for the situation wher...
null
vishvananda__netlink__963
vishvananda/netlink
963
defect
6765a4402e6d9fd1ca5d0785cbe32c5ec40d6a6f
bd5018747d38fb796373ed72aabf7aabf55f02fc
Add support for TCA_HTB_DIRECT_QLEN in HTB qdisc
- Extend Htb struct in qdisc.go to include DirectQlen field - Implement the DirectQlen option in qdisc_linux.go - Modify TestHtbAddDel test to validate DirectQlen changes
diff --git a/qdisc.go b/qdisc.go index 6f5d6df43..35ed04f4c 100644 --- a/qdisc.go +++ b/qdisc.go @@ -123,6 +123,7 @@ type Htb struct { Defcls uint32 Debug uint32 DirectPkts uint32 + DirectQlen uint32 } func NewHtb(attrs QdiscAttrs) *Htb { @@ -133,6 +134,7 @@ func NewHtb(attrs QdiscAttrs) *Htb...
1
1
1
[{"id": "G0", "claim": "0 is a valid value for DirectQlen (as is 0xFFFFFFFF itself), so initializing the new field with the magic 0xFFFFFFFF sentinel that means 'don't send' makes valid direct_qlen values unrepresentable; the field should allow any value.", "category": "design", "verdict": "supported", "priority": "P1"...
null
vishvananda__netlink__964
vishvananda/netlink
964
defect
6765a4402e6d9fd1ca5d0785cbe32c5ec40d6a6f
d55e585e0f2f6a0a5ea07dfabf53bdb7bfb04db8
Fix RouteListFiltered when using FAMILY_ALL
Hello, In my previous pull request (vishvananda#961) I forgot one condition that is needed to conform to `iproute2` behavior when listing routes for any IP family: https://github.com/iproute2/iproute2/blob/f740f5a165eb398322af1d2c56e0fcb90ac19c73/ip/iproute.c#L167-L168 This pull request fix this and now the be...
diff --git a/route_linux.go b/route_linux.go index 6cd329f85..5bebfd4e2 100644 --- a/route_linux.go +++ b/route_linux.go @@ -1148,7 +1148,7 @@ func (h *Handle) RouteListFiltered(family int, filter *Route, filterMask uint64) var res []Route for _, m := range msgs { msg := nl.DeserializeRtMsg(m) - if msg.Family !...
1
1
1
[{"id": "G0", "claim": "Add dedicated test cases (e.g. a TestRouteList) to ensure RouteListFiltered returns what is expected when filtering for a specific family, since it is otherwise only tested indirectly through TestRouteAddDel.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced...
null
vishvananda__netlink__983
vishvananda/netlink
983
defect
4d4ba1473f21ca0ccdecc301adbe4315db42718b
f1b3c3a7b5643eda1bbd3828a593f2441963028c
rule: fix 32-bit platforms don't support adding rules with a mark 0xF0000000
rule: fix 32-bit platforms don't support adding rules with a mark value of 0x80000000/0xF0000000 ~ 0xF0000000/0xF0000000 https://github.com/vishvananda/netlink/blob/4d4ba1473f21ca0ccdecc301adbe4315db42718b/rule.go#L14 The maximum value for an `int` type on a 32-bit platform is 0x7FFFFFFF. Since 0xF0000000 exceeds t...
diff --git a/route_linux.go b/route_linux.go index 929738e11..5ee314035 100644 --- a/route_linux.go +++ b/route_linux.go @@ -1448,7 +1448,7 @@ type RouteGetOptions struct { VrfName string SrcAddr net.IP UID *uint32 - Mark int + Mark uint FIBMatch bool } diff --git a/route_test.go b/route_test....
2
2
2
[{"id": "G0", "claim": "RouteGetOptions.Mark, an exported field carrying the u32 mark passed to the kernel, should be uint32 instead of uint.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "NewRule()'s new Mark/Mask defaults should be 0xFFFFFFFF so that a...
null
vishvananda__netlink__989
vishvananda/netlink
989
defect
aed23dbf5ecf6328fae4b136b01fb77fe256f4e0
a0579cf75a3faa1024a65c0be10fdeac7c09557b
Add ConntrackDeleteFilters
ConntrackDeleteFilters enables users to delete flow entries that match any of the specified filters. This allows users to delete multiple flow entries with a single dump table call.
diff --git a/conntrack_linux.go b/conntrack_linux.go index 8b005165e..049b1245c 100644 --- a/conntrack_linux.go +++ b/conntrack_linux.go @@ -70,7 +70,13 @@ func ConntrackUpdate(table ConntrackTableType, family InetFamily, flow *Conntrac // ConntrackDeleteFilter deletes entries on the specified table on the base of the...
4
2
1
[{"id": "G0", "claim": "A comment should be added to indicate the flow was already deleted, so there is no need to process more filters and the loop can continue with the next flow.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Maintainers may pr...
null
vispy__vispy__110
vispy/vispy
110
defect
e4bce15b2460c4aff6243354964eebfe38f3a896
51299d852cd48c19df6cb06829427dddb4d02f7b
Add tests for checking that subpackages dont import each-other.
Ensure with a test that vispy.util does not import vispy.app or anything. Keep subpackages independent. Note: there is an explicit import of vispy.app in vispy/gloo/**init**.py to test that Travis picks up the test correctly. Will remove that in a next commit...
diff --git a/.travis.yml b/.travis.yml index e026cca2e4..67cfa9e521 100644 --- a/.travis.yml +++ b/.travis.yml @@ -102,6 +102,7 @@ script: - if [ "${PYTHON}" != "2.6" ]; then make flake; fi; + - python make/importtests.py after_success: # Need to run from source dir to execute appropriat...
9
8
2
[{"id": "G0", "claim": "A comment should explain (or the code should avoid) the magic value 11 passed to command.ljust in make.py's help output.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "loaded_vispy_modules/clear_modules in make/importtest...
null
vispy__vispy__1186
vispy/vispy
1,186
defect
0495d8face28571ad19c64cbc047327b084a7c03
ac273fd38616ea5b046ee6b39725b6c98e31e545
Added support for writing non-triangular meshes in .OBJ files -- GH #1155
Here we go. Not sure the tests are correctly or sensibly written. Also not sure if one can (and should) test if a warning is raised. Waiting for comments!
diff --git a/vispy/io/tests/test_io.py b/vispy/io/tests/test_io.py index 5006234119..9b24ccd465 100644 --- a/vispy/io/tests/test_io.py +++ b/vispy/io/tests/test_io.py @@ -36,6 +36,31 @@ def test_wavefront(): rtol=1e-7, atol=1e-7) +def test_wavefront_non_triangular(): + '''Test wavefront writ...
4
4
2
[{"id": "G0", "claim": "The warning should say the file cannot be read back \"in Vispy\", to make explicit that the read-back limitation is a Vispy thing.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A non-triangular faces array whose total size...
null
vispy__vispy__1590
vispy/vispy
1,590
defect
43f604f810f7acfa3d948d27778a5d352bf091a0
86a22bf2cf4078c73d2713c60554d9da0a1f0fb2
Fix event loop detection triggering on blocked events
Delay checking if stuck in an event loop until after checking if the event emitter is being blocked. This allows callback cycling. Toy example: ```python e = EventEmitter(source=None, type='test') def foo(x): print('foo') with e.blocker(): e() e.connect(foo) e() ``` However, this che...
diff --git a/vispy/util/event.py b/vispy/util/event.py index 82538dc6a0..937039757d 100644 --- a/vispy/util/event.py +++ b/vispy/util/event.py @@ -194,7 +194,7 @@ def __init__(self, source=None, type=None, event_class=Event): self._blocked = {None: 0} # used to detect emitter loops - self._em...
3
2
2
[{"id": "G0", "claim": "A test should be added covering the new behaviour that a blocked event or fully blocked callback set no longer raises the emitter loop error.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The implementation should consider check...
null
vispy__vispy__1660
vispy/vispy
1,660
defect
aa9c01dae0c45afae6d177c1ab014c9e34bc6fc0
6162a3106c1874c9d2221001827d817ccc99add1
Fix reading depth buffers with read_pixels
Closes #1250 This is a simple hack for fixing reading depth buffers. The problem as described in the related issue was that when you asked to read the depth buffer the underlying `read_pixels` function was still asking for an RGB/RGBA array, meaning the color was being read. This PR fixes that by passing a `mode` p...
diff --git a/vispy/gloo/framebuffer.py b/vispy/gloo/framebuffer.py index abf975fd9f..fa000f15b8 100644 --- a/vispy/gloo/framebuffer.py +++ b/vispy/gloo/framebuffer.py @@ -257,5 +257,4 @@ def read(self, mode='color', alpha=True, crop=None): # todo: this is ostensibly required, but not available in glo...
1
1
1
[{"id": "G0", "claim": "In FrameBuffer.read, the requested buffer should be resolved outside the `if crop` branch and checked for availability, raising an error when the buffer (e.g. stencil_buffer set to None) does not exist instead of failing later.", "category": "correctness", "verdict": "supported", "priority": "P1...
null
vispy__vispy__1689
vispy/vispy
1,689
defect
1b8b2d6b87ad9b16a8a8bb036cc212337bc9aabd
545da953494f2896e9c16d552a1591fc7a3c7c2f
Add mesh wireframe filter
Tentative PR for a filter showing the mesh wireframe. Using the fragment shader technique from [[1], [2]]. Works on top of #1463. ~~Some refinements might still be needed to blend correctly the wireframe with the mesh color or with unfilled faces.~~ Addressed in #2025. [1]: http://codeflow.org/entries/2012/aug/02...
diff --git a/examples/basics/scene/mesh_shading.py b/examples/basics/scene/mesh_shading.py new file mode 100644 index 0000000000..5d5058e0e2 --- /dev/null +++ b/examples/basics/scene/mesh_shading.py @@ -0,0 +1,63 @@ +import argparse + +from vispy import app, scene +from vispy.io import read_mesh, load_data_file +from v...
4
3
1
[{"id": "G0", "claim": "The function in the wireframe vertex shader template is named `preprare_wireframe`, a typo for `prepare_wireframe` (djhoese first flags the typo and asks if it is ever used, then restates that the extra 'r' is the point).", "category": "maintainability", "verdict": "supported", "priority": "P2",...
null
vispy__vispy__1748
vispy/vispy
1,748
defect
6f4e52aeecc40c29bf2fde3d217c0a3e6ea6b438
24447c7e817c38c2668612b479bd478b48d5764c
Fix xaxis labels being wrong initially in PlotWidget
This PR Fixes #1742 by adding the xaxis `AxisWidget` to the `PlotWidget.grid` before the `ViewBox` gets added. Explanation (hope this is clear): The order that widgets get added to the `PlotWidget.grid` in `PlotWidget._configure_2d` is currently problematic, because the xaxis `AxisWidget` (but not the yaxis `AxisWi...
diff --git a/vispy/plot/plotwidget.py b/vispy/plot/plotwidget.py index 0e6c506490..f32ae23fd7 100644 --- a/vispy/plot/plotwidget.py +++ b/vispy/plot/plotwidget.py @@ -122,6 +122,14 @@ def _configure_2d(self, fg_color=None): yaxis_widget = self.grid.add_widget(self.yaxis, row=2, col=3) yaxis_widget.wid...
5
5
1
[{"id": "G0", "claim": "Other parts of the plot (xlabel, colorbar) may also need to be added before the view, since other widgets might also listen to the viewbox rect events — i.e. should the view be added after all the children rather than only the xaxis being moved before it?", "category": "design", "verdict": "supp...
null
vispy__vispy__1842
vispy/vispy
1,842
defect
d45a7ddd7ccb5e49ac1e4aea67f09e0a47960151
747b64e0ce31deba4718928bc8d4d68f19c24ef2
Implement volume contrast limits in shader, add gamma
This began as an internal PR at https://github.com/napari/napari/pull/1056, but I'd like to know if it's something you would consider. In typical [napari](https://github.com/napari/napari) usage, it would be pretty normal to repeatedly change the min/max contrast limits while viewing a 3D volume. Unfortunately, each ...
diff --git a/vispy/visuals/tests/test_volume.py b/vispy/visuals/tests/test_volume.py index 1e3e659621..aac55cc850 100644 --- a/vispy/visuals/tests/test_volume.py +++ b/vispy/visuals/tests/test_volume.py @@ -26,7 +26,7 @@ def test_volume(): # Clim V.set_data(vol, (0.5, 0.8)) - assert V.clim == (0.5, 0...
6
5
5
[{"id": "G0", "claim": "Renaming set_data's clim parameter to clim_range is an API break for existing callers passing clim, as illustrated by this test change.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The PR should adopt the reviewer's alternative ...
null
vispy__vispy__1844
vispy/vispy
1,844
defect
cf244a266fe71a5b306ef518f0f8a05040502939
b96f48560905d425712a87d72d0547c4b08f1eaf
Add ImageVisual gamma and smarter in-shader contrast limits
This is a companion to #1842. It puts (re)calculation of contrast limits (and adds gamma) to the `ImageVisual` shader. If `clims` are changed after the `ImageVisual` has been created, then the texture will only be rebuilt (`_need_texture_upload == True`) if the new `clims` are outside of the bounds of the previous cl...
diff --git a/vispy/visuals/image.py b/vispy/visuals/image.py index ad62e506b2..ddfda13269 100644 --- a/vispy/visuals/image.py +++ b/vispy/visuals/image.py @@ -84,16 +84,48 @@ return texture2D($texture, texcoord); }""" +_apply_clim_float = """ + float apply_clim(float data) { + data = data - $c...
10
8
4
[{"id": "G0", "claim": "Docstrings need to be added for the new gamma parameter and related API.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It is questionable whether applying gamma to an RGB image makes sense at all.", "category": "design", "...
null
vispy__vispy__1888
vispy/vispy
1,888
defect
b5f6228c7c4ec734206e9556033f5c3e7941616c
c1202dfa3a8f6fc0d261365ed008038676d7bd9e
Delay testing import with proxy function
Fixes #1887 with delay import of testing module.
diff --git a/vispy/__init__.py b/vispy/__init__.py index f941d6ec3b..4c35d6eb21 100644 --- a/vispy/__init__.py +++ b/vispy/__init__.py @@ -29,13 +29,20 @@ from .util import config, set_log_level, keys, sys_info # noqa from .util.wrappers import use # noqa -from .testing import test # noqa # load the two functio...
3
3
1
[{"id": "G0", "claim": "Add the license header to the top of the new file vispy/util/check_environment.py.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the `test` proxy wrapper added in vispy/__init__.py into vispy/util/wrappers.py, as th...
null
vispy__vispy__1918
vispy/vispy
1,918
defect
81e248df5d0cb492e8c8fe15052dfc469898b4d2
251f8f8558050ed1097c5405d8beaa1d02223fcf
Add Tkinter backend
For my current project, it would be beneficial to be able to use VisPy within a Tkinter context, i.e. an OpenGL canvas controlled by VisPy embedded inside a Tkinter widget (tk.Frame). For this purpose, I attempted to create a new backend to target Tkinter. However, it needs more work to to actually draw something. ...
diff --git a/vispy/app/backends/__init__.py b/vispy/app/backends/__init__.py index 3b5617d374..424c3cd746 100644 --- a/vispy/app/backends/__init__.py +++ b/vispy/app/backends/__init__.py @@ -23,6 +23,7 @@ ('wx', '_wx', 'wx'), ('EGL', '_egl', 'vispy.ext.egl'), ('osmesa', '_osmesa', 'vispy.ext.osmesa'), + ...
12
11
5
[{"id": "G0", "claim": "The tkSwapBuffers() call in _vispy_swap_buffers may be redundant because pyopengltk appears to auto-swap, so it is worth checking what happens if the line is commented out.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Calli...
null
vispy__vispy__1920
vispy/vispy
1,920
defect
76b5e47c2bf81dfbaa8e834a931e118aaaecb98e
450655e1d161160350d5b960499c051b43472f60
Add 'texture_format' kwarg to ImageVisual for floating point textures
Similar to #1912 This PR adds the `texture_format` keyword argument to the ImageVisual to allow for more complex data types to be stored internally on the GPU. This should allow for a greater bit depth and faster color limit changes. One major thing I learned that will also need to be fixed in #1912 is what thes...
diff --git a/examples/basics/plotting/colorbar.py b/examples/basics/plotting/colorbar.py index 978fc55b13..0edfe3875b 100644 --- a/examples/basics/plotting/colorbar.py +++ b/examples/basics/plotting/colorbar.py @@ -25,7 +25,7 @@ def gen_image(width, height): grid = np.meshgrid(x_vals, y_vals) v_fn = np.vector...
8
5
1
[{"id": "G0", "claim": "When set_data is given new data whose shape would change the texture's internalformat and the user specified texture_format, the texture silently redecides the format, so a policy is needed (raise, warn, or re-determine when texture_format is 'auto').", "category": "design", "verdict": "supporte...
null
vispy__vispy__1999
vispy/vispy
1,999
defect
df09b3079d71b7d1942481a051b900f145c4cfee
55e67d2c8884d97033e29c1a8470d7b5f3d230ca
Add ComplexImageVisual for viewing complex image data
This is just a draft for now, for the sake of discussion. It _includes_ #1920, which should be merged first. (see [comparison of this PR against #1920](https://github.com/djhoese/vispy/compare/feature-image-texture-format...tlambert-forks:complex)). The basic idea is to convert complex data into a 2-channel internal...
diff --git a/examples/basics/scene/complex_image.py b/examples/basics/scene/complex_image.py new file mode 100644 index 0000000000..a6cd4d6bfc --- /dev/null +++ b/examples/basics/scene/complex_image.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# vispy: gallery 30 +# ----------------------------------------------------...
8
7
4
[{"id": "G0", "claim": "The PR's use of np.complex256 is only available on some platforms and is failing the wheel building.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "In ImageVisual.__init__ the complex_mode validation could be replaced by assi...
null
vispy__vispy__2022
vispy/vispy
2,022
defect
e33aae23847e8e5f43248ba9d014cc4aea211a90
a4ba3e4057c0df75107f6de266a392c0c533da5c
Fix axis labeling issue when flipped
Related to issue #2019 I've also removed some commented code, I don't know if I should have.
diff --git a/vispy/visuals/axis.py b/vispy/visuals/axis.py index abba2db4a5..19d2c4c53a 100644 --- a/vispy/visuals/axis.py +++ b/vispy/visuals/axis.py @@ -392,8 +392,6 @@ def _get_tick_frac_labels(self): length = self.axis.pos[1] - self.axis.pos[0] # in logical coords n_inches = np.sqrt(np.su...
2
2
1
[{"id": "G0", "claim": "Add spaces around the minus signs in the new flip lines, i.e. write `1 - major_frac` and `1 - minor_frac` instead of `1-major_frac` and `1-minor_frac`.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The flip behaviour fixed by this...
null
vispy__vispy__2025
vispy/vispy
2,025
defect
e5d501f06202862b437f3d35be90b6851cd2d594
47b15fbf42fe7498de414cb79b6cc026e2a284bb
Add ability to show only a mesh wireframe with the wireframe filter
Follow-up on #1689 ```python wireframe_filter.wireframe_only = True ``` ![wireframe_no_interior](https://user-images.githubusercontent.com/830589/118653319-b06a0a80-b7e7-11eb-9b18-1f4b45d5db07.png) ```python wireframe_filter.wireframe_only = False ``` ![wireframe_with_interior](https://user-images.githubuse...
diff --git a/examples/basics/scene/mesh_shading.py b/examples/basics/scene/mesh_shading.py index 9d735d1b4f..3d6faf8edb 100644 --- a/examples/basics/scene/mesh_shading.py +++ b/examples/basics/scene/mesh_shading.py @@ -3,13 +3,14 @@ from vispy import app, scene from vispy.io import read_mesh, load_data_file from vis...
2
2
2
[{"id": "G0", "claim": "The test djhoese had added should be updated to also test the new wireframe_only property.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test's last assertion (rendered_with_wf_only vs rendered_wo_wf) is not raising an excep...
null
vispy__vispy__2031
vispy/vispy
2,031
defect
e6ffd1f86b03a2846f592c4fef6ef2bfc8ee582f
f99f3c0d808a3d5b84bc55f2ddb375ba3a919d25
Add visual for displaying mesh normals
A subclass of LineVisual. Can display vertex and face normals. Vertex normals (width = 2): ![vertex_normals](https://user-images.githubusercontent.com/830589/119238109-e0474400-bb40-11eb-8d58-11f3e651016d.png) Face normals (width = 1): ![face_normals](https://user-images.githubusercontent.com/830589/119238115-e...
diff --git a/examples/basics/scene/mesh_normals.py b/examples/basics/scene/mesh_normals.py new file mode 100644 index 0000000000..4da9843301 --- /dev/null +++ b/examples/basics/scene/mesh_normals.py @@ -0,0 +1,45 @@ +from vispy import app, scene +from vispy.io import read_mesh, load_data_file +from vispy.scene.visuals ...
3
3
0
[{"id": "G0", "claim": "Add a license header like the one in examples/basics/scene/image.py to the top of the new example examples/basics/scene/mesh_normals.py.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add the same license header to the othe...
null
vispy__vispy__2066
vispy/vispy
2,066
defect
c7f72cb8ba47f32606ec13dfab0147ca48b8a1cf
04a9456084db3eb53aeff92b1d2da3a54444b4e5
Change builtin colormaps to all be instances
Closes #1487 Some of the colormaps available through `vispy.color.colormap.get_colormap` were classes that were created when `get_colormap` was called with optional args, kwargs provided. This has always smelled bad to me code-wise. In this PR I create instances of the colormaps as replacements and deprecate ones t...
diff --git a/vispy/color/colormap.py b/vispy/color/colormap.py index 18918d35b8..6bfd14ea57 100644 --- a/vispy/color/colormap.py +++ b/vispy/color/colormap.py @@ -763,7 +763,7 @@ def __init__(self, h_pos=20, h_neg=250, saturation=1.0, value=0.7, class _RedYellowBlueCyan(Colormap): - """A colormap which is goes ...
1
1
1
[{"id": "G0", "claim": "get_colormap should keep accepting args/kwargs and raise a DeprecationError or deprecation warning so users who passed configuration arguments can see how to adjust their code.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
vispy__vispy__2106
vispy/vispy
2,106
defect
184d854c7542f4c6df21bb4c7db3dd5b340dd900
eff292bd30d5e9e8b1d061f64f8a53dd3740fe54
Add handling of NaNs in ImageVisual
This was discussed a little in #2085 and I know this current implementation isn't optimized (multiple nan checks and branches), but I wanted to start the discussion since this shows (I think) what we want the end result to be. For single channel images, the NaN pixels should be fully transparent (or discarded). For RGB...
diff --git a/vispy/visuals/image.py b/vispy/visuals/image.py index 091858efa3..a89cb31f47 100644 --- a/vispy/visuals/image.py +++ b/vispy/visuals/image.py @@ -89,12 +89,26 @@ _apply_clim_float = """ float apply_clim(float data) { + if (!(color.r <= 0.0 || 0.0 <= color.r)) { + discard; + ...
3
3
3
[{"id": "G0", "claim": "The RGB/RGBA NaN handling overwrites the alpha channel even when the user could have provided RGBA data, so the alpha `if` statement should be removed and replaced with a NaN-check ternary that maps a NaN alpha to 0.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope":...
null
vispy__vispy__2140
vispy/vispy
2,140
defect
ea5a740d020aa7f8179becd30ed3383c575e1783
5008f81c1216e765ed9aabef4a97987778267e29
Fix scalable textures clim_normalized when auto clims are used
Closes #2139 I'm not super happy with the try/except in the ImageVisual, but also it seems like the most flexible and future-proof.
diff --git a/vispy/visuals/_scalable_textures.py b/vispy/visuals/_scalable_textures.py index 21ae1843ba..368aba5c5c 100644 --- a/vispy/visuals/_scalable_textures.py +++ b/vispy/visuals/_scalable_textures.py @@ -114,7 +114,19 @@ def set_clim(self, clim): @property def clim_normalized(self): """Normali...
2
2
0
[{"id": "G0", "claim": "The RuntimeError raised by clim_normalized when clim is 'auto' should include the word \"auto\" so the message makes clear the error is related to auto-clim.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Only the self._t...
null
vispy__vispy__2142
vispy/vispy
2,142
defect
7e0301025c2a8206c890887a7dcdf8a4cdbcd778
87f3d2bb5e4316edc9f2a622fa38ca494b5e3256
Add "jupyter_rfb" backend for inline Jupyter Notebook/Lab display
This implements a new backend based on `jupyter_rfb`. I'll be updating jupyter_rfb at the same time, so it aint easy to give this is a spin yet. This is basically the same as what was intended with the `ipynb_vnc` backend, but all the "hard parts" are delegated to an external library. Includes a new simple way to cr...
diff --git a/vispy/app/backends/__init__.py b/vispy/app/backends/__init__.py index 6acef2567c..37de8ab1c9 100644 --- a/vispy/app/backends/__init__.py +++ b/vispy/app/backends/__init__.py @@ -31,7 +31,8 @@ # canvas, the pseudo backends act more like a proxy. PSEUDO_BACKENDS = [ # ('ipynb_vnc', '_ipynb_vnc', None)...
9
6
2
[{"id": "G0", "claim": "An empty OpenGL version string causes LooseVersion to fail, and silently letting it through may confuse users, so the empty case should be handled with a warning instead of being passed silently.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"...
null
vispy__vispy__2227
vispy/vispy
2,227
defect
545abddf3cf5d7e672cb48fe8e68779fc338cc2d
902113aea9a8b018de0e79721b26c2e3d4f334d6
Move module globals to class attributes
Over at napari, there are vispy-specific things that we implemented which are not in vispy (either because we are testing them before PRs here, or because they are napari specific). However, due to the presence of a lot of globals, we often had to vendor entire modules or files, which makes maintenance hard. We're tryi...
diff --git a/vispy/visuals/volume.py b/vispy/visuals/volume.py index 9a625ed1e8..32ec1a7fbd 100644 --- a/vispy/visuals/volume.py +++ b/vispy/visuals/volume.py @@ -533,21 +533,6 @@ """, ) -frag_dict = { - 'mip': MIP_SNIPPETS, - 'minip': MINIP_SNIPPETS, - 'attenuated_mip': ATTENUATED_MIP_SNIPPETS, - ...
2
2
1
[{"id": "G0", "claim": "Test collection fails: the PR removed the module-level frag_dict from vispy/visuals/volume.py while vispy/visuals/tests/test_volume.py still imports it, raising ImportError.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Volu...
null
vispy__vispy__2239
vispy/vispy
2,239
defect
279224aa0b0f7aa637192505c47d02b8aa295e7a
d6140b8d72ea7f994a701ed98ec3d4b9fde9f8ae
Fix volume rendering's wrong offset
Recently @almarklein worked on volume rendering for pygfx at pygfx/pygfx#177. There, he pointed out that there is some issue with how vispy's currently calculating its starting position for raycasting. In order to fix it, I implemented a validation example similar to what was done for pygfx, and found that indeed th...
diff --git a/examples/basics/visuals/volume.py b/examples/basics/visuals/volume.py new file mode 100644 index 0000000000..4e2ae9a3b7 --- /dev/null +++ b/examples/basics/visuals/volume.py @@ -0,0 +1,64 @@ +# -*- coding: utf-8 -*- +# ----------------------------------------------------------------------------- +# Copyrig...
10
8
4
[{"id": "G0", "claim": "The plane rendering is offset, so that probably needs some love.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The shader maps the 0,1 range of texture coords to 0,N when it should be 0,N-1 in each dimension; this could be s...
null
vispy__vispy__2245
vispy/vispy
2,245
defect
efa49b6896321374149998e15f8bce2ae327ba70
3918872421dc59d4f7679660dd3cce9efadaea51
Update clims in color transform whenever texture._data_limits changes
fixes #2229. looks like the `if not new_if and new_cl and not self._need_colortransform_update:` conditional in the current `_build_texture` method is a little too strict. Back in https://github.com/vispy/vispy/pull/1911, we fully updated the color transform whenever the image texture was rebuilt. #1920 tried to ...
diff --git a/vispy/visuals/image.py b/vispy/visuals/image.py index 16ff2f5582..a51a11dd03 100644 --- a/vispy/visuals/image.py +++ b/vispy/visuals/image.py @@ -521,22 +521,20 @@ def _update_method(self, view): self._prepare_transforms(view) def _build_texture(self): - pre_clims = self._texture.cli...
5
5
3
[{"id": "G0", "claim": "The pull request has no test that fails on main and passes with the PR, and the case it fixes is unidentified, so it is not known that it fixes a real bug rather than only providing a workaround.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G...
null
vispy__vispy__225
vispy/vispy
225
defect
30ecd9d0cf628df121364955a586b8ce254536e7
fd19713309ed59cc46ce94a23b5eb43cda74fa65
ENH: Add event order, rearrange Canvas arguments
This allows setting the order of callbacks when using "connect". It also contains a proposal for reorganizing some of the `app` calls in a simpler manner. Let me know what people think.
diff --git a/vispy/app/backends/_glfw.py b/vispy/app/backends/_glfw.py index c47d35903d..65eef54e5e 100644 --- a/vispy/app/backends/_glfw.py +++ b/vispy/app/backends/_glfw.py @@ -21,7 +21,8 @@ import atexit from time import sleep -from ..base import BaseApplicationBackend, BaseCanvasBackend, BaseTimerBackend +from ...
10
6
0
[{"id": "G0", "claim": "The window title passed to glutCreateWindow should perhaps be encoded as UTF-8 rather than ASCII.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The connect() docstring's before/after parameter type lines should say 'callback...
null
vispy__vispy__2262
vispy/vispy
2,262
defect
8c76eb82dff8ccc13cbd0dba28c81f101f2f12d6
639e1b62d3b6b615f0133ab63a5accb1b22b0584
Fix MeshNormals and WireframeFilter with empty MeshData
When MeshNormal is provided an empty `MeshData` object, all sorts of issues arise, crashing the program. This is especially problematic if one wants to automatically update a `MeshNormals` based on a `Mesh`, which is totally fine with empty data. I tried fixing this by making the methods in `MeshData` used by `MeshN...
diff --git a/vispy/visuals/mesh_normals.py b/vispy/visuals/mesh_normals.py index e1c8f5fa0f..32631e343a 100644 --- a/vispy/visuals/mesh_normals.py +++ b/vispy/visuals/mesh_normals.py @@ -76,14 +76,59 @@ class MeshNormalsVisual(LineVisual): def __init__(self, meshdata, primitive='face', length=None, ...
3
3
0
[{"id": "G0", "claim": "MeshNormals should not read MeshData's private `_faces`/`_vertices` attributes; use the public getters or, preferably, add an `is_empty`-style method to MeshData to hide the private property checks.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}...
null
vispy__vispy__2285
vispy/vispy
2,285
defect
26256fdc2574259dd227022fbce0767cae4e244b
1c1ce775b18ef35692c4e30672b59fd50d57c111
Fix numpy error with array edge_width in Markers
When passing an array to `Markers.edge_width`, a `ValueError` is raised: ```python if edge_width < 0: ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() ``` This PR fixes this by using `np.all`. Also, if a `list` is passed, the comparison fails because ```py...
diff --git a/vispy/visuals/markers.py b/vispy/visuals/markers.py index 1562e1cf3a..4570276cc0 100644 --- a/vispy/visuals/markers.py +++ b/vispy/visuals/markers.py @@ -673,11 +673,14 @@ def set_data(self, pos=None, size=10., edge_width=1., edge_width_rel=None, if (edge_width is not None) + (edge_width_rel is no...
2
2
2
[{"id": "G0", "claim": "The negative-edge_width check should use np.any instead of np.all so that any negative element raises ValueError.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a test covering the pull request's changed edge_width behavi...
null
vispy__vispy__2305
vispy/vispy
2,305
defect
bf793b36010d3cecb8307e1360f6549633fed1e5
c6e58534d37a550b7d814bf1058d1d0a64d0e3a9
Set depth in `VolumeVisual` for `mip`/`minip`/`attenuated_mip` rendering modes
This PR sets the depth buffer correctly in the `mip`/`minip`/`attenuated_mip` rendering modes of the `VolumeVisual` - if in plane rendering mode the depth is always set to the ray-plane intersection as before (#2289) https://user-images.githubusercontent.com/7307488/156226184-e0146fd2-a0af-4e02-8148-1aa8c6af5200.mp4...
diff --git a/vispy/visuals/volume.py b/vispy/visuals/volume.py index 1356c00ac4..0ace2606b7 100644 --- a/vispy/visuals/volume.py +++ b/vispy/visuals/volume.py @@ -229,11 +229,15 @@ // fragment. view_ray = normalize(farpos.xyz - nearpos.xyz); - // Keep track of wheter a surface was found (used for depth) ...
7
3
2
[{"id": "G0", "claim": "The pull request's new depth-setting behaviour for mip/minip/attenuated_mip ships with no tests; tests are requested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The rendering_as_plane flag is unnecessary because frag_depth_po...
null
vispy__vispy__2308
vispy/vispy
2,308
defect
1df73c0d3683f806ed052c36a51ecb3b66382c86
44c080b1c6509286686f91a1082d3e6b6a209bb1
Add cutoff to mip and minip volume projection for fragment discard
This PR takes out some code from the solution to the issues in #2305. Specifically, see [this comment](https://github.com/vispy/vispy/pull/2305#issuecomment-1059240483) and [this other comment](https://github.com/vispy/vispy/pull/2305#issuecomment-1059272289). In practice, the new attributes allow to set a lower ...
diff --git a/vispy/visuals/volume.py b/vispy/visuals/volume.py index 1356c00ac4..4d78382b27 100644 --- a/vispy/visuals/volume.py +++ b/vispy/visuals/volume.py @@ -86,6 +86,8 @@ uniform float u_threshold; uniform float u_attenuation; uniform float u_relative_step_size; +uniform float u_mip_cutoff; +uniform float u_mi...
5
3
1
[{"id": "G0", "claim": "The reviewer questions the actual use-case for settable mip/minip cutoffs, feels they should ideally be ±inf, and suggests the use-cases might be better solved with clim plus a colormap with alpha=0 instead of a new settable cutoff API.", "category": "design", "verdict": "opposed", "priority": "...
null
vispy__vispy__2350
vispy/vispy
2,350
defect
fcc0139ba9c4e7dc655a663c075e3973f1c73e25
80acec51f6aa3654dd1bbf555a2bcedf8ee028e8
Fix dtype casting for Texture objects
This PR tries to streamline interacting with `Texture` objects by improving and adding some guards to the datatype casting/downcasting necessary to update data on the GPU. On current main, setting the data of a texture (or a visual) to some new data with a *different dtype* will either fail silently by blindly givin...
diff --git a/vispy/gloo/tests/test_texture.py b/vispy/gloo/tests/test_texture.py index fdae6f635b..a34179640d 100644 --- a/vispy/gloo/tests/test_texture.py +++ b/vispy/gloo/tests/test_texture.py @@ -4,6 +4,9 @@ # Distributed under the terms of the new BSD License. # ---------------------------------------------------...
13
9
2
[{"id": "G0", "claim": "The new `set_data` wrapper should live on the base mixin class rather than only on CPUScaledTextureMixin.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new downcast helper does not check that the data is floating point, and i...
null