summaryrefslogtreecommitdiff
path: root/spec/models/ci/build_spec.rb
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-10-30 15:04:25 +0100
committerMatija Čupić <matteeyah@gmail.com>2018-10-30 15:06:00 +0100
commit94923328fdf2904e5a31ad8b9c40adcf15428bb2 (patch)
tree473bcc038dac0613ff14663271f2f7a46d734502 /spec/models/ci/build_spec.rb
parent3cbea3b95d2d20de7b65ef0775959c1c153c4e15 (diff)
downloadgitlab-ce-94923328fdf2904e5a31ad8b9c40adcf15428bb2.tar.gz
Revert Seed based parallelization implementation
Revert "Add Build seed specs" This reverts commit 03bc722ea1797a6b2b09f2897215477f5b269632. Revert "Add build specs" This reverts commit c2d49565cf787c592c4f8bd9f24843babd2a6c9a. Revert "Refactor parallelization implementation" This reverts commit 72430483ded51e9a7d01ef70c3dce3dda174fac1. Revert "Implement POC for job parallelization" This reverts commit 44b740f99dfe6a4344c918fd4c94972aa6f9237e.
Diffstat (limited to 'spec/models/ci/build_spec.rb')
-rw-r--r--spec/models/ci/build_spec.rb48
1 files changed, 0 insertions, 48 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb
index 41c3c37a7f2..a046541031e 100644
--- a/spec/models/ci/build_spec.rb
+++ b/spec/models/ci/build_spec.rb
@@ -1880,7 +1880,6 @@ describe Ci::Build do
{ key: 'CI_COMMIT_BEFORE_SHA', value: build.before_sha, public: true },
{ key: 'CI_COMMIT_REF_NAME', value: build.ref, public: true },
{ key: 'CI_COMMIT_REF_SLUG', value: build.ref_slug, public: true },
- { key: 'CI_NODE_TOTAL', value: '1', public: true },
{ key: 'CI_BUILD_REF', value: build.sha, public: true },
{ key: 'CI_BUILD_BEFORE_SHA', value: build.before_sha, public: true },
{ key: 'CI_BUILD_REF_NAME', value: build.ref, public: true },
@@ -2342,28 +2341,6 @@ describe Ci::Build do
end
end
- context 'when build is parallelized' do
- let(:total) { 5 }
- let(:index) { 3 }
-
- before do
- build.options[:parallel] = total
- build.name = "#{build.name} #{index}/#{total}"
- end
-
- it 'includes CI_NODE_INDEX' do
- is_expected.to include(
- { key: 'CI_NODE_INDEX', value: index.to_s, public: true }
- )
- end
-
- it 'includes correct CI_NODE_TOTAL' do
- is_expected.to include(
- { key: 'CI_NODE_TOTAL', value: total.to_s, public: true }
- )
- end
- end
-
describe 'variables ordering' do
context 'when variables hierarchy is stubbed' do
let(:build_pre_var) { { key: 'build', value: 'value', public: true } }
@@ -2470,31 +2447,6 @@ describe Ci::Build do
end
end
end
-
- describe '#node_index' do
- subject { build.send(:node_index) }
- let(:index) { 4 }
-
- context 'when build has only one index' do
- before do
- build.name = "#{build.name} #{index}/5"
- end
-
- it 'returns the index' do
- expect(subject).to eq(index.to_s)
- end
- end
-
- context 'when build has more than one one index' do
- before do
- build.name = "test_build 1/3 #{index}/5"
- end
-
- it 'returns the last index' do
- expect(subject).to eq(index.to_s)
- end
- end
- end
end
describe '#scoped_variables' do