Skip to content

Format in MakeCode style to prevent pointless workspace saves #2404

Format in MakeCode style to prevent pointless workspace saves

Format in MakeCode style to prevent pointless workspace saves #2404

Triggered via push December 3, 2024 16:18
Status Failure
Total duration 1m 26s
Artifacts

build.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 2 warnings
src/makecode/generate-main-scripts.test.ts > test generateMainScripts > generates xml blocks: src/makecode/generate-main-scripts.test.ts#L24
AssertionError: expected '<xml xmlns="https://developers.google…' to deeply equal '<xml xmlns="https://developers.google…' - Expected + Received - <xml xmlns="https://developers.google.com/blockly/xml"><variables></variables> - <block type="ml_on_event_start" x="0" y="0"> - <field name="event">ml.event.Name</field> - <statement name="HANDLER"> - <block type="basic_show_icon"><field name="i">IconNames.Heart</field></block> - </statement> - </block> - </xml> + <xml xmlns="https://developers.google.com/blockly/xml"><variables></variables><block type="ml_on_event_start" x="0" y="0"><field name="event">ml.event.Name</field><statement name="HANDLER"><block type="basic_show_icon"><field name="i">IconNames.Heart</field></block></statement></block></xml> ❯ src/makecode/generate-main-scripts.test.ts:24:46
src/makecode/generate-main-scripts.test.ts > test generateMainScripts > generates js: src/makecode/generate-main-scripts.test.ts#L31
AssertionError: expected 'ml.onStart(ml.event.Name, function ()…' to contain 'ml.onStart(ml.event.Name, function ()…' - Expected + Received - ml.onStart(ml.event.Name, function () {basic.showIcon(IconNames.Heart)}) + ml.onStart(ml.event.Name, function () { + basic.showIcon(IconNames.Heart) + }) + ❯ src/makecode/generate-main-scripts.test.ts:31:50
src/makecode/utils.test.ts > test project generation > generates a project: src/makecode/utils.test.ts#L58
Error: Snapshot `test project generation > generates a project 1` mismatched - Expected + Received { "text": { - "README.md": "", - "autogenerated.ts": "// Auto-generated. Do not edit. + "README.md": "", + "autogenerated.ts": "// Auto-generated. Do not edit. namespace ml { export namespace event { - //% fixedInstance block="still" + //% fixedInstance block="still" export const Still = new MlEvent(2, "still"); //% fixedInstance block="wave" export const Wave = new MlEvent(3, "wave"); //% fixedInstance block="clap" export const Clap = new MlEvent(4, "clap"); - } - + } + events = [event.Unknown,event.Still,event.Wave,event.Clap]; - + control.onEvent(MlRunnerIds.MlRunnerInference, 1, () => { - if (!event.Unknown.onStartHandler) { - maybeUpdateEventStats(event.Unknown); - } + if (!event.Unknown.onStartHandler) { + maybeUpdateEventStats(event.Unknown); + } }); control.onEvent(MlRunnerIds.MlRunnerInference, 2, () => { - if (!event.Still.onStartHandler) { - maybeUpdateEventStats(event.Still); - } + if (!event.Still.onStartHandler) { + maybeUpdateEventStats(event.Still); + } }); control.onEvent(MlRunnerIds.MlRunnerInference, 3, () => { - if (!event.Wave.onStartHandler) { - maybeUpdateEventStats(event.Wave); - } + if (!event.Wave.onStartHandler) { + maybeUpdateEventStats(event.Wave); + } }); control.onEvent(MlRunnerIds.MlRunnerInference, 4, () => { - if (!event.Clap.onStartHandler) { - maybeUpdateEventStats(event.Clap); - } + if (!event.Clap.onStartHandler) { + maybeUpdateEventStats(event.Clap); + } }); getModelBlob = (): Buffer => { - const result = hex`4C444F4D38001400320003000000000000000003CDCC4C3F067374696C6C0000CDCC4C3F0577617665000000CDCC4C3F05636C6170000000620F47304D4C344650000000700D0000A40500000000000000000000A80000000800000001000000080000000100000000000000000000000000000000000000180000000000000003000000000000002DE9F05F0F460169091839600021796038680346B3EC1E1A07F2080292EC010A20EE010A30EE210AA2EC010A92EC010A20EE020A30EE220AA2EC010A92EC010A20EE030A30EE230AA2EC010A92EC010A20EE040A30EE240AA2EC010A92EC010A20EE050A30EE250AA2EC010A92EC010A20EE060A30EE260AA2EC010A92EC010A20EE070A30EE270AA2EC010A92EC010A20EE080A30EE280AA2EC010A92EC010A20EE090A30EE290AA2EC010A92EC010A20EE0A0A30EE2A0AA2EC010A92EC010A20EE0B0A30EE2B0AA2EC010A92EC010A20EE0C0A30EE2C0AA2EC010A92EC010A20EE0D0A30EE2D0AA2EC010A92EC010A20EE0E0A30EE2E0AA2EC010A92EC010A20EE0F0A30EE2F0AA2EC010A02F22402B3EC121A07F2440292EC010A20EE010A30EE210AA2EC010A92EC010A20EE020A30EE220AA2EC010A92EC010A20EE030A30EE230AA2EC010A92EC010A20EE040A30EE240AA2EC010A92EC010A20EE050A30EE250AA2EC010A92EC010A20EE060A30EE260AA2EC010A92EC010A20EE070A30EE270AA2EC010A92EC010A20EE080A30EE280AA2EC010A92EC010A20EE090A30EE290AA2EC010A02F23C02386800F2C00307F268021024B3EC010A07F20801F1EC0E0AF3EC0E7A60EEA70A21EE081A30EE200A61EEA81A30EE010A22EE092A30EE210A62EEA92A30EE020A23EE0A3A30EE220A63EEAA3A30EE030A24EE0B4A30EE230A64EEAB4A30EE040A25EE0C5A30EE240A65EEAC5A30EE050A26EE0D6A30EE250A66EEAD6A30EE060A27EE0E7A30EE260A30EE070AF1EC0A0AF3EC0A7A60EEA70A21EE081A30EE200A61EEA81A30EE010A22EE092A30EE210A62EEA92A30EE020A23EE0A3A30EE220A63EEAA3A30EE030A24EE0B4A30EE230A64EEAB4A30EE040A25EE0C5A30EE240A30EE050AA2EC010A013C8FD107F2680210680028B8BF40F2000001C210680028B8BF40F2000001C210680028B8BF40F2000001C210680028B8BF40F2000001C210680028B8BF40F2000001C210680028B8BF40F2000001C210680028B8BF40F2000001C210680028B8BF40F2000001C210680028B8BF40F2000001C210680028B8BF40F2000001C210680028B8BF40F2000001C210680028B8BF40F2000001C210680028B8BF40F2000001C210680028B8BF40F2000001C210680028B8BF40F2000001C210680028B8BF40F2000001C2386800F2007307F208020324B3EC010A07F26801F1EC0E0AF3EC0E7A60EEA70A21EE081A30EE200A61EEA81A30EE010A22EE092A30EE210A62EEA92A30EE020A23EE0A3A30EE220A63EEAA3A30EE030A24EE0B4A30EE230A64EEAB4A30EE040A25EE0C5A30EE240A65EEAC5A30EE050A26EE0D6A30EE250A66EEAD6A30EE060A27EE0E7A30EE260A30EE070AF1EC020AF3EC027A60EEA70A21EE081A30EE200A30EE010AA2EC010A013CAFD107F208021046032100F
build
Process completed with exit code 1.
build
Process completed with exit code 1.
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
build
No files were found with the provided path: playwright-report/. No artifacts will be uploaded.