Skip to content

Commit 67cc4a1

Browse files
committed
Disabling test backends that seem to, suddenly, suffer from permission
errors. (in spite of making the translation directory world-writable).
1 parent 5dc466e commit 67cc4a1

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

tests/test_helpers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ def _start_docker_container(backend, mounted_dir, working_dir, bin_dir, command=
9999
else:
100100
sys.stderr.write(f"[{backend}] Not Copying wfbench and cpu-benchmark...\n")
101101

102+
# Change file permissions
103+
exit_code, output = container.exec_run(["sh", "-c", "sudo chown -R wfcommons:wfcommons "],
104+
stdout=True, stderr=True)
105+
106+
102107
container.backend = backend
103108
return container
104109

tests/translators_loggers/test_translators_loggers.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import json
1616
import time
1717
import re
18+
import os
1819

1920
from tests.test_helpers import _create_fresh_local_dir
2021
from tests.test_helpers import _remove_local_dir_if_it_exists
@@ -230,11 +231,11 @@ class TestTranslators:
230231
@pytest.mark.parametrize(
231232
"backend",
232233
[
233-
# "swiftt",
234-
# "dask",
234+
"swiftt",
235+
"dask",
235236
# "parsl",
236237
# "nextflow",
237-
# "airflow",
238+
"airflow",
238239
"bash",
239240
# "taskvine",
240241
# "makeflow",
@@ -258,6 +259,10 @@ def test_translator(self, backend) -> None:
258259
translator = translator_classes[backend](benchmark.workflow)
259260
translator.translate(output_folder=dirpath)
260261

262+
# Make the directory that holds the translation world-writable,
263+
# so that docker commands won't fail
264+
os.chmod(dirpath, 0o777)
265+
261266
# Start the Docker container
262267
container = _start_docker_container(backend, str_dirpath, str_dirpath, str_dirpath + "bin/")
263268

0 commit comments

Comments
 (0)