Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bun] got related tests are not working #835

Open
prabhu opened this issue Jan 27, 2024 · 2 comments
Open

[bun] got related tests are not working #835

prabhu opened this issue Jan 27, 2024 · 2 comments
Labels

Comments

@prabhu
Copy link
Contributor

prabhu commented Jan 27, 2024

Tests that involve HTTP calls with got are broken with bun. It's best to wait till it improves since rewriting cdxgen without got is not risk-free.

✓ parse cargo auditable data [0.36ms]
89 |                 Object.assign(this.options.headers, source.headers);
90 |             }
91 |         });
92 |         this.on('newListener', event => {
93 |             if (event === 'retry' && this.listenerCount('retry') > 0) {
94 |                 throw new Error('A retry listener has been attached already.');
                           ^
error: A retry listener has been attached already.
      at /mnt/work/CycloneDX/cdxgen/node_modules/.deno/got@14.0.0/node_modules/got/dist/source/core/index.js:94:23
      at makeRequest (/mnt/work/CycloneDX/cdxgen/node_modules/.deno/got@14.0.0/node_modules/got/dist/source/as-promise/index.js:107:13)
      at /mnt/work/CycloneDX/cdxgen/node_modules/.deno/got@14.0.0/node_modules/got/dist/source/as-promise/index.js:125:9
      at /mnt/work/CycloneDX/cdxgen/node_modules/.deno/p-cancelable@4.0.1/node_modules/p-cancelable/index.js:68:4
      at new Promise (:1:21)
      at new PCancelable (/mnt/work/CycloneDX/cdxgen/node_modules/.deno/p-cancelable@4.0.1/node_modules/p-cancelable/index.js:34:19)
      at asPromise (/mnt/work/CycloneDX/cdxgen/node_modules/.deno/got@14.0.0/node_modules/got/dist/source/as-promise/index.js:21:21)
      at lastHandler (/mnt/work/CycloneDX/cdxgen/node_modules/.deno/got@14.0.0/node_modules/got/dist/source/create.js:42:27)
      at iterateHandlers (/mnt/work/CycloneDX/cdxgen/node_modules/.deno/got@14.0.0/node_modules/got/dist/source/create.js:49:19)
✓ parse .net cs proj [4.34ms]
89 |                 Object.assign(this.options.headers, source.headers);
90 |             }
91 |         });
92 |         this.on('newListener', event => {
93 |             if (event === 'retry' && this.listenerCount('retry') > 0) {
94 |                 throw new Error('A retry listener has been attached already.');
                           ^
error: A retry listener has been attached already.
      at /mnt/work/CycloneDX/cdxgen/node_modules/.deno/got@14.0.0/node_modules/got/dist/source/core/index.js:94:23
      at makeRequest (/mnt/work/CycloneDX/cdxgen/node_modules/.deno/got@14.0.0/node_modules/got/dist/source/as-promise/index.js:107:13)
      at /mnt/work/CycloneDX/cdxgen/node_modules/.deno/got@14.0.0/node_modules/got/dist/source/as-promise/index.js:125:9
      at /mnt/work/CycloneDX/cdxgen/node_modules/.deno/p-cancelable@4.0.1/node_modules/p-cancelable/index.js:68:4
      at new Promise (:1:21)
      at new PCancelable (/mnt/work/CycloneDX/cdxgen/node_modules/.deno/p-cancelable@4.0.1/node_modules/p-cancelable/index.js:34:19)
      at asPromise (/mnt/work/CycloneDX/cdxgen/node_modules/.deno/got@14.0.0/node_modules/got/dist/source/as-promise/index.js:21:21)
      at lastHandler (/mnt/work/CycloneDX/cdxgen/node_modules/.deno/got@14.0.0/node_modules/got/dist/source/create.js:42:27)
      at iterateHandlers (/mnt/work/CycloneDX/cdxgen/node_modules/.deno/got@14.0.0/node_modules/got/dist/source/create.js:49:19)
✗ get nget metadata [1.43ms]
@prabhu
Copy link
Contributor Author

prabhu commented Jan 27, 2024

@prabhu
Copy link
Contributor Author

prabhu commented Apr 22, 2024

Looks like these bugs are still unresolved.

https://github.com/CycloneDX/cdxgen/actions/runs/8788201035/job/24115125965#step:75:74

@prabhu prabhu added the bun label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant