Skip to content

perf: optimize client builds #2045

perf: optimize client builds

perf: optimize client builds #2045

Triggered via pull request November 24, 2024 22:12
Status Failure
Total duration 1m 42s
Artifacts

test.yml

on: pull_request
Matrix: bun-tests
Matrix: node-tests
Fit to window
Zoom out
Zoom in

Annotations

21 errors and 4 warnings
error: expect(received).not.toHaveBeenCalled(): packages/brisa/src/utils/compile-assets/index.test.ts#L82
Expected number of calls: 0 Received number of calls: 2 at /Users/runner/work/brisa/brisa/packages/brisa/src/utils/compile-assets/index.test.ts:82:21
error: expect(received).toEqual(expected): packages/brisa/src/utils/compile-assets/index.test.ts#L101
Expected: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\"><url><loc>https://example.com</loc><lastmod>2021-10-01T00:00:00.000Z</lastmod><changefreq>daily</changefreq><priority>1.0</priority><image:image><image:loc>https://example.com/image.jpg</image:loc><image:title>Image title</image:title><image:caption>Image caption</image:caption></image:image></url></urlset>" Received: "" at /Users/runner/work/brisa/brisa/packages/brisa/src/utils/compile-assets/index.test.ts:101:65
error: expect(received).toEqual(expected): packages/brisa/src/utils/compile-files/index.test.ts#L196
[ - "_404-123456-en.js", - "_404-123456-en.js.br", - "_404-123456-en.js.gz", - "_404-123456-pt.js", - "_404-123456-pt.js.br", - "_404-123456-pt.js.gz", "_404-123456.js", "_404-123456.js.br", "_404-123456.js.gz", "_404.txt", - "_500-123456-en.js", - "_500-123456-en.js.br", - "_500-123456-en.js.gz", - "_500-123456-pt.js", - "_500-123456-pt.js.br", - "_500-123456-pt.js.gz", "_500-123456.js", "_500-123456.js.br", "_500-123456.js.gz", "_500.txt", "_rpc-0.1.7-canary.3.js", "_rpc-0.1.7-canary.3.js.br", "_rpc-0.1.7-canary.3.js.gz", "_rpc-lazy-0.1.7-canary.3.js", "_rpc-lazy-0.1.7-canary.3.js.br", "_rpc-lazy-0.1.7-canary.3.js.gz", "_rpc.txt", "_unsuspense-0.1.7-canary.3.js", "_unsuspense-0.1.7-canary.3.js.br", "_unsuspense-0.1.7-canary.3.js.gz", "_unsuspense.txt", - "page-with-web-component-123456-en.js", - "page-with-web-component-123456-en.js.br", - "page-with-web-component-123456-en.js.gz", - "page-with-web-component-123456-pt.js", - "page-with-web-component-123456-pt.js.br", - "page-with-web-component-123456-pt.js.gz", "page-with-web-component-123456.js", "page-with-web-component-123456.js.br", "page-with-web-component-123456.js.gz", "page-with-web-component.txt" ] - Expected - 18 + Received + 0 at /Users/runner/work/brisa/brisa/packages/brisa/src/utils/compile-files/index.test.ts:196:27
TypeError: window.mockCleanup is not a function. (In 'window.mockCleanup()'
at cleanupAnEffect (/Users/runner/work/brisa/brisa/packages/brisa/src/utils/signals/index.ts:67:33) at reset (/Users/runner/work/brisa/brisa/packages/brisa/src/utils/signals/index.ts:152:7) at disconnectedCallback (/Users/runner/work/brisa/brisa/packages/brisa/src/utils/brisa-element/index.ts:489:15) at [disconnectedFromDocument] (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/nodes/node/Node.js:831:18) at [disconnectedFromDocument] (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/nodes/element/Element.js:1094:30) at [disconnectedFromNode] (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/nodes/node/Node.js:756:33) at [disconnectedFromNode] (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/nodes/html-element/HTMLElement.js:505:30) at [disconnectedFromNode] (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/nodes/node/Node.js:772:42) at [disconnectedFromNode] (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/nodes/html-element/HTMLElement.js:505:30) at [disconnectedFromNode] (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/nodes/node/Node.js:772:42) at [disconnectedFromNode] (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/nodes/html-element/HTMLElement.js:505:30) at [removeChild] (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/nodes/node/Node.js:443:29) at [destroy] (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/window/BrowserWindow.js:1369:27) at /Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/browser/utilities/BrowserFrameFactory.js:52:49 at new Promise (1:11) at destroyFrame (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/browser/utilities/BrowserFrameFactory.js:26:16) at /Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/browser/utilities/BrowserPageUtility.js:31:33 at new Promise (1:11) at closePage (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/browser/utilities/BrowserPageUtility.js:22:16) at /Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/browser/detached-browser/DetachedBrowserPage.js:69:32 at new Promise (1:11) at close (/Users/runner/work/brisa/brisa/node_modules/happy-dom/lib/browser/detached-browser/DetachedBrowserPage.js:67:16) at /Users/runner/work/brisa/brisa/node_modules/@happy-dom/global-registrator/lib/GlobalRegistrator.js:80:28 at unregister (/Users/runner/work/brisa/brisa/node_modules/@happy-dom/global-registrator/lib/GlobalRegistrator.js:65:31) at /Users/runner/work/brisa/brisa/packages/brisa/src/utils/client-build-plugin/integration.test.tsx:60:60 at /Users/runner/work/brisa/brisa/packages/brisa/src/utils/client-build-plugin/integration.test.tsx:58:15
error: incorrect header check: node:zlib#L104
at zlibOnError (node:zlib:104:51) at writeSync (native:1:1) at processChunkSync (node:zlib:207:25) at zlibBufferSync (node:zlib:99:32) at /Users/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:1036:24 at processTicksAndRejections (native:7:39)
error: Decompression failed: node:zlib#L104
at zlibOnError (node:zlib:104:51) at writeSync (native:1:1) at processChunkSync (node:zlib:207:25) at zlibBufferSync (node:zlib:99:32) at /Users/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:1121:24 at processTicksAndRejections (native:7:39)
error: incorrect header check: node:zlib#L104
at zlibOnError (node:zlib:104:51) at writeSync (native:1:1) at processChunkSync (node:zlib:207:25) at zlibBufferSync (node:zlib:99:32) at /Users/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:1036:24 at processTicksAndRejections (native:7:39)
error: Decompression failed: node:zlib#L104
at zlibOnError (node:zlib:104:51) at writeSync (native:1:1) at processChunkSync (node:zlib:207:25) at zlibBufferSync (node:zlib:99:32) at /Users/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:1121:24 at processTicksAndRejections (native:7:39)
bun-tests (ubuntu-latest)
The job was canceled because "macos-latest" failed.
error: expect(received).toContain(expected): packages/brisa/src/cli/build.test.ts#L110
Compiled successfully!" Received: "" at /home/runner/work/brisa/brisa/packages/brisa/src/cli/build.test.ts:110:20
error: expect(received).toContain(expected): packages/brisa/src/cli/build.test.ts#L175
Expected to contain: "Generated static pages successfully!" Received: "[ info ] " at /home/runner/work/brisa/brisa/packages/brisa/src/cli/build.test.ts:175:20
error: expect(received).toContain(expected): packages/brisa/src/cli/build.test.ts#L203
Expected to contain: "Generated static pages successfully!" Received: "[ info ] " at /home/runner/work/brisa/brisa/packages/brisa/src/cli/build.test.ts:203:20
error: expect(received).toContain(expected): packages/brisa/src/cli/build.test.ts#L251
Expected to contain: "Generated static pages successfully!" Received: "[ info ] " at /home/runner/work/brisa/brisa/packages/brisa/src/cli/build.test.ts:251:20
error: expect(received).toContain(expected): packages/brisa/src/cli/build.test.ts#L271
Expected to contain: "Adapting output to my-adapter..." Received: "" at /home/runner/work/brisa/brisa/packages/brisa/src/cli/build.test.ts:271:20
error: incorrect header check: node:zlib#L104
at zlibOnError (node:zlib:104:51) at writeSync (native:1:1) at processChunkSync (node:zlib:207:25) at zlibBufferSync (node:zlib:99:32) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:1036:24 at processTicksAndRejections (native:7:39)
error: Decompression failed: node:zlib#L104
at zlibOnError (node:zlib:104:51) at writeSync (native:1:1) at processChunkSync (node:zlib:207:25) at zlibBufferSync (node:zlib:99:32) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:1121:24 at processTicksAndRejections (native:7:39)
error: incorrect header check: node:zlib#L104
at zlibOnError (node:zlib:104:51) at writeSync (native:1:1) at processChunkSync (node:zlib:207:25) at zlibBufferSync (node:zlib:99:32) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:1036:24 at processTicksAndRejections (native:7:39)
error: Decompression failed: node:zlib#L104
at zlibOnError (node:zlib:104:51) at writeSync (native:1:1) at processChunkSync (node:zlib:207:25) at zlibBufferSync (node:zlib:99:32) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:1121:24 at processTicksAndRejections (native:7:39)
error: incorrect header check: node:zlib#L104
at zlibOnError (node:zlib:104:51) at writeSync (native:1:1) at processChunkSync (node:zlib:207:25) at zlibBufferSync (node:zlib:99:32) at /home/runner/work/brisa/brisa/packages/brisa/src/cli/serve/serve-options.test.tsx:1036:24 at processTicksAndRejections (native:7:39)
bun-tests (windows-latest)
The job was canceled because "macos-latest" failed.
bun-tests (windows-latest)
The operation was canceled.
node-tests (ubuntu-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
node-tests (macos-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
bun-tests (macos-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
node-tests (windows-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/