feature/improve-test-job-speeds#135
Merged
Merged
Conversation
Signed-off-by: DBT pre-commit check
8f2d098 to
795e207
Compare
Mo-DBT
approved these changes
Dec 22, 2025
Contributor
Mo-DBT
left a comment
There was a problem hiding this comment.
LGTM! Just a note since we had already discussed it, could be moving some jobs to an ad-hoc local action under .github/actions so we don't have to duplicate logic across multiple files. For example in org.common-ci.yml we could do something for Build docker image step or the repeated docker run ... line present in several places.
We could add something like this as a local action similar to the vulnerability workflow :) :
name: "Security Scan"
description: "Run security scanning using the locally built docker image"
inputs:
image:
description: "Docker image to run"
required: true
mode:
description: "Command to run inside the container (run_scan or validate_scan)"
required: true
runs:
using: "composite"
steps:
- name: Run security scan
shell: bash
run: |
docker run \
--user $(id -u):$(id -g) \
-e FORCE_HOOK_CHECKS=0 \
--rm \
-v .:/src \ #"${{ inputs.path }}":/src \ <--- but we need to add the path input
-w /src \
"${{ inputs.image }}" \
"${{ inputs.mode }}" \
--github-action \
/src
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Create a single job that builds the docker image used by test jobs. As jobs run on independant runner machines, it is not possible for the test jobs to directly access the build docker image from the build job. The upload and download artefact steps are used to get around this
Why
Both test jobs build their own image, which takes longer and adds duplicate code
How this has been tested
Reviewer Checklist