-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Cloud Deployment IVb] Rclone in AWS on EFS #1085
Conversation
@pauladkisson And while you're at it, could you include the |
Done! |
Where exactly does the phy folder go? Under testing_rclone_spikeglx/ci_tests? Or somewhere else? |
Good question - actually, in light of that, I've modified the structure shown in the docstring Sorry about that, could you change it when you get a chance? |
@h-mayorquin This is ready now Proof of tests passing: https://github.com/catalystneuro/neuroconv/actions/runs/11085279132/job/30801565771 |
container_overrides["environment"] = [ | ||
{"name": key, "value": value} for key, value in environment_variables.items() | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to fix this, was not tested before now
|
||
# AWS Batch does not allow colons, slashes, or periods in job definition names | ||
parsed_docker_image_name = str(docker_image) | ||
for disallowed_character in [":", r"/", "."]: | ||
parsed_docker_image_name = parsed_docker_image_name.replace(disallowed_character, "-") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turns out these are really restrictive, had a fix this using a GHCR image source
@@ -540,7 +546,6 @@ def _generate_job_definition_name( | |||
job_definition_name += f"_{efs_id}" | |||
if docker_tag is None or docker_tag == "latest": | |||
date = datetime.now().strftime("%Y-%m-%d") | |||
job_definition_name += f"_created-on-{date}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After internal debate, I decided to roll this back since even latest images will be pulled, not at time of job definition declaration, but rather at time of instance run (which could be well after)
Should reduce the amount of spam for the normal AWS tests
@h-mayorquin Also leaving this as a note: You may want to include job definition cleanup in the Or you can just clean them up in a separate task periodically (monthly?), it's only a couple lines of boto3 to find the names that match some pattern and deregister them Also, there is a rare condition where if the test is interrupted via GitHub (therefore not triggering the natural |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1085 +/- ##
=======================================
Coverage 90.69% 90.69%
=======================================
Files 129 129
Lines 8186 8186
=======================================
Hits 7424 7424
Misses 762 762
Flags with carried forward coverage won't be shown. Click here to find out more. |
@pauladkisson Can you setup your Google Drive in accordance with these instructions? (just copy over https://gin.g-node.org/NeuralEnsemble/ephy_testing_data/src/master/spikeglx/Noise4Sam_g0 as shown) let me know when that's ready so I can try to deploy the CI for this