Skip to content

Commit

Permalink
Increasing max test time. Also adjusting new test scripts as the don'…
Browse files Browse the repository at this point in the history
…t seem to be getting used
  • Loading branch information
kta-intel committed Jul 10, 2023
1 parent 8414a6c commit d3d56c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

BUILD_CONTEXT = Path("../context")
JOB_SOURCE_CODE = "../../acpt-tests/src"
TIMEOUT_MINUTES = os.environ.get("timeout_minutes", 60)
TIMEOUT_MINUTES = os.environ.get("timeout_minutes", 120)
STD_LOG = Path("artifacts/user_logs/std_log.txt")
os.environ['DS_ACCELERATOR'] = 'cuda'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
import os
import time
from pathlib import Path
from azure.ai.ml import command, Output, MLClient, PyTorchDistribution
from azure.ai.ml import command, Output, MLClient
from azure.ai.ml.entities import Environment, BuildContext, JobResourceConfiguration
from azure.identity import AzureCliCredential
import subprocess

BUILD_CONTEXT = Path("../context")
JOB_SOURCE_CODE = "../../acpt-tests/src"
TIMEOUT_MINUTES = os.environ.get("timeout_minutes", 60)
TIMEOUT_MINUTES = os.environ.get("timeout_minutes", 120)
STD_LOG = Path("artifacts/user_logs/std_log.txt")


Expand Down Expand Up @@ -84,7 +84,4 @@ def test_pytorch_2_0():
else:
ml_client.jobs.stream(returned_job.name)

assert current_status == "Completed"

if __name__ == "__main__":
test_pytorch_2_0()
assert current_status == "Completed"
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,4 @@ def test_tensorflow_2_12():
else:
ml_client.jobs.stream(returned_job.name)

assert status == JobStatus.COMPLETED

if __name__ == "__main__":
test_tensorflow_2_12()
assert status == JobStatus.COMPLETED

0 comments on commit d3d56c6

Please sign in to comment.