CI: Fetching schemas via `cURL` fails
In our CI we download the schema files from admin-shell-io/aas-specs to use them in the sdk-test job.
https://github.com/eclipse-basyx/basyx-python-sdk/blob/ca78e9a92e4383914065bdf11c7e3841d449ea36/.github/workflows/ci.yml#L80-L84
For the currently set variable value AAS_SPECS_RELEASE_TAG: "IDTA-01001-3-1-2" these URLs do not exist.
Despite the 404 response code of the HTTP Request cURL finishes with status code 0 and the CI step does not fail.
The sdk tests simply skip the tests, that require the schema files: https://github.com/eclipse-basyx/basyx-python-sdk/blob/ca78e9a92e4383914065bdf11c7e3841d449ea36/sdk/test/adapter/json/test_json_serialization.py#L50-L54
https://github.com/eclipse-basyx/basyx-python-sdk/blob/ca78e9a92e4383914065bdf11c7e3841d449ea36/sdk/test/adapter/xml/test_xml_serialization.py#L50-L54
This explains why this bug stayed unnoticed for so long. To avoid this in future I suggest to
- [ ] correct the URL the schemas are downloaded from
- [ ] add the
-fflag to thecurlcall to exit non-zero on any errors - [ ] (optionally) rely on a different condition to skip the unittests than existence of the schema files