From 6c527eef08c9db04925fa9c824736bc86f4491c0 Mon Sep 17 00:00:00 2001 From: Roch Devost Date: Thu, 10 Sep 2026 00:16:02 -0400 Subject: [PATCH] ci(nodejs): lower default shard duration to 300 seconds --- .../test_compute_libraries_and_scenarios.py | 13 +++++++++++++ utils/scripts/compute_libraries_and_scenarios.py | 5 ++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/tests/test_the_test/test_compute_libraries_and_scenarios.py b/tests/test_the_test/test_compute_libraries_and_scenarios.py index 4108b2784cd..464ab74ccc5 100644 --- a/tests/test_the_test/test_compute_libraries_and_scenarios.py +++ b/tests/test_the_test/test_compute_libraries_and_scenarios.py @@ -187,6 +187,19 @@ def test_docker_file(self): "end_to_end,open_telemetry", ) + def test_nodejs_docker_file(self): + inputs = build_inputs(["utils/build/docker/nodejs/express5.Dockerfile"]) + + assert_github_processor( + inputs, + ["nodejs"], + ["nodejs"], + 300, + "false", + "DEFAULT", + "end_to_end,open_telemetry", + ) + def test_c_docker_file(self): inputs = build_inputs(["utils/build/docker/c/perl-mojolicious.Dockerfile"]) diff --git a/utils/scripts/compute_libraries_and_scenarios.py b/utils/scripts/compute_libraries_and_scenarios.py index 7337ebabc2c..be25cd77d91 100644 --- a/utils/scripts/compute_libraries_and_scenarios.py +++ b/utils/scripts/compute_libraries_and_scenarios.py @@ -165,10 +165,13 @@ def get_outputs(self) -> dict[str, Any]: ] libraries_with_dev = [item["library"] for item in populated_result if item["version"] == "dev"] + single_library_execution_time = 300 if self.selected == {"nodejs"} else 600 + desired_execution_time = single_library_execution_time if len(self.selected) == 1 else 3600 + return { "library_matrix": populated_result, "libraries_with_dev": libraries_with_dev, - "desired_execution_time": 600 if len(self.selected) == 1 else 3600, + "desired_execution_time": desired_execution_time, }