Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions tests/test_the_test/test_compute_libraries_and_scenarios.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

Expand Down
5 changes: 4 additions & 1 deletion utils/scripts/compute_libraries_and_scenarios.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}


Expand Down
Loading