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

ci: install signal in desktop vm and take screenshots #213

Merged
merged 3 commits into from
Nov 26, 2023
Merged

ci: install signal in desktop vm and take screenshots #213

merged 3 commits into from
Nov 26, 2023

Conversation

jnsgruk
Copy link
Member

@jnsgruk jnsgruk commented Nov 25, 2023

This is a test that adds the ability to launch a KVM accelerated desktop VM inside the Github Actions runner.

Once running, we push the built snap into the VM and run signal-desktop. From there, we can use gnome-screenshot to get a screenshot of both the whole screen and the specific window we just launched.

Then finish by pulling the screenshot files out of the VM and adding them in a comment on the call for testing post.

@jnsgruk
Copy link
Member Author

jnsgruk commented Nov 25, 2023

@merlijn-sebrechts it worked!

window
screen

@jnsgruk jnsgruk marked this pull request as ready for review November 25, 2023 21:49
@jnsgruk
Copy link
Member Author

jnsgruk commented Nov 25, 2023

@merlijn-sebrechts this is ready for review, I've tested the build all works and that the screenshots get uploaded, but obviously can't really test the code that happens after merge just yet!

I've given it a couple of reads, and I think the variables etc. are all wired up correctly, but we'll see when it merges!

Copy link
Member

@merlijn-sebrechts merlijn-sebrechts left a comment

Choose a reason for hiding this comment

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

Small changes and some nitpicks, but the "don't use artifacts" one is an important one if we want to use this in other repositories too.

.github/testing-issue-template.md Outdated Show resolved Hide resolved
.github/vmctl Show resolved Hide resolved
.github/vmctl Outdated Show resolved Hide resolved
.github/vmctl Outdated Show resolved Hide resolved
.github/workflows/snap-store-publish-to-candidate.yml Outdated Show resolved Hide resolved
.github/workflows/snap-store-publish-to-candidate.yml Outdated Show resolved Hide resolved
.github/workflows/snap-store-publish-to-candidate.yml Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
.github/testing-issue-template.md Outdated Show resolved Hide resolved
Copy link
Member

@merlijn-sebrechts merlijn-sebrechts left a comment

Choose a reason for hiding this comment

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

Looks good, let's test this out!

@merlijn-sebrechts merlijn-sebrechts merged commit fb86cf0 into snapcrafters:candidate Nov 26, 2023
1 check passed
@jnsgruk jnsgruk deleted the ci-with-screenshots branch July 3, 2024 14:32
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