test(etl): Manual run 62/41662/3
authorPeter Mikus <[email protected]>
Tue, 1 Oct 2024 05:31:51 +0000 (07:31 +0200)
committerPeter Mikus <[email protected]>
Tue, 1 Oct 2024 05:34:49 +0000 (05:34 +0000)
Signed-off-by: Peter Mikus <[email protected]>
Change-Id: Ibeeb187332e956d1f86267e90dc25a573d3999a1

csit.infra.etl/coverage_device_rls2410.py
csit.infra.etl/coverage_hoststack_rls2410.py
csit.infra.etl/coverage_mrr_rls2410.py
csit.infra.etl/coverage_ndrpdr_rls2410.py
csit.infra.etl/coverage_reconf_rls2410.py
csit.infra.etl/coverage_soak_rls2410.py
csit.infra.etl/iterative_hoststack_rls2410.py
csit.infra.etl/iterative_mrr_rls2410.py
csit.infra.etl/iterative_ndrpdr_rls2410.py
csit.infra.etl/iterative_reconf_rls2410.py
csit.infra.etl/iterative_soak_rls2410.py

index 48746da..1ffba90 100644 (file)
@@ -41,9 +41,15 @@ IGNORE_SUFFIX=[
     "setup.output.info.json.gz",
     "teardown.output.info.json.gz"
 ]
+#LAST_MODIFIED_END=utc.localize(
+#    datetime.strptime(
+#        f"{datetime.now().year}-{datetime.now().month}-{datetime.now().day}",
+#        "%Y-%m-%d"
+#    )
+#)
 LAST_MODIFIED_END=utc.localize(
     datetime.strptime(
-        f"{datetime.now().year}-{datetime.now().month}-{datetime.now().day}",
+        f"{datetime.now().year}-9-29",
         "%Y-%m-%d"
     )
 )
@@ -147,8 +153,8 @@ out_sdf = process_json_to_dataframe("device", filtered_paths)
 out_sdf.printSchema()
 out_sdf = out_sdf \
     .withColumn("year", lit(datetime.now().year)) \
-    .withColumn("month", lit(datetime.now().month)) \
-    .withColumn("day", lit(datetime.now().day)) \
+    .withColumn("month", lit("9")) \
+    .withColumn("day", lit("29")) \
     .repartition(1)
 
 try:
index 080e998..af12d83 100644 (file)
@@ -41,9 +41,15 @@ IGNORE_SUFFIX=[
     "setup.output.info.json.gz",
     "teardown.output.info.json.gz"
 ]
+#LAST_MODIFIED_END=utc.localize(
+#    datetime.strptime(
+#        f"{datetime.now().year}-{datetime.now().month}-{datetime.now().day}",
+#        "%Y-%m-%d"
+#    )
+#)
 LAST_MODIFIED_END=utc.localize(
     datetime.strptime(
-        f"{datetime.now().year}-{datetime.now().month}-{datetime.now().day}",
+        f"{datetime.now().year}-9-29",
         "%Y-%m-%d"
     )
 )
@@ -147,8 +153,8 @@ out_sdf = process_json_to_dataframe("hoststack", filtered_paths)
 out_sdf.printSchema()
 out_sdf = out_sdf \
     .withColumn("year", lit(datetime.now().year)) \
-    .withColumn("month", lit(datetime.now().month)) \
-    .withColumn("day", lit(datetime.now().day)) \
+    .withColumn("month", lit("9")) \
+    .withColumn("day", lit("29")) \
     .repartition(1)
 
 try:
index 9400d8d..c06b306 100644 (file)
@@ -41,9 +41,15 @@ IGNORE_SUFFIX=[
     "setup.output.info.json.gz",
     "teardown.output.info.json.gz"
 ]
+#LAST_MODIFIED_END=utc.localize(
+#    datetime.strptime(
+#        f"{datetime.now().year}-{datetime.now().month}-{datetime.now().day}",
+#        "%Y-%m-%d"
+#    )
+#)
 LAST_MODIFIED_END=utc.localize(
     datetime.strptime(
-        f"{datetime.now().year}-{datetime.now().month}-{datetime.now().day}",
+        f"{datetime.now().year}-9-29",
         "%Y-%m-%d"
     )
 )
@@ -147,8 +153,8 @@ out_sdf = process_json_to_dataframe("mrr", filtered_paths)
 out_sdf.printSchema()
 out_sdf = out_sdf \
     .withColumn("year", lit(datetime.now().year)) \
-    .withColumn("month", lit(datetime.now().month)) \
-    .withColumn("day", lit(datetime.now().day)) \
+    .withColumn("month", lit("9")) \
+    .withColumn("day", lit("29")) \
     .repartition(1)
 
 try:
index 18b7627..303a207 100644 (file)
@@ -41,9 +41,15 @@ IGNORE_SUFFIX=[
     "setup.output.info.json.gz",
     "teardown.output.info.json.gz"
 ]
