Commit d0d54215 authored by 徐豪's avatar 徐豪
Browse files

init

parents

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.
pre-merge-checks:
extends:
- .pre-merge:rules:pre-merge-checks
- .fast-no-clone-job
variables:
# We use > instead of | because we want the files to be space-separated.
FILES_TO_DOWNLOAD: >
scripts/utils.sh
scripts/pipeline/pre_merge_checks.rb
image: ${GITLAB_DEPENDENCY_PROXY_ADDRESS}ruby:${RUBY_VERSION}-alpine3.20
stage: pre-merge
needs: []
before_script:
- apk add --no-cache --update curl # Not present in ruby-alpine, so we add it manually
- !reference [".fast-no-clone-job", before_script]
script:
- install_gitlab_gem
- chmod u+x scripts/pipeline/pre_merge_checks.rb && scripts/pipeline/pre_merge_checks.rb
.preflight-job-base:
stage: preflight
extends:
- .default-retry
needs: []
.qa-preflight-job:
image: ${REGISTRY_HOST}/${REGISTRY_GROUP}/gitlab-build-images/${BUILD_OS}-${OS_VERSION}-ruby-${RUBY_VERSION}:chrome-${CHROME_VERSION}-docker-${DOCKER_VERSION}
extends:
- .preflight-job-base
- .qa-cache
variables:
USE_BUNDLE_INSTALL: "false"
SETUP_DB: "false"
before_script:
- !reference [.default-before_script, before_script]
- cd qa && bundle install
.rails-production-server-boot:
extends:
- .preflight-job-base
- .default-before_script
- .production
- .ruby-cache
- .preflight:rules:rails-production-server-boot
- .use-pg13
artifacts:
expire_in: 7d
when: always
paths:
- log/
# Test the puma configuration present in `config/puma.rb.example`
rails-production-server-boot-puma-example:
extends:
- .rails-production-server-boot
script:
- cp config/puma.rb.example config/puma.rb
- sed --in-place "s:/home/git/gitlab:${PWD}:" config/puma.rb
- echo 'bind "tcp://127.0.0.1:3000"' >> config/puma.rb
- bundle exec puma --environment production --config config/puma.rb &
- sleep 40 # See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/114124#note_1309506358
- retry_times_sleep 10 5 "curl http://127.0.0.1:3000"
- kill $(jobs -p)
# Test the puma configuration present in
# https://gitlab.com/gitlab-org/build/CNG/-/raw/master/gitlab-webservice/configuration/puma.rb
rails-production-server-boot-puma-cng:
extends:
- .rails-production-server-boot
script:
- define_trigger_branch_in_build_env
- echo "TRIGGER_BRANCH is defined as ${TRIGGER_BRANCH}"
- curl --silent "https://gitlab.com/gitlab-org/build/CNG/-/raw/${TRIGGER_BRANCH}/gitlab-webservice/configuration/puma.rb" > config/puma.rb
- sed --in-place "s:/srv/gitlab:${PWD}:" config/puma.rb
- bundle exec puma --environment production --config config/puma.rb &
- sleep 40 # See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/114124#note_1309506358
- retry_times_sleep 10 5 "curl http://127.0.0.1:8080"
- kill $(jobs -p)
ruby_syntax:
extends:
- .preflight-job-base
- .preflight:rules:ruby_syntax
before_script:
- source scripts/utils.sh
image: ${GITLAB_DEPENDENCY_PROXY_ADDRESS}ruby:${RUBY_VERSION}
parallel:
matrix:
- RUBY_VERSION: ["${RUBY_VERSION_DEFAULT}", "${RUBY_VERSION_NEXT}"]
script:
- run_timed_command "fail_on_warnings scripts/lint/check_ruby_syntax.rb"
no-ee-check:
extends:
- .preflight-job-base
- .preflight:rules:no-ee-check
script:
- scripts/no-dir-check ee
no-jh-check:
extends:
- .preflight-job-base
- .preflight:rules:no-jh-check
script:
- scripts/no-dir-check jh
qa:selectors:
extends:
- .qa-preflight-job
- .qa:rules:selectors
script:
- bundle exec bin/qa Test::Sanity::Selectors
.pipeline-tier-base:
extends:
- .preflight-job-base
image: alpine:latest
variables:
GIT_STRATEGY: none
script:
- echo "${CI_JOB_NAME}"
pipeline-tier-1:
extends:
- .pipeline-tier-base
- .preflight:rules:pipeline-tier-1
pipeline-tier-2:
extends:
- .pipeline-tier-base
- .preflight:rules:pipeline-tier-2
pipeline-tier-3:
extends:
- .pipeline-tier-base
- .preflight:rules:pipeline-tier-3
bundle-size-review:
extends:
- .default-retry
- .default-utils-before_script
- .assets-compile-cache
- .repo-from-artifacts
- .frontend:rules:bundle-size-review
stage: preflight
script:
- yarn_install_script
- scripts/bundle_size_review
artifacts:
when: always
name: bundle-size-review
expire_in: 31d
paths:
- bundle-size-review/
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
# Default variables for package-and-test
variables:
REGISTRY_HOST: "registry.gitlab.com"
REGISTRY_GROUP: "gitlab-org"
ALLURE_JOB_NAME: $CI_PROJECT_NAME
COLORIZED_LOGS: "true"
FEATURE_FLAGS: ""
QA_LOG_LEVEL: "info"
QA_TESTS: ""
# run all tests by default when package-and-test is included natively in other projects
# this will be overridden when selective test execution is used in gitlab canonical project
QA_RUN_ALL_TESTS: "true"
# Used by gitlab-qa to set up a volume for `${CI_PROJECT_DIR}/qa/rspec:/home/gitlab/qa/rspec/`
QA_RSPEC_REPORT_PATH: "${CI_PROJECT_DIR}/qa/rspec"
QA_OMNIBUS_MR_TESTS: "only-smoke"
# Retry failed specs in separate process
QA_RETRY_FAILED_SPECS: "true"
# helm chart ref used by test-on-cng pipeline
GITLAB_HELM_CHART_REF: "356f2cb821b938f816eb84717e84e0e287fa65b8"
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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