Skip to content
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

Publish test report to cloud #6

Open
m-mcgowan opened this issue Aug 25, 2014 · 0 comments
Open

Publish test report to cloud #6

m-mcgowan opened this issue Aug 25, 2014 · 0 comments
Assignees

Comments

@m-mcgowan
Copy link
Owner

Local executors can get the test report via the Serial interface.

Remote test executors don't have this option. At present there is no easy way to pass a large amount of data via the cloud. Here are the options:

  • use Spark.publish(): maximum event size is 64 bytes and maximum of 1 per second, 4 in a burst.
  • open a TCP server: this could work, but need to find out our public IP address for the remote client to connect to. There are services on the internet that can provide this. But too much effort!
  • use spark variable: copy say) 600 bytes form the log to a variable. Use a function to advance the pointer (and variable content) to the next 600 bytes. Function returns -1 when no more content (which then wraps around and starts from the beginning). This is fairly easy to code, test and use.
  • write to github directly: too tightly coupled to a specific use-case.

I'll implement using a variable and a function to advance the start point. Interaction like this:

  • call update function - this fetches the N bytes from the circular buffer, writes them to the variable and returns N. This advances the pointer in the circular buffer.
  • if circular buffer has 0 characters available, check test status flag to see if test is complete - when complete return -1, else return 0. This allows client code to continue retrying when the log is still open.

Although a little hacky, this allows relatively small streams (<1MB) to be pushed through the cloud relatively quickly.

@m-mcgowan m-mcgowan self-assigned this Aug 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant