-
Notifications
You must be signed in to change notification settings - Fork 20
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
Turn on basic testing #23
Commits on Mar 10, 2024
-
I _wanted_ to turn on the automated tests that we have, but it fails because pytest is not installed. @couryrr-afs can you please fix the automated tests so we can include them as well. <details> <summary>Existing automated e2e tests fail</summary> ``` $ bash demo-automated-testing.sh [+] Building 0.0s (0/0) docker:desktop-linux [+] Running 2/0 ✔ Container everest-ac-demo-mqtt-server-1 Created 0.0s ✔ Container everest-ac-demo-manager-1 Created 0.0s Attaching to everest-ac-demo-manager-1, everest-ac-demo-mqtt-server-1 everest-ac-demo-mqtt-server-1 | 1710048535: mosquitto version 2.0.10 starting everest-ac-demo-mqtt-server-1 | 1710048535: Config loaded from /mosquitto/config/mosquitto.conf. everest-ac-demo-mqtt-server-1 | 1710048535: Opening ipv4 listen socket on port 1883. everest-ac-demo-mqtt-server-1 | 1710048535: Opening websockets listen socket on port 9001. everest-ac-demo-mqtt-server-1 | 1710048535: mosquitto version 2.0.10 running everest-ac-demo-manager-1 | ./run-test.sh: line 3: pytest: not found everest-ac-demo-manager-1 exited with code 127 ``` </details> Signed-off-by: Shankari <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7d44a4f - Browse repository at this point
Copy the full SHA 7d44a4fView commit details -
Turn it on for pull requests so we can test that it works
Signed-off-by: Shankari <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 73e5d71 - Browse repository at this point
Copy the full SHA 73e5d71View commit details -
Configuration menu - View commit details
-
Copy full SHA for 64872a5 - Browse repository at this point
Copy the full SHA 64872a5View commit details -
Set a timeout so that the action doesn't run forever
When we have true automated tests, we will not need this, but the scripts all currently run without -d and expect UI interaction, so we will timeout. Note that this means that the action will always be canceled, but not much we can do to avoid that now. Signed-off-by: Shankari <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f33a589 - Browse repository at this point
Copy the full SHA f33a589View commit details -
Set a timeout so that the action doesn't run forever
When we have true automated tests, we will not need this, but the scripts all currently run without -d and expect UI interaction, so we will timeout. Note that this means that the action will always be canceled, but not much we can do to avoid that now. Signed-off-by: Shankari <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 008e0cb - Browse repository at this point
Copy the full SHA 008e0cbView commit details -
Merge branch 'turn_on_basic_testing' of https://github.com/US-JOET/ev…
…erest-demo into turn_on_basic_testing
Configuration menu - View commit details
-
Copy full SHA for ba9b907 - Browse repository at this point
Copy the full SHA ba9b907View commit details -
Remove timeout from command since we have it as an action parameter
Signed-off-by: Shankari <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b4fb099 - Browse repository at this point
Copy the full SHA b4fb099View commit details -
Switch to mac and install docker
To be as close to the laptop environment as possible
Configuration menu - View commit details
-
Copy full SHA for 5d42259 - Browse repository at this point
Copy the full SHA 5d42259View commit details -
Since 10 minutes is too short for OSX ``` c9a245e33d92 Extracting [=================> ] 357.1MB/1.048GB c9a245e33d92 Extracting [=================> ] 357.6MB/1.048GB c9a245e33d92 Extracting [=================> ] 358.2MB/1.048GB c9a245e33d92 Extracting [=================> ] 358.7MB/1.048GB c9a245e33d92 Extracting [=================> ] 359.3MB/1.048GB Error: The action 'Download and launch' has timed out after 10 minutes. ```
Configuration menu - View commit details
-
Copy full SHA for 2c9692e - Browse repository at this point
Copy the full SHA 2c9692eView commit details -
Bump up the timeout to 30 mins
Download takes 20 mins Build should take another 10 mins
Configuration menu - View commit details
-
Copy full SHA for 05528d4 - Browse repository at this point
Copy the full SHA 05528d4View commit details -
Verify docker compose version to address issue with build mounts
Signed-off-by: Shankari <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b9a4b84 - Browse repository at this point
Copy the full SHA b9a4b84View commit details -
Let's check the colima version
Signed-off-by: Shankari <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 12f393c - Browse repository at this point
Copy the full SHA 12f393cView commit details -
And create the host folder if we need to
Although the error is likely because we are trying to mount a directory outside $HOME and /tmp/colima
Configuration menu - View commit details
-
Copy full SHA for 304e16c - Browse repository at this point
Copy the full SHA 304e16cView commit details