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

chore(ci): add PR check e2e linux workflow #155

Merged
merged 2 commits into from
Jun 10, 2024

Conversation

odockal
Copy link
Contributor

@odockal odockal commented Jun 5, 2024

Fixed #93.

Add PR check job that build extension locally and use it when running e2e tests. Encouraging shift-left workflow.

@odockal odockal requested a review from dgolovin June 5, 2024 12:25
@odockal odockal requested a review from a team as a code owner June 5, 2024 12:25
@odockal odockal requested review from jeffmaury and feloy June 5, 2024 12:25
@odockal
Copy link
Contributor Author

odockal commented Jun 5, 2024

@dgolovin We got a nice pipeline now.
For now, e2e tests are passing:
Screenshot_20240605_161529
Test Artifacts are present and of a size 50 MB which means that they content traces and screenshots and videos.

One question is that if we want e2e test job to be run after unit tests (which is totally right) and at the same time as build job, or even after build (we also make sure to run e2e tests once all other jobs are in a good shape). WDYT?

@jeffmaury
Copy link
Member

@dgolovin We got a nice pipeline now. For now, e2e tests are passing: Screenshot_20240605_161529 Test Artifacts are present and of a size 50 MB which means that they content traces and screenshots and videos.

One question is that if we want e2e test job to be run after unit tests (which is totally right) and at the same time as build job, or even after build (we also make sure to run e2e tests once all other jobs are in a good shape). WDYT?

I would run them after unit tests

yarn build
podman build -t local_sso_image ./
CONTAINER_ID=$(podman create localhost/local_sso_image --entrypoint "")
podman export $CONTAINER_ID > /tmp/local_sso_image.tar
Copy link
Member

Choose a reason for hiding this comment

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

Use podman save as it's more logical

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But it save command does not create an archive with a file system structure (extension content) that I could use, right? that is why I need to create a container which will open the way to get to a content of an extension.
I think we have discussed that in bootc PR: https://github.com/containers/podman-desktop-extension-bootc/pull/224/files/a74d54c8731175665099c4039aafca44f6fef9f8#r1560816381

But If there is a way to use podman save I am all for, I just failed to find a way with using image directly.

Copy link
Member

Choose a reason for hiding this comment

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

There should be a simpler way to do it ie use the cdix file but it looks overpopulated so giving a +1

@odockal odockal requested a review from jeffmaury June 7, 2024 09:24
Copy link
Member

@jeffmaury jeffmaury left a comment

Choose a reason for hiding this comment

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

LGTM

yarn build
podman build -t local_sso_image ./
CONTAINER_ID=$(podman create localhost/local_sso_image --entrypoint "")
podman export $CONTAINER_ID > /tmp/local_sso_image.tar
Copy link
Member

Choose a reason for hiding this comment

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

There should be a simpler way to do it ie use the cdix file but it looks overpopulated so giving a +1

@odockal
Copy link
Contributor Author

odockal commented Jun 10, 2024

There should be a simpler way to do it ie use the cdix file but it looks overpopulated so giving a +1

@jeffmaury It would be awesome to use ie. a file produced from a build. But I do not have access to it, unless it is available on the registry. Also, we should make sure to grab or use anything that actually produces the extension, which is in this case a containerfile, so it does not leave much space for simpler solution, unfortunately. but I would be very glad to find something more straightforward.

Thanks!

@odockal odockal merged commit 804358f into redhat-developer:main Jun 10, 2024
7 checks passed
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.

E2E tests are being run on PR check workflow on GHA
2 participants