From 776893c8b7b7455c0146283a55972b4e4b554e6d Mon Sep 17 00:00:00 2001 From: talktovikas Date: Mon, 16 Sep 2024 16:14:17 +0530 Subject: [PATCH 01/47] test A for new Pipeline Signed-off-by: talktovikas --- .expeditor/build.habitat.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.expeditor/build.habitat.yml b/.expeditor/build.habitat.yml index 250593e694..de47a7f162 100644 --- a/.expeditor/build.habitat.yml +++ b/.expeditor/build.habitat.yml @@ -1,4 +1,4 @@ --- origin: chef -smart_build: false +smart_build: true From 296a9db4fa4588b232c826acc3864947580a2d3b Mon Sep 17 00:00:00 2001 From: talktovikas Date: Mon, 16 Sep 2024 16:18:24 +0530 Subject: [PATCH 02/47] changing raw contents, for test. Signed-off-by: talktovikas --- .expeditor/build.habitat.yml | 2 +- .expeditor/verify.pipeline.yml | 334 +++++++++++++++++---------------- 2 files changed, 172 insertions(+), 164 deletions(-) diff --git a/.expeditor/build.habitat.yml b/.expeditor/build.habitat.yml index de47a7f162..250593e694 100644 --- a/.expeditor/build.habitat.yml +++ b/.expeditor/build.habitat.yml @@ -1,4 +1,4 @@ --- origin: chef -smart_build: true +smart_build: false diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index c3a38bddd4..3b018ddd79 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -1,174 +1,182 @@ --- +# expeditor: +# cached_folders: +# - vendor +# defaults: +# buildkite: +# timeout_in_minutes: 30 + + expeditor: - cached_folders: - - vendor defaults: buildkite: - timeout_in_minutes: 30 + timeout_in_minutes: 240 steps: -######################################################################### - # Lint Tests -######################################################################### - -- label: license-scout - command: - - .expeditor/license_scout.sh - expeditor: - executor: - docker: - environment: - - OCTOKIT_ACCESS_TOKEN - -######################################################################### - # Component Tests -######################################################################### - -- label: omnibus - command: - - /workdir/scripts/bk_tests/bk_install.sh - - gem uninstall bundler -v '>= 2.0.1' -a - - cd /workdir/omnibus; make install - - make ci - expeditor: - executor: - docker: - image: "chefes/a1-buildkite" - environment: - - LUALIB=~/.luarocks/lib/lua/5.2 - - COMPONENT=omnibus - -- label: chef-server-ctl - command: - - /workdir/scripts/bk_tests/bk_install.sh - - cd /workdir/src/chef-server-ctl; make install - - make ci - expeditor: - executor: - docker: - image: "chefes/a1-buildkite" - environment: - - COMPONENT=src/chef-server-ctl - -- label: oc_erchef_unit - command: - - date - - /workdir/scripts/bk_tests/bk_install.sh - - date - - cd /workdir/src/oc_erchef; make install - - make ci_eunit - - date - expeditor: - executor: - docker: - image: "chefes/a1-buildkite" - environment: - - PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin - - PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl - - LUALIB=~/.luarocks/lib/lua/5.2 - - ELIXIR_VERSION=1.4 - - COMPONENT=src/oc_ - -- label: oc_erchef_ct - command: - - date - - /workdir/scripts/bk_tests/bk_install.sh - - date - - cd /workdir/src/oc_erchef; make install - - make ci_ct - - date - expeditor: - executor: - docker: - image: "chefes/a1-buildkite" - environment: - - PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin - - PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl - - LUALIB=~/.luarocks/lib/lua/5.2 - - ELIXIR_VERSION=1.4 - - COMPONENT=src/oc_erchef - -- label: oc-id - command: - - /workdir/scripts/bk_tests/bk_install.sh - - cd /workdir/src/oc-id - - make install ci - expeditor: - executor: - docker: - image: "chefes/a1-buildkite" - environment: - - COMPONENT=src/oc-id - -- label: oc_bifrost - command: - - /workdir/scripts/bk_tests/bk_install.sh - - cd /workdir/src/oc_bifrost; make install - - make ci - expeditor: - executor: - docker: - image: "chefes/a1-buildkite" - environment: - - PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin - - PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl - - LUALIB=~/.luarocks/lib/lua/5.2 - - COMPONENT=src/oc_bifrost - -- label: bookshelf - command: - - /workdir/scripts/bk_tests/bk_install.sh - - cd /workdir/src/bookshelf; make install - - make ci - expeditor: - executor: - docker: - image: "chefes/a1-buildkite" - environment: - - PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin - - PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl - - LUALIB=~/.luarocks/lib/lua/5.2 - - COMPONENT=src/bookshelf +# steps: + +# ######################################################################### +# # Lint Tests +# ######################################################################### + +# - label: license-scout +# command: +# - .expeditor/license_scout.sh +# expeditor: +# executor: +# docker: +# environment: +# - OCTOKIT_ACCESS_TOKEN # ######################################################################### -# # Pedant Tests +# # Component Tests # ######################################################################### -- label: With chef-zero - command: - - /workdir/scripts/bk_tests/bk_install.sh - - gem uninstall bundler -v '>= 2.0.1' -a - - cp scripts/bk_tests/chef_zero-Gemfile oc-chef-pedant/Gemfile - - bundle install --jobs=3 --retry=3 --path=/workdir/vendor/bundle - - cd /workdir/oc-chef-pedant - - bundle exec rake chef_zero_spec - expeditor: - executor: - docker: - image: "chefes/a1-buildkite" - environment: - - LUALIB=~/.luarocks/lib/lua/5.2 - - USE_OMNIBUS_FILES=0 - - PEDANT_OPTS="--skip-oc_id" - - BUNDLE_GEMFILE=/workdir/oc-chef-pedant/Gemfile - -- label: With ChefFS=1 - command: - - /workdir/scripts/bk_tests/bk_install.sh - - gem install bundler -v 2.2.4 - - gem uninstall bundler -v '> 2.2.4' -a - - cp scripts/bk_tests/chef_zero-Gemfile oc-chef-pedant/Gemfile - - bundle install --jobs=3 --retry=3 --path=/workdir/vendor/bundle - - cd /workdir/oc-chef-pedant - - bundle exec rake chef_zero_spec - expeditor: - executor: - docker: - image: "chefes/a1-buildkite" - environment: - - LUALIB=~/.luarocks/lib/lua/5.2 - - USE_OMNIBUS_FILES=0 - - PEDANT_OPTS="--skip-oc_id" - - CHEF_FS=1 - - BUNDLE_GEMFILE=/workdir/oc-chef-pedant/Gemfile +# - label: omnibus +# command: +# - /workdir/scripts/bk_tests/bk_install.sh +# - gem uninstall bundler -v '>= 2.0.1' -a +# - cd /workdir/omnibus; make install +# - make ci +# expeditor: +# executor: +# docker: +# image: "chefes/a1-buildkite" +# environment: +# - LUALIB=~/.luarocks/lib/lua/5.2 +# - COMPONENT=omnibus + +# - label: chef-server-ctl +# command: +# - /workdir/scripts/bk_tests/bk_install.sh +# - cd /workdir/src/chef-server-ctl; make install +# - make ci +# expeditor: +# executor: +# docker: +# image: "chefes/a1-buildkite" +# environment: +# - COMPONENT=src/chef-server-ctl + +# - label: oc_erchef_unit +# command: +# - date +# - /workdir/scripts/bk_tests/bk_install.sh +# - date +# - cd /workdir/src/oc_erchef; make install +# - make ci_eunit +# - date +# expeditor: +# executor: +# docker: +# image: "chefes/a1-buildkite" +# environment: +# - PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin +# - PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl +# - LUALIB=~/.luarocks/lib/lua/5.2 +# - ELIXIR_VERSION=1.4 +# - COMPONENT=src/oc_ + +# - label: oc_erchef_ct +# command: +# - date +# - /workdir/scripts/bk_tests/bk_install.sh +# - date +# - cd /workdir/src/oc_erchef; make install +# - make ci_ct +# - date +# expeditor: +# executor: +# docker: +# image: "chefes/a1-buildkite" +# environment: +# - PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin +# - PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl +# - LUALIB=~/.luarocks/lib/lua/5.2 +# - ELIXIR_VERSION=1.4 +# - COMPONENT=src/oc_erchef + +# - label: oc-id +# command: +# - /workdir/scripts/bk_tests/bk_install.sh +# - cd /workdir/src/oc-id +# - make install ci +# expeditor: +# executor: +# docker: +# image: "chefes/a1-buildkite" +# environment: +# - COMPONENT=src/oc-id + +# - label: oc_bifrost +# command: +# - /workdir/scripts/bk_tests/bk_install.sh +# - cd /workdir/src/oc_bifrost; make install +# - make ci +# expeditor: +# executor: +# docker: +# image: "chefes/a1-buildkite" +# environment: +# - PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin +# - PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl +# - LUALIB=~/.luarocks/lib/lua/5.2 +# - COMPONENT=src/oc_bifrost + +# - label: bookshelf +# command: +# - /workdir/scripts/bk_tests/bk_install.sh +# - cd /workdir/src/bookshelf; make install +# - make ci +# expeditor: +# executor: +# docker: +# image: "chefes/a1-buildkite" +# environment: +# - PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin +# - PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl +# - LUALIB=~/.luarocks/lib/lua/5.2 +# - COMPONENT=src/bookshelf + +# # ######################################################################### +# # # Pedant Tests +# # ######################################################################### + +# - label: With chef-zero +# command: +# - /workdir/scripts/bk_tests/bk_install.sh +# - gem uninstall bundler -v '>= 2.0.1' -a +# - cp scripts/bk_tests/chef_zero-Gemfile oc-chef-pedant/Gemfile +# - bundle install --jobs=3 --retry=3 --path=/workdir/vendor/bundle +# - cd /workdir/oc-chef-pedant +# - bundle exec rake chef_zero_spec +# expeditor: +# executor: +# docker: +# image: "chefes/a1-buildkite" +# environment: +# - LUALIB=~/.luarocks/lib/lua/5.2 +# - USE_OMNIBUS_FILES=0 +# - PEDANT_OPTS="--skip-oc_id" +# - BUNDLE_GEMFILE=/workdir/oc-chef-pedant/Gemfile + +# - label: With ChefFS=1 +# command: +# - /workdir/scripts/bk_tests/bk_install.sh +# - gem install bundler -v 2.2.4 +# - gem uninstall bundler -v '> 2.2.4' -a +# - cp scripts/bk_tests/chef_zero-Gemfile oc-chef-pedant/Gemfile +# - bundle install --jobs=3 --retry=3 --path=/workdir/vendor/bundle +# - cd /workdir/oc-chef-pedant +# - bundle exec rake chef_zero_spec +# expeditor: +# executor: +# docker: +# image: "chefes/a1-buildkite" +# environment: +# - LUALIB=~/.luarocks/lib/lua/5.2 +# - USE_OMNIBUS_FILES=0 +# - PEDANT_OPTS="--skip-oc_id" +# - CHEF_FS=1 +# - BUNDLE_GEMFILE=/workdir/oc-chef-pedant/Gemfile From bcc9a99b36821986008caafdbd72f0ac6d53ec5c Mon Sep 17 00:00:00 2001 From: talktovikas Date: Mon, 16 Sep 2024 16:22:30 +0530 Subject: [PATCH 03/47] adding steps Signed-off-by: talktovikas --- .expeditor/verify.pipeline.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 3b018ddd79..17b0891aa3 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -14,6 +14,10 @@ expeditor: steps: + - habitat/test: + definition: .expeditor/habitat-test.pipeline.yml + trigger: default + # steps: # ######################################################################### From 969f82bcacd2b655625d854b4c67fa26258a0e57 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Mon, 16 Sep 2024 16:46:40 +0530 Subject: [PATCH 04/47] revert and test new series of commands. Signed-off-by: talktovikas --- .expeditor/config.yml | 4 +- .expeditor/habitat.pipeline.yml | 17 ++ .expeditor/habitat.sh | 22 +++ .expeditor/verify.pipeline.yml | 338 +++++++++++++++----------------- 4 files changed, 205 insertions(+), 176 deletions(-) create mode 100644 .expeditor/habitat.pipeline.yml create mode 100644 .expeditor/habitat.sh diff --git a/.expeditor/config.yml b/.expeditor/config.yml index e0f372069b..b4f403f6c9 100644 --- a/.expeditor/config.yml +++ b/.expeditor/config.yml @@ -36,7 +36,9 @@ pipelines: - verify - verify: public: true - - habitat/build + - habitat + - habitat: + public: true - habitat/test: definition: .expeditor/habitat-test.pipeline.yml trigger: default diff --git a/.expeditor/habitat.pipeline.yml b/.expeditor/habitat.pipeline.yml new file mode 100644 index 0000000000..c3a06925de --- /dev/null +++ b/.expeditor/habitat.pipeline.yml @@ -0,0 +1,17 @@ +expeditor: + cached_folders: + - vendor + defaults: + buildkite: + timeout_in_minutes: 30 + +steps: + +- label: habitat-packages + command: + - .expeditor/habitat.sh + expeditor: + executor: + docker: + environment: + - OCTOKIT_ACCESS_TOKEN \ No newline at end of file diff --git a/.expeditor/habitat.sh b/.expeditor/habitat.sh new file mode 100644 index 0000000000..230fb5bde7 --- /dev/null +++ b/.expeditor/habitat.sh @@ -0,0 +1,22 @@ +#!/bin/bash -e + +# this script builds all the essential habitat packages for running Chef Server +# additionaly, it exports them as a local docker image + +export CHEF_SERVER_SRC='/src/src' +export ORIGIN=chefservertesting + +for dir in oc-id openresty-noroot nginx bookshelf chef-server-ctl oc_bifrost oc_erchef; do + cd $CHEF_SERVER_SRC/$dir + echo "[STATUS] building $dir" + build > /var/log/build-${dir}-$(date +%s).log + if [[ $dir =~ dbdpg|openresty-noroot ]]; then continue; fi + echo "[STATUS] exporting $dir pkg to docker daemon" + hab pkg export docker -i "$ORIGIN/{{pkg_name}}" \ + --no-push-image \ + --no-tag-latest \ + --no-tag-version \ + --no-tag-version-release \ + --tag-custom "localdev" \ + $(ls -1t results/*.hart | head -1) +done diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 17b0891aa3..c3a38bddd4 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -1,186 +1,174 @@ --- -# expeditor: -# cached_folders: -# - vendor -# defaults: -# buildkite: -# timeout_in_minutes: 30 - - expeditor: + cached_folders: + - vendor defaults: buildkite: - timeout_in_minutes: 240 + timeout_in_minutes: 30 steps: - - habitat/test: - definition: .expeditor/habitat-test.pipeline.yml - trigger: default - -# steps: - -# ######################################################################### -# # Lint Tests -# ######################################################################### - -# - label: license-scout -# command: -# - .expeditor/license_scout.sh -# expeditor: -# executor: -# docker: -# environment: -# - OCTOKIT_ACCESS_TOKEN +######################################################################### + # Lint Tests +######################################################################### + +- label: license-scout + command: + - .expeditor/license_scout.sh + expeditor: + executor: + docker: + environment: + - OCTOKIT_ACCESS_TOKEN + +######################################################################### + # Component Tests +######################################################################### + +- label: omnibus + command: + - /workdir/scripts/bk_tests/bk_install.sh + - gem uninstall bundler -v '>= 2.0.1' -a + - cd /workdir/omnibus; make install + - make ci + expeditor: + executor: + docker: + image: "chefes/a1-buildkite" + environment: + - LUALIB=~/.luarocks/lib/lua/5.2 + - COMPONENT=omnibus + +- label: chef-server-ctl + command: + - /workdir/scripts/bk_tests/bk_install.sh + - cd /workdir/src/chef-server-ctl; make install + - make ci + expeditor: + executor: + docker: + image: "chefes/a1-buildkite" + environment: + - COMPONENT=src/chef-server-ctl + +- label: oc_erchef_unit + command: + - date + - /workdir/scripts/bk_tests/bk_install.sh + - date + - cd /workdir/src/oc_erchef; make install + - make ci_eunit + - date + expeditor: + executor: + docker: + image: "chefes/a1-buildkite" + environment: + - PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin + - PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl + - LUALIB=~/.luarocks/lib/lua/5.2 + - ELIXIR_VERSION=1.4 + - COMPONENT=src/oc_ + +- label: oc_erchef_ct + command: + - date + - /workdir/scripts/bk_tests/bk_install.sh + - date + - cd /workdir/src/oc_erchef; make install + - make ci_ct + - date + expeditor: + executor: + docker: + image: "chefes/a1-buildkite" + environment: + - PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin + - PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl + - LUALIB=~/.luarocks/lib/lua/5.2 + - ELIXIR_VERSION=1.4 + - COMPONENT=src/oc_erchef + +- label: oc-id + command: + - /workdir/scripts/bk_tests/bk_install.sh + - cd /workdir/src/oc-id + - make install ci + expeditor: + executor: + docker: + image: "chefes/a1-buildkite" + environment: + - COMPONENT=src/oc-id + +- label: oc_bifrost + command: + - /workdir/scripts/bk_tests/bk_install.sh + - cd /workdir/src/oc_bifrost; make install + - make ci + expeditor: + executor: + docker: + image: "chefes/a1-buildkite" + environment: + - PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin + - PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl + - LUALIB=~/.luarocks/lib/lua/5.2 + - COMPONENT=src/oc_bifrost + +- label: bookshelf + command: + - /workdir/scripts/bk_tests/bk_install.sh + - cd /workdir/src/bookshelf; make install + - make ci + expeditor: + executor: + docker: + image: "chefes/a1-buildkite" + environment: + - PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin + - PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl + - LUALIB=~/.luarocks/lib/lua/5.2 + - COMPONENT=src/bookshelf # ######################################################################### -# # Component Tests +# # Pedant Tests # ######################################################################### -# - label: omnibus -# command: -# - /workdir/scripts/bk_tests/bk_install.sh -# - gem uninstall bundler -v '>= 2.0.1' -a -# - cd /workdir/omnibus; make install -# - make ci -# expeditor: -# executor: -# docker: -# image: "chefes/a1-buildkite" -# environment: -# - LUALIB=~/.luarocks/lib/lua/5.2 -# - COMPONENT=omnibus - -# - label: chef-server-ctl -# command: -# - /workdir/scripts/bk_tests/bk_install.sh -# - cd /workdir/src/chef-server-ctl; make install -# - make ci -# expeditor: -# executor: -# docker: -# image: "chefes/a1-buildkite" -# environment: -# - COMPONENT=src/chef-server-ctl - -# - label: oc_erchef_unit -# command: -# - date -# - /workdir/scripts/bk_tests/bk_install.sh -# - date -# - cd /workdir/src/oc_erchef; make install -# - make ci_eunit -# - date -# expeditor: -# executor: -# docker: -# image: "chefes/a1-buildkite" -# environment: -# - PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin -# - PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl -# - LUALIB=~/.luarocks/lib/lua/5.2 -# - ELIXIR_VERSION=1.4 -# - COMPONENT=src/oc_ - -# - label: oc_erchef_ct -# command: -# - date -# - /workdir/scripts/bk_tests/bk_install.sh -# - date -# - cd /workdir/src/oc_erchef; make install -# - make ci_ct -# - date -# expeditor: -# executor: -# docker: -# image: "chefes/a1-buildkite" -# environment: -# - PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin -# - PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl -# - LUALIB=~/.luarocks/lib/lua/5.2 -# - ELIXIR_VERSION=1.4 -# - COMPONENT=src/oc_erchef - -# - label: oc-id -# command: -# - /workdir/scripts/bk_tests/bk_install.sh -# - cd /workdir/src/oc-id -# - make install ci -# expeditor: -# executor: -# docker: -# image: "chefes/a1-buildkite" -# environment: -# - COMPONENT=src/oc-id - -# - label: oc_bifrost -# command: -# - /workdir/scripts/bk_tests/bk_install.sh -# - cd /workdir/src/oc_bifrost; make install -# - make ci -# expeditor: -# executor: -# docker: -# image: "chefes/a1-buildkite" -# environment: -# - PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin -# - PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl -# - LUALIB=~/.luarocks/lib/lua/5.2 -# - COMPONENT=src/oc_bifrost - -# - label: bookshelf -# command: -# - /workdir/scripts/bk_tests/bk_install.sh -# - cd /workdir/src/bookshelf; make install -# - make ci -# expeditor: -# executor: -# docker: -# image: "chefes/a1-buildkite" -# environment: -# - PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin -# - PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl -# - LUALIB=~/.luarocks/lib/lua/5.2 -# - COMPONENT=src/bookshelf - -# # ######################################################################### -# # # Pedant Tests -# # ######################################################################### - -# - label: With chef-zero -# command: -# - /workdir/scripts/bk_tests/bk_install.sh -# - gem uninstall bundler -v '>= 2.0.1' -a -# - cp scripts/bk_tests/chef_zero-Gemfile oc-chef-pedant/Gemfile -# - bundle install --jobs=3 --retry=3 --path=/workdir/vendor/bundle -# - cd /workdir/oc-chef-pedant -# - bundle exec rake chef_zero_spec -# expeditor: -# executor: -# docker: -# image: "chefes/a1-buildkite" -# environment: -# - LUALIB=~/.luarocks/lib/lua/5.2 -# - USE_OMNIBUS_FILES=0 -# - PEDANT_OPTS="--skip-oc_id" -# - BUNDLE_GEMFILE=/workdir/oc-chef-pedant/Gemfile - -# - label: With ChefFS=1 -# command: -# - /workdir/scripts/bk_tests/bk_install.sh -# - gem install bundler -v 2.2.4 -# - gem uninstall bundler -v '> 2.2.4' -a -# - cp scripts/bk_tests/chef_zero-Gemfile oc-chef-pedant/Gemfile -# - bundle install --jobs=3 --retry=3 --path=/workdir/vendor/bundle -# - cd /workdir/oc-chef-pedant -# - bundle exec rake chef_zero_spec -# expeditor: -# executor: -# docker: -# image: "chefes/a1-buildkite" -# environment: -# - LUALIB=~/.luarocks/lib/lua/5.2 -# - USE_OMNIBUS_FILES=0 -# - PEDANT_OPTS="--skip-oc_id" -# - CHEF_FS=1 -# - BUNDLE_GEMFILE=/workdir/oc-chef-pedant/Gemfile +- label: With chef-zero + command: + - /workdir/scripts/bk_tests/bk_install.sh + - gem uninstall bundler -v '>= 2.0.1' -a + - cp scripts/bk_tests/chef_zero-Gemfile oc-chef-pedant/Gemfile + - bundle install --jobs=3 --retry=3 --path=/workdir/vendor/bundle + - cd /workdir/oc-chef-pedant + - bundle exec rake chef_zero_spec + expeditor: + executor: + docker: + image: "chefes/a1-buildkite" + environment: + - LUALIB=~/.luarocks/lib/lua/5.2 + - USE_OMNIBUS_FILES=0 + - PEDANT_OPTS="--skip-oc_id" + - BUNDLE_GEMFILE=/workdir/oc-chef-pedant/Gemfile + +- label: With ChefFS=1 + command: + - /workdir/scripts/bk_tests/bk_install.sh + - gem install bundler -v 2.2.4 + - gem uninstall bundler -v '> 2.2.4' -a + - cp scripts/bk_tests/chef_zero-Gemfile oc-chef-pedant/Gemfile + - bundle install --jobs=3 --retry=3 --path=/workdir/vendor/bundle + - cd /workdir/oc-chef-pedant + - bundle exec rake chef_zero_spec + expeditor: + executor: + docker: + image: "chefes/a1-buildkite" + environment: + - LUALIB=~/.luarocks/lib/lua/5.2 + - USE_OMNIBUS_FILES=0 + - PEDANT_OPTS="--skip-oc_id" + - CHEF_FS=1 + - BUNDLE_GEMFILE=/workdir/oc-chef-pedant/Gemfile From fb33a62f5b3e4e57d8d87fa162decc2cea1afd9b Mon Sep 17 00:00:00 2001 From: talktovikas Date: Mon, 16 Sep 2024 16:53:15 +0530 Subject: [PATCH 05/47] test B Signed-off-by: talktovikas --- .expeditor/habitat.habitat.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .expeditor/habitat.habitat.yml diff --git a/.expeditor/habitat.habitat.yml b/.expeditor/habitat.habitat.yml new file mode 100644 index 0000000000..c3a06925de --- /dev/null +++ b/.expeditor/habitat.habitat.yml @@ -0,0 +1,17 @@ +expeditor: + cached_folders: + - vendor + defaults: + buildkite: + timeout_in_minutes: 30 + +steps: + +- label: habitat-packages + command: + - .expeditor/habitat.sh + expeditor: + executor: + docker: + environment: + - OCTOKIT_ACCESS_TOKEN \ No newline at end of file From 3192c96118b4f2b67b5a90b2d42a5e2c9aac42e6 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Mon, 16 Sep 2024 16:59:05 +0530 Subject: [PATCH 06/47] Test c Signed-off-by: talktovikas --- .expeditor/verify.pipeline.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index c3a38bddd4..baef6aa108 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -153,6 +153,15 @@ steps: - PEDANT_OPTS="--skip-oc_id" - BUNDLE_GEMFILE=/workdir/oc-chef-pedant/Gemfile +- label: vikas-habitat + command: + - .expeditor/habitat.sh + expeditor: + executor: + docker: + environment: + - OCTOKIT_ACCESS_TOKEN + - label: With ChefFS=1 command: - /workdir/scripts/bk_tests/bk_install.sh From 8457c370fa3580b39322e5f75d53cf7d21d12791 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Mon, 16 Sep 2024 17:01:13 +0530 Subject: [PATCH 07/47] Test D Signed-off-by: talktovikas --- .expeditor/verify.pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index baef6aa108..b9899b2514 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -155,7 +155,7 @@ steps: - label: vikas-habitat command: - - .expeditor/habitat.sh + - /workdir/.expeditor/habitat.sh expeditor: executor: docker: From a58ba7e9e7b11f521b6a4e3c2d86ec8d8cfddc81 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Mon, 16 Sep 2024 17:04:09 +0530 Subject: [PATCH 08/47] Test E Signed-off-by: talktovikas --- .expeditor/habitat.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 .expeditor/habitat.sh diff --git a/.expeditor/habitat.sh b/.expeditor/habitat.sh old mode 100644 new mode 100755 From b1f0e6218997127fcce44d9cd614630ce60b5c24 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Mon, 16 Sep 2024 17:06:46 +0530 Subject: [PATCH 09/47] test F Signed-off-by: talktovikas --- habitat_pkgs_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/habitat_pkgs_build.sh b/habitat_pkgs_build.sh index 230fb5bde7..2ae944b78a 100755 --- a/habitat_pkgs_build.sh +++ b/habitat_pkgs_build.sh @@ -3,7 +3,7 @@ # this script builds all the essential habitat packages for running Chef Server # additionaly, it exports them as a local docker image -export CHEF_SERVER_SRC='/src/src' +export CHEF_SERVER_SRC='/workdir/src' export ORIGIN=chefservertesting for dir in oc-id openresty-noroot nginx bookshelf chef-server-ctl oc_bifrost oc_erchef; do From 1c4f6238fa7937524d90daa0a74fe93aed239b39 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Mon, 16 Sep 2024 17:10:10 +0530 Subject: [PATCH 10/47] test G Signed-off-by: talktovikas --- .expeditor/habitat.sh | 2 +- habitat_pkgs_build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.expeditor/habitat.sh b/.expeditor/habitat.sh index 230fb5bde7..2ae944b78a 100755 --- a/.expeditor/habitat.sh +++ b/.expeditor/habitat.sh @@ -3,7 +3,7 @@ # this script builds all the essential habitat packages for running Chef Server # additionaly, it exports them as a local docker image -export CHEF_SERVER_SRC='/src/src' +export CHEF_SERVER_SRC='/workdir/src' export ORIGIN=chefservertesting for dir in oc-id openresty-noroot nginx bookshelf chef-server-ctl oc_bifrost oc_erchef; do diff --git a/habitat_pkgs_build.sh b/habitat_pkgs_build.sh index 2ae944b78a..230fb5bde7 100755 --- a/habitat_pkgs_build.sh +++ b/habitat_pkgs_build.sh @@ -3,7 +3,7 @@ # this script builds all the essential habitat packages for running Chef Server # additionaly, it exports them as a local docker image -export CHEF_SERVER_SRC='/workdir/src' +export CHEF_SERVER_SRC='/src/src' export ORIGIN=chefservertesting for dir in oc-id openresty-noroot nginx bookshelf chef-server-ctl oc_bifrost oc_erchef; do From 35dda71343026b6f1d878fe9079aac6c8a4c4695 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Mon, 16 Sep 2024 17:46:00 +0530 Subject: [PATCH 11/47] test H Signed-off-by: talktovikas --- .expeditor/verify.pipeline.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index b9899b2514..48ddae7215 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -159,7 +159,8 @@ steps: expeditor: executor: docker: - environment: + image: "habitat/default-studio-x86_64-linux" + environment: - OCTOKIT_ACCESS_TOKEN - label: With ChefFS=1 From 215cfb2cb57e6a86dde2f1d33d89f515972d4fd7 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Mon, 16 Sep 2024 17:47:52 +0530 Subject: [PATCH 12/47] test I Signed-off-by: talktovikas --- .expeditor/verify.pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 48ddae7215..775e2baf79 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -159,7 +159,7 @@ steps: expeditor: executor: docker: - image: "habitat/default-studio-x86_64-linux" + image: "chefes/a1-buildkite" environment: - OCTOKIT_ACCESS_TOKEN From 60bab6187023deacbe2d527eb3d8f44506434292 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Mon, 16 Sep 2024 17:49:15 +0530 Subject: [PATCH 13/47] test J Signed-off-by: talktovikas --- .expeditor/verify.pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 775e2baf79..45f830dd9b 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -159,7 +159,7 @@ steps: expeditor: executor: docker: - image: "chefes/a1-buildkite" + # image: "chefes/a1-buildkite" environment: - OCTOKIT_ACCESS_TOKEN From 77dba5df671604654f75efbd7d2bb7389167a20a Mon Sep 17 00:00:00 2001 From: talktovikas Date: Mon, 16 Sep 2024 18:01:58 +0530 Subject: [PATCH 14/47] test k Signed-off-by: talktovikas --- .expeditor/verify.pipeline.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 45f830dd9b..57484921e8 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -159,7 +159,6 @@ steps: expeditor: executor: docker: - # image: "chefes/a1-buildkite" environment: - OCTOKIT_ACCESS_TOKEN From d58092fc9c8cd5d8cd781a60f5407bcab881f5d7 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Mon, 16 Sep 2024 18:03:57 +0530 Subject: [PATCH 15/47] test L Signed-off-by: talktovikas --- .expeditor/verify.pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 57484921e8..b9899b2514 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -159,7 +159,7 @@ steps: expeditor: executor: docker: - environment: + environment: - OCTOKIT_ACCESS_TOKEN - label: With ChefFS=1 From 9f4c9a2aa9bc31badb6cc565a0bedd905e2715a7 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Mon, 16 Sep 2024 18:12:30 +0530 Subject: [PATCH 16/47] test M Signed-off-by: talktovikas --- .expeditor/habitat.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.expeditor/habitat.sh b/.expeditor/habitat.sh index 2ae944b78a..4ad425b9b6 100755 --- a/.expeditor/habitat.sh +++ b/.expeditor/habitat.sh @@ -8,6 +8,7 @@ export ORIGIN=chefservertesting for dir in oc-id openresty-noroot nginx bookshelf chef-server-ctl oc_bifrost oc_erchef; do cd $CHEF_SERVER_SRC/$dir + echo "hab version is :" `hab --version` echo "[STATUS] building $dir" build > /var/log/build-${dir}-$(date +%s).log if [[ $dir =~ dbdpg|openresty-noroot ]]; then continue; fi From 6a491ba09be728f28884e702db0b3777bef3d1b0 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Mon, 16 Sep 2024 18:16:06 +0530 Subject: [PATCH 17/47] test N Signed-off-by: talktovikas --- .expeditor/habitat.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.expeditor/habitat.sh b/.expeditor/habitat.sh index 4ad425b9b6..49817f9a77 100755 --- a/.expeditor/habitat.sh +++ b/.expeditor/habitat.sh @@ -2,7 +2,7 @@ # this script builds all the essential habitat packages for running Chef Server # additionaly, it exports them as a local docker image - +hab studio enter< Date: Mon, 16 Sep 2024 18:19:13 +0530 Subject: [PATCH 18/47] test O Signed-off-by: talktovikas --- .expeditor/habitat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.expeditor/habitat.sh b/.expeditor/habitat.sh index 49817f9a77..68d20f4220 100755 --- a/.expeditor/habitat.sh +++ b/.expeditor/habitat.sh @@ -2,7 +2,7 @@ # this script builds all the essential habitat packages for running Chef Server # additionaly, it exports them as a local docker image -hab studio enter< Date: Mon, 16 Sep 2024 18:53:11 +0530 Subject: [PATCH 19/47] test X Signed-off-by: talktovikas --- .expeditor/habitat.sh | 4 +--- .expeditor/verify.pipeline.yml | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.expeditor/habitat.sh b/.expeditor/habitat.sh index 68d20f4220..8cd17c2140 100755 --- a/.expeditor/habitat.sh +++ b/.expeditor/habitat.sh @@ -2,8 +2,7 @@ # this script builds all the essential habitat packages for running Chef Server # additionaly, it exports them as a local docker image -hab studio enter -D < Date: Mon, 16 Sep 2024 19:02:30 +0530 Subject: [PATCH 20/47] test wolverineX Signed-off-by: talktovikas --- .expeditor/verify.pipeline.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index ff9db76a3f..44f8070006 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -162,6 +162,10 @@ steps: image: "habitat/default-studio-x86_64-linux:1.6.826" environment: - OCTOKIT_ACCESS_TOKEN + - HAB_LICENSE="accept-no-persist" + - CI="true" + - HAB_FEAT_IGNORE_LOCAL="true" + - HAB_STUDIO_SECRET_HAB_FEAT_IGNORE_LOCAL="true" - label: With ChefFS=1 command: From 7eced5ee0e156523bfe8815adefe914d62a2574b Mon Sep 17 00:00:00 2001 From: talktovikas Date: Mon, 16 Sep 2024 19:07:26 +0530 Subject: [PATCH 21/47] test wolverine2X Signed-off-by: talktovikas --- .expeditor/habitat.sh | 1 + .expeditor/verify.pipeline.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.expeditor/habitat.sh b/.expeditor/habitat.sh index 8cd17c2140..2d022301e2 100755 --- a/.expeditor/habitat.sh +++ b/.expeditor/habitat.sh @@ -4,6 +4,7 @@ # additionaly, it exports them as a local docker image export CHEF_SERVER_SRC='/src/src' export ORIGIN=chefservertesting +export HAB_LICENSE=accept-no-persist for dir in oc-id openresty-noroot nginx bookshelf chef-server-ctl oc_bifrost oc_erchef; do cd $CHEF_SERVER_SRC/$dir diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 44f8070006..3f0c2b0a40 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -163,6 +163,7 @@ steps: environment: - OCTOKIT_ACCESS_TOKEN - HAB_LICENSE="accept-no-persist" + - CHEF_LICENSE=accept-no-persist - CI="true" - HAB_FEAT_IGNORE_LOCAL="true" - HAB_STUDIO_SECRET_HAB_FEAT_IGNORE_LOCAL="true" From 175e5f60acd0938b6932617755aa89b700cb36d5 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Mon, 16 Sep 2024 19:11:16 +0530 Subject: [PATCH 22/47] test wolverine2XX Signed-off-by: talktovikas --- .expeditor/verify.pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 3f0c2b0a40..e1818f5496 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -163,7 +163,7 @@ steps: environment: - OCTOKIT_ACCESS_TOKEN - HAB_LICENSE="accept-no-persist" - - CHEF_LICENSE=accept-no-persist + - CHEF_LICENSE="accept-no-persist" - CI="true" - HAB_FEAT_IGNORE_LOCAL="true" - HAB_STUDIO_SECRET_HAB_FEAT_IGNORE_LOCAL="true" From 76aceb11d96d6719161b0d52d3678eed47c5fe8c Mon Sep 17 00:00:00 2001 From: talktovikas Date: Mon, 16 Sep 2024 19:18:57 +0530 Subject: [PATCH 23/47] test wolverine2XXX Signed-off-by: talktovikas --- .expeditor/verify.pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index e1818f5496..a09a39373f 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -162,7 +162,7 @@ steps: image: "habitat/default-studio-x86_64-linux:1.6.826" environment: - OCTOKIT_ACCESS_TOKEN - - HAB_LICENSE="accept-no-persist" + - HAB_LICENSE="accept" - CHEF_LICENSE="accept-no-persist" - CI="true" - HAB_FEAT_IGNORE_LOCAL="true" From d9406e994a850a5c96dcef84da842971e01655d1 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Mon, 16 Sep 2024 19:21:11 +0530 Subject: [PATCH 24/47] test wolverine2Y Signed-off-by: talktovikas --- .expeditor/verify.pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index a09a39373f..4804df139d 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -162,7 +162,7 @@ steps: image: "habitat/default-studio-x86_64-linux:1.6.826" environment: - OCTOKIT_ACCESS_TOKEN - - HAB_LICENSE="accept" + - HAB_LICENSE=accept - CHEF_LICENSE="accept-no-persist" - CI="true" - HAB_FEAT_IGNORE_LOCAL="true" From e9e52e56269e5f542fbbdaa434f271f4b67c3039 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Mon, 16 Sep 2024 19:23:01 +0530 Subject: [PATCH 25/47] test wolverine2YY Signed-off-by: talktovikas --- .expeditor/verify.pipeline.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 4804df139d..80a2c65731 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -166,7 +166,6 @@ steps: - CHEF_LICENSE="accept-no-persist" - CI="true" - HAB_FEAT_IGNORE_LOCAL="true" - - HAB_STUDIO_SECRET_HAB_FEAT_IGNORE_LOCAL="true" - label: With ChefFS=1 command: From 4f6fe0a21ab5fc20ecae8030ec0c0cfcb6fff710 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Mon, 16 Sep 2024 19:24:38 +0530 Subject: [PATCH 26/47] test wolverine2A Signed-off-by: talktovikas --- .expeditor/verify.pipeline.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 80a2c65731..155600f5f5 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -165,6 +165,7 @@ steps: - HAB_LICENSE=accept - CHEF_LICENSE="accept-no-persist" - CI="true" + - HAB_ORIGIN="chef" - HAB_FEAT_IGNORE_LOCAL="true" - label: With ChefFS=1 From bd77c9e5a8a8cf0424b8020c30d1154286cbae05 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Mon, 16 Sep 2024 19:25:48 +0530 Subject: [PATCH 27/47] testA Signed-off-by: talktovikas --- .expeditor/verify.pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 155600f5f5..2c982e5e2d 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -165,7 +165,7 @@ steps: - HAB_LICENSE=accept - CHEF_LICENSE="accept-no-persist" - CI="true" - - HAB_ORIGIN="chef" + - HAB_ORIGIN=chef - HAB_FEAT_IGNORE_LOCAL="true" - label: With ChefFS=1 From 80f186e69242c6a1db719efb5f33edbfd9598881 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Tue, 17 Sep 2024 14:10:32 +0530 Subject: [PATCH 28/47] testB Signed-off-by: talktovikas --- .expeditor/verify.pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 2c982e5e2d..155600f5f5 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -165,7 +165,7 @@ steps: - HAB_LICENSE=accept - CHEF_LICENSE="accept-no-persist" - CI="true" - - HAB_ORIGIN=chef + - HAB_ORIGIN="chef" - HAB_FEAT_IGNORE_LOCAL="true" - label: With ChefFS=1 From 078d060d528ce6ba5188ff056d41b884cba4fed6 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Tue, 17 Sep 2024 14:25:54 +0530 Subject: [PATCH 29/47] test C Signed-off-by: talktovikas --- .expeditor/verify.pipeline.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 155600f5f5..ec0dda03f8 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -165,7 +165,8 @@ steps: - HAB_LICENSE=accept - CHEF_LICENSE="accept-no-persist" - CI="true" - - HAB_ORIGIN="chef" + - HAB_ORIGIN=chef + - HAB_ORIGIN_KEYS=chef - HAB_FEAT_IGNORE_LOCAL="true" - label: With ChefFS=1 From 9dfb29dec73c16fc5fb8cfa8d5da3ce07f885c3e Mon Sep 17 00:00:00 2001 From: talktovikas Date: Tue, 17 Sep 2024 14:27:52 +0530 Subject: [PATCH 30/47] test D, Removing other cases Signed-off-by: talktovikas --- .expeditor/verify.pipeline.yml | 298 ++++++++++++++++----------------- 1 file changed, 149 insertions(+), 149 deletions(-) diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index ec0dda03f8..99c119cadb 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -12,146 +12,146 @@ steps: # Lint Tests ######################################################################### -- label: license-scout - command: - - .expeditor/license_scout.sh - expeditor: - executor: - docker: - environment: - - OCTOKIT_ACCESS_TOKEN +# - label: license-scout +# command: +# - .expeditor/license_scout.sh +# expeditor: +# executor: +# docker: +# environment: +# - OCTOKIT_ACCESS_TOKEN -######################################################################### - # Component Tests -######################################################################### +# ######################################################################### +# # Component Tests +# ######################################################################### -- label: omnibus - command: - - /workdir/scripts/bk_tests/bk_install.sh - - gem uninstall bundler -v '>= 2.0.1' -a - - cd /workdir/omnibus; make install - - make ci - expeditor: - executor: - docker: - image: "chefes/a1-buildkite" - environment: - - LUALIB=~/.luarocks/lib/lua/5.2 - - COMPONENT=omnibus +# - label: omnibus +# command: +# - /workdir/scripts/bk_tests/bk_install.sh +# - gem uninstall bundler -v '>= 2.0.1' -a +# - cd /workdir/omnibus; make install +# - make ci +# expeditor: +# executor: +# docker: +# image: "chefes/a1-buildkite" +# environment: +# - LUALIB=~/.luarocks/lib/lua/5.2 +# - COMPONENT=omnibus -- label: chef-server-ctl - command: - - /workdir/scripts/bk_tests/bk_install.sh - - cd /workdir/src/chef-server-ctl; make install - - make ci - expeditor: - executor: - docker: - image: "chefes/a1-buildkite" - environment: - - COMPONENT=src/chef-server-ctl +# - label: chef-server-ctl +# command: +# - /workdir/scripts/bk_tests/bk_install.sh +# - cd /workdir/src/chef-server-ctl; make install +# - make ci +# expeditor: +# executor: +# docker: +# image: "chefes/a1-buildkite" +# environment: +# - COMPONENT=src/chef-server-ctl -- label: oc_erchef_unit - command: - - date - - /workdir/scripts/bk_tests/bk_install.sh - - date - - cd /workdir/src/oc_erchef; make install - - make ci_eunit - - date - expeditor: - executor: - docker: - image: "chefes/a1-buildkite" - environment: - - PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin - - PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl - - LUALIB=~/.luarocks/lib/lua/5.2 - - ELIXIR_VERSION=1.4 - - COMPONENT=src/oc_ +# - label: oc_erchef_unit +# command: +# - date +# - /workdir/scripts/bk_tests/bk_install.sh +# - date +# - cd /workdir/src/oc_erchef; make install +# - make ci_eunit +# - date +# expeditor: +# executor: +# docker: +# image: "chefes/a1-buildkite" +# environment: +# - PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin +# - PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl +# - LUALIB=~/.luarocks/lib/lua/5.2 +# - ELIXIR_VERSION=1.4 +# - COMPONENT=src/oc_ -- label: oc_erchef_ct - command: - - date - - /workdir/scripts/bk_tests/bk_install.sh - - date - - cd /workdir/src/oc_erchef; make install - - make ci_ct - - date - expeditor: - executor: - docker: - image: "chefes/a1-buildkite" - environment: - - PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin - - PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl - - LUALIB=~/.luarocks/lib/lua/5.2 - - ELIXIR_VERSION=1.4 - - COMPONENT=src/oc_erchef +# - label: oc_erchef_ct +# command: +# - date +# - /workdir/scripts/bk_tests/bk_install.sh +# - date +# - cd /workdir/src/oc_erchef; make install +# - make ci_ct +# - date +# expeditor: +# executor: +# docker: +# image: "chefes/a1-buildkite" +# environment: +# - PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin +# - PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl +# - LUALIB=~/.luarocks/lib/lua/5.2 +# - ELIXIR_VERSION=1.4 +# - COMPONENT=src/oc_erchef -- label: oc-id - command: - - /workdir/scripts/bk_tests/bk_install.sh - - cd /workdir/src/oc-id - - make install ci - expeditor: - executor: - docker: - image: "chefes/a1-buildkite" - environment: - - COMPONENT=src/oc-id +# - label: oc-id +# command: +# - /workdir/scripts/bk_tests/bk_install.sh +# - cd /workdir/src/oc-id +# - make install ci +# expeditor: +# executor: +# docker: +# image: "chefes/a1-buildkite" +# environment: +# - COMPONENT=src/oc-id -- label: oc_bifrost - command: - - /workdir/scripts/bk_tests/bk_install.sh - - cd /workdir/src/oc_bifrost; make install - - make ci - expeditor: - executor: - docker: - image: "chefes/a1-buildkite" - environment: - - PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin - - PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl - - LUALIB=~/.luarocks/lib/lua/5.2 - - COMPONENT=src/oc_bifrost +# - label: oc_bifrost +# command: +# - /workdir/scripts/bk_tests/bk_install.sh +# - cd /workdir/src/oc_bifrost; make install +# - make ci +# expeditor: +# executor: +# docker: +# image: "chefes/a1-buildkite" +# environment: +# - PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin +# - PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl +# - LUALIB=~/.luarocks/lib/lua/5.2 +# - COMPONENT=src/oc_bifrost -- label: bookshelf - command: - - /workdir/scripts/bk_tests/bk_install.sh - - cd /workdir/src/bookshelf; make install - - make ci - expeditor: - executor: - docker: - image: "chefes/a1-buildkite" - environment: - - PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin - - PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl - - LUALIB=~/.luarocks/lib/lua/5.2 - - COMPONENT=src/bookshelf +# - label: bookshelf +# command: +# - /workdir/scripts/bk_tests/bk_install.sh +# - cd /workdir/src/bookshelf; make install +# - make ci +# expeditor: +# executor: +# docker: +# image: "chefes/a1-buildkite" +# environment: +# - PATH=/opt/asdf/shims:/opt/asdf/bin:/opt/ci-studio-common/bin:/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/chefdk/bin +# - PERL5LIB=~/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:~/perl5/lib/perl5:/etc/perl:/usr/local/lib/perl/5.14.2:/usr/local/share/perl/5.14.2:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.14:/usr/share/perl/5.14:/usr/local/lib/site_perl +# - LUALIB=~/.luarocks/lib/lua/5.2 +# - COMPONENT=src/bookshelf -# ######################################################################### -# # Pedant Tests -# ######################################################################### +# # ######################################################################### +# # # Pedant Tests +# # ######################################################################### -- label: With chef-zero - command: - - /workdir/scripts/bk_tests/bk_install.sh - - gem uninstall bundler -v '>= 2.0.1' -a - - cp scripts/bk_tests/chef_zero-Gemfile oc-chef-pedant/Gemfile - - bundle install --jobs=3 --retry=3 --path=/workdir/vendor/bundle - - cd /workdir/oc-chef-pedant - - bundle exec rake chef_zero_spec - expeditor: - executor: - docker: - image: "chefes/a1-buildkite" - environment: - - LUALIB=~/.luarocks/lib/lua/5.2 - - USE_OMNIBUS_FILES=0 - - PEDANT_OPTS="--skip-oc_id" - - BUNDLE_GEMFILE=/workdir/oc-chef-pedant/Gemfile +# - label: With chef-zero +# command: +# - /workdir/scripts/bk_tests/bk_install.sh +# - gem uninstall bundler -v '>= 2.0.1' -a +# - cp scripts/bk_tests/chef_zero-Gemfile oc-chef-pedant/Gemfile +# - bundle install --jobs=3 --retry=3 --path=/workdir/vendor/bundle +# - cd /workdir/oc-chef-pedant +# - bundle exec rake chef_zero_spec +# expeditor: +# executor: +# docker: +# image: "chefes/a1-buildkite" +# environment: +# - LUALIB=~/.luarocks/lib/lua/5.2 +# - USE_OMNIBUS_FILES=0 +# - PEDANT_OPTS="--skip-oc_id" +# - BUNDLE_GEMFILE=/workdir/oc-chef-pedant/Gemfile - label: vikas-habitat command: @@ -169,22 +169,22 @@ steps: - HAB_ORIGIN_KEYS=chef - HAB_FEAT_IGNORE_LOCAL="true" -- label: With ChefFS=1 - command: - - /workdir/scripts/bk_tests/bk_install.sh - - gem install bundler -v 2.2.4 - - gem uninstall bundler -v '> 2.2.4' -a - - cp scripts/bk_tests/chef_zero-Gemfile oc-chef-pedant/Gemfile - - bundle install --jobs=3 --retry=3 --path=/workdir/vendor/bundle - - cd /workdir/oc-chef-pedant - - bundle exec rake chef_zero_spec - expeditor: - executor: - docker: - image: "chefes/a1-buildkite" - environment: - - LUALIB=~/.luarocks/lib/lua/5.2 - - USE_OMNIBUS_FILES=0 - - PEDANT_OPTS="--skip-oc_id" - - CHEF_FS=1 - - BUNDLE_GEMFILE=/workdir/oc-chef-pedant/Gemfile +# - label: With ChefFS=1 +# command: +# - /workdir/scripts/bk_tests/bk_install.sh +# - gem install bundler -v 2.2.4 +# - gem uninstall bundler -v '> 2.2.4' -a +# - cp scripts/bk_tests/chef_zero-Gemfile oc-chef-pedant/Gemfile +# - bundle install --jobs=3 --retry=3 --path=/workdir/vendor/bundle +# - cd /workdir/oc-chef-pedant +# - bundle exec rake chef_zero_spec +# expeditor: +# executor: +# docker: +# image: "chefes/a1-buildkite" +# environment: +# - LUALIB=~/.luarocks/lib/lua/5.2 +# - USE_OMNIBUS_FILES=0 +# - PEDANT_OPTS="--skip-oc_id" +# - CHEF_FS=1 +# - BUNDLE_GEMFILE=/workdir/oc-chef-pedant/Gemfile From 986f2fd8b95b4bca72603f638d57b0f3fd28ad4d Mon Sep 17 00:00:00 2001 From: talktovikas Date: Tue, 17 Sep 2024 14:38:23 +0530 Subject: [PATCH 31/47] test E Signed-off-by: talktovikas --- .expeditor/verify.pipeline.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 99c119cadb..8ad703994c 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -155,6 +155,7 @@ steps: - label: vikas-habitat command: + - hab origin key generate chef - /workdir/.expeditor/habitat.sh expeditor: executor: From 3b81f549087de1bcf0bb07cc50f5f4e185dc7a01 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Tue, 17 Sep 2024 14:42:47 +0530 Subject: [PATCH 32/47] test D1, Removing other cases Signed-off-by: talktovikas --- .expeditor/verify.pipeline.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 8ad703994c..6a7a7113f0 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -168,6 +168,7 @@ steps: - CI="true" - HAB_ORIGIN=chef - HAB_ORIGIN_KEYS=chef + - HAB_STUDIO_SECRET_HAB_FEAT_IGNORE_LOCAL="true" - HAB_FEAT_IGNORE_LOCAL="true" # - label: With ChefFS=1 From f89a3a430ef56dc9c6185f15b7711012d6ad2a8f Mon Sep 17 00:00:00 2001 From: talktovikas Date: Tue, 17 Sep 2024 17:09:33 +0530 Subject: [PATCH 33/47] test N Signed-off-by: talktovikas --- .expeditor/habitat.sh | 40 +++++++++++++++++++--------------- .expeditor/verify.pipeline.yml | 3 +-- 2 files changed, 24 insertions(+), 19 deletions(-) diff --git a/.expeditor/habitat.sh b/.expeditor/habitat.sh index 2d022301e2..584887d73a 100755 --- a/.expeditor/habitat.sh +++ b/.expeditor/habitat.sh @@ -2,22 +2,28 @@ # this script builds all the essential habitat packages for running Chef Server # additionaly, it exports them as a local docker image -export CHEF_SERVER_SRC='/src/src' -export ORIGIN=chefservertesting +# export CHEF_SERVER_SRC='/src/src' +export ORIGIN=chef export HAB_LICENSE=accept-no-persist -for dir in oc-id openresty-noroot nginx bookshelf chef-server-ctl oc_bifrost oc_erchef; do - cd $CHEF_SERVER_SRC/$dir - echo "hab version is :" `hab --version` - echo "[STATUS] building $dir" - build > /var/log/build-${dir}-$(date +%s).log - if [[ $dir =~ dbdpg|openresty-noroot ]]; then continue; fi - echo "[STATUS] exporting $dir pkg to docker daemon" - hab pkg export docker -i "$ORIGIN/{{pkg_name}}" \ - --no-push-image \ - --no-tag-latest \ - --no-tag-version \ - --no-tag-version-release \ - --tag-custom "localdev" \ - $(ls -1t results/*.hart | head -1) -done +curl https://raw.githubusercontent.com/habitat-sh/habitat/main/components/hab/install.sh | sudo bash +hab license accept +hab origin key generate +hab pkg build src/bookshelf + + +# for dir in oc-id openresty-noroot nginx bookshelf chef-server-ctl oc_bifrost oc_erchef; do +# cd $CHEF_SERVER_SRC/$dir +# echo "hab version is :" `hab --version` +# echo "[STATUS] building $dir" +# build > /var/log/build-${dir}-$(date +%s).log +# if [[ $dir =~ dbdpg|openresty-noroot ]]; then continue; fi +# echo "[STATUS] exporting $dir pkg to docker daemon" +# hab pkg export docker -i "$ORIGIN/{{pkg_name}}" \ +# --no-push-image \ +# --no-tag-latest \ +# --no-tag-version \ +# --no-tag-version-release \ +# --tag-custom "localdev" \ +# $(ls -1t results/*.hart | head -1) +# done diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 6a7a7113f0..3111859d36 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -155,12 +155,11 @@ steps: - label: vikas-habitat command: - - hab origin key generate chef + - hab origin key generate - /workdir/.expeditor/habitat.sh expeditor: executor: docker: - image: "habitat/default-studio-x86_64-linux:1.6.826" environment: - OCTOKIT_ACCESS_TOKEN - HAB_LICENSE=accept From d301d0c3af4515c8ba13482735b3ef6b2b8791bf Mon Sep 17 00:00:00 2001 From: talktovikas Date: Tue, 17 Sep 2024 17:13:26 +0530 Subject: [PATCH 34/47] test P Signed-off-by: talktovikas --- .expeditor/habitat.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.expeditor/habitat.sh b/.expeditor/habitat.sh index 584887d73a..7159223584 100755 --- a/.expeditor/habitat.sh +++ b/.expeditor/habitat.sh @@ -7,6 +7,13 @@ export ORIGIN=chef export HAB_LICENSE=accept-no-persist curl https://raw.githubusercontent.com/habitat-sh/habitat/main/components/hab/install.sh | sudo bash + +export JOB_TEMP_ROOT +JOB_TEMP_ROOT=$(mktemp -d /tmp/job-root-XXXXXX) +export HAB_CACHE_KEY_PATH +HAB_CACHE_KEY_PATH="$JOB_TEMP_ROOT/keys" + +echo "--- :key: Generating fake origin key" hab license accept hab origin key generate hab pkg build src/bookshelf From fe4719e43eca1ab9e4917e2f6fba543e7afb0269 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Tue, 17 Sep 2024 17:16:15 +0530 Subject: [PATCH 35/47] test PA Signed-off-by: talktovikas --- .expeditor/habitat.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.expeditor/habitat.sh b/.expeditor/habitat.sh index 7159223584..ac49d483ec 100755 --- a/.expeditor/habitat.sh +++ b/.expeditor/habitat.sh @@ -2,7 +2,7 @@ # this script builds all the essential habitat packages for running Chef Server # additionaly, it exports them as a local docker image -# export CHEF_SERVER_SRC='/src/src' +export CHEF_SERVER_SRC='/src/src' export ORIGIN=chef export HAB_LICENSE=accept-no-persist @@ -16,7 +16,8 @@ HAB_CACHE_KEY_PATH="$JOB_TEMP_ROOT/keys" echo "--- :key: Generating fake origin key" hab license accept hab origin key generate -hab pkg build src/bookshelf +cd src/bookshelf +hab pkg build # for dir in oc-id openresty-noroot nginx bookshelf chef-server-ctl oc_bifrost oc_erchef; do From de89fff6777c240f1de9ba46ed9dfc23fcda1b41 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Tue, 17 Sep 2024 17:18:33 +0530 Subject: [PATCH 36/47] test PAA Signed-off-by: talktovikas --- .expeditor/habitat.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.expeditor/habitat.sh b/.expeditor/habitat.sh index ac49d483ec..054c453460 100755 --- a/.expeditor/habitat.sh +++ b/.expeditor/habitat.sh @@ -16,7 +16,9 @@ HAB_CACHE_KEY_PATH="$JOB_TEMP_ROOT/keys" echo "--- :key: Generating fake origin key" hab license accept hab origin key generate -cd src/bookshelf +echo "The directory:" `pwd` +echo "ls -l:" `ls -l` +cd /src/src/bookshelf hab pkg build From ffdd560d1457095656a79ae7b3ffd3f9a2f0f201 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Tue, 17 Sep 2024 17:21:02 +0530 Subject: [PATCH 37/47] test PB Signed-off-by: talktovikas --- .expeditor/habitat.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.expeditor/habitat.sh b/.expeditor/habitat.sh index 054c453460..b7d2f30c52 100755 --- a/.expeditor/habitat.sh +++ b/.expeditor/habitat.sh @@ -2,7 +2,7 @@ # this script builds all the essential habitat packages for running Chef Server # additionaly, it exports them as a local docker image -export CHEF_SERVER_SRC='/src/src' +export CHEF_SERVER_SRC='/workdir/src' export ORIGIN=chef export HAB_LICENSE=accept-no-persist @@ -18,7 +18,7 @@ hab license accept hab origin key generate echo "The directory:" `pwd` echo "ls -l:" `ls -l` -cd /src/src/bookshelf +cd /workdir/src/bookshelf hab pkg build From ec44c0dd06fbbb9035b5413fe0ce2daadb3d91ee Mon Sep 17 00:00:00 2001 From: talktovikas Date: Tue, 17 Sep 2024 17:23:20 +0530 Subject: [PATCH 38/47] test PC Signed-off-by: talktovikas --- .expeditor/habitat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.expeditor/habitat.sh b/.expeditor/habitat.sh index b7d2f30c52..6714303106 100755 --- a/.expeditor/habitat.sh +++ b/.expeditor/habitat.sh @@ -19,7 +19,7 @@ hab origin key generate echo "The directory:" `pwd` echo "ls -l:" `ls -l` cd /workdir/src/bookshelf -hab pkg build +hab pkg build bookshelf # for dir in oc-id openresty-noroot nginx bookshelf chef-server-ctl oc_bifrost oc_erchef; do From 8df5153ba00e69ff8b8e2a2174b6655509b64c9c Mon Sep 17 00:00:00 2001 From: talktovikas Date: Tue, 17 Sep 2024 17:25:04 +0530 Subject: [PATCH 39/47] test PCC Signed-off-by: talktovikas --- .expeditor/habitat.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.expeditor/habitat.sh b/.expeditor/habitat.sh index 6714303106..070e4706af 100755 --- a/.expeditor/habitat.sh +++ b/.expeditor/habitat.sh @@ -18,6 +18,7 @@ hab license accept hab origin key generate echo "The directory:" `pwd` echo "ls -l:" `ls -l` +echo "whoami:" `whoami` cd /workdir/src/bookshelf hab pkg build bookshelf From cf3d58d9d24299164422f863baedf65d5bd8cb83 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Tue, 17 Sep 2024 17:27:11 +0530 Subject: [PATCH 40/47] test PD Signed-off-by: talktovikas --- .expeditor/habitat.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.expeditor/habitat.sh b/.expeditor/habitat.sh index 070e4706af..bdfd9295bf 100755 --- a/.expeditor/habitat.sh +++ b/.expeditor/habitat.sh @@ -19,8 +19,8 @@ hab origin key generate echo "The directory:" `pwd` echo "ls -l:" `ls -l` echo "whoami:" `whoami` -cd /workdir/src/bookshelf -hab pkg build bookshelf +# cd /workdir/src/bookshelf +hab pkg build src/bookshelf # for dir in oc-id openresty-noroot nginx bookshelf chef-server-ctl oc_bifrost oc_erchef; do From 93df025a17742785aff5daae4a12e379399d5acb Mon Sep 17 00:00:00 2001 From: talktovikas Date: Tue, 17 Sep 2024 17:30:01 +0530 Subject: [PATCH 41/47] test PE Signed-off-by: talktovikas --- .expeditor/verify.pipeline.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 3111859d36..aa5dcc3049 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -160,6 +160,7 @@ steps: expeditor: executor: docker: + privileged: true environment: - OCTOKIT_ACCESS_TOKEN - HAB_LICENSE=accept From ddd76a84b1dd1c368fc0cea457d3928d995b4c45 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Tue, 17 Sep 2024 17:48:32 +0530 Subject: [PATCH 42/47] test PF Signed-off-by: talktovikas --- .expeditor/habitat.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.expeditor/habitat.sh b/.expeditor/habitat.sh index bdfd9295bf..2e9885a6da 100755 --- a/.expeditor/habitat.sh +++ b/.expeditor/habitat.sh @@ -21,6 +21,15 @@ echo "ls -l:" `ls -l` echo "whoami:" `whoami` # cd /workdir/src/bookshelf hab pkg build src/bookshelf +pkg_name=$(ls -1t results/*.hart | head -1) +echo pkg_name is $pkg_name +hab pkg export docker -i "$ORIGIN/bookshelf" \ + --no-push-image \ + --no-tag-latest \ + --no-tag-version \ + --no-tag-version-release \ + --tag-custom "localdev" \ + $pkg_name # for dir in oc-id openresty-noroot nginx bookshelf chef-server-ctl oc_bifrost oc_erchef; do From 99258235591ce06d2fc94e45ebec9a3763631d40 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Tue, 17 Sep 2024 17:56:35 +0530 Subject: [PATCH 43/47] test PG Signed-off-by: talktovikas --- .expeditor/habitat.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.expeditor/habitat.sh b/.expeditor/habitat.sh index 2e9885a6da..10113cc9ea 100755 --- a/.expeditor/habitat.sh +++ b/.expeditor/habitat.sh @@ -23,6 +23,7 @@ echo "whoami:" `whoami` hab pkg build src/bookshelf pkg_name=$(ls -1t results/*.hart | head -1) echo pkg_name is $pkg_name +hab origin create $ORIGIN hab pkg export docker -i "$ORIGIN/bookshelf" \ --no-push-image \ --no-tag-latest \ From 4187cca97ab3c12e05c24ae8f5514e057855972c Mon Sep 17 00:00:00 2001 From: talktovikas Date: Tue, 17 Sep 2024 17:58:36 +0530 Subject: [PATCH 44/47] test BUILDKITE Signed-off-by: talktovikas --- .expeditor/habitat.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.expeditor/habitat.sh b/.expeditor/habitat.sh index 10113cc9ea..407437115b 100755 --- a/.expeditor/habitat.sh +++ b/.expeditor/habitat.sh @@ -23,6 +23,7 @@ echo "whoami:" `whoami` hab pkg build src/bookshelf pkg_name=$(ls -1t results/*.hart | head -1) echo pkg_name is $pkg_name +buildkite-agent artifact upload $pkg_name hab origin create $ORIGIN hab pkg export docker -i "$ORIGIN/bookshelf" \ --no-push-image \ From a20eb98991bddd8ad37b08484482a526651eb281 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Tue, 17 Sep 2024 18:02:41 +0530 Subject: [PATCH 45/47] test BUILDKITEA Signed-off-by: talktovikas --- .expeditor/habitat.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.expeditor/habitat.sh b/.expeditor/habitat.sh index 407437115b..a3f87d9bfb 100755 --- a/.expeditor/habitat.sh +++ b/.expeditor/habitat.sh @@ -21,10 +21,12 @@ echo "ls -l:" `ls -l` echo "whoami:" `whoami` # cd /workdir/src/bookshelf hab pkg build src/bookshelf -pkg_name=$(ls -1t results/*.hart | head -1) +pushd results +pkg_name=$(ls -1t *.hart | head -1) +popd echo pkg_name is $pkg_name buildkite-agent artifact upload $pkg_name -hab origin create $ORIGIN +hab pkg upload $pkg_name hab pkg export docker -i "$ORIGIN/bookshelf" \ --no-push-image \ --no-tag-latest \ From cd89fb433b7cdf541e1fda619673d7d78315766d Mon Sep 17 00:00:00 2001 From: talktovikas Date: Tue, 17 Sep 2024 18:07:03 +0530 Subject: [PATCH 46/47] test BUILDKITEAA Signed-off-by: talktovikas --- .expeditor/habitat.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.expeditor/habitat.sh b/.expeditor/habitat.sh index a3f87d9bfb..3eb1d6974d 100755 --- a/.expeditor/habitat.sh +++ b/.expeditor/habitat.sh @@ -25,15 +25,15 @@ pushd results pkg_name=$(ls -1t *.hart | head -1) popd echo pkg_name is $pkg_name -buildkite-agent artifact upload $pkg_name -hab pkg upload $pkg_name -hab pkg export docker -i "$ORIGIN/bookshelf" \ - --no-push-image \ - --no-tag-latest \ - --no-tag-version \ - --no-tag-version-release \ - --tag-custom "localdev" \ - $pkg_name +buildkite-agent artifact upload $CHEF_SERVER_SRC/bookshelf/results/$pkg_name +hab pkg upload $CHEF_SERVER_SRC/bookshelf/results/$pkg_name +# hab pkg export docker -i "$ORIGIN/bookshelf" \ +# --no-push-image \ +# --no-tag-latest \ +# --no-tag-version \ +# --no-tag-version-release \ +# --tag-custom "localdev" \ +# $pkg_name # for dir in oc-id openresty-noroot nginx bookshelf chef-server-ctl oc_bifrost oc_erchef; do From ad67e7fbd9c0b76c7b5de8e77c0d87dd21d46ee7 Mon Sep 17 00:00:00 2001 From: talktovikas Date: Tue, 17 Sep 2024 18:11:17 +0530 Subject: [PATCH 47/47] test BUILDKITEM Signed-off-by: talktovikas --- .expeditor/habitat.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.expeditor/habitat.sh b/.expeditor/habitat.sh index 3eb1d6974d..2dc3ca076a 100755 --- a/.expeditor/habitat.sh +++ b/.expeditor/habitat.sh @@ -25,8 +25,8 @@ pushd results pkg_name=$(ls -1t *.hart | head -1) popd echo pkg_name is $pkg_name -buildkite-agent artifact upload $CHEF_SERVER_SRC/bookshelf/results/$pkg_name -hab pkg upload $CHEF_SERVER_SRC/bookshelf/results/$pkg_name +buildkite-agent artifact upload results/$pkg_name +hab pkg upload results/$pkg_name # hab pkg export docker -i "$ORIGIN/bookshelf" \ # --no-push-image \ # --no-tag-latest \