Skip to content

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.

@github-actions
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 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.

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

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 uses AI. Check for mistakes.
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

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 uses AI. Check for mistakes.
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