+#LAST_MODIFIED_END=utc.localize(
+#    datetime.strptime(
+#        f"{datetime.now().year}-{datetime.now().month}-{datetime.now().day}",
+#        "%Y-%m-%d"
+#    )
+#)
 LAST_MODIFIED_END=utc.localize(
     datetime.strptime(
-        f"{datetime.now().year}-{datetime.now().month}-{datetime.now().day}",
+        f"{datetime.now().year}-9-29",
         "%Y-%m-%d"
     )
 )
@@ -147,8 +153,8 @@ out_sdf = process_json_to_dataframe("ndrpdr", filtered_paths)
 out_sdf.printSchema()
 out_sdf = out_sdf \
     .withColumn("year", lit(datetime.now().year)) \
-    .withColumn("month", lit(datetime.now().month)) \
-    .withColumn("day", lit(datetime.now().day)) \
+    .withColumn("month", lit("9")) \
+    .withColumn("day", lit("29")) \
     .repartition(1)
 
 try:
index 4e596c2..4d45073 100644 (file)
@@ -41,9 +41,15 @@ IGNORE_SUFFIX=[
     "setup.output.info.json.gz",
     "teardown.output.info.json.gz"
 ]
+#LAST_MODIFIED_END=utc.localize(
+#    datetime.strptime(
+#        f"{datetime.now().year}-{datetime.now().month}-{datetime.now().day}",
+#        "%Y-%m-%d"
+#    )
+#)
 LAST_MODIFIED_END=utc.localize(
     datetime.strptime(
-        f"{datetime.now().year}-{datetime.now().month}-{datetime.now().day}",
+        f"{datetime.now().year}-9-29",
         "%Y-%m-%d"
     )
 )
@@ -139,6 +145,7 @@ paths = wr.s3.list_objects(
     last_modified_end=LAST_MODIFIED_END,
     ignore_suffix=IGNORE_SUFFIX,
     ignore_empty=True
+)
 
 filtered_paths = [path for path in paths if "report-coverage-2410" in path]
 
@@ -146,8 +153,8 @@ out_sdf = process_json_to_dataframe("reconf", filtered_paths)
 out_sdf.printSchema()
 out_sdf = out_sdf \
     .withColumn("year", lit(datetime.now().year)) \
-    .withColumn("month", lit(datetime.now().month)) \
-    .withColumn("day", lit(datetime.now().day)) \
+    .withColumn("month", lit("9")) \
+    .withColumn("day", lit("29")) \
     .repartition(1)
 
 try:
@@ -158,7 +165,6 @@ try:
     )
 except KeyError:
     boto3_session = session.Session()
