Skip to content

Overhaul custom shapes for p5.js 2.0 #5261

Overhaul custom shapes for p5.js 2.0

Overhaul custom shapes for p5.js 2.0 #5261

Triggered via pull request December 14, 2024 16:45
Status Failure
Total duration 2m 33s
Artifacts

ci-test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
test/unit/webgl/p5.RendererGL.js > p5.RendererGL > contours match 2D: test/unit/webgl/p5.RendererGL.js#L644
AssertionError: expected [ 200, 200, 200, 255, 200, …(9995) ] to deeply equal [ 200, 200, 200, 255, 200, …(9995) ] - Expected + Received Array [ 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 200, 255, 200, 200, 2
test/unit/webgl/p5.RendererGL.js > p5.RendererGL > beginShape() in WEBGL mode > PATH preserves vertex data: test/unit/webgl/p5.RendererGL.js#L1702
AssertionError: expected [ -1, +0, 1 ] to deeply equal [ -1, -1, 1 ] - Expected + Received Array [ -1, - -1, + 0, 1, ] ❯ test/unit/webgl/p5.RendererGL.js:1702:14
test/unit/webgl/p5.RendererGL.js > p5.RendererGL > beginShape() in WEBGL mode > PATH does not affect stroke colors: test/unit/webgl/p5.RendererGL.js#L1764
AssertionError: expected [ 1, 1, 1, 1, 1, +0, +0, 1, +0, …(11) ] to deeply equal [ 1, 1, 1, 1, 1, +0, +0, 1, +0, …(7) ] - Expected + Received Array [ 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, + 0, + 0, + 1, + 1, ] ❯ test/unit/webgl/p5.RendererGL.js:1764:14
test/unit/webgl/p5.RendererGL.js > p5.RendererGL > beginShape() in WEBGL mode > PATH does not affect texture coordinates: test/unit/webgl/p5.RendererGL.js#L1787
AssertionError: expected [ Array(12) ] to deeply equal [ +0, +0, 1, +0, 1, 1, +0, 1 ] - Expected + Received Array [ + 1, 0, 0, 1, + 0, + 0, 0, 1, 1, 0, + 1, 1, ] ❯ test/unit/webgl/p5.RendererGL.js:1787:14
test/unit/webgl/p5.RendererGL.js > p5.RendererGL > beginShape() in WEBGL mode > PATH interpolates vertex data at intersections: test/unit/webgl/p5.RendererGL.js#L1851
AssertionError: expected [ +0, 0.25, 1 ] to deeply equal [ +0, +0, 1 ] - Expected + Received Array [ 0, - 0, + 0.25, 1, ] ❯ test/unit/webgl/p5.RendererGL.js:1851:14
test/unit/webgl/p5.RendererGL.js > p5.RendererGL > color interpolation > bezierVertex() should interpolate curFillColor: test/unit/webgl/p5.RendererGL.js#L1969
AssertionError: expected [ 255, 64, 64, 255 ] to deeply equal [ 255, 129, 129, 255 ] - Expected + Received Array [ 255, - 129, - 129, + 64, + 64, 255, ] ❯ test/unit/webgl/p5.RendererGL.js:1969:14
test/unit/webgl/p5.RendererGL.js > p5.RendererGL > color interpolation > bezierVertex() should interpolate curStrokeColor: src/shape/custom_shapes.js#L612
TypeError: Cannot read properties of null (reading 'array') ❯ Shape.serializeToArray src/shape/custom_shapes.js:612:20 ❯ Shape.vertexToArray src/shape/custom_shapes.js:625:26 ❯ src/shape/custom_shapes.js:1190:37 ❯ PrimitiveToVerticesConverter.visitBezierSegment src/shape/custom_shapes.js:1190:7 ❯ BezierSegment.accept src/shape/custom_shapes.js:268:13 ❯ Contour.accept src/shape/custom_shapes.js:171:17 ❯ Shape.accept src/shape/custom_shapes.js:960:15 ❯ RendererGL.drawShape src/webgl/p5.RendererGL.js:512:11 ❯ RendererGL.endShape src/core/p5.Renderer.js:171:10
test/unit/webgl/p5.RendererGL.js > p5.RendererGL > color interpolation > quadraticVertex() should interpolate curFillColor: test/js/chai_helpers.js#L10
AssertionError: expected 85 to be close to 128 +/- 10 ❯ assert.arrayApproximately test/js/chai_helpers.js:10:12 ❯ test/unit/webgl/p5.RendererGL.js:2005:14
test/unit/webgl/p5.RendererGL.js > p5.RendererGL > color interpolation > quadraticVertex() should interpolate curStrokeColor: src/shape/custom_shapes.js#L612
TypeError: Cannot read properties of null (reading 'array') ❯ Shape.serializeToArray src/shape/custom_shapes.js:612:20 ❯ Shape.vertexToArray src/shape/custom_shapes.js:625:26 ❯ src/shape/custom_shapes.js:1190:37 ❯ PrimitiveToVerticesConverter.visitBezierSegment src/shape/custom_shapes.js:1190:7 ❯ BezierSegment.accept src/shape/custom_shapes.js:268:13 ❯ Contour.accept src/shape/custom_shapes.js:171:17 ❯ Shape.accept src/shape/custom_shapes.js:960:15 ❯ RendererGL.drawShape src/webgl/p5.RendererGL.js:512:11 ❯ RendererGL.endShape src/core/p5.Renderer.js:171:10
test/unit/webgl/p5.RendererGL.js > p5.RendererGL > instancing > instanced: test/unit/webgl/p5.RendererGL.js#L2346
AssertionError: expected [ +0, +0, +0, 255 ] to deeply equal [ 255, +0, +0, 255 ] - Expected + Received Array [ - 255, + 0, 0, 0, 255, ] ❯ test/unit/webgl/p5.RendererGL.js:2346:16
test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636