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

Fix: Test launch a VM without building it locally #588

Conversation

Antonyjin
Copy link
Member

@Antonyjin Antonyjin commented Apr 4, 2024

Deleting the line with mksquashfs

Deleting the line with mksquashfs which was building the runtimes locally.
@Antonyjin Antonyjin self-assigned this Apr 4, 2024
ajin added 2 commits April 4, 2024 17:07
Adding a test which create a VM without building it locally
Removing useless import logging inside the test of the online VM build
@Antonyjin Antonyjin requested a review from hoh April 5, 2024 07:27
@Antonyjin Antonyjin marked this pull request as ready for review April 5, 2024 07:27
Copy link

github-actions bot commented Apr 5, 2024

Failed to retrieve llama text: POST 504:

504 Gateway Time-out


The server didn't respond in time.

Copy link
Member

@hoh hoh left a comment

Choose a reason for hiding this comment

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

Looks great. Apart from my suggestion, what do you think about moving the test function in the same file test_execution.py, as the other test ?

Comment on lines 14 to 17
async def test_create_execution():
"""
Create a new VM execution and check that it starts properly.
"""
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
async def test_create_execution():
"""
Create a new VM execution and check that it starts properly.
"""
async def test_create_execution_from_network():
"""
Create a new VM execution from the diagnostic VM and check that it starts properly.
This will download the resources from the aleph.im network if they are not present locally.
"""

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes I like this suggestion, i'll make the changes!

Some tests have the same scope, the only difference is that one test build locally
the other download from the network.
Solution: Group these tests in the same file.
@hoh hoh merged commit 60da0d8 into hoh-test-create-vm Apr 8, 2024
10 of 11 checks passed
hoh pushed a commit that referenced this pull request Apr 9, 2024
This tests that a VM from the aleph.im network can be downloaded and launched.

Co-authored-by: ajin <ajin@Aleph.ajin.virtualbox.org>
hoh pushed a commit that referenced this pull request Apr 9, 2024
This tests that a VM from the aleph.im network can be downloaded and launched.

Co-authored-by: ajin <ajin@Aleph.ajin.virtualbox.org>
hoh pushed a commit that referenced this pull request Apr 10, 2024
This tests that a VM from the aleph.im network can be downloaded and launched.

Co-authored-by: ajin <ajin@Aleph.ajin.virtualbox.org>
olethanh pushed a commit that referenced this pull request Apr 10, 2024
This tests that a VM from the aleph.im network can be downloaded and launched.

Co-authored-by: ajin <ajin@Aleph.ajin.virtualbox.org>
@Psycojoker Psycojoker deleted the 587-fix-pytest-doesnt-launch-the-diagnostic-vm-from-the-network branch July 24, 2024 15:37
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.

2 participants