From 506297b895183014341310fa71aeead2c6b0c91d Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Thu, 5 Dec 2024 16:36:18 +0530 Subject: [PATCH 1/8] testing pipelines Signed-off-by: nikhil2611 --- .expeditor/habitat-test.pipeline.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.expeditor/habitat-test.pipeline.yml b/.expeditor/habitat-test.pipeline.yml index 7cd46985..a8636693 100644 --- a/.expeditor/habitat-test.pipeline.yml +++ b/.expeditor/habitat-test.pipeline.yml @@ -7,6 +7,7 @@ expeditor: automatic: limit: 1 + steps: - label: ":linux: Validate Habitat Builds of Chef-cli" From fba4385ca39112701b1ad875c8db8e346fc932d8 Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Thu, 5 Dec 2024 16:39:17 +0530 Subject: [PATCH 2/8] testing pipelines Signed-off-by: nikhil2611 --- .expeditor/habitat-test.pipeline.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.expeditor/habitat-test.pipeline.yml b/.expeditor/habitat-test.pipeline.yml index a8636693..f2600181 100644 --- a/.expeditor/habitat-test.pipeline.yml +++ b/.expeditor/habitat-test.pipeline.yml @@ -8,6 +8,7 @@ expeditor: limit: 1 + steps: - label: ":linux: Validate Habitat Builds of Chef-cli" From d690c0842a2edaee6377b8ec2e7f61162a04f761 Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Thu, 5 Dec 2024 19:23:35 +0530 Subject: [PATCH 3/8] testing pipelines Signed-off-by: nikhil2611 --- .expeditor/habitat-test.pipeline.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.expeditor/habitat-test.pipeline.yml b/.expeditor/habitat-test.pipeline.yml index f2600181..7cd46985 100644 --- a/.expeditor/habitat-test.pipeline.yml +++ b/.expeditor/habitat-test.pipeline.yml @@ -7,8 +7,6 @@ expeditor: automatic: limit: 1 - - steps: - label: ":linux: Validate Habitat Builds of Chef-cli" From 249fed60463fb03fb5f5c72dbbd2b548eebc0b2e Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Thu, 5 Dec 2024 19:28:27 +0530 Subject: [PATCH 4/8] updated file permission Signed-off-by: nikhil2611 --- .expeditor/buildkite/artifact.habitat.test.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 .expeditor/buildkite/artifact.habitat.test.sh diff --git a/.expeditor/buildkite/artifact.habitat.test.sh b/.expeditor/buildkite/artifact.habitat.test.sh old mode 100644 new mode 100755 From 2b61b920fb2db15b9a0bd4a037fd326647713636 Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Thu, 5 Dec 2024 19:31:16 +0530 Subject: [PATCH 5/8] removed the verify pipeline Signed-off-by: nikhil2611 --- .expeditor/config.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.expeditor/config.yml b/.expeditor/config.yml index 7afff562..9470b41b 100644 --- a/.expeditor/config.yml +++ b/.expeditor/config.yml @@ -31,9 +31,6 @@ changelog: rollup_header: Changes not yet released to rubygems.org pipelines: - - verify: - description: Pull Request validation tests - public: true - habitat/build: env: - HAB_NONINTERACTIVE: "true" From 64568ec6376b4e8179c1bb686f0d6e061a60f5dc Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Thu, 5 Dec 2024 19:38:14 +0530 Subject: [PATCH 6/8] updated file permission Signed-off-by: nikhil2611 --- habitat/tests/test.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 habitat/tests/test.sh diff --git a/habitat/tests/test.sh b/habitat/tests/test.sh old mode 100644 new mode 100755 From f38ede3f611ee47373acf2107d1b34ef8e35157c Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Fri, 6 Dec 2024 15:13:42 +0530 Subject: [PATCH 7/8] accepting arg pkg_idenent Signed-off-by: nikhil2611 --- habitat/tests/test.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/habitat/tests/test.sh b/habitat/tests/test.sh index 551afd29..00d25b3f 100755 --- a/habitat/tests/test.sh +++ b/habitat/tests/test.sh @@ -3,6 +3,7 @@ set -euo pipefail project_root="$(git rev-parse --show-toplevel)" +pkg_ident="$1" # print error message followed by usage and exit error () { @@ -19,6 +20,6 @@ package_version=$(awk -F / '{print $3}' <<<"$pkg_ident") cd "${project_root}" -echo "--- :msg_right: Testing ${pkg_ident} executables" +echo "--- :mag_right: Testing ${pkg_ident} executables" actual_version=$(hab pkg exec "${pkg_ident}" cookstyle -v | sed -n 's/^Cookstyle \([0-9.]*\).*$/\1/p') [[ "$package_version" = "$actual_version" ]] || error "cookstyle version is not the expected version. Expected '$package_version', got '$actual_version'" \ No newline at end of file From 262ed02db07e8db4721fc9b75db5cb08d6f3a3c6 Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Fri, 6 Dec 2024 15:28:03 +0530 Subject: [PATCH 8/8] adding echo Signed-off-by: nikhil2611 --- habitat/tests/test.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/habitat/tests/test.sh b/habitat/tests/test.sh index 00d25b3f..3a19d6a9 100755 --- a/habitat/tests/test.sh +++ b/habitat/tests/test.sh @@ -17,9 +17,11 @@ error () { [[ -n "$pkg_ident" ]] || error 'no hab package identity provided' package_version=$(awk -F / '{print $3}' <<<"$pkg_ident") +echo $package_version cd "${project_root}" echo "--- :mag_right: Testing ${pkg_ident} executables" actual_version=$(hab pkg exec "${pkg_ident}" cookstyle -v | sed -n 's/^Cookstyle \([0-9.]*\).*$/\1/p') +echo $actual_version [[ "$package_version" = "$actual_version" ]] || error "cookstyle version is not the expected version. Expected '$package_version', got '$actual_version'" \ No newline at end of file