Skip to content

Conversation

@looplater
Copy link

No description provided.

Copy link

Copilot AI left a 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_test function 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.

Comment on lines +6774 to +6780
def run_copy_test(instance_id, api_key, args):
"""
Tests file copy operations between local and remote instance.
Returns:
(passed: bool, reason: str)
"""
Copy link

Copilot AI Sep 3, 2025

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'.

Copilot uses AI. Check for mistakes.
Comment on lines +7311 to +7314
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")
Copy link

Copilot AI Sep 3, 2025

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.

Copilot uses AI. Check for mistakes.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent is ok

Copy link
Contributor

@robballantyne robballantyne left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants