Skip to content
Snippets Groups Projects
Commit 3cf40548 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Merge branch 'split-up-builds' into 'master'

Split up 20min+ `spec:other` and `spinach:project` builds to increase parallelization



See merge request !2036
parents d910424c 37199719
No related branches found
No related tags found
No related merge requests found
Showing
with 97 additions and 10 deletions
Loading
Loading
@@ -24,6 +24,27 @@ spec:api:
- ruby
- mysql
 
spec:models:
script:
- RAILS_ENV=test SIMPLECOV=true bundle exec rake spec:models
tags:
- ruby
- mysql
spec:lib:
script:
- RAILS_ENV=test SIMPLECOV=true bundle exec rake spec:lib
tags:
- ruby
- mysql
spec:services:
script:
- RAILS_ENV=test SIMPLECOV=true bundle exec rake spec:services
tags:
- ruby
- mysql
spec:benchmark:
script:
- RAILS_ENV=test bundle exec rake spec:benchmark
Loading
Loading
@@ -39,9 +60,16 @@ spec:other:
- ruby
- mysql
 
spinach:project:
spinach:project:half:
script:
- RAILS_ENV=test SIMPLECOV=true bundle exec rake spinach:project:half
tags:
- ruby
- mysql
spinach:project:rest:
script:
- RAILS_ENV=test SIMPLECOV=true bundle exec rake spinach:project
- RAILS_ENV=test SIMPLECOV=true bundle exec rake spinach:project:rest
tags:
- ruby
- mysql
Loading
Loading
@project_commits
Feature: Project Commits Branches
Background:
Given I sign in as a user
Loading
Loading
@project_commits
Feature: Project Commits Comments
Background:
Given I sign in as a user
Loading
Loading
@project_commits
Feature: Project Commits
Background:
Given I sign in as a user
Loading
Loading
@project_commits
Feature: Project Commits Diff Comments
Background:
Given I sign in as a user
Loading
Loading
@project_commits
Feature: Project Commits Tags
Background:
Given I sign in as a user
Loading
Loading
@project_commits
Feature: Project Commits User Lookup
Background:
Given I sign in as a user
Loading
Loading
@project_issues
Feature: Award Emoji
Background:
Given I sign in as a user
Loading
Loading
@project_issues
Feature: Project Issues Filter Labels
Background:
Given I sign in as a user
Loading
Loading
@project_issues
Feature: Project Issues
Background:
Given I sign in as a user
Loading
Loading
@@ -196,4 +197,3 @@ Feature: Project Issues
And I should not see labels field
And I submit new issue "500 error on profile"
Then I should see issue "500 error on profile"
@project_issues
Feature: Project Issues Labels
Background:
Given I sign in as a user
Loading
Loading
@project_issues
Feature: Project Issues Milestones
Background:
Given I sign in as a user
Loading
Loading
@project_merge_requests
Feature: Project Merge Requests
Background:
Given I sign in as a user
Loading
Loading
@project_merge_requests
Feature: Project Merge Requests Acceptance
Background:
Given There is an open Merge Request
Loading
Loading
Loading
Loading
@@ -19,6 +19,33 @@ namespace :spec do
run_commands(cmds)
end
 
desc 'GitLab | Rspec | Run model specs'
task :models do
cmds = [
%W(rake gitlab:setup),
%W(rspec spec --tag @models)
]
run_commands(cmds)
end
desc 'GitLab | Rspec | Run service specs'
task :services do
cmds = [
%W(rake gitlab:setup),
%W(rspec spec --tag @services)
]
run_commands(cmds)
end
desc 'GitLab | Rspec | Run lib specs'
task :lib do
cmds = [
%W(rake gitlab:setup),
%W(rspec spec --tag @lib)
]
run_commands(cmds)
end
desc 'GitLab | Rspec | Run benchmark specs'
task :benchmark do
cmds = [
Loading
Loading
@@ -32,7 +59,7 @@ namespace :spec do
task :other do
cmds = [
%W(rake gitlab:setup),
%W(rspec spec --tag ~@api --tag ~@feature --tag ~@benchmark)
%W(rspec spec --tag ~@api --tag ~@feature --tag ~@models --tag ~@lib --tag ~@services --tag ~@benchmark)
]
run_commands(cmds)
end
Loading
Loading
Rake::Task["spinach"].clear if Rake::Task.task_defined?('spinach')
 
namespace :spinach do
namespace :project do
desc "GitLab | Spinach | Run project commits, issues and merge requests spinach features"
task :half do
cmds = [
%W(rake gitlab:setup),
%W(spinach --tags @project_commits,@project_issues,@project_merge_requests),
]
run_commands(cmds)
end
desc "GitLab | Spinach | Run remaining project spinach features"
task :rest do
cmds = [
%W(rake gitlab:setup),
%W(spinach --tags ~@admin,~@dashboard,~@profile,~@public,~@snippets,~@project_commits,~@project_issues,~@project_merge_requests),
]
run_commands(cmds)
end
end
desc "GitLab | Spinach | Run project spinach features"
task :project do
cmds = [
%W(rake gitlab:setup),
%W(spinach --tags ~@admin,~@dashboard,~@profile,~@public,~@snippets,~@commits),
%W(spinach --tags ~@admin,~@dashboard,~@profile,~@public,~@snippets),
]
run_commands(cmds)
end
Loading
Loading
@@ -14,7 +34,7 @@ namespace :spinach do
task :other do
cmds = [
%W(rake gitlab:setup),
%W(spinach --tags @admin,@dashboard,@profile,@public,@snippets,@commits),
%W(spinach --tags @admin,@dashboard,@profile,@public,@snippets),
]
run_commands(cmds)
end
Loading
Loading
@@ -33,4 +53,4 @@ def run_commands(cmds)
cmds.each do |cmd|
system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd) or raise("#{cmd} failed!")
end
end
\ No newline at end of file
end
require 'spec_helper'
 
describe Ci::Ansi2html do
describe Ci::Ansi2html, lib: true do
subject { Ci::Ansi2html }
 
it "prints non-ansi as-is" do
Loading
Loading
require 'spec_helper'
 
describe "Charts" do
describe Ci::Charts, lib: true do
 
context "build_times" do
before do
Loading
Loading
require 'spec_helper'
 
module Ci
describe GitlabCiYamlProcessor do
describe GitlabCiYamlProcessor, lib: true do
let(:path) { 'path' }
describe "#builds_for_ref" do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment