@@ -213,6 +213,42 @@ Sample ansible.cfg is there to ensure collection does not need to be installed.
213213ansible-playbook -i localhost, examples/iso_info.yml -v
214214` ` `
215215
216+ # # Running integration tests
217+
218+ Some test objects (ISO image, VirtualDisk, VM) needs to be created before we run integration tests.
219+ Use command:
220+
221+ ` ` ` bash
222+ ansible-playbook -i localhost, tests/integration/prepare/prepare_vm.yml -v
223+ ansible-playbook -i localhost, tests/integration/prepare/prepare_iso.yml -v
224+ ansible-playbook -i localhost, tests/integration/prepare/prepare_examples.yml -v
225+ ` ` `
226+
227+ The ` ansible-test integration` will try to run all integration test, and will fail on first problematic test.
228+ It does allow you to continue from the failed test.
229+
230+ You might want to automatically continue running remaining tests.
231+ A few failed tests can be reviewed and retried later.
232+ The ` ./ci-infra/helpers/run-tests.sh` was made for this.
233+ If N tests fail in first pass, the ` run-tests.sh` will retry only those N test in second pass.
234+ The script is used like:
235+
236+ ` ` ` bash
237+ source ci-infra/local-dev/env-host-4.sh
238+ ./ci-infra/helpers/run-tests.sh outdir <tests.txt>
239+ ` ` `
240+
241+ File ` tests.txt` is optional input.
242+ It contains one test name per line.
243+ If ommited, all tests from ` tests/integration` are run.
244+
245+ After run, the scripts create in ` outd` directory:
246+
247+ - directory ` log-${timestamp} ` directory containing a log file for each run test
248+ - file ` status.txt` contains OK/ERR/PEND/SKIP status for each run test
249+
250+ On next run, only tests that have PEND/ERR status are retried.
251+
216252# # Creating a release
217253
218254Releases are automatically created when a tag is created with a name matching
@@ -231,7 +267,7 @@ ScaleComputing does setup new VSNS, with suitable HyperCore version installed.
231267
232268Steps:
233269 - Request / reserve static IP address from Alex
234- - either replacing existing static IP or using next in series 105 .11.20x
270+ - either replacing existing static IP or using next in series 10.5 .11.20x
235271 - create empty VM with 1 virtio disk, type other, tag hc3nested, 16GB ram, 4 cores.
236272 - image new vSNS node using test iso image (vs. release - this may change in upcoming releases)
237273 - (optional) Save it as template VM, example name ` vsns9213-unconfigured`
@@ -240,6 +276,7 @@ Steps:
240276 - ` sudo singleNodeCluster=1 scclusterinit`
241277 - Save it as template VM, example name ` vsns9213-template`
242278 - Create a final vSNS from template VM, example name ` vsns9213-ci`
279+ - keep same MAC address?
243280 - Add vSNS login URL to Azure OIDC redirectUris
244281 - ensure ip address is added to entraAD (azure) app registration for OIDC integration (ask Dave if needed)
245282 - " app_display_name" : " Scale Computing HC3" ,
0 commit comments