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

Refactor E2E tests in CI #730

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Refactor E2E tests in CI #730

wants to merge 5 commits into from

Conversation

markspolakovs
Copy link
Collaborator

This PR reshuffles how the E2E tests are run in CI.

Previously test-e2e-desktop-complete and test-e2e-server would each build Server and Jobrunner, which was not only wasteful but also slightly non-representative of the final build.

Now we reuse the build_shared action to build the Docker images just like we would for a release, just without pushing them. We then import them into the test steps and run the tests against a docker-compose'd version.

Copy link
Contributor

github-actions bot commented Oct 26, 2024

Warnings
⚠️

No Linear ticket found. Please include one in either the pull request title (e.g. [BDGR-123] Fix something), the description (Fixes BDGR-123.), or the branch name (bow-123-fix-something).

Generated by 🚫 dangerJS against c77b783

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 suggestions.

tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: ${{ inputs.multi_arch && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
cache-from: type=gha
cache-to: type=gha,mode=max
outputs: ${{ inputs.export_artifacts && 'type=docker,dest=/tmp/server.tar' || '' }}
Copy link
Preview

Copilot AI Nov 15, 2024

Choose a reason for hiding this comment

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

The key 'outputs' should be 'output' in the docker/build-push-action step.

Suggested change
outputs: ${{ inputs.export_artifacts && 'type=docker,dest=/tmp/server.tar' || '' }}
output: ${{ inputs.export_artifacts && 'type=docker,dest=/tmp/server.tar' || '' }}

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
tags: ${{ steps.jr_meta.outputs.tags }}
labels: ${{ steps.jr_meta.outputs.labels }}
platforms: ${{ inputs.multi_arch && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
cache-from: type=gha
cache-to: type=gha,mode=max
outputs: ${{ inputs.export_artifacts && 'type=docker,dest=/tmp/jobrunner.tar' || '' }}
Copy link
Preview

Copilot AI Nov 15, 2024

Choose a reason for hiding this comment

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

The key 'outputs' should be 'output' in the docker/build-push-action step.

Suggested change
outputs: ${{ inputs.export_artifacts && 'type=docker,dest=/tmp/jobrunner.tar' || '' }}
output: ${{ inputs.export_artifacts && 'type=docker,dest=/tmp/jobrunner.tar' || '' }}

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
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.

1 participant