Commit 298879ae authored by Albert Salim's avatar Albert Salim

Add `needs` to `test` jobs to bypass `fixtures`

These jobs now have `needs` with `retrieve-tests-metadata`
as it is the quickest test in `prepare`.
parent 2306969c
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
- .use-pg9 - .use-pg9
stage: test stage: test
needs: ["setup-test-env"] needs: ["setup-test-env"]
dependencies: ["setup-test-env"]
variables: variables:
FIXTURE_PATH: "db/fixtures/development" FIXTURE_PATH: "db/fixtures/development"
SEED_CYCLE_ANALYTICS: "true" SEED_CYCLE_ANALYTICS: "true"
......
...@@ -46,7 +46,9 @@ docs lint: ...@@ -46,7 +46,9 @@ docs lint:
- .docs:rules:docs-lint - .docs:rules:docs-lint
image: "registry.gitlab.com/gitlab-org/gitlab-docs:docs-lint" image: "registry.gitlab.com/gitlab-org/gitlab-docs:docs-lint"
stage: test stage: test
dependencies: [] needs:
- job: "retrieve-tests-metadata"
artifacts: false
script: script:
- scripts/lint-doc.sh - scripts/lint-doc.sh
# Lint Markdown # Lint Markdown
......
...@@ -128,7 +128,11 @@ compile-assets pull-cache as-if-foss: ...@@ -128,7 +128,11 @@ compile-assets pull-cache as-if-foss:
- .default-before_script - .default-before_script
- .use-pg9 - .use-pg9
stage: fixtures stage: fixtures
needs: ["setup-test-env", "compile-assets pull-cache"] needs:
- job: "setup-test-env"
artifacts: true
- job: "compile-assets pull-cache"
artifacts: true
script: script:
- date - date
- scripts/gitaly-test-spawn - scripts/gitaly-test-spawn
......
...@@ -3,7 +3,9 @@ ...@@ -3,7 +3,9 @@
- .default-tags - .default-tags
- .default-retry - .default-retry
stage: test stage: test
dependencies: [] needs:
- job: "retrieve-tests-metadata"
artifacts: false
cache: cache:
key: "qa-framework-jobs:v1" key: "qa-framework-jobs:v1"
paths: paths:
......
...@@ -12,6 +12,9 @@ code_quality: ...@@ -12,6 +12,9 @@ code_quality:
- .default-retry - .default-retry
- .reports:rules:code_quality - .reports:rules:code_quality
stage: test stage: test
needs:
- job: "retrieve-tests-metadata"
artifacts: false
image: docker:stable image: docker:stable
allow_failure: true allow_failure: true
services: services:
...@@ -39,7 +42,6 @@ code_quality: ...@@ -39,7 +42,6 @@ code_quality:
paths: paths:
- gl-code-quality-report.json # GitLab-specific - gl-code-quality-report.json # GitLab-specific
expire_in: 1 week # GitLab-specific expire_in: 1 week # GitLab-specific
dependencies: []
# We need to duplicate this job's definition because it seems it's impossible to # We need to duplicate this job's definition because it seems it's impossible to
# override an included `only.refs`. # override an included `only.refs`.
...@@ -52,7 +54,9 @@ sast: ...@@ -52,7 +54,9 @@ sast:
- .reports:rules:sast - .reports:rules:sast
stage: test stage: test
allow_failure: true allow_failure: true
dependencies: [] # GitLab-specific needs:
- job: "retrieve-tests-metadata"
artifacts: false
artifacts: artifacts:
paths: paths:
- gl-sast-report.json # GitLab-specific - gl-sast-report.json # GitLab-specific
...@@ -90,6 +94,9 @@ dependency_scanning: ...@@ -90,6 +94,9 @@ dependency_scanning:
- .default-retry - .default-retry
- .reports:rules:dependency_scanning - .reports:rules:dependency_scanning
stage: test stage: test
needs:
- job: "retrieve-tests-metadata"
artifacts: false
image: docker:stable image: docker:stable
variables: variables:
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
...@@ -148,7 +155,6 @@ dependency_scanning: ...@@ -148,7 +155,6 @@ dependency_scanning:
reports: reports:
dependency_scanning: gl-dependency-scanning-report.json dependency_scanning: gl-dependency-scanning-report.json
expire_in: 1 week # GitLab-specific expire_in: 1 week # GitLab-specific
dependencies: []
# We need to duplicate this job's definition because it seems it's impossible to # We need to duplicate this job's definition because it seems it's impossible to
# override an included `only.refs`. # override an included `only.refs`.
......
...@@ -248,7 +248,9 @@ danger-review: ...@@ -248,7 +248,9 @@ danger-review:
- .review:rules:danger - .review:rules:danger
image: registry.gitlab.com/gitlab-org/gitlab-build-images:danger image: registry.gitlab.com/gitlab-org/gitlab-build-images:danger
stage: test stage: test
dependencies: [] needs:
- job: "retrieve-tests-metadata"
artifacts: false
script: script:
- git version - git version
- node --version - node --version
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment