-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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' || '' }} |
There was a problem hiding this comment.
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.
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.
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' || '' }} |
There was a problem hiding this comment.
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.
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.
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.