Skip to content

Conversation

@nikhil2611
Copy link
Contributor

@nikhil2611 nikhil2611 commented Feb 3, 2025

Description

Habitat Package for Chef-CLI

Added the following commands for the licensing.

  • chef-cli license
  • chef-cli license add
  • chef-cli license list

Updated the shell-init command to recognize both habitat and omnibus installation and modify it accordingly.

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have run the pre-merge tests locally and they pass.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • If Gemfile.lock has changed, I have used --conservative to do it and included the full output in the Description above.
  • All new and existing tests passed.
  • All commits have been signed-off for the Developer Certificate of Origin.

ashiqueps and others added 30 commits October 23, 2024 15:37
Signed-off-by: Ashique P S <Ashique.saidalavi@progress.com>
Signed-off-by: Ashique P S <Ashique.saidalavi@progress.com>
Signed-off-by: Ashique P S <Ashique.saidalavi@progress.com>
Signed-off-by: Ashique P S <Ashique.saidalavi@progress.com>
Signed-off-by: Ashique P S <Ashique.saidalavi@progress.com>
Signed-off-by: Ashique P S <Ashique.saidalavi@progress.com>
Signed-off-by: Ashique P S <Ashique.saidalavi@progress.com>
Signed-off-by: Ashique P S <Ashique.saidalavi@progress.com>
Signed-off-by: Ashique P S <Ashique.saidalavi@progress.com>
Signed-off-by: Ashique P S <Ashique.saidalavi@progress.com>
Signed-off-by: Ashique P S <Ashique.saidalavi@progress.com>
Signed-off-by: Ashique Saidalavi <Ashique.saidalavi@progress.com>
Signed-off-by: Ashique Saidalavi <Ashique.saidalavi@progress.com>
Signed-off-by: Ashique Saidalavi <Ashique.saidalavi@progress.com>
Signed-off-by: Ashique Saidalavi <Ashique.saidalavi@progress.com>
Implementation of the chef license commands
* Added plan.sh file

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Change gem file for app bundler on windows and plan.ps1 added

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Habitat pkg version sync with version file

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Removed duplicate dep and check linux gem are not trying to install on windows

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Change in linux plan file and Rakefile to add install task

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* added hab path aware code changes

Signed-off-by: nikhil2611 <nikhilgupta2102@gmail.com>

* fixing the git issue

Signed-off-by: nikhil2611 <nikhilgupta2102@gmail.com>

* added the hab env and few command fix for hab path

Signed-off-by: nikhil2611 <nikhilgupta2102@gmail.com>

* testing for plan.sh as of now

Signed-off-by: nikhil2611 <nikhilgupta2102@gmail.com>

* adding back omnibus methods for testing

Signed-off-by: nikhil2611 <nikhilgupta2102@gmail.com>

* initializing pkg_prefix in hab_env

Signed-off-by: nikhil2611 <nikhilgupta2102@gmail.com>

* updated the origin variable for chef-cli

Signed-off-by: nikhil2611 <nikhilgupta2102@gmail.com>

* Added chef spec gem

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* testing chefspec changes

Signed-off-by: nikhil2611 <nikhilgupta2102@gmail.com>

