Skip to content

[suppressions] Add property "paths" to input YAML #20

[suppressions] Add property "paths" to input YAML

[suppressions] Add property "paths" to input YAML #20

Triggered via pull request May 18, 2024 08:59
Status Failure
Total duration 40s
Artifacts

suppressions-test.yaml

on: pull_request
Matrix: suppressions / test
Fit to window
Zoom out
Zoom in

Annotations

8 errors
test/index.test.ts > one suppression match: eng/tools/suppressions/test/index.test.ts#L31
AssertionError: expected [ { tool: 'TestTool', …(2) } ] to deeply equal [ { tool: 'TestTool', …(2) } ] - Expected + Received Array [ Object { - "path": "foo.json", + "paths": Array [ + "foo.json", + ], "reason": "test", "tool": "TestTool", }, ] ❯ test/index.test.ts:31:24
test/index.test.ts > one suppression match directory: eng/tools/suppressions/test/index.test.ts#L47
AssertionError: expected [ { tool: 'TestTool', …(2) } ] to deeply equal [ { tool: 'TestTool', …(2) } ] - Expected + Received Array [ Object { - "path": "**", + "paths": Array [ + "**", + ], "reason": "test", "tool": "TestTool", }, ] ❯ test/index.test.ts:47:24
test/index.test.ts > globstar matching: eng/tools/suppressions/test/index.test.ts#L109
AssertionError: expected [ { tool: 'TestTool', …(2) }, …(4) ] to deeply equal [ { tool: 'TestTool', …(2) }, …(4) ] - Expected + Received Array [ Object { - "path": "data-plane/Foo/stable/2024-01-01/foo.json", + "paths": Array [ + "data-plane/Foo/stable/2024-01-01/foo.json", + ], "reason": "exact match", "tool": "TestTool", }, Object { - "path": "data-plane/Foo/stable/2024-01-01/**/*.json", + "paths": Array [ + "data-plane/Foo/stable/2024-01-01/**/*.json", + ], "reason": "all swagger under version", "tool": "TestTool", }, Object { - "path": "data-plane/**/*.json", + "paths": Array [ + "data-plane/**/*.json", + ], "reason": "all swagger under data-plane", "tool": "TestTool", }, Object { - "path": "**/*.json", + "paths": Array [ + "**/*.json", + ], "reason": "all swagger under spec", "tool": "TestTool", }, Object { - "path": "**", + "paths": Array [ + "**", + ], "reason": "all files under spec", "tool": "TestTool", }, ] ❯ test/index.test.ts:109:24
test/index.test.ts > tool matching: eng/tools/suppressions/test/index.test.ts#L146
AssertionError: expected [ { tool: 'TestTool1', …(2) } ] to deeply equal [ { tool: 'TestTool1', …(2) } ] - Expected + Received Array [ Object { - "path": "foo.json", + "paths": Array [ + "foo.json", + ], "reason": "test1", "tool": "TestTool1", }, ] ❯ test/index.test.ts:146:24
test/index.test.ts > suppression path relative to suppressions file: eng/tools/suppressions/test/index.test.ts#L170
AssertionError: expected [ { tool: 'TestTool', …(2) } ] to deeply equal [ { tool: 'TestTool', …(2) } ] - Expected + Received Array [ Object { - "path": "**", + "paths": Array [ + "**", + ], "reason": "test", "tool": "TestTool", }, ] ❯ test/index.test.ts:170:24
suppressions / test (ubuntu-latest, 18)
Process completed with exit code 1.
suppressions / test (windows-latest, 20)
The job was canceled because "ubuntu-latest_18" failed.
suppressions / test (windows-latest, 20)
The operation was canceled.