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

test: Fix instance reference within test #372

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

MusicDin
Copy link
Member

No description provided.

@MusicDin MusicDin merged commit bc2d38a into terraform-lxd:main Nov 13, 2023
4 checks passed
@adamcstephens
Copy link
Collaborator

Aha, I spent some time last week and couldn't track this down. Thanks for finding it. I'm not sure how this ever passed.

@MusicDin
Copy link
Member Author

Yes, this is exactly what I don't understand. While this fixed the test that is running locally, GH actions log indicates VM tests were skipped:

@adamcstephens
Copy link
Collaborator

adamcstephens commented Nov 13, 2023

That's not good. I suspect some actions runners don't support virtualization while some do. And others appear to be seeing the same actions/runner-images#7191 (comment)

It's a shame we can't rely on these tests. I'd suggest we fail the build if virtualization is missing, but then there's no reliable way to make sure we do get a runner that supports it.

@MusicDin
Copy link
Member Author

Hmmm, let's make sure all VM tests are passing locally. I'm experiencing some issues with old container resource where GET /v1/containers cannot find the instance, but I can see it running in LXD.

I'm assuming the tests will pass then even when virtualization is enabled on GH runner.

@MusicDin
Copy link
Member Author

MusicDin commented Nov 13, 2023

Seems that virtualization works when enabled on GH runner: https://github.com/terraform-lxd/terraform-provider-lxd/actions/runs/6851234379/job/18627079116#step:8:122

It fails for lxd_container resource, but passes for the lxd_instance resource. (Same locally)

@MusicDin MusicDin deleted the fix/test-instance-vm branch February 28, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants