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

Add an integration test for VNC + websockify #93

Closed
wants to merge 23 commits into from
Closed

Add an integration test for VNC + websockify #93

wants to merge 23 commits into from

Commits on Jun 13, 2024

  1. Add an integration test for VNC + websockify

    This tests the following components:
    
    1. The VNC server
    2. websockify
    3. Jupyter Server Proxy
    4. The desktop environment itself
    
    It does so by:
    
    1. Building the container image
    2. Starting a container with that image, with jupyter server running
       inside.
    3. Connecting to the container via websockets, authenticating and
       exposing the websocket connection as a regular TCP socket on
       localhost via [websocat](https://github.com/vi/websocat)
    4. Taking a screenshot of the remote desktop by connecting to it
       through `vncdotool`. This requires a tcp connection, hence the
       double proxying with websocat
    5. Verify that the image produced by the screenshot is the same as a
       reference image we have.
    
    This only misses the noVNC + JS from testing, but otherwise represents
    a massive improvement to the status quo!
    yuvipanda committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    7aee660 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    44137e0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    557135e View commit details
    Browse the repository at this point in the history
  4. Dynamically allocate forwarded port

    Prevents clashes between multiple runs
    
    Also remove some old commented out code
    yuvipanda committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    fbf2fd1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    00808aa View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    af61281 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    cbe3e3d View commit details
    Browse the repository at this point in the history
  8. Quieten wget

    yuvipanda committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    66809be View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e8b864a View commit details
    Browse the repository at this point in the history
  10. Don't buffer py.test output

    yuvipanda committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    d13d5bd View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    6e7df3e View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    76b801e View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    dea42a5 View commit details
    Browse the repository at this point in the history
  14. Don't pass "-it" to docker run

    Doesn't actually need to be interactive, we primarily care
    about sharing stdout
    yuvipanda committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    3d44feb View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    e8de6d4 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    b8710d2 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    25bee53 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    5054205 View commit details
    Browse the repository at this point in the history
  19. Add tests for JS & HTML

    yuvipanda committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    adec7b2 View commit details
    Browse the repository at this point in the history
  20. Try increasing shm size on docker run

    Maybe this is what github actions needs
    yuvipanda committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    86c6cdf View commit details
    Browse the repository at this point in the history
  21. Revert "Try increasing shm size on docker run"

    It did nothing
    
    This reverts commit a33a447.
    yuvipanda committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    8ea28eb View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    c285c0b View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    7a59e95 View commit details
    Browse the repository at this point in the history