* Added rspec in bin dir for linking issue

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Chefspec dep for rspec fix to 3.12

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Pinning rspec version

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Change chef-cli hab pkg origin

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Hab channel changed

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Chef 17400 pipeline (#241)

* Add github action for hab pkg and publish

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Added version check on new hab pkg

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* removed extra keyword for triggering pipeline

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* pkg iden added using vars

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* list all pkg to verify pkg installed

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Installing hab build using hart file

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Installing hab build using hart file

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Installing hab build using hart file

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* pipeline test commit

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* pipeline test commit

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* pipeline test commit

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* pipeline test commit

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* pipeline test commit

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* sudo for installing hab pkg

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* sudo for installing hab pkg

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* sudo for installing hab pkg

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* sudo for installing hab pkg

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* hart file version change

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Change pkg_indent

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Change pkg_indent

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* version regex changed

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* windows pipeline change

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* windows pipeline change

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* windows pipeline change

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* windows pipeline change

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Windows chef-cli hab version check

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Windows chef-cli hab version check

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Windows chef-cli hab version check

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Change the message in test phase and throw error

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Change the message in test phase and throw error

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Hab pipeline using buildkite

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* hab build yml file added

Signed-off-by: nitin sanghi <nsanghi@progress.com>

---------

Signed-off-by: nitin sanghi <nsanghi@progress.com>

---------

Signed-off-by: nitin sanghi <nsanghi@progress.com>
Signed-off-by: nikhil2611 <nikhilgupta2102@gmail.com>
Co-authored-by: nikhil2611 <nikhilgupta2102@gmail.com>
Co-authored-by: Nikhil Gupta <35272911+nikhil2611@users.noreply.github.com>
* Testing pipleine

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Testing pipleine

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Testing pipleine

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Path change for test file

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* adding locales

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* adding locales

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* adding locales

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* adding locales

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* adding locales

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* adding locales

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* adding locales

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* adding locales

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* adding locales

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* adding locales

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* ignoring warn change sed regex

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* ignoring warn change sed regex

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* ignoring warn change sed regex

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* ignoring warn change sed regex

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* change version command

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* change version command

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* change version command

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* change version command

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* change version command

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* change version command

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* change version command regex

Signed-off-by: nitin sanghi <nsanghi@progress.com>

---------

Signed-off-by: nitin sanghi <nsanghi@progress.com>
Signed-off-by: nitin sanghi <nsanghi@progress.com>
Signed-off-by: nitin sanghi <nsanghi@progress.com>
* Added action for channel alternative

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Changing version 1.0.0 for hab pkg

Signed-off-by: nitin sanghi <nsanghi@progress.com>

* Changing version 1.0.0 for hab pkg

Signed-off-by: nitin sanghi <nsanghi@progress.com>

---------

Signed-off-by: nitin sanghi <nsanghi@progress.com>
Signed-off-by: Sean Simmons <sean.simmons@progress.com>
Signed-off-by: Sean Simmons <sean.simmons@progress.com>
Signed-off-by: Sean Simmons <sean.simmons@progress.com>
Signed-off-by: Sean Simmons <sean.simmons@progress.com>
Signed-off-by: nitin sanghi <nsanghi@progress.com>
Signed-off-by: nitin sanghi <nsanghi@progress.com>
Signed-off-by: nikhil2611 <nikhilgupta2102@gmail.com>
@github-actions
Copy link

github-actions bot commented Feb 3, 2025

Simplecov Report

Covered Threshold
98.51% 90%

@nikhil2611 nikhil2611 marked this pull request as ready for review February 3, 2025 11:36
@nikhil2611 nikhil2611 requested review from a team as code owners February 3, 2025 11:36
ashiqueps and others added 11 commits February 4, 2025 18:42
Signed-off-by: Ashique Saidalavi <Ashique.saidalavi@progress.com>
Signed-off-by: Ashique Saidalavi <Ashique.saidalavi@progress.com>
Signed-off-by: Ashique Saidalavi <Ashique.saidalavi@progress.com>
Signed-off-by: Ashique Saidalavi <Ashique.saidalavi@progress.com>
Signed-off-by: Ashique Saidalavi <Ashique.saidalavi@progress.com>
Signed-off-by: Ashique Saidalavi <Ashique.saidalavi@progress.com>
Signed-off-by: Ashique Saidalavi <Ashique.saidalavi@progress.com>
…llations

Signed-off-by: Ashique Saidalavi <Ashique.saidalavi@progress.com>
Signed-off-by: Ashique Saidalavi <Ashique.saidalavi@progress.com>
Signed-off-by: nikhil2611 <nikhilgupta2102@gmail.com>
…mmand

[CHEF-18664] Updated the shell-init command to work with habitat and omnibus installations
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 5, 2025

@sonarqube-for-infrastructure-prod

Quality Gate failed Quality Gate failed

Failed conditions
8 New issues
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube

Catch issues before they fail your Quality Gate with our IDE extension SonarLint SonarLint

@nikhil2611 nikhil2611 merged commit d428cb1 into main Feb 5, 2025
12 of 13 checks passed
nikhil2611 added a commit that referenced this pull request Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants