Skip to content

refactor: avoid tracking multiple times #14134

refactor: avoid tracking multiple times

refactor: avoid tracking multiple times #14134

Triggered via push December 11, 2024 14:40
Status Failure
Total duration 1m 25s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

21 errors and 4 warnings
continuous-release
Process completed with exit code 1.
packages/compiler-vapor/__tests__/compile.spec.ts > compile > dynamic root nodes and interpolation: packages/compiler-vapor/__tests__/compile.spec.ts#L38
Error: Snapshot `compile > dynamic root nodes and interpolation 1` mismatched - Expected + Received @@ -3,15 +3,16 @@ _delegateEvents("click") export function render(_ctx) { const n0 = t0() _delegate(n0, "click", () => _ctx.handleClick) - let _count + let _count, __count _renderEffect(() => { - if(_count !== _ctx.count) { + __count = _ctx.count + if(_count !== __count) { - _setText(n0, _ctx.count, "foo", _ctx.count, "foo", _ctx.count) + _setText(n0, __count, "foo", __count, "foo", __count) - _setDOMProp(n0, "id", _ctx.count) + _setDOMProp(n0, "id", __count) - _count = _ctx.count + _count = __count } }) return n0 }" ❯ packages/compiler-vapor/__tests__/compile.spec.ts:38:18
packages/compiler-vapor/__tests__/compile.spec.ts > compile > bindings: packages/compiler-vapor/__tests__/compile.spec.ts#L59
Error: Snapshot `compile > bindings 1` mismatched - Expected + Received "import { setText as _setText, renderEffect as _renderEffect, template as _template } from 'vue'; const t0 = _template("<div></div>") export function render(_ctx, $props, $emit, $attrs, $slots) { const n0 = t0() - let _count + let _count, __count - _renderEffect(() => _count !== _ctx.count && _setText(n0, "count is ", (_count = _ctx.count), ".")) + _renderEffect(() => { + __count = _ctx.count + if(_count !== __count) { + _setText(n0, "count is ", __count, ".") + _count = __count + } + }) return n0 }" ❯ packages/compiler-vapor/__tests__/compile.spec.ts:59:18
packages/compiler-vapor/__tests__/compile.spec.ts > compile > directives > v-pre > should not affect siblings after it: packages/compiler-vapor/__tests__/compile.spec.ts#L91
Error: Snapshot `compile > directives > v-pre > should not affect siblings after it 1` mismatched - Expected + Received @@ -7,9 +7,15 @@ const n0 = t0() const n3 = t1() const n1 = _createComponentWithFallback(_component_Comp) const n2 = _createTextNode(() => [_ctx.bar]) _insert([n1, n2], n3) - let _foo + let _foo, __foo - _renderEffect(() => _foo !== _ctx.foo && _setDOMProp(n3, "id", (_foo = _ctx.foo))) + _renderEffect(() => { + __foo = _ctx.foo + if(_foo !== __foo) { + _setDOMProp(n3, "id", __foo) + _foo = __foo + } + }) return [n0, n3] }" ❯ packages/compiler-vapor/__tests__/compile.spec.ts:91:22
packages/compiler-vapor/__tests__/compile.spec.ts > compile > expression parsing > v-bind: packages/compiler-vapor/__tests__/compile.spec.ts#L195
Error: Snapshot `compile > expression parsing > v-bind 1` mismatched - Expected + Received " const n0 = t0() - let _key_value, _foo, _key_value_foo - _renderEffect(() => (_key_value !== key.value || _foo !== _unref(foo)) && (_key_value_foo = _setDynamicProps(n0, _key_value_foo, [{ [(_key_value = key.value)+1]: (_foo = _unref(foo))[key.value+1]() }], true))) + _renderEffect(() => { + __key_value = key.value;__foo = _unref(foo);__key_value = key.value+1]() + + (_key_value__key_value_foo__foo = _setDynamicProps(n0, _key_value__key_value_foo__foo, [{ [key.value+1]: _unref(foo)[key.value+1]() }], true)) + }) return n0 " ❯ packages/compiler-vapor/__tests__/compile.spec.ts:195:20
packages/compiler-vapor/__tests__/transforms/transformChildren.spec.ts > compiler: children transform > children & sibling references: packages/compiler-vapor/__tests__/transforms/transformChildren.spec.ts#L30
Error: Snapshot `compiler: children transform > children & sibling references 1` mismatched - Expected + Received @@ -6,12 +6,20 @@ const n0 = n4.firstChild const n3 = _next(n0, 2) const n2 = n3.nextSibling const n1 = _createTextNode(() => [_ctx.second, " ", _ctx.third, " "]) _insert(n1, n4, n3) - let _first, _forth + let _first, __first, _forth, __forth _renderEffect(() => { - _first !== _ctx.first && _setText(n0, (_first = _ctx.first)) + __first = _ctx.first + if(_first !== __first) { + _setText(n0, __first) + _first = __first + } - _forth !== _ctx.forth && _setText(n2, (_forth = _ctx.forth)) + __forth = _ctx.forth + if(_forth !== __forth) { + _setText(n2, __forth) + _forth = __forth + } }) return n4 }" ❯ packages/compiler-vapor/__tests__/transforms/transformChildren.spec.ts:30:18
packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts > compiler: element transform > v-bind="obj": packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts#L551
Error: Snapshot `compiler: element transform > v-bind="obj" 1` mismatched - Expected + Received "import { setDynamicProps as _setDynamicProps, renderEffect as _renderEffect, template as _template } from 'vue'; const t0 = _template("<div></div>") export function render(_ctx, $props, $emit, $attrs, $slots) { const n0 = t0() - let _prev_obj - _renderEffect(() => _prev_obj = _setDynamicProps(n0, _prev_obj, [_ctx.obj], true)) + _renderEffect(() => { + __obj = _ctx.obj + + (_obj__obj = _setDynamicProps(n0, _obj__obj, [_ctx.obj], true)) + }) return n0 }" ❯ packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts:551:18
packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts > compiler: element transform > v-bind="obj" after static prop: packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts#L593
Error: Snapshot `compiler: element transform > v-bind="obj" after static prop 1` mismatched - Expected + Received "import { setDynamicProps as _setDynamicProps, renderEffect as _renderEffect, template as _template } from 'vue'; const t0 = _template("<div></div>") export function render(_ctx, $props, $emit, $attrs, $slots) { const n0 = t0() - let _obj, _prev_obj - _renderEffect(() => _obj !== _ctx.obj && (_prev_obj = _setDynamicProps(n0, _prev_obj, [{ id: "foo" }, (_obj = _ctx.obj)], true))) + _renderEffect(() => { + __obj = _ctx.obj + + (_obj__obj = _setDynamicProps(n0, _obj__obj, [{ id: "foo" }, _ctx.obj], true)) + }) return n0 }" ❯ packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts:593:18
packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts > compiler: element transform > v-bind="obj" before static prop: packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts#L636
Error: Snapshot `compiler: element transform > v-bind="obj" before static prop 1` mismatched - Expected + Received "import { setDynamicProps as _setDynamicProps, renderEffect as _renderEffect, template as _template } from 'vue'; const t0 = _template("<div></div>") export function render(_ctx, $props, $emit, $attrs, $slots) { const n0 = t0() - let _prev_obj - _renderEffect(() => _prev_obj = _setDynamicProps(n0, _prev_obj, [_ctx.obj, { id: "foo" }], true)) + _renderEffect(() => { + __obj = _ctx.obj + + (_obj__obj = _setDynamicProps(n0, _obj__obj, [_ctx.obj, { id: "foo" }], true)) + }) return n0 }" ❯ packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts:636:18
packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts > compiler: element transform > v-bind="obj" between static props: packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts#L664
Error: Snapshot `compiler: element transform > v-bind="obj" between static props 1` mismatched - Expected + Received "import { setDynamicProps as _setDynamicProps, renderEffect as _renderEffect, template as _template } from 'vue'; const t0 = _template("<div></div>") export function render(_ctx) { const n0 = t0() - let _obj, _prev_obj - _renderEffect(() => _obj !== _ctx.obj && (_prev_obj = _setDynamicProps(n0, _prev_obj, [{ id: "foo" }, (_obj = _ctx.obj), { class: "bar" }], true))) + _renderEffect(() => { + __obj = _ctx.obj + + (_obj__obj = _setDynamicProps(n0, _obj__obj, [{ id: "foo" }, _ctx.obj, { class: "bar" }], true)) + }) return n0 }" ❯ packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts:664:18
packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts > compiler: element transform > props merging: style: packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts#L737
Error: Snapshot `compiler: element transform > props merging: style 1` mismatched - Expected + Received "import { setStyle as _setStyle, renderEffect as _renderEffect, template as _template } from 'vue'; const t0 = _template("<div></div>") export function render(_ctx) { const n0 = t0() - _renderEffect(() => _setStyle(n0, ["color: green", { color: 'red' }], true)) + _renderEffect(() => + _setStyle(n0, ["color: green", { color: 'red' }], true)) return n0 }" ❯ packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts:737:18
packages/compiler-vapor/__tests__/compile.spec.ts > compile > dynamic root nodes and interpolation: packages/compiler-vapor/__tests__/compile.spec.ts#L38
Error: Snapshot `compile > dynamic root nodes and interpolation 1` mismatched - Expected + Received @@ -3,15 +3,16 @@ _delegateEvents("click") export function render(_ctx) { const n0 = t0() _delegate(n0, "click", () => _ctx.handleClick) - let _count + let _count, __count _renderEffect(() => { - if(_count !== _ctx.count) { + __count = _ctx.count + if(_count !== __count) { - _setText(n0, _ctx.count, "foo", _ctx.count, "foo", _ctx.count) + _setText(n0, __count, "foo", __count, "foo", __count) - _setDOMProp(n0, "id", _ctx.count) + _setDOMProp(n0, "id", __count) - _count = _ctx.count + _count = __count } }) return n0 }" ❯ packages/compiler-vapor/__tests__/compile.spec.ts:38:18
packages/compiler-vapor/__tests__/compile.spec.ts > compile > bindings: packages/compiler-vapor/__tests__/compile.spec.ts#L59
Error: Snapshot `compile > bindings 1` mismatched - Expected + Received "import { setText as _setText, renderEffect as _renderEffect, template as _template } from 'vue'; const t0 = _template("<div></div>") export function render(_ctx, $props, $emit, $attrs, $slots) { const n0 = t0() - let _count + let _count, __count - _renderEffect(() => _count !== _ctx.count && _setText(n0, "count is ", (_count = _ctx.count), ".")) + _renderEffect(() => { + __count = _ctx.count + if(_count !== __count) { + _setText(n0, "count is ", __count, ".") + _count = __count + } + }) return n0 }" ❯ packages/compiler-vapor/__tests__/compile.spec.ts:59:18
packages/compiler-vapor/__tests__/compile.spec.ts > compile > directives > v-pre > should not affect siblings after it: packages/compiler-vapor/__tests__/compile.spec.ts#L91
Error: Snapshot `compile > directives > v-pre > should not affect siblings after it 1` mismatched - Expected + Received @@ -7,9 +7,15 @@ const n0 = t0() const n3 = t1() const n1 = _createComponentWithFallback(_component_Comp) const n2 = _createTextNode(() => [_ctx.bar]) _insert([n1, n2], n3) - let _foo + let _foo, __foo - _renderEffect(() => _foo !== _ctx.foo && _setDOMProp(n3, "id", (_foo = _ctx.foo))) + _renderEffect(() => { + __foo = _ctx.foo + if(_foo !== __foo) { + _setDOMProp(n3, "id", __foo) + _foo = __foo + } + }) return [n0, n3] }" ❯ packages/compiler-vapor/__tests__/compile.spec.ts:91:22
packages/compiler-vapor/__tests__/compile.spec.ts > compile > expression parsing > v-bind: packages/compiler-vapor/__tests__/compile.spec.ts#L195
Error: Snapshot `compile > expression parsing > v-bind 1` mismatched - Expected + Received " const n0 = t0() - let _key_value, _foo, _key_value_foo - _renderEffect(() => (_key_value !== key.value || _foo !== _unref(foo)) && (_key_value_foo = _setDynamicProps(n0, _key_value_foo, [{ [(_key_value = key.value)+1]: (_foo = _unref(foo))[key.value+1]() }], true))) + _renderEffect(() => { + __key_value = key.value;__foo = _unref(foo);__key_value = key.value+1]() + + (_key_value__key_value_foo__foo = _setDynamicProps(n0, _key_value__key_value_foo__foo, [{ [key.value+1]: _unref(foo)[key.value+1]() }], true)) + }) return n0 " ❯ packages/compiler-vapor/__tests__/compile.spec.ts:195:20
packages/compiler-vapor/__tests__/transforms/transformChildren.spec.ts > compiler: children transform > children & sibling references: packages/compiler-vapor/__tests__/transforms/transformChildren.spec.ts#L30
Error: Snapshot `compiler: children transform > children & sibling references 1` mismatched - Expected + Received @@ -6,12 +6,20 @@ const n0 = n4.firstChild const n3 = _next(n0, 2) const n2 = n3.nextSibling const n1 = _createTextNode(() => [_ctx.second, " ", _ctx.third, " "]) _insert(n1, n4, n3) - let _first, _forth + let _first, __first, _forth, __forth _renderEffect(() => { - _first !== _ctx.first && _setText(n0, (_first = _ctx.first)) + __first = _ctx.first + if(_first !== __first) { + _setText(n0, __first) + _first = __first + } - _forth !== _ctx.forth && _setText(n2, (_forth = _ctx.forth)) + __forth = _ctx.forth + if(_forth !== __forth) { + _setText(n2, __forth) + _forth = __forth + } }) return n4 }" ❯ packages/compiler-vapor/__tests__/transforms/transformChildren.spec.ts:30:18
packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts > compiler: element transform > v-bind="obj": packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts#L551
Error: Snapshot `compiler: element transform > v-bind="obj" 1` mismatched - Expected + Received "import { setDynamicProps as _setDynamicProps, renderEffect as _renderEffect, template as _template } from 'vue'; const t0 = _template("<div></div>") export function render(_ctx, $props, $emit, $attrs, $slots) { const n0 = t0() - let _prev_obj - _renderEffect(() => _prev_obj = _setDynamicProps(n0, _prev_obj, [_ctx.obj], true)) + _renderEffect(() => { + __obj = _ctx.obj + + (_obj__obj = _setDynamicProps(n0, _obj__obj, [_ctx.obj], true)) + }) return n0 }" ❯ packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts:551:18
packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts > compiler: element transform > v-bind="obj" after static prop: packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts#L593
Error: Snapshot `compiler: element transform > v-bind="obj" after static prop 1` mismatched - Expected + Received "import { setDynamicProps as _setDynamicProps, renderEffect as _renderEffect, template as _template } from 'vue'; const t0 = _template("<div></div>") export function render(_ctx, $props, $emit, $attrs, $slots) { const n0 = t0() - let _obj, _prev_obj - _renderEffect(() => _obj !== _ctx.obj && (_prev_obj = _setDynamicProps(n0, _prev_obj, [{ id: "foo" }, (_obj = _ctx.obj)], true))) + _renderEffect(() => { + __obj = _ctx.obj + + (_obj__obj = _setDynamicProps(n0, _obj__obj, [{ id: "foo" }, _ctx.obj], true)) + }) return n0 }" ❯ packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts:593:18
packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts > compiler: element transform > v-bind="obj" before static prop: packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts#L636
Error: Snapshot `compiler: element transform > v-bind="obj" before static prop 1` mismatched - Expected + Received "import { setDynamicProps as _setDynamicProps, renderEffect as _renderEffect, template as _template } from 'vue'; const t0 = _template("<div></div>") export function render(_ctx, $props, $emit, $attrs, $slots) { const n0 = t0() - let _prev_obj - _renderEffect(() => _prev_obj = _setDynamicProps(n0, _prev_obj, [_ctx.obj, { id: "foo" }], true)) + _renderEffect(() => { + __obj = _ctx.obj + + (_obj__obj = _setDynamicProps(n0, _obj__obj, [_ctx.obj, { id: "foo" }], true)) + }) return n0 }" ❯ packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts:636:18
packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts > compiler: element transform > v-bind="obj" between static props: packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts#L664
Error: Snapshot `compiler: element transform > v-bind="obj" between static props 1` mismatched - Expected + Received "import { setDynamicProps as _setDynamicProps, renderEffect as _renderEffect, template as _template } from 'vue'; const t0 = _template("<div></div>") export function render(_ctx) { const n0 = t0() - let _obj, _prev_obj - _renderEffect(() => _obj !== _ctx.obj && (_prev_obj = _setDynamicProps(n0, _prev_obj, [{ id: "foo" }, (_obj = _ctx.obj), { class: "bar" }], true))) + _renderEffect(() => { + __obj = _ctx.obj + + (_obj__obj = _setDynamicProps(n0, _obj__obj, [{ id: "foo" }, _ctx.obj, { class: "bar" }], true)) + }) return n0 }" ❯ packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts:664:18
packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts > compiler: element transform > props merging: style: packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts#L737
Error: Snapshot `compiler: element transform > props merging: style 1` mismatched - Expected + Received "import { setStyle as _setStyle, renderEffect as _renderEffect, template as _template } from 'vue'; const t0 = _template("<div></div>") export function render(_ctx) { const n0 = t0() - _renderEffect(() => _setStyle(n0, ["color: green", { color: 'red' }], true)) + _renderEffect(() => + _setStyle(n0, ["color: green", { color: 'red' }], true)) return n0 }" ❯ packages/compiler-vapor/__tests__/transforms/transformElement.spec.ts:737:18
test / lint-and-test-dts
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
continuous-release
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test / unit-test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test / e2e-test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636