Skip to content

Commit

Permalink
debugs
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD committed Jul 25, 2024
1 parent 4022b60 commit 4491a7f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/test_minimal/test_tools/aws_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def test_submit_aws_batch_job_with_dependencies():
)


class TestRcloneWithConfig(TestCase):
class TestDeployConversionOnEC2(TestCase):
"""
In order to run this test in CI successfully, whoever sets the Rclone credentials must use the following setup.
Expand All @@ -106,7 +106,7 @@ class TestRcloneWithConfig(TestCase):
4) Locally, run `rclone config`, then copy the relevant token values into GitHub Action secrets
"""

test_folder = OUTPUT_PATH / "rclone_tests"
test_folder = OUTPUT_PATH / "deploy_conversion_on_ec2_tests"

# Save the .conf file in a separate folder to avoid the potential of the container using the locally mounted file
adjacent_folder = OUTPUT_PATH / "rclone_conf"
Expand Down Expand Up @@ -139,15 +139,20 @@ def test_deploy_conversion_on_ec2(self):
path_to_test_yml_files = Path(__file__).parent.parent / "test_on_data" / "conversion_specifications"
yaml_file_path = path_to_test_yml_files / "GIN_conversion_specification.yml"

transfer_commands = (
"rclone copy test_google_drive_remote:test_neuroconv_ec2_batch_deployment {self.test_folder} "
"--verbose --progress --config ./rclone.conf"
)

date_tag = datetime.now().strftime("%y%m%d")
efs_volume_name = f"neuroconv_ci_tests_{date_tag}"

deploy_conversion_on_ec2(
specification_file_path=yaml_file_path,
transfer_commands="rclone copy ",
transfer_commands=transfer_commands,
transfer_config_file_path=self.test_config_file,
efs_volume_name=efs_volume_name,
dandiset_id="200560",
)

# assert that EFS volume was cleaned up after some extendedd wait time
# assert that EFS volume was cleaned up after some extended wait time

0 comments on commit 4491a7f

Please sign in to comment.