-)
 
 try:
     wr.s3.to_parquet(
index 5dc9fb7..79a46a5 100644 (file)
@@ -41,9 +41,15 @@ IGNORE_SUFFIX=[
     "setup.output.info.json.gz",
     "teardown.output.info.json.gz"
 ]
+#LAST_MODIFIED_END=utc.localize(
+#    datetime.strptime(
+#        f"{datetime.now().year}-{datetime.now().month}-{datetime.now().day}",
+#        "%Y-%m-%d"
+#    )
+#)
 LAST_MODIFIED_END=utc.localize(
     datetime.strptime(
-        f"{datetime.now().year}-{datetime.now().month}-{datetime.now().day}",
+        f"{datetime.now().year}-9-29",
         "%Y-%m-%d"
     )
 )
@@ -147,8 +153,8 @@ out_sdf = process_json_to_dataframe("soak", filtered_paths)
 out_sdf.printSchema()
 out_sdf = out_sdf \
     .withColumn("year", lit(datetime.now().year)) \
-    .withColumn("month", lit(datetime.now().month)) \
-    .withColumn("day", lit(datetime.now().day)) \
+    .withColumn("month", lit("9")) \
+    .withColumn("day", lit("29")) \
     .repartition(1)
 
 try:
index 6d9e3d6..743579f 100644 (file)
@@ -41,9 +41,15 @@ IGNORE_SUFFIX=[
     "setup.output.info.json.gz",
     "teardown.output.info.json.gz"
 ]
+#LAST_MODIFIED_END=utc.localize(
+#    datetime.strptime(
+#        f"{datetime.now().year}-{datetime.now().month}-{datetime.now().day}",
+#        "%Y-%m-%d"
+#    )
+#)
 LAST_MODIFIED_END=utc.localize(
     datetime.strptime(
-        f"{datetime.now().year}-{datetime.now().month}-{datetime.now().day}",
+        f"{datetime.now().year}-9-29",
         "%Y-%m-%d"
     )
 )
@@ -147,8 +153,8 @@ out_sdf = process_json_to_dataframe("hoststack", filtered_paths)
 out_sdf.printSchema()
 out_sdf = out_sdf \
     .withColumn("year", lit(datetime.now().year)) \
-    .withColumn("month", lit(datetime.now().month)) \
-    .withColumn("day", lit(datetime.now().day)) \
+    .withColumn("month", lit("9")) \
+    .withColumn("day", lit("29")) \
     .repartition(1)
 
 try:
index d74e6a9..4319914 100644 (file)
@@ -41,9 +41,15 @@ IGNORE_SUFFIX=[
     "setup.output.info.json.gz",
     "teardown.output.info.json.gz"
 ]
+#LAST_MODIFIED_END=utc.localize(
+#    datetime.strptime(
+#        f"{datetime.now().year}-{datetime.now().month}-{datetime.now().day}",
+#        "%Y-%m-%d"
+#    )
+#)
 LAST_MODIFIED_END=utc.localize(
     datetime.strptime(
-        f"{datetime.now().year}-{datetime.now().month}-{datetime.now().day}",
+        f"{datetime.now().year}-9-29",
         "%Y-%m-%d"
     )
 )
@@ -147,8 +153,8 @@ out_sdf = process_json_to_dataframe("mrr", filtered_paths)
 out_sdf.printSchema()
 out_sdf = out_sdf \
     .withColumn("year", lit(datetime.now().year)) \
-    .withColumn("month", lit(datetime.now().month)) \
-    .withColumn("day", lit(datetime.now().day)) \
+    .withColumn("month", lit("9")) \
+    .withColumn("day", lit("29")) \
     .repartition(1)
 
 try:
index 0530dc8..50f103a 100644 (file)
@@ -41,9 +41,15 @@ IGNORE_SUFFIX=[
     "setup.output.info.json.gz",
     "teardown.output.info.json.gz"
 ]
+#LAST_MODIFIED_END=utc.localize(
+#    datetime.strptime(
+#        f"{datetime.now().year}-{datetime.now().month}-{datetime.now().day}",
+#        "%Y-%m-%d"
+#    )
+#)
 LAST_MODIFIED_END=utc.localize(
     datetime.strptime(
-        f"{datetime.now().year}-{datetime.now().month}-{datetime.now().day}",
+        f"{datetime.now().year}-9-29",
         "%Y-%m-%d"
     )
 )
@@ -147,8 +153,8 @@ out_sdf = process_json_to_dataframe("ndrpdr", filtered_paths)
 out_sdf.printSchema()
 out_sdf = out_sdf \
     .withColumn("year", lit(datetime.now().year)) \
-    .withColumn("month", lit(datetime.now().month)) \
-    .withColumn("day", lit(datetime.now().day)) \
+    .withColumn("month", lit("9")) \
+    .withColumn("day", lit("29")) \
     .repartition(1)
 
 try:
index 41d2aed..6e4693d 100644 (file)
@@ -41,9 +41,15 @@ IGNORE_SUFFIX=[
     "setup.output.info.json.gz",
     "teardown.output.info.json.gz"
 ]
+#LAST_MODIFIED_END=utc.localize(
+#    datetime.strptime(
+#        f"{datetime.now().year}-{datetime.now().month}-{datetime.now().day}",
+#        "%Y-%m-%d"
+#    )
+#)
 LAST_MODIFIED_END=utc.localize(
     datetime.strptime(
-        f"{datetime.now().year}-{datetime.now().month}-{datetime.now().day}",
+        f"{datetime.now().year}-9-29",
         "%Y-%m-%d"
     )
 )
@@ -148,8 +154,8 @@ out_sdf.show(truncate=False)
 out_sdf.printSchema()
 out_sdf = out_sdf \
     .withColumn("year", lit(datetime.now().year)) \
-    .withColumn("month", lit(datetime.now().month)) \
-    .withColumn("day", lit(datetime.now().day)) \
+    .withColumn("month", lit("9")) \
+    .withColumn("day", lit("29")) \
     .repartition(1)
 
 try:
index f581c7c..b4123ba 100644 (file)
@@ -41,9 +41,15 @@ IGNORE_SUFFIX=[
     "setup.output.info.json.gz",
     "teardown.output.info.json.gz"
 ]
+#LAST_MODIFIED_END=utc.localize(
+#    datetime.strptime(
+#        f"{datetime.now().year}-{datetime.now().month}-{datetime.now().day}",
+#        "%Y-%m-%d"
+#    )
+#)
 LAST_MODIFIED_END=utc.localize(
     datetime.strptime(
-        f"{datetime.now().year}-{datetime.now().month}-{datetime.now().day}",
+        f"{datetime.now().year}-9-29",
         "%Y-%m-%d"
     )
 )
@@ -147,8 +153,8 @@ out_sdf = process_json_to_dataframe("soak", filtered_paths)
 out_sdf.printSchema()
 out_sdf = out_sdf \
     .withColumn("year", lit(datetime.now().year)) \
-    .withColumn("month", lit(datetime.now().month)) \
-    .withColumn("day", lit(datetime.now().day)) \
+    .withColumn("month", lit("9")) \
+    .withColumn("day", lit("29")) \
     .repartition(1)
 
 try: