Skip to content

Commit bf2d96f

Browse files
authored
timeseries: Fix functional tests in multimodal (#2383)
This PR updates the shared test utilities and documentation to support more reliable multimodal Helm automation, particularly around SeaweedFS S3 image-store verification timing. Changes: - Added dedicated wait-duration constants for multimodal SeaweedFS S3 validation steps (pod stabilization, Influx consistency, S3 response, populate, file validation). - Updated the tests README to include a k3s-specific KUBECONFIG export note for Helm-related test runs. Signed-off-by: rashmihe <rashmi.hegde@intel.com>
1 parent 2008588 commit bf2d96f

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

manufacturing-ai-suite/industrial-edge-insights-time-series/tests/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@
3333

3434
3. For Helm-related test cases, run the following commands:
3535

36-
> **Note**: A Kubernetes cluster and Helm must be installed as prerequisites.
36+
> **Note**: A Kubernetes cluster and Helm must be installed as prerequisites. If you are using k3s, ensure `KUBECONFIG` is exported before running the tests:
37+
>
38+
> ```sh
39+
> export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
40+
> ```
3741

3842
* Wind Turbine Anomaly Detection
3943

manufacturing-ai-suite/industrial-edge-insights-time-series/tests/utils/constants.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,13 @@
126126
MULTIMODAL_WAIT_AFTER_UDF_ACTIVATION = 25
127127
MULTIMODAL_WAIT_FOR_VISION_DATA = 60
128128

129+
# Multimodal SeaweedFS S3 wait durations (in seconds)
130+
MULTIMODAL_SEAWEED_WAIT_POD_STABILIZATION = 30 # wait after essential pods verified
131+
MULTIMODAL_SEAWEED_WAIT_INFLUX_CONSISTENCY = 15 # wait for InfluxDB data consistency
132+
MULTIMODAL_SEAWEED_WAIT_S3_API_RESPONSE = 10 # wait for S3 API response processing
133+
MULTIMODAL_SEAWEED_WAIT_S3_POPULATE = 30 # wait for S3 storage to be fully populated
134+
MULTIMODAL_SEAWEED_WAIT_FILE_VALIDATION = 10 # wait before file content validation
135+
129136
# Multimodal specific constants
130137
MULTIMODAL_TARGET_SUBPATH = "edge-ai-suites/manufacturing-ai-suite/industrial-edge-insights-multimodal"
131138
MULTIMODAL_APPLICATION_DIRECTORY = os.path.join(os.path.dirname(__file__), "../../../industrial-edge-insights-multimodal")

0 commit comments

Comments
 (0)