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
vispy__vispy__2352
vispy/vispy
2,352
defect
fcc0139ba9c4e7dc655a663c075e3973f1c73e25
8ba4c3d2bc084204bf7a213ac2ad2b0faea67cc6
Implement turntable camera `roll` programmatically and clarify transformation docstrings
As discussed in #2279 the docstrings of `elevation`, `azimuth`, and `roll` appear to be misleading for `TurntableCamera`. This PR aims to address this and also implements `roll` functionality. The `TurntableCamera._get_rotation_tr()` function has been updated so all three transformations represent consistent right-hand...
diff --git a/vispy/scene/cameras/turntable.py b/vispy/scene/cameras/turntable.py index 63c7d75258..d5bc79651d 100644 --- a/vispy/scene/cameras/turntable.py +++ b/vispy/scene/cameras/turntable.py @@ -23,14 +23,18 @@ class TurntableCamera(Base3DRotationCamera): fov : float Field of view. Zero (default) mean...
10
9
4
[{"id": "G0", "claim": "Remove the ad-hoc manual test script (vispy/scene/cameras/turntablecamera_testing.py) from the pull request.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a proper unit test for the turntable rotation to vispy/scene/...
null
vispy__vispy__2378
vispy/vispy
2,378
defect
6b9d39c8c7ab75ceb7f15ccccef5f0d27eaeeec1
ff77ad0e087986d19c779bda17f34d2f128b128a
Instance rendering in gloo.
Following up on #2376, I took a deep dive into the glir and gloo code and found a way to enable a reasonable high level interface for instanced rendering. I'm sure there's a bunch of ways to do this, but the way that made the most sense to me is this one. To summarize the changes: - `VertexBuffer` now takes a `divis...
diff --git a/examples/tutorial/gloo/colored_cube_instanced.py b/examples/tutorial/gloo/colored_cube_instanced.py new file mode 100644 index 0000000000..f84b26a2e0 --- /dev/null +++ b/examples/tutorial/gloo/colored_cube_instanced.py @@ -0,0 +1,103 @@ +# -*- coding: utf-8 -*- +# ------------------------------------------...
3
2
1
[{"id": "G0", "claim": "divisor (and, per M012, instances in glir.py) should be accepted as keyword arguments with defaults so existing call sites keep working; the GLIR command itself may stay positional.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "T...
null
vispy__vispy__2380
vispy/vispy
2,380
defect
6b9d39c8c7ab75ceb7f15ccccef5f0d27eaeeec1
69b62868fee929db5d91817ce6364ca43c7f4a97
Use correct regex when parsing variables
Real fix for the issue found at #2377. Currently, we were treating `in` and `attribute` *exactly* the same, even when parsing: we were looking for the token `attribute` when parsing in both cases, effectively doing the same thing twice. What we really should be doing is look for the `in` token, but treat it the same ...
diff --git a/vispy/gloo/program.py b/vispy/gloo/program.py index bfc095439..329d74ce0 100644 --- a/vispy/gloo/program.py +++ b/vispy/gloo/program.py @@ -251,13 +251,16 @@ def _parse_variables_from_code(self, update_variables=True): self._code_variables = {} for kind in ('uniform', 'attribute', 'varyin...
1
1
1
[{"id": "G0", "claim": "Any chance the regex-fix change can be covered by a test?", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
vispy__vispy__2411
vispy/vispy
2,411
defect
8bf4f9e538dee5cb986779006b84f62eed81ed7c
90016de814f6050829640abb864c0235c2de5484
Improve PySide6 Support: swapBehavior for DoubleBuffer, BUTTONMAP as pyqt6, xfail test_context
Fixes #2407 by using `SwapBehavior` to set DoubleBuffer PYSIDE6_API is included in the existing PYQT6_API logic: https://github.com/vispy/vispy/blob/8bf4f9e538dee5cb986779006b84f62eed81ed7c/vispy/app/backends/_qt.py#L281-L287 This should work for PySide6 going back to at least 6.2 (LTS) I found the Qt 6.2 (LTS) d...
diff --git a/vispy/app/backends/_qt.py b/vispy/app/backends/_qt.py index 53f9fd4a13..5447b219fb 100644 --- a/vispy/app/backends/_qt.py +++ b/vispy/app/backends/_qt.py @@ -191,7 +191,7 @@ def _get_event_xy(ev): qt_keys.Key_Return: keys.ENTER, qt_keys.Key_Tab: keys.TAB, } -if PYQT6_API: +if PYQT6_API or PYSIDE...
2
2
1
[{"id": "G0", "claim": "Mouse interaction under PySide6 raises KeyError in BUTTONMAP[ev.button()] because BUTTONMAP is not built for PySide6's new-style MouseButton enums, so an update is needed where BUTTONMAP is defined (_qt.py ~L194).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "p...
null
vispy__vispy__2444
vispy/vispy
2,444
defect
e8c1dc31ea5927da9cf0769ee6497c7a3ddea8d6
a1f94a42582e6131853b710da02e1d4e30ab21e1
Clean up and test computation of normals in MeshData
Supersedes #2098. Summary: - Test computation of face normals. - Extract computation of face normals and vertex normals out of MeshData for clarity.
diff --git a/vispy/geometry/meshdata.py b/vispy/geometry/meshdata.py index 72bfe3466..b60d3f1a2 100644 --- a/vispy/geometry/meshdata.py +++ b/vispy/geometry/meshdata.py @@ -19,6 +19,47 @@ def _fix_colors(colors): return colors +def _compute_face_normals(vertices): + assert vertices.shape[1:] == (3, 3), \ + ...
1
1
0
[{"id": "G0", "claim": "The `assert` statements in the non-testing `meshdata.py` code added by this PR should be switched to `if` statements that raise regular `ValueError` exceptions, since using `assert` in non-testing code is considered bad practice by linting/complexity/security tools.", "category": "correctness", ...
null
vispy__vispy__2461
vispy/vispy
2,461
defect
44afcb62c38fa7ac29599449ca46f048690a0417
f1a28d68d25c3af53e371c62d919e3fabe90f15f
Add `InstancedMeshVisual` for faster and easier rendering of repeated meshes
Followup from #2460: I implemented a full visual that inherits most of its logic from `MeshVisual`! There are a few hacky workarounds, but overall the patching required is minimal. `ShadingFilter` unfortunately doesn't work as intended, I think because the light direction is computed on the non-rotated mesh... Proba...
diff --git a/examples/scene/instanced_mesh_visual.py b/examples/scene/instanced_mesh_visual.py new file mode 100644 index 000000000..63fba2d7b --- /dev/null +++ b/examples/scene/instanced_mesh_visual.py @@ -0,0 +1,108 @@ +# -*- coding: utf-8 -*- +# vispy: gallery 30 +# --------------------------------------------------...
7
6
1
[{"id": "G0", "claim": "MeshNormalVisual probably needs to be subclassed as well to account for instancing, since it is the one mesh-derived visual that does not work with InstancedMeshVisual.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add at le...
null
vispy__vispy__2463
vispy/vispy
2,463
defect
4432768b1ddfa2b5387836a71e744c5f99683bef
d0fa62e44c7c963cb26914f26f34c27b407b710f
Fix shader compilation error for MeshVisual when mesh.clim = 'auto'
Rendering a mesh with `vertex_values` produces a shader compilation error when `mesh.clim == "auto"` (the default): ``` RuntimeError: Shader compilation error in GL_VERTEX_SHADER: on line 336: Use of undeclared identifier 'a' float cmap(float val) { return (val - a) / (u - a); } on line 336: Use of u...
diff --git a/vispy/visuals/mesh.py b/vispy/visuals/mesh.py index 66e850b80..09251637c 100644 --- a/vispy/visuals/mesh.py +++ b/vispy/visuals/mesh.py @@ -283,8 +283,8 @@ def _build_color_transform(self, colors): clim_func = 'float cmap(float val) { return (val - $cmin) / ($cmax - $cmin); }' if colors.n...
1
1
0
[{"id": "G0", "claim": "The new test should be renamed from test_mesh_with_values to test_mesh_with_vertex_values, as the reviewer's suggestion block proposes.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vispy__vispy__2500
vispy/vispy
2,500
defect
ce20572c3c1f83a948a40e9d1d18cc301d031d78
b19c22997c931d8fc3da34f3aa2fb203b7c2e87d
Add primitive picking filters for Mesh and Markers visuals
This adds a filter for picking individual faces from a mesh. It works similarly to the picking mode already in use for picking _visuals_ but instead colors the individual faces (triangles) of the mesh based on an index. I also added an example (heavily borrowing from the mesh shading example) to illustrate how the f...
diff --git a/examples/scene/face_picking.py b/examples/scene/face_picking.py new file mode 100644 index 0000000000..351fb4aa1f --- /dev/null +++ b/examples/scene/face_picking.py @@ -0,0 +1,134 @@ +# -*- coding: utf-8 -*- +# vispy: gallery 30 +# ---------------------------------------------------------------------------...
6
4
0
[{"id": "G0", "claim": "Passing the picking IDs directly (e.g. via gl_PrimitiveID in newer GLSL) instead of a color buffer might save a little VRAM.", "category": "performance", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rendering only a small region/crop of the canvas arou...
null
vispy__vispy__2502
vispy/vispy
2,502
defect
e71b275f0bd92d3fc082fdf87f11c490705ef76a
4f228317be13dfeafebd86a082b547cfed3a103f
Add push/pop gl_state for visuals (used in picking)
Fixes #2501 This is a proposed solution to the bug identified in #2501. Hopefully it's pretty self-explanatory but basically it allows you to update and restore gl state on a visual. The only use right now is in picking, which is used in processing mouse events via `SceneCanvas.visuals_at`.
diff --git a/vispy/scene/visuals.py b/vispy/scene/visuals.py index ab3a04469..07af20035 100644 --- a/vispy/scene/visuals.py +++ b/vispy/scene/visuals.py @@ -71,7 +71,10 @@ def picking(self, p): return self._picking = p self._picking_filter.enabled = p - self.update_gl_state(blend=n...
5
3
1
[{"id": "G0", "claim": "Add explicit tests for the new push/pop gl_state methods.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Consider making the gl_state usage work as a context manager (with self.update_gl_state(blend=False): ...).", "category": "d...
null
vispy__vispy__2663
vispy/vispy
2,663
defect
341b1c361ff7e6b08b59adb0020cbcc2919cc779
d6afa2143165e7b999ccbe2dc40f51646caba17e
Add high and low color settings for colormaps (HiLo mapping)
As suggested by @aganders3 in https://github.com/vispy/vispy/pull/2659#issuecomment-2786508704, based on the discussion in https://github.com/napari/napari/issues/6878. Note that this includes changes from #2662. What do you think @aganders3? You can try it out with this snippet: ```py import sys from vispy import ...
diff --git a/vispy/color/colormap.py b/vispy/color/colormap.py index b965edd75..ca99415b7 100644 --- a/vispy/color/colormap.py +++ b/vispy/color/colormap.py @@ -159,11 +159,12 @@ def _glsl_mix(controls=None, colors=None, texture_map_data=None): LUT[:, 0, 2] = np.interp(x, controls, c_rgba[:, 2]) LUT[:, 0, 3] ...
5
4
3
[{"id": "G0", "claim": "The change to the luminance color-transform function chain breaks places that reference chain entries by index, such as the clim setter.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The exact equality check (t == 1.0) for t...
null
vispy__vispy__2713
vispy/vispy
2,713
defect
f2c165a1b1482fa61eada05480b68cb5283a0d89
2edfa00bbcd9c041a967066f7248537f3d5ca418
Fix mouse buttons state handling on certain backends
Under some circumstances a mouse press is not followed by a corresponding mouse release event. The current implementation of recording which mouse buttons are pressed relied on this behaviour. Luckily most backends record this information for us, so we can use those functions instead of doing the bookkeeping ourselves....
diff --git a/vispy/app/backends/_glfw.py b/vispy/app/backends/_glfw.py index 7549aa85a..f7f815935 100644 --- a/vispy/app/backends/_glfw.py +++ b/vispy/app/backends/_glfw.py @@ -293,6 +293,7 @@ def __init__(self, vispy_canvas, **kwargs): self._initialized = True self._next_key_events = [] self...
3
2
2
[{"id": "G0", "claim": "The new `int | None` type hints do not work on older Python versions and should be made compatible, by downgrading to `Optional[int]` or, as djhoese preferred, by adding `from __future__ import annotations` so `int | None` can stay.", "category": "correctness", "verdict": "supported", "priority"...
null
vispy__vispy__2720
vispy/vispy
2,720
defect
422f2b81404d147295af431b878c97314225c94a
547a162fd69afc6fee3d39f7c744fd9d824fc1bc
Fixes and optimizations for instanced markers
This fixes some issues with instanced markers rendering, and adds a few performance improvements. Fix marker picking for instanced markers: - Fix `MarkerPickingFilter` to set correct divisor for instanced rendering ...
diff --git a/vispy/visuals/conftest.py b/vispy/visuals/conftest.py new file mode 100644 index 000000000..cc3f6152d --- /dev/null +++ b/vispy/visuals/conftest.py @@ -0,0 +1,25 @@ +import pytest +from vispy.gloo.gl import use_gl + + +@pytest.fixture(params=['points', 'instanced']) +def rendering_method(request): + """...
1
1
0
[{"id": "G0", "claim": "The whole `if (u_spherical == true)` block could potentially be fitted into the new templated hook as well, not just the depth write, though the reviewer is unsure it would save much performance since the branching would probably be optimized away.", "category": "design", "verdict": "supported",...
null
vispy__vispy__301
vispy/vispy
301
defect
d5aa3a6d0577d73c47a46c048f04163e2bb1b13f
aa0e08543a824dceb6c0879501183e10c10c78be
Flip the image in read_pixels and test read_pixels
- In read_pixels, the result image is upside-down. Flip the image using `[::-1]`. - Unit test for read_pixels: Draw a white square on top left, check sums of pixels in corners to compare result.
diff --git a/vispy/app/tests/test_app.py b/vispy/app/tests/test_app.py index 1497cad838..72070cd814 100644 --- a/vispy/app/tests/test_app.py +++ b/vispy/app/tests/test_app.py @@ -225,7 +225,7 @@ def fake(event): # screenshots gl.glViewport(0, 0, *size) ss = _screenshot() - assert_array...
4
4
0
[{"id": "G0", "claim": "The test does not need to call `c._backend._vispy_warmup()` explicitly because the context handler (`with` syntax) already does it.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The flip would be more explicit written as `im...
null
vispy__vispy__303
vispy/vispy
303
defect
b3d1cbfd1b5e97d0b629bf802ca4aabfca0fd06d
52c228f1798159a1a96b473cb3acca43886ba580
Pure python PNG writer
Add @lcampagn 's `make_png`. No need to import from another library. Just `from vispy.util import make_png`
diff --git a/vispy/util/__init__.py b/vispy/util/__init__.py index 787881990a..ac64c5c97f 100644 --- a/vispy/util/__init__.py +++ b/vispy/util/__init__.py @@ -15,3 +15,4 @@ from . import cube # noqa from . import transforms # noqa from ._wrapper import test # noqa +from .image import make_png # noqa diff -...
4
4
2
[{"id": "G0", "claim": "make_png should do away with the alpha toggle and instead derive the colour type from data.shape[2], and also add checks that data is 3D, that data.shape[2] is in (3, 4) and that data is of the proper dtype.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introdu...
null
vispy__vispy__355
vispy/vispy
355
defect
15411407733a9821fbcde703553a1bb8dcb7b5ee
8d27f5bd4849be29bbeb860961fad783e5d7c526
ENH: Add wxPython backend
Before I get too far into this, is there any reason not to add a `wxPython` backend?
diff --git a/.travis.yml b/.travis.yml index a38f40b305..9539307766 100644 --- a/.travis.yml +++ b/.travis.yml @@ -97,10 +97,12 @@ install: # Also install PyQt4, imaging (PIL or pillow), scipy, and mpl # Test old (insufficient) version of Pyglet on 2.6 # On conda, can't install pyside-pyzo b/c it conflic...
3
1
1
[{"id": "G0", "claim": "The wx backend fails test #2 of test_simultaneous.py and should be fixed rather than skipped via the XXX TODO.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The wx CanvasBackend is implemented on a wx Frame rather than a GLCanva...
null
vispy__vispy__368
vispy/vispy
368
defect
2f3d169aa60c738467e766c59096f51570483d6f
8646e21a475aecd9299bc5af3e8c494c772efd45
WIP: Reactive Visual tests and integration of Color with visuals
On a second thought, I will integrate Visuals with Color and then add the tests so that the changes can be included in few commits.
diff --git a/examples/basics/visuals/ellipse_visual.py b/examples/basics/visuals/ellipse_visual.py index 856602bb0a..c11c9bad87 100644 --- a/examples/basics/visuals/ellipse_visual.py +++ b/examples/basics/visuals/ellipse_visual.py @@ -14,8 +14,8 @@ class Canvas(vispy.app.Canvas): def __init__(self): self...
8
7
3
[{"id": "G0", "claim": "The repeated convert-color-or-None-to-rgba block should be replaced by a single helper function (e.g. _color_as_array_or_none in vispy.color) instead of duplicating the same four lines across visuals.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
vispy__vispy__369
vispy/vispy
369
defect
2f3d169aa60c738467e766c59096f51570483d6f
de8c573d2b768d14c6cf4a1859bda4e3ace78ad9
Glsl static names
Addresses some issues with the `Compiler` class: - Avoids posible name conflicts during mangling: - reserved names - statically-declared variable names - function arguments - Do not create mangled names > 32 chars - Adds an optional faster (but uglier) compiling method - Add `MainFunction(Function)` class that al...
diff --git a/vispy/scene/shaders/__init__.py b/vispy/scene/shaders/__init__.py index 2e2b2830b2..dca984f6f7 100644 --- a/vispy/scene/shaders/__init__.py +++ b/vispy/scene/shaders/__init__.py @@ -2,4 +2,6 @@ """ from .program import ModularProgram # noqa -from .function import Function, Variable, Varying, FunctionC...
5
3
3
[{"id": "G0", "claim": "The pull request causes test failures, and it is unclear whether the changes are backward-compatible with existing code.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The docs, mainly Function.__doc__, should be updated to r...
null
vispy__vispy__488
vispy/vispy
488
defect
a1174806b7d96be2aa85064840064555ffe3c0e7
8e9fe0de573587c94b8606dc70fd54171debddb9
Fixed several examples
- Fix line - need to set to agg since gl is default - Fix Line visual - agg always uses antialias, don't import pyopengl unless we need it - Rename and fix gridlines.py and thus fix the grid demo - Fix imshow_cuts demo, also fixed that variable.set_data needs to call buffer.set_data instead of buffer[...] = data - ...
diff --git a/examples/basics/visuals/custom_visual.py b/examples/basics/visuals/custom_visual.py index bc7c8bdbbe..04604a7b66 100644 --- a/examples/basics/visuals/custom_visual.py +++ b/examples/basics/visuals/custom_visual.py @@ -140,7 +140,11 @@ def __init__(self): # for example). tr = self.panzoom ...
3
2
1
[{"id": "G0", "claim": "In examples/basics/visuals/custom_visual.py the pan/zoom interactivity is off by a factor of 2, so the view moves at half the speed it should.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The rewritten gl-mode draw path i...
null
vispy__vispy__520
vispy/vispy
520
defect
28f9e083e35963050ba681478051aec87cb6e644
55809f79248afa810d628b363b87808abc516e00
ENH: Add more read options
Closes #446.
diff --git a/codegen/annotations.py b/codegen/annotations.py index 1a31617c12..003a57d024 100644 --- a/codegen/annotations.py +++ b/codegen/annotations.py @@ -137,8 +137,9 @@ def readPixels(x, y, width, height, format, type): # --- desktop angle mock # GL_ALPHA, GL_RGB, GL_RGBA t = {6406:1, 6407:3, 6408:...
2
2
1
[{"id": "G0", "claim": "out_type should also accept numpy dtype objects like np.uint8 or np.float32 (and perhaps their string equivalents), not only strings.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new alpha='only' mode should not be supported...
null
vispy__vispy__616
vispy/vispy
616
defect
7b4556fc313580f39351163b34480f86ef7df247
cc75b1dbf28b6fe249a231f33631d309f2103717
Support binary WebSocket in the WebGL backend
The goal is to transfer NumPy arrays more efficiently from Python to the browser (only `DATA` GLIR commands). This is only possible in IPython >= 3.0dev ([link to the IPython PR](https://github.com/ipython/ipython/pull/6110)). This PR should be ready for review/merge. Binary buffers are disabled for now; let's wait fo...
diff --git a/vispy/app/backends/_ipynb_webgl.py b/vispy/app/backends/_ipynb_webgl.py index 7e2299e672..27fcdd9ab5 100644 --- a/vispy/app/backends/_ipynb_webgl.py +++ b/vispy/app/backends/_ipynb_webgl.py @@ -8,13 +8,9 @@ from __future__ import division -import re -import base64 - -import numpy as np from ..base im...
2
1
0
[{"id": "G0", "claim": "The 'array_serialization' key should be set inside serialization.create_glir_message itself rather than redundantly in send_glir_commands.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new serialization module is too IPython/...
null
vispy__vispy__636
vispy/vispy
636
defect
5dc7b0839fc8ac290f38e83c5a0f3733a336a4fa
a6d4765fc7c45246d0d39a0fba49b14ac1b75d9d
MarkersVisual supports unique marker colors for edges/faces passed as numpy array.
Individual markers inside the MarkersVisual can now be given a unique color for both edges and faces. If the user uses a numpy array, this is passed to a ColorArray, otherwise it's assumed to be a simple Color as before. @Eric89GXL reviewed a previous iteration in #633 and suggested the ColorArray.
diff --git a/vispy/visuals/markers.py b/vispy/visuals/markers.py index 447a4bcbe4..aa7ef37b63 100644 --- a/vispy/visuals/markers.py +++ b/vispy/visuals/markers.py @@ -9,7 +9,7 @@ import numpy as np -from ..color import Color +from ..color import Color, ColorArray from ..gloo import set_state, VertexBuffer, _check...
5
4
0
[{"id": "G0", "claim": "The isinstance branching should be replaced by always converting via ColorArray and unwrapping single-color arrays, as the reviewer's snippet does.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The docstring should say \...
null
vispy__vispy__637
vispy/vispy
637
defect
114d0b3d553decd66092fe687c9860d02f1b2476
27d5113c811e3dee6c138398fcdb0f0191091821
Scenegraph benchmark
WIP: This PR adds a benchmark example for comparing scenegraph performance to similar optimal implementations. The intent is to add more benchmark examples and optimizations until we get comparable performance (or decide that we will never get comparable performance).
diff --git a/examples/benchmark/scene_test_1.py b/examples/benchmark/scene_test_1.py new file mode 100644 index 0000000000..97e7209c70 --- /dev/null +++ b/examples/benchmark/scene_test_1.py @@ -0,0 +1,340 @@ +""" +Compare an optimal pan/zoom implementation to the same functionality +provided by scenegraph. +""" +# visp...
8
8
3
[{"id": "G0", "claim": "The new test_error test fails as written because the program is flushed outside any GL context, so the raised exception carries no information about why the compile failed.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "glir.py s...
null
vispy__vispy__668
vispy/vispy
668
defect
350ecd20c9b930ce6f6f17cb6e67bf294d219d83
67f22fb643f90b68fef6cf78d8dc6f1227eecac8
ENH: Use Mesa on Appveyor
I compiled a Mesa win32 OpenGL DLL, maybe I can get it to work so we can run more comprehensive tests.
diff --git a/appveyor.yml b/appveyor.yml index 9c019c43ea..1508480bec 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -23,7 +23,7 @@ install: # Install the dependencies of the project. - "conda install --yes --quiet numpy setuptools flake8 pyqt nose" - - "pip install -q http://pyglet.googlecode.com/archive/tip...
6
4
0
[{"id": "G0", "claim": "The Mesa opengl32.dll should be hosted in vispy's own data repository rather than downloaded from the author's personal faculty URL.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The example runner should say in a comment that ex...
null
vispy__vispy__743
vispy/vispy
743
defect
11cf76ad5975c14bcfcd77f7aa46597ba8f42c49
e797aa9bc8b1053c23d7bf4a9e6cfa5f802a1819
added hsv parameter to ColorArray
implemented the [feature request](https://github.com/vispy/vispy/issues?q=hsvis%3Aissue+is%3Aopen+) to allow hsv parameters to `ColorArray` closes #692
diff --git a/vispy/color/color_array.py b/vispy/color/color_array.py index 2438d11a56..e5074d4ae9 100644 --- a/vispy/color/color_array.py +++ b/vispy/color/color_array.py @@ -91,6 +91,10 @@ class ColorArray(object): If array-like, it must be an Nx3 or Nx4 array-like object. Can also be a list of color...
6
5
1
[{"id": "G0", "claim": "The new color_space argument should go at the end of the __init__ signature instead of being inserted before alpha and clip, to preserve backward compatibility for positional callers.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
vispy__vispy__860
vispy/vispy
860
defect
00c255dcdeb0e15ba6abcc22e62f0fd65a78ce03
a82a1c4170ef606c100a76506a1aa25afb3db2c7
Scenegraph profiling
Adds a Profiler class and instruments some visual/scenegraph code. Should add negligible overhead when profiling is not in use. Works like this: ``` # profile a specific code location (comma-separated list) python example.py --vispy-profile=SceneCanvas.draw_visual # enable all profilers python example.py --vispy-prof...
diff --git a/examples/benchmark/scene_test_1.py b/examples/benchmark/scene_test_1.py index 0170dbd7a8..8c3d0bc795 100644 --- a/examples/benchmark/scene_test_1.py +++ b/examples/benchmark/scene_test_1.py @@ -15,6 +15,7 @@ from vispy.visuals import Visual from vispy.visuals.shaders import ModularProgram, Function, Vari...
5
2
1
[{"id": "G0", "claim": "The reviewer suggested exposing Profiler usage as a @vispy_profile decorator so that anything to be profiled could simply be decorated, instead of adding a Profiler() line inside each method.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "cl...
null
vispy__vispy__925
vispy/vispy
925
defect
75b683ed080440e881a2d0066b9ce182f4217569
11bb9027d40050c7f6393e82c5ca05d0c6bfb96d
FIX: Add some information about GLIR consumer
Closes #669. This does the following: 1. gets us some information available at the GLIR consumer level for desktop 2. gives the GL version number when GL errors are thrown (e.g., no `glBindFramebuffer` when users have version < 3.0) Now we can at least query some things like: ``` canvas.context.shared.parser.capabil...
diff --git a/vispy/app/backends/_ipynb_webgl.py b/vispy/app/backends/_ipynb_webgl.py index aedc7dccca..37ff5da774 100644 --- a/vispy/app/backends/_ipynb_webgl.py +++ b/vispy/app/backends/_ipynb_webgl.py @@ -94,6 +94,7 @@ def _vispy_get_native_app(self): # ---------------------------------------------------------------...
2
2
0
[{"id": "G0", "claim": "The RuntimeError message in _get_gl_func should say \"OpenGL version is %s\" so it is clear the number is the version in use, not the version required.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The capabilities dict sh...
null
vispy__vispy__979
vispy/vispy
979
defect
2e72df7ba38e129ef3049c1e7e0e31f5a4c5c364
0cfc0c69488e6165c6c83fae8a79cd7223df4986
[WIP] ColorBar visual
closes #682 Started working on this, learnt a couple of things about vispy's model in the process. I've got the basic structure down. - [x] add a `orientation` field for `horizontal` or `vertical` - [x] add a `label` field - [x] ~~add a `ticks` field for the colorbar~~ - [ ] add an accompanying node for the SceneGrap...
diff --git a/examples/basics/visuals/colorbar_visual.py b/examples/basics/visuals/colorbar_visual.py new file mode 100644 index 0000000000..54355275fd --- /dev/null +++ b/examples/basics/visuals/colorbar_visual.py @@ -0,0 +1,85 @@ +# -*- coding: utf-8 -*- +# vispy: gallery 30 +# ----------------------------------------...
14
10
0
[{"id": "G0", "claim": "The colorbar should not do anything special to respect clim bounds; it should just plot the bar and label the start and end of it with clim[0] and clim[1].", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should not...
null
vispy__vispy__982
vispy/vispy
982
defect
bc2d3047acf26a81f1c0d8f9175324e044e89459
6881a369875b2d3f219133b89d7f03b4c1e93a55
[WIP] IPython extension mechanism for Vispy
closes #977 So, I tried to take a stab at this, and here's my first attempt. I foresee this needing a _lot_ of iteration to get right. **_Things to decide:**_ - location of the `ipython` extension file - features of the extension - different `magic` operators that this could have **_TODO:**_ - [ ] I'm not sure ho...
diff --git a/examples/ipynb/webgl_example_1.ipynb b/examples/ipynb/webgl_example_1.ipynb index d1c05755b0..88e2b6fe65 100644 --- a/examples/ipynb/webgl_example_1.ipynb +++ b/examples/ipynb/webgl_example_1.ipynb @@ -27,7 +27,9 @@ "import vispy.gloo as gloo\n", "from vispy import app\n", "from vispy.util.t...
16
10
3
[{"id": "G0", "claim": "The new IPython-extension code should get some tests, though it is not critical if that proves difficult.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The file containing the IPython-extension code should live under vispy/app r...
null
visualboyadvance-m__visualboyadvance-m__1002
visualboyadvance-m/visualboyadvance-m
1,002
defect
bad9538ed42f3a49bc4137d016f1cd18703dbe28
cd66161bf6bf3a24ec61c9b940e5891d13fc5bd3
Interframe blending changer OSD improvement
This puts the name of the interframe blending algorithm in the OSD instead of the index on activation of the `Change interframe blending` menu entry, as requested by @Squall-Leonhart. This also sets the default accelerator for this menu entry `CTRL+I`. I am also doing a minor refactor of my `strutils` library, @S...
diff --git a/po/wxvbam/wxvbam.pot b/po/wxvbam/wxvbam.pot index ec124cdc24..2cafa6a401 100644 --- a/po/wxvbam/wxvbam.pot +++ b/po/wxvbam/wxvbam.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-08-18 14:29+0000\n" +"POT-Creation-Date: 2...
11
11
2
[{"id": "G0", "claim": "The '%s' formatter must be part of the localized string in the OSD Printf calls, because not every language puts the value at the end of the sentence.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ifb_short_name cache sh...
null
visualboyadvance-m__visualboyadvance-m__1314
visualboyadvance-m/visualboyadvance-m
1,314
defect
7a0826a60ccec45bfdd0d92070bb1d8fb783a0e6
77c89ecd6b86a04c0118322eacdd9a0867d2307d
Add option to mute sound during speedup
Add core option to mute sound during speedup, implemented in the gba core. Link the option to the SDL port as well. Add the new Mute Sound option as a checkbox to the xrc for the Speedup/Turbo dialog and improve the dialog appearance. Fix the max values for the options speedup_throttle and speedup_frame_skip. ...
diff --git a/src/core/base/system.h b/src/core/base/system.h index af0e7a2612..c5a3440e61 100644 --- a/src/core/base/system.h +++ b/src/core/base/system.h @@ -59,6 +59,7 @@ extern struct CoreOptions { bool speedHack = false; bool speedup = false; bool speedup_throttle_frame_skip = false; + bool speedu...
7
4
1
[{"id": "G0", "claim": "The OPTION() member initializers on prev_frame_skip_cb_ should be moved out of the in-class definition into the constructor implementation, since this constructor is too complex for that style.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i...
null
vitalidze__chromecast-java-api-v2__16
vitalidze/chromecast-java-api-v2
16
defect
272ed17a56538e97dc7844896aff2f9d07143745
73c828146f053ae1b6db8c758bc8f76a6e90dda3
Add volume increment field
Adding additional field to the Volume object and making additional necessary changes.
diff --git a/src/main/java/su/litvak/chromecast/api/v2/ChromeCast.java b/src/main/java/su/litvak/chromecast/api/v2/ChromeCast.java index a77cadb..8c08d9f 100644 --- a/src/main/java/su/litvak/chromecast/api/v2/ChromeCast.java +++ b/src/main/java/su/litvak/chromecast/api/v2/ChromeCast.java @@ -163,14 +163,14 @@ public vo...
3
2
1
[{"id": "G0", "claim": "Volume.equals() and hashCode() should include the increment property; as written, Volumes that differ only in increment compare equal.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Leave the existing testDeserializationWithI...
null
vitalidze__chromecast-java-api-v2__77
vitalidze/chromecast-java-api-v2
77
defect
10d485cedec80e252c269cf2cb66e1ff00772c44
8fea4159feb32076392b735a0bd74c6ebecbd18e
Holmes/metadata
I'm not entirely sure that this is appropriate in this library, but it does seem like it would be a good central spot for this kind of information.
diff --git a/src/main/java/su/litvak/chromecast/api/v2/Media.java b/src/main/java/su/litvak/chromecast/api/v2/Media.java index 532accf..ccfd8a6 100644 --- a/src/main/java/su/litvak/chromecast/api/v2/Media.java +++ b/src/main/java/su/litvak/chromecast/api/v2/Media.java @@ -15,14 +15,16 @@ */ package su.litvak.chromec...
2
2
2
[{"id": "G0", "claim": "It is the wrong approach to wrap the metadata Map with a helper class; the metadata Map should be replaced with a MediaMetaData object (specific or generic based on metadataType) to fit how other user-level entities are implemented.", "category": "design", "verdict": "supported", "priority": "P1...
null
vitalik__django-ninja__1453
vitalik/django-ninja
1,453
defect
932d22b5c44c2dc46182040dba65d27a448e6051
9dfd4b86f36229c35f3718d618903f3d83f1480b
uuidstr url converter instead of shadowing django uuid
Before django ninja shadowed django's uuid to be able to to get string value from url: ```python @api.get('/some/{uuid:id}') def some(request, id): return {'id': id, 'type': str(type(id))} # type=str ``` Now added custom converted `uuidstr` ```python @api.get('/some/{uuidstr:id}') def some(reques...
diff --git a/ninja/router.py b/ninja/router.py index 6e29b0da8..6179a6037 100644 --- a/ninja/router.py +++ b/ninja/router.py @@ -320,6 +320,13 @@ def add_api_operation( include_in_schema: bool = True, openapi_extra: Optional[Dict[str, Any]] = None, ) -> None: + if "{uuid:" in path: + ...
1
1
0
[{"id": "G0", "claim": "The substring check `if \"{uuid:\" in path` should be replaced with a regex-based check, which the reviewer thinks is far better because it handles edge cases (e.g. someone writing `{uuid::`).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vitalik__django-ninja__1480
vitalik/django-ninja
1,480
defect
9e1e5f60e34375852b066759ff108c1ce76e769d
919e5d8d649134eaabbf549152099c81381101ce
fix PatchDict errors with inherited schemas #1324
## Fixed the error that occurs when using `PatchDict` with a schema that inherits from other schemas #1324 ### Problematic Scenario Consider the following schemas: ```python class SomeSchema(Schema): some_field: str class OtherSchema(SomeSchema): other_field: str ``` When using these in a rou...
diff --git a/ninja/patch_dict.py b/ninja/patch_dict.py index 4dfa24a84..19cb0527d 100644 --- a/ninja/patch_dict.py +++ b/ninja/patch_dict.py @@ -1,4 +1,12 @@ -from typing import TYPE_CHECKING, Any, Dict, Generic, Optional, Type, TypeVar +from typing import ( + TYPE_CHECKING, + Any, + Dict, + Generic, + O...
2
2
1
[{"id": "G0", "claim": "The excluded base classes should be compared as actual classes instead of their string repr, which may break in some potential new version.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The while True __base__ walk in ge...
null
vitalik__django-ninja__1684
vitalik/django-ninja
1,684
defect
b17dcec55efa094092a965c72511cbe2d5631884
0795bd05d6680fea352aa8d1256882da1cc033bb
Status return, Skip revalidation
**What** Introduces Status(status_code, body) as the explicit way to return responses with HTTP status codes from operations, replacing the undocumented tuple (status_code, body) convention. Also skips redundant re-validation when an operation returns a pydantic model instance that already matches the declared r...
diff --git a/docs/docs/guides/response/index.md b/docs/docs/guides/response/index.md index d63aa6806..00a282c85 100644 --- a/docs/docs/guides/response/index.md +++ b/docs/docs/guides/response/index.md @@ -276,7 +276,9 @@ Also, when you return the result - you have to also pass a status code to tell * An example: -...
4
2
1
[{"id": "G0", "claim": "The DeprecationWarning for tuple returns is emitted with stacklevel=1, which points users at ninja internals instead of their call site; stacklevel should be increased so the warning location is actionable.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
vite-pwa__vite-plugin-pwa__629
vite-pwa/vite-plugin-pwa
629
defect
f35a687063363d243bed65f863f2abc29605d878
2fe4511cfb3f100f17b4c3d0ba74a9ad6fd1ff16
feat!: new custom service worker build
After some digging, we found the problem in `esbuild` and the solution: - change Vite build to use `.mjs` extension instead `.js` - rename `.mjs` file to the original after the build - rename also `.mjs.map` when sourcemap file generated Thanks to @benmccann for filing the issue on Vite https://github.com/vitejs/...
diff --git a/examples/vanilla-ts-no-ip/package.json b/examples/vanilla-ts-no-ip/package.json index a7d82c2d..bb9a2d62 100644 --- a/examples/vanilla-ts-no-ip/package.json +++ b/examples/vanilla-ts-no-ip/package.json @@ -5,15 +5,18 @@ "private": true, "scripts": { "dev": "rimraf dev-dist && DEBUG=vite-plugin-p...
2
1
0
[{"id": "G0", "claim": "Put the vite build options shared by the iife and non-iife branches into a temporary object, for future maintenance.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The lodash-es orderBy import and the console.log(orderBy)...
null
vitejs__vite__19061
vitejs/vite
19,061
defect
971e3264eae732ad88a78a18649b77321f75eeab
643d1529d7427a501b85869ad947bd61d76c55d8
perf(css): only run postcss when needed
### Description <!-- What is this PR solving? Write a clear description or reference the issues it solves (e.g. `fixes #123`). What other alternatives have you explored? Are there any parts you think require more attention from reviewers? --> <!---------------------------------------------------------------------...
diff --git a/packages/vite/src/node/plugins/css.ts b/packages/vite/src/node/plugins/css.ts index 46db13a0f15f51..9a13e981fa01c8 100644 --- a/packages/vite/src/node/plugins/css.ts +++ b/packages/vite/src/node/plugins/css.ts @@ -1271,7 +1271,6 @@ async function compileCSS( ): Promise<{ code: string map?: SourceMap...
2
2
1
[{"id": "G0", "claim": "The new postcss early-return condition mishandles parser configuration — sugarss is a parser rather than a plugin, so the condition should be `lang !== 'sss' && !postcssOptions.parser && !postcssPlugins.length` instead of relying on plugin count alone.", "category": "correctness", "verdict": "su...
null
vitejs__vite__19352
vitejs/vite
19,352
defect
9fc31b6e4d4f2a5bd9711d4f84dcb55061ebead0
ff3ff710396ee97c9e7384bec661ba93137ee38c
fix: allow expanding env vars in reverse order
### Description Reverts the breaking change caused by dotenv-expand v12 upgrade by patching it. fixes https://github.com/vitejs/vite/issues/18975 <!-- What is this PR solving? Write a clear description or reference the issues it solves (e.g. `fixes #123`). What other alternatives have you explored? Are there a...
diff --git a/docs/guide/env-and-mode.md b/docs/guide/env-and-mode.md index 318bd1ea32da33..2d7c089925b6c6 100644 --- a/docs/guide/env-and-mode.md +++ b/docs/guide/env-and-mode.md @@ -77,6 +77,23 @@ If you want to customize the env variables prefix, see the [envPrefix](/config/s - Since any variables exposed to your Vi...
2
2
0
[{"id": "G0", "claim": "The migration doc's note about the dotenv-expand breaking change cites version v6.1.1, and the version number needs to be updated — patak-cat proposes setting it to 6.1.0, the version to be released, and the author supplies a suggestion with that text instead of leaving it for later.", "category...
null
vitejs__vite__20032
vitejs/vite
20,032
defect
d488efda95ff40f63684194d51858f84c3d05379
16cf576f6b154348956e59224912d45abf5daaf6
refactor!: bump required node version to 20.19+, 22.12+ and remove cjs build
### Description ~~Built on top of #19972~~ Bumps required node version to 20.19+, 22.12+ so that we can remove cjs build. ~~I haven't tested yet.~~ <!-- What is this PR solving? Write a clear description or reference the issues it solves (e.g. `fixes #123`). What other alternatives have you explored? Are th...
diff --git a/docs/guide/index.md b/docs/guide/index.md index 4afc63cc245f7e..755a056a9f104d 100644 --- a/docs/guide/index.md +++ b/docs/guide/index.md @@ -44,7 +44,7 @@ The supported template presets are: ## Scaffolding Your First Vite Project ::: tip Compatibility Note -Vite requires [Node.js](https://nodejs.org/e...
1
1
1
[{"id": "G0", "claim": "Keep the removed CJS section for a while or add JS that redirects to the old docs, because v5 and v6 warnings still link to this section's hash.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
vitejs__vite__20163
vitejs/vite
20,163
defect
0d60667e03d91cc0d48dd2cdbd8154d94e0aba74
e384e647880ce99e0a386c06421ce6461a7a0041
feat: add base option to import.meta.glob
fixes #17453 ### Description This is basically #18510 [removing the partial base plus alias support and clarifying docs](https://github.com/vitejs/vite/pull/20163/commits/e384e647880ce99e0a386c06421ce6461a7a0041). Aliases can start with any char, not only `@`. I couldn't find a good way to support them, and I thi...
diff --git a/docs/guide/features.md b/docs/guide/features.md index cf1ebb7008e8f9..3e7ec8179fc64b 100644 --- a/docs/guide/features.md +++ b/docs/guide/features.md @@ -580,6 +580,32 @@ const modules = import.meta.glob('./dir/*.js', { }) ``` +#### Base Path + +You can also use the `base` option to provide base path f...
3
2
0
[{"id": "G0", "claim": "The docs sentence should read \"a directory path\" instead of \"a dir path\" (grammar fix, given as a suggestion block).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Alias support for import.meta.glob's base option would ...
null
vitejs__vite__20260
vitejs/vite
20,260
defect
f5cc4c0ded337670b439e51bc95f173e2b5cf9ad
a4e9f6429547aeea50bee2fe3eb5ec1ddd0e3812
feat(ssr): support `import.meta.resolve` in module runner
### Description This PR adds `import.meta.resolve` support to the module runner. I recently encountered a similar problem and came up with this idea, so I implemented to see if it works 😀 This approach only works in Node as it relies on 1. module customization hooks, 2. the second parameter of `import.meta.re...
diff --git a/packages/vite/src/module-runner/importMetaResolver.ts b/packages/vite/src/module-runner/importMetaResolver.ts new file mode 100644 index 00000000000000..817ccbc8ff5800 --- /dev/null +++ b/packages/vite/src/module-runner/importMetaResolver.ts @@ -0,0 +1,51 @@ +export type ImportMetaResolver = (specifier: st...
4
3
2
[{"id": "G0", "claim": "Setting `shortCircuit: true` after already awaiting `nextResolve` is redundant, so the async/await wrapper could be eliminated by returning `nextResolve` directly, as the Node docs recommend for performance.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introdu...
null
vitejs__vite__20300
vitejs/vite
20,300
defect
083ff36ddb34cd0143589e5ebdb7ef4939ad61ab
69b499f998560146aaa38e8cd0ae28975540396b
fix(css): skip resolving resolved paths in sass
### Description sass passes resolved paths to our importer. This caused the resolver to resolve from a different path. fixes #20292 refs #20067 <!-- What is this PR solving? Write a clear description or reference the issues it solves (e.g. `fixes #123`). What other alternatives have you explored? Are there an...
diff --git a/packages/vite/src/node/plugins/css.ts b/packages/vite/src/node/plugins/css.ts index 1051e7527b42d4..4db92302a18a6e 100644 --- a/packages/vite/src/node/plugins/css.ts +++ b/packages/vite/src/node/plugins/css.ts @@ -2433,23 +2433,31 @@ const makeScssWorker = ( return unquotedUrl.startsWith('#{') ...
1
1
0
[{"id": "G0", "claim": "The text content of the new sass-at-import-replacement-alias paragraph contains a typo: `replement` should be `replacement`.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vitejs__vite__20391
vitejs/vite
20,391
defect
f2a584e67bd7eb4b3478418adc63a8ebf2fcb671
f0432f4f300112046389466963911106d4d9fe1a
fix(hmr): register css deps as `type: asset`
### Description This PR is a revised version of #18972. The dependencies registered by `this.addWatchFile` in CSS is now added to the module graph with `type: 'asset'`. In past, it was added with `type: 'js'`. This made the JS dep and non-JS dep to be mixed and caused other issues (#3929, #4127, #9512) fixes #...
diff --git a/packages/vite/src/node/plugins/css.ts b/packages/vite/src/node/plugins/css.ts index ffe4c4bf41b2bc..fe5eaf949faf34 100644 --- a/packages/vite/src/node/plugins/css.ts +++ b/packages/vite/src/node/plugins/css.ts @@ -98,7 +98,6 @@ import { addToHTMLProxyTransformResult } from './html' import { assetUrlRE,...
3
3
1
[{"id": "G0", "claim": "The new code forces a full reload on any client HTML file change, whereas previously a JS module importing the HTML raw (e.g. import html from './some-file.html?raw') could hot-update, so that case may regress.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intr...
null
vitejs__vite__20468
vitejs/vite
20,468
defect
bdde0f9e5077ca1a21a04eefc30abad055047226
dc39284b303ac3b457eb64a90a88d62851f526ef
feat(create-vite): support auto install dependencies and start dev
## Summary This PR adds support for automatically installing dependencies and starting the dev server when creating a new Vite project, rebasing the functionality from PR #12248. ## New Features A new command-line options have been added: - `-i, --immediate`: Automatically install dependencies and start dev...
diff --git a/packages/create-vite/__tests__/cli.spec.ts b/packages/create-vite/__tests__/cli.spec.ts index 473cd5184ad728..52047cd9f321f0 100644 --- a/packages/create-vite/__tests__/cli.spec.ts +++ b/packages/create-vite/__tests__/cli.spec.ts @@ -103,7 +103,7 @@ test('asks to overwrite non-empty current directory', () ...
16
14
5
[{"id": "G0", "claim": "Do not add `-i false` to the pre-existing scaffold tests.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The help test should use snapshot testing (toMatchInlineSnapshot) as suggested.", "category": "testing", "verdict": "support...
null
vitejs__vite__20483
vitejs/vite
20,483
defect
8033e5bf8d3ff43995d0620490ed8739c59171dd
f16f9b12d634df199ebee1be3aa028f0778c8174
fix(html): allow control character in input stream
### Description <!-- What is this PR solving? Write a clear description or reference the issues it solves (e.g. `fixes #123`). What other alternatives have you explored? Are there any parts you think require more attention from reviewers? --> <!---------------------------------------------------------------------...
diff --git a/packages/vite/src/node/plugins/html.ts b/packages/vite/src/node/plugins/html.ts index a11060bbdfdb32..d7cf154febdc5f 100644 --- a/packages/vite/src/node/plugins/html.ts +++ b/packages/vite/src/node/plugins/html.ts @@ -316,6 +316,9 @@ function handleParseError( // Allow <?xml> declaration and <?> emp...
3
3
2
[{"id": "G0", "claim": "Instead of suppressing the control-character error, all parse errors that are not suppressed should be reported as warnings, since the unsuppressed ones are likely user errors that can be suppressed if intended.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
vitejs__vite__20495
vitejs/vite
20,495
defect
557f797d29422027e8c451ca50dd84bf8c41b5f0
f0880df0eab077e61abb533c4edde6538bd729f9
fix(optimizer): discover correct jsx runtime during scan
### Description - Closes https://github.com/vitejs/vite/issues/19343 - Closes https://github.com/vitejs/vite-plugin-react/issues/650 The initial reproduction was for the browser, but I used a hmr module runner so that it's easier to unit test.
diff --git a/packages/vite/src/node/__tests__/fixtures/scan-jsx-runtime/entry-jsx.tsx b/packages/vite/src/node/__tests__/fixtures/scan-jsx-runtime/entry-jsx.tsx new file mode 100644 index 00000000000000..3213287f06b833 --- /dev/null +++ b/packages/vite/src/node/__tests__/fixtures/scan-jsx-runtime/entry-jsx.tsx @@ -0,0 ...
2
2
1
[{"id": "G0", "claim": "The test fixture could use the preact jsx runtime so that the `// @ts-ignore` above `export default <div>test</div>` would not be needed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "When scanning, the tsconfigRaw passe...
null
vitejs__vite__20508
vitejs/vite
20,508
defect
557f797d29422027e8c451ca50dd84bf8c41b5f0
4ccc4331d6d1e89dd27e9ecdc38d709749861d4f
feat: support files with more than 1000 lines by `generateCodeFrame`
### Description `generateCodeFrame` was generating a code frame like: ``` 1198| // 1197 1199| // 1198 1200| // 1199 | ^ 1201| // 1200 1202| // 1201 ``` for long files. <!-- What is this PR solving? Write a clear description or reference the issues it solves (e.g. `fixes #123`). What other altern...
diff --git a/packages/vite/src/node/__tests__/__snapshots__/utils.spec.ts.snap b/packages/vite/src/node/__tests__/__snapshots__/utils.spec.ts.snap index 7692ad1d7b223f..9d6679a37e09c7 100644 --- a/packages/vite/src/node/__tests__/__snapshots__/utils.spec.ts.snap +++ b/packages/vite/src/node/__tests__/__snapshots__/util...
2
2
0
[{"id": "G0", "claim": "The log10-based line-number width calculation is hard to understand; the reviewer asks for the reason for switching from the previous, simpler `String().length` approach.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The...
null
vitejs__vite__20518
vitejs/vite
20,518
defect
946831f986cb797009b8178659d2b31f570c44ff
d27fcfe3310ecfbc9936189b721e175a07d5f312
fix(css): empty CSS entry points should generate CSS files, not JS files
Fixes #19960 ## Issue When an empty CSS file is used as a rollup entry point, Vite incorrectly generates an empty JS file instead of an empty CSS file. This causes problems for build integrations that read the manifest and expect CSS entries to produce CSS assets. **Before:** ```js // vite.config.js export default {...
diff --git a/packages/vite/src/node/__tests__/plugins/empty-css.spec.ts b/packages/vite/src/node/__tests__/plugins/empty-css.spec.ts new file mode 100644 index 00000000000000..b9dd9099c4fe75 --- /dev/null +++ b/packages/vite/src/node/__tests__/plugins/empty-css.spec.ts @@ -0,0 +1,70 @@ +import { join } from 'node:path'...
2
2
0
[{"id": "G0", "claim": "Remove the unit test file packages/vite/src/node/__tests__/plugins/empty-css.spec.ts and instead add the test as a playground E2E test at playground/css/__tests__/empty-css/empty-css.spec.ts.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", ...
null
vitejs__vite__20638
vitejs/vite
20,638
defect
4851cab3ba818b5f0f82eef3796b61d4b12768f1
0ca7060628f247c9435267d8b14bc55bdae07e1a
feat(cli): add Node.js version warning for unsupported versions
Adds a warning message to the Vite CLI when running on unsupported Node.js versions, helping users identify compatibility issues early. There are many users encountering the `crypto.hash` error. close #20319 <!-- START COPILOT CODING AGENT TIPS --> --- ✨ Let Copilot coding agent [set things up for you](...
diff --git a/packages/vite/src/node/__tests__/cli.spec.ts b/packages/vite/src/node/__tests__/cli.spec.ts new file mode 100644 index 00000000000000..d183063201c1c4 --- /dev/null +++ b/packages/vite/src/node/__tests__/cli.spec.ts @@ -0,0 +1,101 @@ +import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest...
5
5
0
[{"id": "G0", "claim": "Return a boolean from checkNodeVersion so that unit tests can test the return value directly instead of mocking things.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use console.warn for the warning and put the console.warn call...
null
vitejs__vite__20640
vitejs/vite
20,640
defect
4851cab3ba818b5f0f82eef3796b61d4b12768f1
ea88fc2561adb3e82a709bbad6ee91bece287027
feat: support long lines in `generateCodeFrame`
### Description Improved `generateCodeFrame` to omit some parts if the line is long. See the snapshot output for the detailed behavior. <!-- What is this PR solving? Write a clear description or reference the issues it solves (e.g. `fixes #123`). What other alternatives have you explored? Are there any parts y...
diff --git a/packages/vite/src/node/__tests__/__snapshots__/utils.spec.ts.snap b/packages/vite/src/node/__tests__/__snapshots__/utils.spec.ts.snap index 806e9eba2be8ce..ccf43c253a01b3 100644 --- a/packages/vite/src/node/__tests__/__snapshots__/utils.spec.ts.snap +++ b/packages/vite/src/node/__tests__/__snapshots__/util...
1
1
0
[{"id": "G0", "claim": "Extract the magic number 3 (the length of the '...' ellipsis prefix) into a named constant such as ELLIPSIS_LENGTH to improve code clarity and maintainability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vitejs__vite__20644
vitejs/vite
20,644
defect
446fe83033686dd38d13b786a217b8277b5c5f09
84416d93fe4d509b6a9679b9a3b081e5d095ffd6
fix: support multiline new URL(..., import.meta.url) expressions
Fixes #20631 ## Problem Starting with Vite 7.1.0, assets referenced via multiline `new URL(..., import.meta.url)` expressions were not being bundled correctly. This regression was introduced in #20358 when hook filters were added to internal plugins. The issue occurs when code is formatted with newlines: ```js // T...
diff --git a/packages/vite/src/node/__tests__/plugins/assetImportMetaUrl.spec.ts b/packages/vite/src/node/__tests__/plugins/assetImportMetaUrl.spec.ts index 38355b38fe6b31..5f9e3a5e351304 100644 --- a/packages/vite/src/node/__tests__/plugins/assetImportMetaUrl.spec.ts +++ b/packages/vite/src/node/__tests__/plugins/asse...
3
3
2
[{"id": "G0", "claim": "The unit tests the pull request added to packages/vite/src/node/__tests__/plugins/assetImportMetaUrl.spec.ts should be removed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The multiline E2E test added to playground/assets/__te...
null
vitejs__vite__20707
vitejs/vite
20,707
defect
8099582e5364f907f2bc6cb8e2d52ae0c4d937e4
a8867cb8aa916e9346700b72770c87ae6aa5753f
feat(utils): support multiple certificates in resolveServerUrls
### Description Fixes #20681 Added support for multiple certificates in the resolveServerUrls function. Previously, only single certificates were supported, limiting HTTPS server configuration options. - Uses arraify to process certificate arrays and handle multiple certificates properly. - Added bufferify fu...
diff --git a/packages/vite/src/node/__tests__/utils.spec.ts b/packages/vite/src/node/__tests__/utils.spec.ts index 2382179292c87b..6577819b6e4644 100644 --- a/packages/vite/src/node/__tests__/utils.spec.ts +++ b/packages/vite/src/node/__tests__/utils.spec.ts @@ -21,6 +21,7 @@ import { posToNumber, processSrcSetSy...
11
9
2
[{"id": "G0", "claim": "The test named 'should handle IPv4 multiple certificates' doesn't match its implementation because it only passes a single certificate wrapped in an array, and should use an array with at least two certificates to verify hostnames are extracted from all of them.", "category": "testing", "verdict...
null
vitejs__vite__20739
vitejs/vite
20,739
defect
122bfbabeb1f095ce7cabd30893e5531e9a007c4
d73ae8e9f5698ee3408dcc9b63d517205b0d0b56
feat(create-vite): scaffold with rolldown-vite
### Description Added a prompt to use rolldown-vite so that the exposure of rolldown-vite increases a bit more. <!-- What is this PR solving? Write a clear description or reference the issues it solves (e.g. `fixes #123`). What other alternatives have you explored? Are there any parts you think require more atten...
diff --git a/packages/create-vite/src/index.ts b/packages/create-vite/src/index.ts index 385734eda1898a..4e5b7ed66fb540 100755 --- a/packages/create-vite/src/index.ts +++ b/packages/create-vite/src/index.ts @@ -499,6 +499,22 @@ async function init() { process.exit(status ?? 0) } + const useRolldownVite = arg...
6
2
1
[{"id": "G0", "claim": "Disabling the rolldown-vite prompt whenever `--template` is passed is a hidden criterion that silently skips the option for `--template` invocations (including `pnpm create vite --template vue` without a target dir), and an explicit `--rolldown` flag plus non-interactive (`--no-interactive`) han...
null
vitejs__vite__20761
vitejs/vite
20,761
defect
a679a643404c95556dda2670643e14eca9c585bd
3623a6f0db0a88a87155cc01f5f7f818b7ab82d3
fix(esbuild): inject esbuild helper functions with minified `$` variables correctly
### Description Hello! I had some trouble with compilation issues with a generated UMD file. After combing through the minified file I realised that "use strict" was being injected in unexpected places. Making pretty much any functional change, even e.g removing log lines, to the pre-transformed files would r...
diff --git a/packages/vite/src/node/__tests__/plugins/esbuild.spec.ts b/packages/vite/src/node/__tests__/plugins/esbuild.spec.ts index 14e953d24be786..7f5e90db5f68fd 100644 --- a/packages/vite/src/node/__tests__/plugins/esbuild.spec.ts +++ b/packages/vite/src/node/__tests__/plugins/esbuild.spec.ts @@ -2,6 +2,7 @@ impor...
2
1
0
[{"id": "G0", "claim": "When a string pattern is used with String.replace, `$` sequences in minified variable names could be misinterpreted as special replacement patterns, so the search should be a RegExp literal instead.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"...
null
vitejs__vite__20787
vitejs/vite
20,787
defect
cc54e294746d3eac868de96f85d98dd0fa0cda11
d42c470e6bf7efc34c19fe22b7541b4d5c86e732
fix(build): fix ssr environment `emitAssets: true` when `sharedConfigBuild: true`
### Description - Closes https://github.com/vitejs/vite/issues/20774 I'm not entirely sure why this only occurs with `sharedConfigBuild`, but for the back compat purpose explained in the comment, I think it's safe to taking `||` of all options.
diff --git a/packages/vite/src/node/__tests__/build.spec.ts b/packages/vite/src/node/__tests__/build.spec.ts index f36811178cc238..0c2edac753fdff 100644 --- a/packages/vite/src/node/__tests__/build.spec.ts +++ b/packages/vite/src/node/__tests__/build.spec.ts @@ -865,6 +865,73 @@ test.for([true, false])( }, ) +tes...
1
1
1
[{"id": "G0", "claim": "The backward-compat assignment that syncs build.ssrEmitAssets/emitAssets into the ssr environment only makes sense when sharedConfigBuild is false, so the code should skip it when sharedConfigBuild is enabled instead of using ||=", "category": "correctness", "verdict": "supported", "priority": "...
null
vitejs__vite__20797
vitejs/vite
20,797
defect
6f8a5046ff461ede2254a1a138a069b90aeec766
62481ed9e41385799b824230a9261a9bc00dd579
feat(create-vite): add `--interactive` / `--no-interactive`
### Description In the last meeting, we decided to add these flags to solve the problem mentioned at https://github.com/vitejs/vite/pull/20739#discussion_r2346018696. refs #20739, #20468 <!-- What is this PR solving? Write a clear description or reference the issues it solves (e.g. `fixes #123`). What other ...
diff --git a/packages/create-vite/__tests__/cli.spec.ts b/packages/create-vite/__tests__/cli.spec.ts index 473cd5184ad728..6f4c96a6954bce 100644 --- a/packages/create-vite/__tests__/cli.spec.ts +++ b/packages/create-vite/__tests__/cli.spec.ts @@ -55,28 +55,33 @@ beforeAll(() => clearAnyPreviousFolders()) afterEach(() ...
1
1
0
[{"id": "G0", "claim": "The help message line should read \"If it is running in TTY, the CLI will start in interactive mode.\" or, shorter, \"When running in TTY, the CLI will start in interactive mode.\" instead of \"If it is run in TTY\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope...
null
vitejs__vite__20847
vitejs/vite
20,847
defect
788a183afce57de13f5656f0cf42cdf6fdc3ebaa
d44f8a9f7c006e381c6d68a0ddea992e03d03a45
fix(css): improve url escape characters handling
### Description #### What I did? improve CSS URL parsing and replacement logic in Vite - update `cssUrlRE` regex to fully capture URLs containing escaped characters - add unescape operation in `doUrlReplace` to remove backslashes from captured URLs - enhance quote-handling in `doUrlReplace`, automatically wrapping...
diff --git a/packages/vite/src/node/__tests__/plugins/css.spec.ts b/packages/vite/src/node/__tests__/plugins/css.spec.ts index 380358d875d090..b0707b7a019703 100644 --- a/packages/vite/src/node/__tests__/plugins/css.spec.ts +++ b/packages/vite/src/node/__tests__/plugins/css.spec.ts @@ -56,6 +56,28 @@ describe('search c...
5
5
0
[{"id": "G0", "claim": "The comment explaining escape removal is a little long and should be reformatted (suggested: split it over two lines).", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Asks whether there is a specific set of characters to ski...
null
vitejs__vite__20924
vitejs/vite
20,924
defect
3a92bc79b306a01b8aaf37f80b2239eaf6e488e7
e2e0a6b007f610ae756e96fcfd0ce369ba5b672d
perf(module-runner): add client-side builtin module check
### Description Fixes #20840 This PR moves the [isBuiltin](cci:1://file:///Users/leejihoon/Documents/open-source/vite/packages/vite/src/node/utils.ts:110:0-117:1) check from the server side to the module runner side to avoid unnecessary server round-trips when importing builtin modules (e.g., `node:fs`, `node:pat...
diff --git a/packages/vite/src/module-runner/runner.ts b/packages/vite/src/module-runner/runner.ts index 6230d33f16ab5a..38f2fea1b92de5 100644 --- a/packages/vite/src/module-runner/runner.ts +++ b/packages/vite/src/module-runner/runner.ts @@ -15,7 +15,12 @@ import type { ResolvedResult, SSRImportMetadata, } from...
3
3
1
[{"id": "G0", "claim": "The runner should ask the server side for builtins via this.transport.invoke instead of receiving a builtins option in ModuleRunnerOptions, so that users won't have to set the option.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
vitejs__vite__21001
vitejs/vite
21,001
defect
bb85bd751e4568c707612b708deaba67f8af4ca3
0e5fdb03fe56c5e557f5472fa54099b9010f293b
fix(optimizer): externalize virtual modules for html like files
Fix issue #14151: Call `shouldExternalizeDep` for virtual modules in dep-scan fixes #14151 close #14206 - [x] Explore repository structure and understand the issue - [x] Build the vite package successfully - [x] Analyze the scan.ts file and identify the fix location - [x] Implement the fix to call `shouldExte...
diff --git a/.gitignore b/.gitignore index f70e82e087c59d..e263bbf2c047ea 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ playground-temp temp TODOs.md .eslintcache +:GITHUB_ENV diff --git a/packages/vite/src/node/optimizer/scan.ts b/packages/vite/src/node/optimizer/scan.ts index 28ccd55ca34feb..086434b4b...
3
3
2
[{"id": "G0", "claim": "The fixture should inline the module script into index.html instead of referencing a separate virtual-module.js file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The stray ':GITHUB_ENV' entry should be removed from .gi...
null
vitejs__vite__21093
vitejs/vite
21,093
defect
8e67ba7a16f04e0d40c3f86bf4bf20e3ce493c12
b66931643265b2abc66f5e253d911e3c500156eb
fix(hmr): trigger prune event when last import is removed (#20781)
Trigger prune event when the last import of a module is removed. Fixes #20781 Since `imports.length` is `0`, there are no imported, accepted, or statically imported modules. Therefore, `moduleGraph.updateModuleInfo` is called with empty sets to get the `prunedImports` and trigger the event.
diff --git a/packages/vite/src/node/plugins/importAnalysis.ts b/packages/vite/src/node/plugins/importAnalysis.ts index 63cb172d052d06..340d522558b9ed 100644 --- a/packages/vite/src/node/plugins/importAnalysis.ts +++ b/packages/vite/src/node/plugins/importAnalysis.ts @@ -296,7 +296,17 @@ export function importAnalysisPl...
2
1
1
[{"id": "G0", "claim": "The removed `importerModule.isSelfAccepting = false` line should be kept, since dropping it may leave the module's self-accepting state unset; the reviewer asks for the reason it was removed.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1"...
null
vitejs__vite__21166
vitejs/vite
21,166
defect
df5a30d2690a2ebc4824a79becdcef30538dc602
e3f6fd4f0465068ab46bf21353e05b5411b363b8
fix: shortcuts not rebound after server restart
Fixes a regression from #21103 where shortcuts stop working after `server.restart()`. When the dev server restarts, the readline interface is preserved in the new server but it stops responding to input as it has been closed when the old server was closed. This clears the closed readline reference so a fresh instanc...
diff --git a/packages/vite/src/node/__tests__/shortcuts.spec.ts b/packages/vite/src/node/__tests__/shortcuts.spec.ts index c2169018c42cc2..90a22f56f8f88d 100644 --- a/packages/vite/src/node/__tests__/shortcuts.spec.ts +++ b/packages/vite/src/node/__tests__/shortcuts.spec.ts @@ -67,4 +67,49 @@ describe('bindCLIShortcuts...
1
1
0
[{"id": "G0", "claim": "The bindCLIShortcuts call in restartServer should be wrapped across lines so the comment sits directly above the true third argument, making clear which parameter it refers to.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vitejs__vite__21268
vitejs/vite
21,268
defect
c75117213cb1d2d13554fbc26a75e8df191c27eb
4b9434bb9f7571d8c8dbc71fb23f746a39799870
feat: introduce v2 native plugins and enable it by default
The `v2` update improves `nativeDynamicImportVarsPlugin` and `nativeImportGlobPlugin`. These changes fix the execution order mismatch between `transform` and `transform_ast` hooks, which previously prevented user plugins from running after built-in plugins even with `post` enforcement, making it impossible to access th...
diff --git a/packages/vite/src/node/config.ts b/packages/vite/src/node/config.ts index 30af7eb433ea95..67c906f9c32343 100644 --- a/packages/vite/src/node/config.ts +++ b/packages/vite/src/node/config.ts @@ -558,12 +558,13 @@ export interface ExperimentalOptions { * * - 'resolver' (deprecated, will be removed in...
1
1
1
[{"id": "G0", "claim": "Add a test that ensures the generated imports from the native v2 glob/dynamic-import transformations are visible to user plugins.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
vitejs__vite__21312
vitejs/vite
21,312
defect
e6156f71f0e21f4068941b63bcc17b0e9b0a7455
b117a61e0e4a18c786d45ce4560adac15162b18e
fix: detect `import.meta.resolve` when formatted across multiple lines
- [x] Understand the current issue with `import.meta.resolve` detection - [x] Replace `code.includes('import.meta.resolve')` with regex that handles whitespace - [x] Create test case for multi-line formatted `import.meta.resolve` - [x] Test the fix manually - [x] Run linter and formatter - [x] Run broader test suite to...
diff --git a/packages/vite/src/node/__tests__/config.spec.ts b/packages/vite/src/node/__tests__/config.spec.ts index d886a35053ff33..5427a653c4d459 100644 --- a/packages/vite/src/node/__tests__/config.spec.ts +++ b/packages/vite/src/node/__tests__/config.spec.ts @@ -1175,6 +1175,21 @@ describe('loadConfigFromFile', () ...
2
2
0
[{"id": "G0", "claim": "The new test should reuse the existing `import-meta` fixture directory instead of adding a new one, and add `// prettier-ignore` to the multi-line `import.meta.resolve` statement so the line break is kept.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intro...
null
vitejs__vite__21381
vitejs/vite
21,381
defect
964c718a382ff46ec1f906d7d6bc3f135a6dcd3f
46c866a6243152967a3e73644884bcae6c311bd3
feat(dev): detect port conflicts on wildcard hosts
## What is this PR solving? When another dev server listens on `0.0.0.0:3000`, Vite doesn't detect the conflict and binds to `localhost:3000`. Both servers bind to the same port, causing unexpected behavior. This happens because Node.js treats `0.0.0.0` and `localhost` as different addresses, so no `EADDRINUSE` e...
diff --git a/packages/vite/src/node/__tests__/http.spec.ts b/packages/vite/src/node/__tests__/http.spec.ts new file mode 100644 index 00000000000000..cc37c28e5e65f0 --- /dev/null +++ b/packages/vite/src/node/__tests__/http.spec.ts @@ -0,0 +1,188 @@ +import http from 'node:http' +import { afterEach, describe, expect, te...
2
1
1
[{"id": "G0", "claim": "The port-conflict implementation won't work when localhost:5173 and 0.0.0.0:5174 are both listened, because the wildcard check is not re-run after the EADDRINUSE fallback moves to the next port.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id":...
null
vitejs__vite__21434
vitejs/vite
21,434
defect
d31fc6685b4dde33062bf4dfe46e0502de4e1449
aa501eae0040d73ba694b1e6f2f8ede47ea3ef7e
fix(optimizer): map relative `new URL` paths to correct relative file location
<!-- - What is this PR solving? Write a clear and concise description. - Reference the issues it solves (e.g. `fixes #123`). - What other alternatives have you explored? - Are there any parts you think require more attention from reviewers? Also, please make sure you do the following: - Read the Contributing ...
diff --git a/packages/vite/src/node/__tests__/plugins/import.spec.ts b/packages/vite/src/node/__tests__/plugins/import.spec.ts index ac5b94c9be9624..6bdd97a5236bbe 100644 --- a/packages/vite/src/node/__tests__/plugins/import.spec.ts +++ b/packages/vite/src/node/__tests__/plugins/import.spec.ts @@ -79,13 +79,13 @@ descr...
6
5
3
[{"id": "G0", "claim": "The replacement should not use absolute FS_PREFIX paths, because that makes the optimized cache depend on the project path; a path resolved relative to the output file location should be generated instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
vitejs__vite__21652
vitejs/vite
21,652
defect
44b5bdfcf2b2c1b73563ed0526c48584b756360f
ed4655797a3eecfafc5f9dd2241d14d11a059fea
fix(dev): return "502 Bad Gateway" on proxy failures instead of 500
## Plan: Return 502 instead of 500 when failing to proxy requests - [x] Understand the current proxy error handling in `packages/vite/src/node/server/middlewares/proxy.ts` - [x] Change HTTP status code from 500 to 502 for proxy errors (line 109) - [x] Create test to verify the 502 status code is returned for proxy err...
diff --git a/packages/vite/src/node/server/middlewares/proxy.ts b/packages/vite/src/node/server/middlewares/proxy.ts index 7c6d2b26fbd4b0..aade3270ff29fc 100644 --- a/packages/vite/src/node/server/middlewares/proxy.ts +++ b/packages/vite/src/node/server/middlewares/proxy.ts @@ -106,7 +106,7 @@ export function proxyMidd...
2
2
0
[{"id": "G0", "claim": "The playground proxy-error test's proxy target should be changed from 'http://localhost:9608' to 'http://foo.invalid', a host reserved for testing that is guaranteed never to resolve.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
vitejs__vite__21697
vitejs/vite
21,697
defect
8e360af3d7a5f795441da7ecc2172862e1eb3df7
9f768c59b9bfbcc3c8db7fc059c976a7c2b64263
fix(css): apply `server.origin` to public file URLs in CSS (fix #18457)
Fixes https://github.com/vitejs/vite/issues/18457 Vite's CSS plugin rewrites url() references during dev by resolving them to absolute URLs with the dev server's origin hardcoded. The `server.origin` config exists but is only applied in some code paths (module assets in templates and JS imports) but not in others (C...
diff --git a/packages/vite/src/node/__tests__/plugins/css.spec.ts b/packages/vite/src/node/__tests__/plugins/css.spec.ts index e6446e5e9caf38..932ccc2b3a80ee 100644 --- a/packages/vite/src/node/__tests__/plugins/css.spec.ts +++ b/packages/vite/src/node/__tests__/plugins/css.spec.ts @@ -1,3 +1,5 @@ +import fs from 'node...
1
1
0
[{"id": "G0", "claim": "Would you add a test to the playground/backend-integration playground instead of the unit test in css.spec.ts, and also add tests for non-public assets.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vitejs__vite__21800
vitejs/vite
21,800
defect
eaa4352af8f8658e3a10a9945ad9c227fcb2f28a
b5a6019e4d2caa452975a1a97c7012932a1c9e5f
fix: use precise regexes for transform filter to avoid backtracking
## What this PR solves Fixes #21696 The `filter.code` regexes in `workerImportMetaUrl`, `assetImportMetaUrl`, and `rolldownDepPlugin` used `.+` (or `.+?`) with the `/s` flag. On large files (5MB+) containing `new URL(...)` without `import.meta.url`, this caused catastrophic backtracking — leading to "Maximum call sta...
diff --git a/packages/vite/src/node/__tests__/filterRegex.spec.ts b/packages/vite/src/node/__tests__/filterRegex.spec.ts new file mode 100644 index 00000000000000..f514212c69a2c1 --- /dev/null +++ b/packages/vite/src/node/__tests__/filterRegex.spec.ts @@ -0,0 +1,42 @@ +import { describe, expect, test } from 'vitest' +i...
4
3
0
[{"id": "G0", "claim": "The comments in packages/vite/src/node/__tests__/filterRegex.spec.ts add little value since the test names are already descriptive and can be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The handler-level regex...
null
vitejs__vite__21963
vitejs/vite
21,963
defect
412741b65b9718a09238fc80dc0cc48bf0885196
83db1ea32a0024eb7d414389ba86707b6844838d
fix(ssr): use browser platform for webworker SSR builds (fix #21969)
## Description `resolveBuildEnvironmentOptions()` defaults all server builds to `rolldownOptions.platform: 'node'`, including when `ssr.target` is `'webworker'`. This causes Rolldown to emit `createRequire(import.meta.url)` for CJS interop, which crashes on Cloudflare Workers where `import.meta.url` is `undefined`. V...
diff --git a/packages/vite/src/node/build.ts b/packages/vite/src/node/build.ts index 9751630d627ef8..b4cece3f386c02 100644 --- a/packages/vite/src/node/build.ts +++ b/packages/vite/src/node/build.ts @@ -24,6 +24,7 @@ import type { WatcherOptions, } from 'rolldown' import { viteLoadFallbackPlugin as nativeLoadFallb...
4
3
0
[{"id": "G0", "claim": "The `expect(workerContent).not.toContain('createRequire')` assertion is a coarse smoke test, since a comment or minified alias could still contain that substring, so it works as a regression guard but does not prove the helper is gone.", "category": "testing", "verdict": "uncertain", "priority":...
null
vitejs__vite__22150
vitejs/vite
22,150
defect
17330d2b9e132460f194d6d4b547cfee7e25c788
1f399a1d23936cf230d2e2c5ab8cc3d4f9488605
fix: allow binding when strictPort is set but wildcard port is in use
When `server.host` is set to a specific IP (e.g. `127.0.20.4`) and `strictPort: true`, Vite's port availability pre-check tests `0.0.0.0` and `::`. If any service holds the same port on a different interface, this wildcard check fails and Vite incorrectly aborts — even when the configured `host:port` is free. ## Chang...
diff --git a/packages/vite/src/node/__tests__/http.spec.ts b/packages/vite/src/node/__tests__/http.spec.ts index ec9d8d29245a7e..5b4ca3446f2f11 100644 --- a/packages/vite/src/node/__tests__/http.spec.ts +++ b/packages/vite/src/node/__tests__/http.spec.ts @@ -213,4 +213,128 @@ describe('port detection', () => { `...
1
1
1
[{"id": "G0", "claim": "The wildcard-conflict bypass in httpServerStart should be gated on `strictPort` instead of `isSpecificIpHost`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
vitejs__vite__22196
vitejs/vite
22,196
defect
6baf587255936e91348cbe624caefd10e8c607ab
4d0ad64e66bb11869c1e28e89ec02ae3fb9f0025
test(glob-import): add follow symlinks test
Related to https://github.com/rolldown/rolldown/issues/8980 and https://github.com/rolldown/rolldown/pull/9000 I believe this is a missing test case on the Vite side, and we should add it there.
diff --git a/playground/glob-import/__tests__/glob-import.spec.ts b/playground/glob-import/__tests__/glob-import.spec.ts index 797665deed606a..afebef8b8e819b 100644 --- a/playground/glob-import/__tests__/glob-import.spec.ts +++ b/playground/glob-import/__tests__/glob-import.spec.ts @@ -236,6 +236,15 @@ if (!isBuild) { ...
4
4
1
[{"id": "G0", "claim": "The new test should also assert that a module imported through the symlinked glob path is the same reference as the same file imported via its original path.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The playground test setu...
null
vitejs__vite__22208
vitejs/vite
22,208
defect
7706a7d8c94c7a3d9463d1de856b7b583f479552
c2ceed43da980536ce774318f1cd86bf27ffbb6b
fix(optimizer): handle more chars that will be sanitized
Since `$` is also sanitized by Rolldown by [`sanitizeFileName`](https://rolldown.rs/reference/OutputOptions.sanitizeFileName#sanitizefilename), the filename does not contain `$`. #21886 fixed a similar issue for `+`, but it was not a general fix. In this PR, I've rewritten the `flattenId` function to escape any charac...
diff --git a/packages/vite/src/node/utils.ts b/packages/vite/src/node/utils.ts index a7390b26668f61..bc44927b69e0f3 100644 --- a/packages/vite/src/node/utils.ts +++ b/packages/vite/src/node/utils.ts @@ -66,19 +66,21 @@ export const createFilter = _createFilter as ( export { withFilter } from 'rolldown/filter' -con...
5
4
3
[{"id": "G0", "claim": "`.replace('_', '__')` replaces only the first occurrence of underscore instead of all occurrences, breaking the escaping scheme (e.g. `foo_bar_baz` becomes `foo__bar_baz`), so all underscores should be escaped (e.g. with `.replace(/_/g, '__')`).", "category": "correctness", "verdict": "supported...
null
vitessio__vitess__16844
vitessio/vitess
16,844
defect
766bc64cdddeb4f4e213ba2cbc99bb7e19bde7e2
edc8c612ca524edf8d2e4a6279a80953cc011ed6
Making Reshard work smoothly with Atomic Transactions
<!-- Thank you for your contribution to the Vitess project. How to contribute: https://vitess.io/docs/contributing/ Please first make sure there is an open Issue to discuss the feature/fix suggested in this PR. If this is a new feature, please mark the Issue as "RFC". --> <!-- if this PR is Work in...
diff --git a/go/test/endtoend/cluster/cluster_process.go b/go/test/endtoend/cluster/cluster_process.go index 95995903a83..bf810a5a319 100644 --- a/go/test/endtoend/cluster/cluster_process.go +++ b/go/test/endtoend/cluster/cluster_process.go @@ -378,103 +378,9 @@ func (cluster *LocalProcessCluster) startKeyspace(keyspac...
8
7
0
[{"id": "G0", "claim": "Add a const `TwoPCAllowed_TypeLen` at the end of the TwoPCAllowed enum and use it to initialize `te.twopcAllowed` instead of the hardcoded two-element slice literal.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The addS...
null
vitessio__vitess__17004
vitessio/vitess
17,004
defect
7eaf23646a86430d655082165c7ff7d3a5788106
deb6975fee81833491b7749b9380cffa077338c1
fix: Infinite logs in case of non-existent stream logs
<!-- Thank you for your contribution to the Vitess project. How to contribute: https://vitess.io/docs/contributing/ Please first make sure there is an open Issue to discuss the feature/fix suggested in this PR. If this is a new feature, please mark the Issue as "RFC". --> <!-- if this PR is Work in Pro...
diff --git a/go/vt/vtctl/workflow/server.go b/go/vt/vtctl/workflow/server.go index c247ed91e9a..4cc5bc9363d 100644 --- a/go/vt/vtctl/workflow/server.go +++ b/go/vt/vtctl/workflow/server.go @@ -863,8 +863,8 @@ ORDER BY if stream.Id > streamLog.StreamId { s.Logger().Warningf("Found stream log for nonexiste...
1
1
0
[{"id": "G0", "claim": "A brief comment explaining what the new unit test covers should be added, since it is not obvious from the test's name.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vitessio__vitess__17013
vitessio/vitess
17,013
defect
e881b9f36d9adb497cd6bd8304bb3e2fa6fd69b9
c9fce8ad99887af091025cc0c4feb93bdd2c61ad
Fix to prevent stopping buffering prematurely
<!-- Thank you for your contribution to the Vitess project. How to contribute: https://vitess.io/docs/contributing/ Please first make sure there is an open Issue to discuss the feature/fix suggested in this PR. If this is a new feature, please mark the Issue as "RFC". --> <!-- if this PR is Work in Pro...
diff --git a/go/test/endtoend/reparent/newfeaturetest/reparent_test.go b/go/test/endtoend/reparent/newfeaturetest/reparent_test.go index ad798d61792..4d23aabf1a0 100644 --- a/go/test/endtoend/reparent/newfeaturetest/reparent_test.go +++ b/go/test/endtoend/reparent/newfeaturetest/reparent_test.go @@ -19,7 +19,10 @@ pack...
3
3
1
[{"id": "G0", "claim": "The new end-to-end test only runs SELECT queries during the failover, and since SELECTs are not buffered and do not fail on a read-only primary, DML queries are needed for the test to actually exercise buffering.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introd...
null
vitessio__vitess__17031
vitessio/vitess
17,031
defect
ba129c7d04e04859f8a5e859aa5f34c85dfa285f
037768ecf42d7f46ea8902662e48b4efd2676f94
Fix Errant GTID detection logic in `SetReplicationSource`
<!-- Thank you for your contribution to the Vitess project. How to contribute: https://vitess.io/docs/contributing/ Please first make sure there is an open Issue to discuss the feature/fix suggested in this PR. If this is a new feature, please mark the Issue as "RFC". --> <!-- if this PR is Work in Pro...
diff --git a/go/mysql/replication/mysql56_gtid_set.go b/go/mysql/replication/mysql56_gtid_set.go index 48241215c10..77142272c6a 100644 --- a/go/mysql/replication/mysql56_gtid_set.go +++ b/go/mysql/replication/mysql56_gtid_set.go @@ -468,7 +468,7 @@ func (set Mysql56GTIDSet) SIDBlock() []byte { } // ErrantGTIDsOnRep...
2
1
0
[{"id": "G0", "claim": "The added comment should read \"If we don't have the server UUID, we can't run errant GTID detection.\" instead of the grammatically wrong \"so\" wording.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The errant-GTID logic...
null
vitessio__vitess__17124
vitessio/vitess
17,124
defect
ffaeba0c5f973bc8894b5523d3d1fc5504bb41f2
7e7cf3f278f3d6c724a211dc031d0670c6dc5dfe
Move to native sqlite3 queries
We don't have to support anything but sqlite3 here, so let's use the proper sqlite syntax. This allows removing the find / replace logic and regexp matching which reduces vtorc CPU usage significantly. @timvaillancourt I was also tempted I guess to remove a bunch of code, but we can go for your PR in #17120. Opened ...
diff --git a/go/vt/external/golib/sqlutils/sqlite_dialect.go b/go/vt/external/golib/sqlutils/sqlite_dialect.go deleted file mode 100644 index 11f0e531367..00000000000 --- a/go/vt/external/golib/sqlutils/sqlite_dialect.go +++ /dev/null @@ -1,134 +0,0 @@ -/* - Copyright 2017 GitHub Inc. - - Licensed under the Apache ...
2
1
1
[{"id": "G0", "claim": "The strftime('%%s', 'now') in SnapshotTopologies needs to be a single %s, since sqlite renders the doubled %%s literally instead of as the unix timestamp.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The 'return err' added ...
null
vitessio__vitess__17230
vitessio/vitess
17,230
defect
3499a77294a36bc61a7f139dd5737194312f9f23
c676499ae20fe24310dac12fcb82ccfbf4ab9124
Fix deadlock in messager and health streamer
<!-- Thank you for your contribution to the Vitess project. How to contribute: https://vitess.io/docs/contributing/ Please first make sure there is an open Issue to discuss the feature/fix suggested in this PR. If this is a new feature, please mark the Issue as "RFC". --> <!-- if this PR is Work in Pro...
diff --git a/go/vt/vttablet/tabletserver/health_streamer.go b/go/vt/vttablet/tabletserver/health_streamer.go index cfc5ea5e974..bed327a17e0 100644 --- a/go/vt/vttablet/tabletserver/health_streamer.go +++ b/go/vt/vttablet/tabletserver/health_streamer.go @@ -66,11 +66,18 @@ type healthStreamer struct { degradedThreshol...
2
1
0
[{"id": "G0", "claim": "The new TestDeadlockBwCloseAndSchemaChange does not seem to be as useful as one would hope because it did not reproduce any failures for the reviewer, who notes it is not easy to trigger the deadlock.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id...
null
vitessio__vitess__17772
vitessio/vitess
17,772
defect
01b3e02c2b0734e1d36962c42e209e4bbce8e69c
e6da4ae6f2e1831ec5748bf2f62d59d3007201ed
VReplication Atomic Copy Workflows: fix bugs around concurrent inserts
## Description Setting `--vreplication-parallel-insert-workers` greater than 1, had not been tested earlier for atomic copies. When a user attempted to do it, it caused a panic in `vttablet`. There were two fixes needed here: 1. The response needed to be cloned before passing it to the concurrent workers. This ha...
diff --git a/go/test/endtoend/vreplication/fk_test.go b/go/test/endtoend/vreplication/fk_test.go index 15664be51d9..823382bee84 100644 --- a/go/test/endtoend/vreplication/fk_test.go +++ b/go/test/endtoend/vreplication/fk_test.go @@ -39,9 +39,11 @@ const testWorkflowFlavor = workflowFlavorVtctld // It inserts initial d...
1
1
0
[{"id": "G0", "claim": "Now that the bug is known, the code can be simplified by cloning into resp itself (resp = resp.CloneVT() when parallelism > 1) and building the task from resp.Rows/resp.Lastpk instead of introducing the extra resp2 variable.", "category": "maintainability", "verdict": "supported", "priority": "P...
null
vitessio__vitess__17821
vitessio/vitess
17,821
defect
0c6ad63126012a7bb3daa6b86b2736dd30e65a9d
f5fdb7ceefdc4124361b7a4cb0554dded6e855ac
Increase health check channel buffer
<!-- Thank you for your contribution to the Vitess project. How to contribute: https://vitess.io/docs/contributing/ Please first make sure there is an open Issue to discuss the feature/fix suggested in this PR. If this is a new feature, please mark the Issue as "RFC". --> <!-- if this PR is Work in Pro...
diff --git a/go/vt/discovery/healthcheck.go b/go/vt/discovery/healthcheck.go index 2f270bd7518..f4d75d2bb07 100644 --- a/go/vt/discovery/healthcheck.go +++ b/go/vt/discovery/healthcheck.go @@ -69,6 +69,8 @@ var ( hcPrimaryPromotedCounters = stats.NewCountersWithMultiLabels("HealthcheckPrimaryPromoted", "Primary promo...
4
3
0
[{"id": "G0", "claim": "The drop handling in broadcast should be implemented as PlanetScale did: increment the counter and log a Warningf that identifies the tablet, instead of an Errorf without tablet information.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":...
null
vitessio__vitess__17962
vitessio/vitess
17,962
defect
99479bd791ebd2e6d499db214e509e6222e1031d
9e565bf3b4f5746dc8e8b44ea6760dbb7f210d70
vtadmin: allow cluster IDs with underscores by sanitizing resolver scheme
## Description vtadmin’s discovery resolver was treating the cluster ID as the URL scheme when dialing vtgate and vtctld, which breaks if the cluster ID contains characters that are not valid in a URI scheme (e.g. `_`). This manifested as vtadmin-api failing to connect to vtgate/vtctld when a cluster ID such as `loc...
diff --git a/go/test/endtoend/cluster/cluster_process.go b/go/test/endtoend/cluster/cluster_process.go index dd5029f91d3..9c308ce8f56 100644 --- a/go/test/endtoend/cluster/cluster_process.go +++ b/go/test/endtoend/cluster/cluster_process.go @@ -1324,6 +1324,7 @@ func (cluster *LocalProcessCluster) NewVTAdminProcess() {...
2
2
0
[{"id": "G0", "claim": "sanitizeScheme could be written more succinctly, using strings.Map with unicode.IsLetter/IsDigit instead of the manual rune loop and byte comparisons.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The inline anonymous fu...
null
vitessio__vitess__18098
vitessio/vitess
18,098
defect
7736d86a1f6a7006ec0c4ec187865184e3d3221b
20da6c9114c7870aa18a550a3bc0398920a1e22f
Add code to clear orphaned files for a deleted keyspace
<!-- Thank you for your contribution to the Vitess project. How to contribute: https://vitess.io/docs/contributing/ Please first make sure there is an open Issue to discuss the feature/fix suggested in this PR. If this is a new feature, please mark the Issue as "RFC". --> <!-- if this PR is Work in Pro...
diff --git a/go/vt/topo/keyspace.go b/go/vt/topo/keyspace.go index 710bbee0653..c885dad61a7 100755 --- a/go/vt/topo/keyspace.go +++ b/go/vt/topo/keyspace.go @@ -393,6 +393,41 @@ func (ts *Server) DeleteKeyspace(ctx context.Context, keyspace string) error { return nil } +// DeleteOrphanedKeyspaceFiles clears the re...
1
1
0
[{"id": "G0", "claim": "The test case names in TestDeleteOrphanedKeyspaceFiles say \"residual\" where the feature and the test function say \"orphaned\"; rename them to \"orphaned\" for consistency.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vitessio__vitess__18310
vitessio/vitess
18,310
defect
cec7812fc597817dead7c92987db3bc918e10605
be5fbe0ac9f6e80ca50d290f2d1f6a21278045e0
fix version issue when using --mysql-shell-speedup-restore=true
<!-- Thank you for your contribution to the Vitess project. How to contribute: https://vitess.io/docs/contributing/ Please first make sure there is an open Issue to discuss the feature/fix suggested in this PR. If this is a new feature, please mark the Issue as "RFC". --> <!-- if this PR is Work in Pro...
diff --git a/go/test/endtoend/backup/vtctlbackup/backup_utils.go b/go/test/endtoend/backup/vtctlbackup/backup_utils.go index 7f519eb4250..b722065d099 100644 --- a/go/test/endtoend/backup/vtctlbackup/backup_utils.go +++ b/go/test/endtoend/backup/vtctlbackup/backup_utils.go @@ -167,6 +167,7 @@ func LaunchCluster(setupTyp...
1
1
0
[{"id": "G0", "claim": "The comment '// it should error out if we change to an older version' inside the test loop is no longer accurate now that the test has been restructured into a table-driven form.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vitessio__vitess__18475
vitessio/vitess
18,475
defect
1b1f69b4bd3dacf280ba038978088c60c9fe89b7
c52e79707cc9f4ba9b35244402feca6fcf2e7ff5
Avoid terminating atomic copy workflows on error if they are out of copy phase
<!-- Thank you for your contribution to the Vitess project. How to contribute: https://vitess.io/docs/contributing/ Please first make sure there is an open Issue to discuss the feature/fix suggested in this PR. If this is a new feature, please mark the Issue as "RFC". --> <!-- if this PR is Work in Pro...
diff --git a/go/test/endtoend/vreplication/fk_test.go b/go/test/endtoend/vreplication/fk_test.go index 71a78c7f800..3b021e16e99 100644 --- a/go/test/endtoend/vreplication/fk_test.go +++ b/go/test/endtoend/vreplication/fk_test.go @@ -102,6 +102,51 @@ func TestFKWorkflow(t *testing.T) { waitForWorkflowState(t, vc, ksWo...
2
1
1
[{"id": "G0", "claim": "The fixed 5-second sleep is not a robust way to verify that the workflow retried; the test should wait for the workflow to transition to error and back to running, or at least sleep twice the vreplication_retry_delay variable, otherwise it will be flaky.", "category": "testing", "verdict": "supp...
null
vitessio__vitess__18775
vitessio/vitess
18,775
defect
1fe6c6809479fa9e0ab740a788f0e19d1ec60914
129ab4b34b14981ffb3e1a25ee0f1022a8c086a7
movetables mirrortraffic: let read-only queries bypass denied tables
<!-- Thank you for your contribution to the Vitess project. How to contribute: https://vitess.io/docs/contributing/ Please first make sure there is an open Issue to discuss the feature/fix suggested in this PR. If this is a new feature, please mark the Issue as "RFC". --> <!-- if this PR is Work in Pro...
diff --git a/go/test/endtoend/vreplication/vreplication_test_env.go b/go/test/endtoend/vreplication/vreplication_test_env.go index 9c915b69ba4..e452a2a0c95 100644 --- a/go/test/endtoend/vreplication/vreplication_test_env.go +++ b/go/test/endtoend/vreplication/vreplication_test_env.go @@ -31,7 +31,6 @@ const ( var dryR...
8
7
4
[{"id": "G0", "claim": "The new allow_reads topo option should be enforced to only be usable with the MoveTables MirrorTraffic command/workflow type, since unrestricted use would largely defeat the denied-tables list.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
vitessio__vitess__19060
vitessio/vitess
19,060
defect
3a8cfcc96ec5e8837cae7360c4e20f8e3da23e79
2227a5be83d615df3feceff67a49a1aa920b37d5
Skip FOR...UPDATE Clause in Warming Reads Queries
<!-- Thank you for your contribution to the Vitess project. How to contribute: https://vitess.io/docs/contributing/ Please first make sure there is an open Issue to discuss the feature/fix suggested in this PR. If this is a new feature, please mark the Issue as "RFC". --> <!-- if this PR is Work in Pro...
diff --git a/go/vt/vtgate/engine/route.go b/go/vt/vtgate/engine/route.go index fd206590d9a..3216ec0734f 100644 --- a/go/vt/vtgate/engine/route.go +++ b/go/vt/vtgate/engine/route.go @@ -508,6 +508,11 @@ func (route *Route) executeWarmingReplicaRead(ctx context.Context, vcursor VCurs return } + // Skip SELECT ... ...
5
5
2
[{"id": "G0", "claim": "Matching the query plaintext with strings.Contains instead of working on the parsed query is fragile and should be replaced (ideally by removing the FOR UPDATE clause and still executing the query).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"...
null
vitessio__vitess__19374
vitessio/vitess
19,374
defect
eaf94c89810e50476f51878b172636ddcab60fdf
2a1a04c3ec3934ac80d3fbff36125d3f13a39cd7
vreplication: ignore tablets with unrecoverable errors and try others
<!-- Thank you for your contribution to the Vitess project. How to contribute: https://vitess.io/docs/contributing/ Please first make sure there is an open Issue to discuss the feature/fix suggested in this PR. If this is a new feature, please mark the Issue as "RFC". --> <!-- if this PR is Work in Pro...
diff --git a/go/vt/discovery/tablet_error_retry.go b/go/vt/discovery/tablet_error_retry.go new file mode 100644 index 00000000000..76da7ddc705 --- /dev/null +++ b/go/vt/discovery/tablet_error_retry.go @@ -0,0 +1,90 @@ +/* +Copyright 2024 The Vitess Authors. + +Licensed under the Apache License, Version 2.0 (the "Licens...
6
6
2
[{"id": "G0", "claim": "The new files should carry a 2026 copyright header instead of 2024.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Returning from run() in the TabletErrorActionFail branch might leave the stream row in Running while the con...
null
vitessio__vitess__19413
vitessio/vitess
19,413
defect
c5ca5dc83b4dbe1ee8111d8edd86b6f914afa208
f0f7948c6520168b68b55b8ddb79bf8c08411dcf
Address a few VDiff concerns
<!-- Thank you for your contribution to the Vitess project. How to contribute: https://vitess.io/docs/contributing/ Please first make sure there is an open Issue to discuss the feature/fix suggested in this PR. If this is a new feature, please mark the Issue as "RFC". --> <!-- if this PR is Work in Pro...
diff --git a/go/test/endtoend/vreplication/vdiff2_test.go b/go/test/endtoend/vreplication/vdiff2_test.go index c63f2f4017e..c70d6062c8a 100644 --- a/go/test/endtoend/vreplication/vdiff2_test.go +++ b/go/test/endtoend/vreplication/vdiff2_test.go @@ -640,3 +640,67 @@ func testCLICreateWait(t *testing.T, ksWorkflow string...
9
7
1
[{"id": "G0", "claim": "TestVDiffStopWhileBlockedOnMDL was written to reproduce the context-close issue and may no longer be worth keeping now that the snapshot lock_wait_timeout exists, so it should probably be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ...
null
vitessio__vitess__19423
vitessio/vitess
19,423
defect
e881dd8e41f005233966b9656a436a0c40da62b3
a36cc96708ccda84eb40a802913a4fcee8646532
vreplication: fix infinite retry loop when terminal error message contains binary data
## Description When VReplication encounters a terminal error while copying a table with binary data (`VARBINARY`, `BLOB` columns containing bytes 0x80-0xFF), the migration can get stuck in `running` state indefinitely instead of transitioning to `failed`. The error message includes the full INSERT query with raw bina...
diff --git a/go/test/endtoend/onlineddl/vrepl_suite/testdata/fail-binary-no-default-value/alter b/go/test/endtoend/onlineddl/vrepl_suite/testdata/fail-binary-no-default-value/alter new file mode 100644 index 00000000000..bf75cfaf36c --- /dev/null +++ b/go/test/endtoend/onlineddl/vrepl_suite/testdata/fail-binary-no-defa...
3
3
1
[{"id": "G0", "claim": "The new runBlp fallback should check that the setState failure is actually caused by the oversized/binary message, so that failures with other causes are still retried rather than swallowed.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c...
null
vitessio__vitess__19425
vitessio/vitess
19,425
defect
abc68919a7379e2fbfb9371da34ae3f3dea47629
4f5c26b157f1a7db3f96d3b4b32144f7304e9e53
OnlineDDL: Make ENUM/SET eligibility for INSTANT DDL more robust
## Description Root cause: the `colStringStrippedDown` function in [`capability.go`](https://github.com/vitessio/vitess/blob/main/go/vt/schemadiff/capability.go) produced different canonical strings for semantically equivalent column definitions, causing `INSTANT` DDL to be incorrectly rejected in three scenarios: ...
diff --git a/go/vt/schemadiff/capability.go b/go/vt/schemadiff/capability.go index 5a946888f6a..620b8dc4217 100644 --- a/go/vt/schemadiff/capability.go +++ b/go/vt/schemadiff/capability.go @@ -1,9 +1,11 @@ package schemadiff import ( + "fmt" "strings" "vitess.io/vitess/go/mysql/capabilities" + "vitess.io/vite...
2
1
0
[{"id": "G0", "claim": "The new logging in alterOptionCapableOfInstantDDL should use structured logging instead of fmt.Sprintf-formatted messages.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It would be simpler to log the eligibility messages...
null
vitessio__vitess__19432
vitessio/vitess
19,432
defect
090b5ceb07de26eadf14446b1f44ed8f00c78bc3
ddc046739f088fdbad9b44f98fd76507a85f1b32
vtorc: Add a timeout to `DemotePrimary` RPC
<!-- Thank you for your contribution to the Vitess project. How to contribute: https://vitess.io/docs/contributing/ Please first make sure there is an open Issue to discuss the feature/fix suggested in this PR. If this is a new feature, please mark the Issue as "RFC". --> <!-- if this PR is Work in Pro...
diff --git a/go/test/endtoend/vtorc/general/vtorc_test.go b/go/test/endtoend/vtorc/general/vtorc_test.go index a63387cebff..5066e96063b 100644 --- a/go/test/endtoend/vtorc/general/vtorc_test.go +++ b/go/test/endtoend/vtorc/general/vtorc_test.go @@ -473,6 +473,98 @@ func TestStalePrimary(t *testing.T) { }, 30*time.Sec...
5
3
0
[{"id": "G0", "claim": "The rewritten durability-policy error log in demoteStaleTopoPrimary lost the shard attribute that the old message had.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new/reworked log messages (including the failed res...
null
vitessio__vitess__19441
vitessio/vitess
19,441
defect
41418344f43357ffe32dd5a57ee244562118cb6d
f55a3a127d3c3c3ca25945a3b559d27048bb12a4
VReplication: Add support for binlog_rows_query_log_events
## Description This PR adds support for MySQLs [binlog_rows_query_log_events](https://dev.mysql.com/doc/refman/8.4/en/replication-options-binary-log.html#sysvar_binlog_rows_query_log_events) in VReplication. The MySQL implementation can be seen here: https://github.com/mysql/mysql-server/blob/447eb26e094b444a88c...
diff --git a/go/mysql/binlog_event.go b/go/mysql/binlog_event.go index 979f7537ada..6fd7e0340f5 100644 --- a/go/mysql/binlog_event.go +++ b/go/mysql/binlog_event.go @@ -92,6 +92,13 @@ type BinlogEvent interface { IsPartialUpdateRows() bool // IsDeleteRows returns true if this is a DELETE_ROWS_EVENT. IsDeleteRows(...
3
1
1
[{"id": "G0", "claim": "The 1-byte post-header field in RowsQuery may be a variable length encoding for the string rather than always one byte, so it should be verified with a very long query and, if variable, the string decoded with that length.", "category": "correctness", "verdict": "supported", "priority": "P1", "s...
null
vitessio__vitess__19460
vitessio/vitess
19,460
defect
cb612c0994b55442d4ed9fbf0a46bc77d66e0e8c
c7843539166765c7cdf4f8a459f78a7677053ff1
Restore: make loading compressor commands from `MANIFEST` opt-in
<!-- Thank you for your contribution to the Vitess project. How to contribute: https://vitess.io/docs/contributing/ Please first make sure there is an open Issue to discuss the feature/fix suggested in this PR. If this is a new feature, please mark the Issue as "RFC". --> <!-- if this PR is Work in Pro...
diff --git a/go/flags/endtoend/vtbackup.txt b/go/flags/endtoend/vtbackup.txt index 31e90f52d7a..4536ffca5e9 100644 --- a/go/flags/endtoend/vtbackup.txt +++ b/go/flags/endtoend/vtbackup.txt @@ -136,6 +136,7 @@ Flags: --external-compressor string command with arguments to use when ...
1
1
1
[{"id": "G0", "claim": "The comment on resolveExternalDecompressor should reference the real flag --external-decompressor-use-manifest instead of the nonexistent --external-decompressor-allow-manifest.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
vitessio__vitess__19488
vitessio/vitess
19,488
defect
e2719598ccdcabb29f4b854fa60ddd6e96258337
dc97db515456b4357e94e540d5f9b60bde0f2c7e
`vtorc`: improvements to analysis ordering, handle semi-sync disable
<!-- Thank you for your contribution to the Vitess project. How to contribute: https://vitess.io/docs/contributing/ Please first make sure there is an open Issue to discuss the feature/fix suggested in this PR. If this is a new feature, please mark the Issue as "RFC". --> <!-- if this PR is Work in Pro...
diff --git a/go/vt/vtorc/inst/analysis_problem.go b/go/vt/vtorc/inst/analysis_problem.go index 8b54b364126..df43e7ce096 100644 --- a/go/vt/vtorc/inst/analysis_problem.go +++ b/go/vt/vtorc/inst/analysis_problem.go @@ -63,9 +63,19 @@ type DetectionAnalysisProblem struct { } // RequiresOrderedExecution returns true if...
1
1
1
[{"id": "G0", "claim": "In the new 'referenced by another problem's BeforeAnalyses/AfterAnalyses' test cases, omitting Priority means it defaults to 0 and the cases hit the early return in RequiresOrderedExecution instead of actually testing the loop path.", "category": "testing", "verdict": "supported", "priority": "P...
null
vitessio__vitess__19502
vitessio/vitess
19,502
defect
3e8df4083109ed90bda0327fd171caed75ac38df
6bc072f97d6e5838f434149a387bcc7f22660a84
vtorc: change `StaleTopoPrimary` recovery to be best-effort
<!-- Thank you for your contribution to the Vitess project. How to contribute: https://vitess.io/docs/contributing/ Please first make sure there is an open Issue to discuss the feature/fix suggested in this PR. If this is a new feature, please mark the Issue as "RFC". --> <!-- if this PR is Work in...
diff --git a/go/test/endtoend/vtorc/general/vtorc_test.go b/go/test/endtoend/vtorc/general/vtorc_test.go index a6a847c4a9a..437d644c0eb 100644 --- a/go/test/endtoend/vtorc/general/vtorc_test.go +++ b/go/test/endtoend/vtorc/general/vtorc_test.go @@ -476,98 +476,6 @@ func TestStalePrimary(t *testing.T) { }, 30*time.Sec...
7
3
0
[{"id": "G0", "claim": "sync.WaitGroup has no Go method, so the new wg.Go(...) usage will not compile; use errgroup.Group or plain goroutines with wg.Add/wg.Done instead.", "category": "correctness", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The audit/skip message still sa...
null
vitessio__vitess__19514
vitessio/vitess
19,514
defect
9daf71e98ff5f2a4dbcf3c828b5c7b9b3a98e5ea
119d25e0fc56fbb409e2c95afb65209c88bce6f9
vtorc: use `Ping` for `IncapacitatedPrimary`
<!-- Thank you for your contribution to the Vitess project. How to contribute: https://vitess.io/docs/contributing/ Please first make sure there is an open Issue to discuss the feature/fix suggested in this PR. If this is a new feature, please mark the Issue as "RFC". --> <!-- if this PR is Work in...
diff --git a/go/vt/vtorc/logic/topology_recovery.go b/go/vt/vtorc/logic/topology_recovery.go index 5e64b15f0bf..32cf9bf83bf 100644 --- a/go/vt/vtorc/logic/topology_recovery.go +++ b/go/vt/vtorc/logic/topology_recovery.go @@ -452,7 +452,7 @@ func probeTabletHealthz(tablet *topodatapb.Tablet) (bool, error) { return fa...
2
2
1
[{"id": "G0", "claim": "mattlord questions whether the probe should treat every HTTP response as success, including non-2xx status codes such as 404.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "timvaillancourt suggests using the tabletmanager gRP...
null
vitessio__vitess__19515
vitessio/vitess
19,515
defect
9daf71e98ff5f2a4dbcf3c828b5c7b9b3a98e5ea
5e779d7f1c021db8b84b82b56cdab8691b5f03c7
`EmergencyReparentShard`: require stop replication error to be from `PRIMARY`
<!-- Thank you for your contribution to the Vitess project. How to contribute: https://vitess.io/docs/contributing/ Please first make sure there is an open Issue to discuss the feature/fix suggested in this PR. If this is a new feature, please mark the Issue as "RFC". --> <!-- if this PR is Work in Pro...
diff --git a/go/vt/vtctl/grpcvtctldserver/server_slow_test.go b/go/vt/vtctl/grpcvtctldserver/server_slow_test.go index a68830e360f..1ea0a86a008 100644 --- a/go/vt/vtctl/grpcvtctldserver/server_slow_test.go +++ b/go/vt/vtctl/grpcvtctldserver/server_slow_test.go @@ -180,7 +180,7 @@ func TestEmergencyReparentShardSlow(t *...
6
4
0
[{"id": "G0", "claim": "The table-driven case named \"nil WaitReplicasTimeout and request takes 29 seconds is ok\" now sets shouldErr to true, so update the case name or revert shouldErr so the test stays self-describing.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ...
null
vitessio__vitess__19527
vitessio/vitess
19,527
defect
35b06313af389eb2a45cdfd0971c3f06b80a83c0
29b5a71ffd9ca378f73b0bc5436e74d04f883c4a
vitessdriver: return string for binary result values
## Description `vitessdriver` currently returns binary-typed result columns as `[]byte`, which makes JSON handling brittle in client code on v23. This change makes binary result values come back as `string` instead of `[]byte`, matching expected string-oriented consumption. I think this should be backported becau...
diff --git a/go/vt/vitessdriver/convert.go b/go/vt/vitessdriver/convert.go index 982d0c0b422..eb29689a173 100644 --- a/go/vt/vitessdriver/convert.go +++ b/go/vt/vitessdriver/convert.go @@ -45,6 +45,8 @@ func (cv *converter) ToNative(v sqltypes.Value) (any, error) { return v.ToFloat64() case v.Type() == sqltypes.Da...
1
1
0
[{"id": "G0", "claim": "Add a comment at the IsBinary case in ToNative explaining the why, including that this matches what the Go MySQL driver does for least surprising behavior.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vitessio__vitess__19653
vitessio/vitess
19,653
defect
b6b3ac86837fe8ed47b7d19412f72a59b3025b38
0e39e2dad985443e40653495fc77ee79cbc923c0
stats: expose full Go runtime/metrics via Prometheus
## Description The default Prometheus `GoCollector` only exposes 3 `runtime/metrics` (`/gc/gogc:percent`, `/gc/gomemlimit:bytes`, `/sched/gomaxprocs:threads`) plus the legacy `go_memstats_*` set. This PR replaces it with one that exposes the full set of GC, memory, scheduler, and CPU metrics from Go's `runtime/metrics...
diff --git a/go/stats/prometheusbackend/prometheusbackend.go b/go/stats/prometheusbackend/prometheusbackend.go index 8eae29d7b28..6f99ea4aed6 100644 --- a/go/stats/prometheusbackend/prometheusbackend.go +++ b/go/stats/prometheusbackend/prometheusbackend.go @@ -20,9 +20,12 @@ import ( "expvar" "fmt" "os" + "regexp...
5
2
1
[{"id": "G0", "claim": "The new collector configuration has no test asserting that a non-default runtime/metrics series is actually exposed (or that the default collector was replaced), so a smoke test should be added to catch regressions.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "int...
null
vitessio__vitess__19656
vitessio/vitess
19,656
defect
33d20817882abb3b8761289052bcfdd6903f743c
06ebb20c4ff7209e8d9e9f5e11b72304895bc68c
VTTablet: do not return query results on warming reads
## Description Currently, warming reads execute the full query on a replica and return the complete result set over gRPC, only for VTGate to immediately discard it. Since the purpose of warming reads is to warm the replica's InnoDB buffer pool — not to retrieve data — the full result is unnecessary overhead. This...
diff --git a/changelog/24.0/24.0.0/summary.md b/changelog/24.0/24.0.0/summary.md index 301fced4c5d..9eaf2d502f6 100644 --- a/changelog/24.0/24.0.0/summary.md +++ b/changelog/24.0/24.0.0/summary.md @@ -27,6 +27,7 @@ - [QueryThrottler Event-Driven Configuration Updates](#vttablet-querythrottler-config-watch) ...
7
5
3
[{"id": "G0", "claim": "When NoResult is set, replacing the entire result with an empty sqltypes.Result{} also drops non-row metadata like RowsAffected, InsertID, StatusFlags, Info and SessionStateChanges beyond what the proto comment promises; it would be safer to preserve the original result and only clear Fields/Row...
null