Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(IDX): in system-tests, show error when uploading the image fail…
…s & retry up to 3 times (#2954) In system-tests, the image upload sometimes fails. For example: ``` $ ict test //rs/tests/consensus/subnet_recovery:sr_app_same_nodes_test Raw Bazel command to be invoked: $ bazel test //rs/tests/consensus/subnet_recovery:sr_app_same_nodes_test --config=systest --cache_test_results=no INFO: Invocation ID: 075ad521-6af0-4c9b-a0d4-37b0024ff087 INFO: Streaming build results to: https://dash.idx.dfinity.network/invocation/075ad521-6af0-4c9b-a0d4-37b0024ff087 WARNING: Streamed test output requested. All tests will be run locally, without sharding, one at a time INFO: Analyzed target //rs/tests/consensus/subnet_recovery:sr_app_same_nodes_test (0 packages loaded, 0 targets configured). Found dep to upload ic-os/guestos/envs/dev/disk-img.tar.zst (5b62b9686a6007ac1adfea3436ee588fccc3dfde35c0f9d20dd476ea7cd7f07b) dep 'ic-os/guestos/envs/dev/disk-img.tar.zst': not uploaded yet Using upload URL: 'http://server.bazel-remote.svc.cluster.local:8080/cas/5b62b9686a6007ac1adfea3436ee588fccc3dfde35c0f9d20dd476ea7cd7f07b' 0 0.015513 0 FAIL: //rs/tests/consensus/subnet_recovery:sr_app_same_nodes_test ``` This is confusing for users since no curl error is shown. This commit fixes that by passing `--show-error` to curl and also retrying the upload up to 3 times to make it more robust to temporary failures.
- Loading branch information