|
62 | 62 | SPOT_4_WIDTH = 3728 |
63 | 63 | SPOT_4_HEIGHT = 3640 |
64 | 64 |
|
65 | | -# To update file sizes: the tests print every file's actual size before asserting. Run with |
66 | | -# -s to see them, then paste the printed byte values as the second element of each tuple. |
67 | | -# Both are e2e tests and skip silently without their marker: |
| 65 | +# Output files of one he-tme item. The e2e tests check names only, not sizes: |
68 | 66 | # SPOT_0: uv run pytest tests/aignostics/application/gui_test.py::test_gui_run_download \ |
69 | 67 | # -m "e2e and long_running" -s --no-cov |
70 | 68 | # SPOT_1: uv run pytest tests/aignostics/application/cli_test.py::test_cli_run_execute \ |
71 | 69 | # -m "e2e and very_long_running" -s --no-cov |
72 | | -# |
73 | | -# These defaults reflect the production he-tme run. If staging produces different output (e.g. |
74 | | -# after deploying a new application version to staging before production), add an override inside |
75 | | -# the "staging" case below — only the constants that actually differ need to be reassigned. |
76 | | -# Note: defined here rather than inside each match arm to avoid SonarCloud flagging the |
77 | | -# nearly-identical blocks as duplicated code (the 3% duplication threshold). |
78 | | -SPOT_0_EXPECTED_RESULT_FILES: list[tuple[str, int | None, int]] = [ |
79 | | - ("tissue_qc_geojson_polygons.json", None, 10), |
80 | | - ("tissue_qc_parquet_polygons.parquet", None, 10), |
81 | | - ("tissue_qc_segmentation_map_image.tiff", None, 10), |
82 | | - ("tissue_segmentation_geojson_polygons.json", None, 10), |
83 | | - ("tissue_segmentation_parquet_polygons.parquet", None, 10), |
84 | | - ("tissue_segmentation_segmentation_map_image.tiff", None, 10), |
85 | | - ("cell_classification_geojson_polygons.json", None, 10), |
86 | | - ("cell_classification_parquet_polygons.parquet", None, 10), |
87 | | - ("whole_tumor_region_geojson_polygons.json", None, 10), |
88 | | - ("whole_tumor_region_parquet_polygons.parquet", None, 10), |
89 | | - ("tumor_cellularity_geojson_polygons.json", None, 10), |
90 | | - ("tumor_cellularity_parquet_polygons.parquet", None, 10), |
91 | | - ("tertiary_lymphoid_structure_parquet_polygons.parquet", None, 10), |
92 | | - ("readout_generation_readouts_bundle.zip", None, 10), |
93 | | -] |
94 | | - |
95 | | -SPOT_1_EXPECTED_RESULT_FILES: list[tuple[str, int | None, int]] = [ |
96 | | - ("tissue_qc_geojson_polygons.json", None, 10), |
97 | | - ("tissue_qc_parquet_polygons.parquet", None, 10), |
98 | | - ("tissue_qc_segmentation_map_image.tiff", None, 10), |
99 | | - ("tissue_segmentation_geojson_polygons.json", None, 10), |
100 | | - ("tissue_segmentation_parquet_polygons.parquet", None, 10), |
101 | | - ("tissue_segmentation_segmentation_map_image.tiff", None, 10), |
102 | | - ("cell_classification_geojson_polygons.json", None, 10), |
103 | | - ("cell_classification_parquet_polygons.parquet", None, 10), |
104 | | - ("whole_tumor_region_geojson_polygons.json", None, 10), |
105 | | - ("whole_tumor_region_parquet_polygons.parquet", None, 10), |
106 | | - ("tumor_cellularity_geojson_polygons.json", None, 10), |
107 | | - ("tumor_cellularity_parquet_polygons.parquet", None, 10), |
108 | | - ("tertiary_lymphoid_structure_parquet_polygons.parquet", None, 10), |
109 | | - ("readout_generation_readouts_bundle.zip", None, 10), |
110 | | -] |
| 70 | +HETA_EXPECTED_RESULT_FILES = { |
| 71 | + "tissue_qc_geojson_polygons.json", |
| 72 | + "tissue_qc_parquet_polygons.parquet", |
| 73 | + "tissue_qc_segmentation_map_image.tiff", |
| 74 | + "tissue_segmentation_geojson_polygons.json", |
| 75 | + "tissue_segmentation_parquet_polygons.parquet", |
| 76 | + "tissue_segmentation_segmentation_map_image.tiff", |
| 77 | + "cell_classification_geojson_polygons.json", |
| 78 | + "cell_classification_parquet_polygons.parquet", |
| 79 | + "whole_tumor_region_geojson_polygons.json", |
| 80 | + "whole_tumor_region_parquet_polygons.parquet", |
| 81 | + "tumor_cellularity_geojson_polygons.json", |
| 82 | + "tumor_cellularity_parquet_polygons.parquet", |
| 83 | + "tertiary_lymphoid_structure_parquet_polygons.parquet", |
| 84 | + "readout_generation_readouts_bundle.zip", |
| 85 | +} |
111 | 86 |
|
112 | 87 | match os.getenv("AIGNOSTICS_PLATFORM_ENVIRONMENT", "production"): |
113 | 88 | case "production": |
|
140 | 115 | PIPELINE_CPU_PROVISIONING_MODE = "SPOT" |
141 | 116 | PIPELINE_NODE_ACQUISITION_TIMEOUT_MINUTES = 25 |
142 | 117 |
|
143 | | - # If staging outputs differ from the defaults above, override them here, e.g.: |
144 | | - # SPOT_0_EXPECTED_RESULT_FILES = [("tissue_qc_segmentation_map_image.tiff", <bytes>, 10), ...] |
145 | | - # SPOT_1_EXPECTED_RESULT_FILES = [("tissue_qc_segmentation_map_image.tiff", <bytes>, 10), ...] |
146 | | - |
147 | 118 | case _: |
148 | 119 | message = f"Unsupported AIGNOSTICS_PLATFORM_ENVIRONMENT value: {os.getenv('AIGNOSTICS_PLATFORM_ENVIRONMENT')}" |
149 | 120 | raise ValueError(message) |
0 commit comments