You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`SharedResource`: Manages setup/verification in single test
603
-
-`action=`: Function to run before upgrade
604
-
-`.ready()`: Returns setup data after upgrade
605
-
- Markers: `@pytest.mark.{feature}_upgrades`
606
-
607
-
### Old Upgrade Pattern (Legacy)
608
-
609
-
**Location**: `tests/upgrades/`
610
-
611
-
Uses separate pre/post tests with `@pytest.mark.pre_upgrade` and `@pytest.mark.post_upgrade`:
599
+
-`SharedResource`: Represents a resource (for example, a Satellite) that can be operated on by multiple Xdist workers in parallel (for example, executing multiple tests against a single Satellite at the same time)
600
+
-`resource_file`: A file that tracks the status of each Xdist worker operating on a SharedResource. The file is located in /tmp on the system executing tests.
601
+
-`action=`: Function to be executed by a single Xdist worker when all workers are ready (for example, upgrading a Satellite after all workers have completed the setup portions of their respective tests)
602
+
-`.ready()`: Changes an Xdist worker's status to 'ready' in the resource_file. If the worker is not the main worker, it will wait until the main worker has finished executing the `action` and then continue with the test. If the worker is the main worker, it will wait until all other workers are in status 'ready' and then execute the `action`.
0 commit comments