thunderclient / thunder-client-support

Thunder Client is a lightweight Rest API Client Extension for VS Code.
https://www.thunderclient.com
Other
3.61k stars 126 forks source link

JSON Schema for Schemavalidation gets Error in CI #1471

Closed erwinmoretz closed 7 months ago

erwinmoretz commented 7 months ago

Describe the bug Hello Ranga,

I have upgraded the version of Thunder Client CLI in our pipeline to a current version to be able to use the tc.skipRequest() function.

Unfortunately, this has triggered a side effect and my tests for the schema validations are failing. My analysis shows that the documents for the defined schemas cannot be read.

As soon as I switch back to the old version, the schema validation tests work again, but I can't use the function I need.

when i run it in the local CI it works well!

Is this bug known?

CLI Version where schema validation is working: 1.9.0 CLI Version which i tried to use: 1.11.0, 1.11.2

Screenshot from log: image

Platform:

Are you using the free version/paid version/trial: paid

rangav commented 7 months ago

Thanks @erwinmoretz for reporting bug, will verify and fix it asap.

rangav commented 7 months ago

May be schema file path is not valid?

Can you right click on the schema file and select copy relative path and compare with existing path?

erwinmoretz commented 7 months ago

they use the exact same path. Here an example with the used path and the copied relative path: image

rangav commented 7 months ago

Thanks for the confirmation. Will investigate and get back to you.

Can you also confirm below, will be helpful to investigate issue.

erwinmoretz commented 7 months ago

CLI v1.9.0 - Works locally (Yes) and CI/CD (YES)? ->schemavalidation working but no skipRequest feat. CLI 1.11.0 - Works locally (Yes) and CI/CD (NO)? -> schemavalidation not working but skipRequest is usable.

rangav commented 7 months ago

Thanks for the confirmation. will verify and get back to you ASAP.

rangav commented 7 months ago

We had similar issue before - https://github.com/rangav/thunder-client-support/issues/1310#issuecomment-1704905473

Is it multi-root workspace?

can you share the debug info by running command - tc --debug

erwinmoretz commented 7 months ago

Will share the informations from each run with the versions: image image image

rangav commented 7 months ago

Thanks for sharing. Is it multi-root workspace?

erwinmoretz commented 7 months ago

No, its not: image

rangav commented 7 months ago

Thanks for the confirmation.

rangav commented 7 months ago

I have fixed this issue, Please update CLI to v1.11.6

See all features in this update https://github.com/rangav/thunder-client-support/releases/tag/v2.17.5

Please test and let me know feedback.