-
Notifications
You must be signed in to change notification settings - Fork 75
Copy test verififcation #267
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
base: master
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
This PR adds comprehensive copy functionality testing to the machine testing process. The changes integrate file transfer tests (local-to-remote and remote-to-local) into the existing machine validation workflow to ensure instances can properly handle file operations.
- Adds proper session management with try/finally cleanup in HTTP requests
- Implements
run_copy_testfunction that creates SSH keys, performs bidirectional file transfers with 100MB test files, and validates transfer integrity - Integrates copy testing into the machine testing workflow with enhanced logging and monitoring
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| def run_copy_test(instance_id, api_key, args): | ||
| """ | ||
| Tests file copy operations between local and remote instance. | ||
| Returns: | ||
| (passed: bool, reason: str) | ||
| """ |
Copilot
AI
Sep 3, 2025
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.
The PR title contains a spelling error: 'verififcation' should be 'verification'.
| progress_print(args, f"[MACHINE TESTER] Cleaning up instance {instance_id} in finally block") | ||
| destroy_instance_silent(instance_id, destroy_args) | ||
| progress_print(args, f"Machine: {machine_id} Done with testing remote.py results {message}") | ||
| else: | ||
| progress_print(args, f"[MACHINE TESTER] Instance {instance_id} already destroyed or doesn't exist") |
Copilot
AI
Sep 3, 2025
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.
Inconsistent indentation in the finally block. The lines inside the if statement should be properly indented to match Python standards.
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.
Indent is ok
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.
Working as intended. Looks good to me @looplater
No description provided.