Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Habitat Package for Chef-CLI #260

Merged
merged 59 commits into from
Feb 5, 2025
Merged

Habitat Package for Chef-CLI #260

merged 59 commits into from
Feb 5, 2025

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 <[email protected]>
Signed-off-by: Ashique P S <[email protected]>
Signed-off-by: Ashique Saidalavi <[email protected]>
Signed-off-by: Ashique Saidalavi <[email protected]>
Signed-off-by: Ashique Saidalavi <[email protected]>
Implementation of the chef license commands
* Added plan.sh file

Signed-off-by: nitin sanghi <[email protected]>

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

Signed-off-by: nitin sanghi <[email protected]>

* Habitat pkg version sync with version file

Signed-off-by: nitin sanghi <[email protected]>

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

Signed-off-by: nitin sanghi <[email protected]>

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

Signed-off-by: nitin sanghi <[email protected]>

* added hab path aware code changes

Signed-off-by: nikhil2611 <[email protected]>

* fixing the git issue

Signed-off-by: nikhil2611 <[email protected]>

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

Signed-off-by: nikhil2611 <[email protected]>

* testing for plan.sh as of now

Signed-off-by: nikhil2611 <[email protected]>

* adding back omnibus methods for testing

Signed-off-by: nikhil2611 <[email protected]>

* initializing pkg_prefix in hab_env

Signed-off-by: nikhil2611 <[email protected]>

* updated the origin variable for chef-cli

Signed-off-by: nikhil2611 <[email protected]>

* Added chef spec gem

Signed-off-by: nitin sanghi <[email protected]>

* testing chefspec changes

Signed-off-by: nikhil2611 <[email protected]>

* Added rspec in bin dir for linking issue

Signed-off-by: nitin sanghi <[email protected]>

* Chefspec dep for rspec fix to 3.12

Signed-off-by: nitin sanghi <[email protected]>

* Pinning rspec version

Signed-off-by: nitin sanghi <[email protected]>

* Change chef-cli hab pkg origin

Signed-off-by: nitin sanghi <[email protected]>

* Hab channel changed

Signed-off-by: nitin sanghi <[email protected]>

* Chef 17400 pipeline (#241)

* Add github action for hab pkg and publish

Signed-off-by: nitin sanghi <[email protected]>

* Added version check on new hab pkg

Signed-off-by: nitin sanghi <[email protected]>

* removed extra keyword for triggering pipeline

Signed-off-by: nitin sanghi <[email protected]>

* pkg iden added using vars

Signed-off-by: nitin sanghi <[email protected]>

* list all pkg to verify pkg installed

Signed-off-by: nitin sanghi <[email protected]>

* Installing hab build using hart file

Signed-off-by: nitin sanghi <[email protected]>

* Installing hab build using hart file

Signed-off-by: nitin sanghi <[email protected]>

* Installing hab build using hart file

Signed-off-by: nitin sanghi <[email protected]>

* pipeline test commit

Signed-off-by: nitin sanghi <[email protected]>

* pipeline test commit

Signed-off-by: nitin sanghi <[email protected]>

* pipeline test commit

Signed-off-by: nitin sanghi <[email protected]>

* pipeline test commit

Signed-off-by: nitin sanghi <[email protected]>

* pipeline test commit

Signed-off-by: nitin sanghi <[email protected]>

* sudo for installing hab pkg

Signed-off-by: nitin sanghi <[email protected]>

* sudo for installing hab pkg

Signed-off-by: nitin sanghi <[email protected]>

* sudo for installing hab pkg

Signed-off-by: nitin sanghi <[email protected]>

* sudo for installing hab pkg

Signed-off-by: nitin sanghi <[email protected]>

* hart file version change

Signed-off-by: nitin sanghi <[email protected]>

* Change pkg_indent

Signed-off-by: nitin sanghi <[email protected]>

* Change pkg_indent

Signed-off-by: nitin sanghi <[email protected]>

* version regex changed

Signed-off-by: nitin sanghi <[email protected]>

* windows pipeline change

Signed-off-by: nitin sanghi <[email protected]>

* windows pipeline change

Signed-off-by: nitin sanghi <[email protected]>

* windows pipeline change

Signed-off-by: nitin sanghi <[email protected]>

* windows pipeline change

Signed-off-by: nitin sanghi <[email protected]>

* Windows chef-cli hab version check

Signed-off-by: nitin sanghi <[email protected]>

* Windows chef-cli hab version check

Signed-off-by: nitin sanghi <[email protected]>

* Windows chef-cli hab version check

Signed-off-by: nitin sanghi <[email protected]>

* Change the message in test phase and throw error

Signed-off-by: nitin sanghi <[email protected]>

* Change the message in test phase and throw error

Signed-off-by: nitin sanghi <[email protected]>

* Hab pipeline using buildkite

Signed-off-by: nitin sanghi <[email protected]>

* hab build yml file added

Signed-off-by: nitin sanghi <[email protected]>

---------

Signed-off-by: nitin sanghi <[email protected]>

---------

Signed-off-by: nitin sanghi <[email protected]>
Signed-off-by: nikhil2611 <[email protected]>
Co-authored-by: nikhil2611 <[email protected]>
Co-authored-by: Nikhil Gupta <[email protected]>
* Testing pipleine

Signed-off-by: nitin sanghi <[email protected]>

* Testing pipleine

Signed-off-by: nitin sanghi <[email protected]>

* Testing pipleine

Signed-off-by: nitin sanghi <[email protected]>

* Path change for test file

Signed-off-by: nitin sanghi <[email protected]>

* adding locales

Signed-off-by: nitin sanghi <[email protected]>

* adding locales

Signed-off-by: nitin sanghi <[email protected]>

* adding locales

Signed-off-by: nitin sanghi <[email protected]>

* adding locales

Signed-off-by: nitin sanghi <[email protected]>

* adding locales

Signed-off-by: nitin sanghi <[email protected]>

* adding locales

Signed-off-by: nitin sanghi <[email protected]>

* adding locales

Signed-off-by: nitin sanghi <[email protected]>

* adding locales

Signed-off-by: nitin sanghi <[email protected]>

* adding locales

Signed-off-by: nitin sanghi <[email protected]>

* adding locales

Signed-off-by: nitin sanghi <[email protected]>

* ignoring warn change sed regex

Signed-off-by: nitin sanghi <[email protected]>

* ignoring warn change sed regex

Signed-off-by: nitin sanghi <[email protected]>

* ignoring warn change sed regex

Signed-off-by: nitin sanghi <[email protected]>

* ignoring warn change sed regex

Signed-off-by: nitin sanghi <[email protected]>

* change version command

Signed-off-by: nitin sanghi <[email protected]>

* change version command

Signed-off-by: nitin sanghi <[email protected]>

* change version command

Signed-off-by: nitin sanghi <[email protected]>

* change version command

Signed-off-by: nitin sanghi <[email protected]>

* change version command

Signed-off-by: nitin sanghi <[email protected]>

* change version command

Signed-off-by: nitin sanghi <[email protected]>

* change version command regex

Signed-off-by: nitin sanghi <[email protected]>

---------

Signed-off-by: nitin sanghi <[email protected]>
* Added action for channel alternative

Signed-off-by: nitin sanghi <[email protected]>

* Changing version 1.0.0 for hab pkg

Signed-off-by: nitin sanghi <[email protected]>

* Changing version 1.0.0 for hab pkg

Signed-off-by: nitin sanghi <[email protected]>

---------

Signed-off-by: nitin sanghi <[email protected]>
Signed-off-by: Sean Simmons <[email protected]>
Signed-off-by: Sean Simmons <[email protected]>
Signed-off-by: Sean Simmons <[email protected]>
nikhil2611 and others added 2 commits February 3, 2025 13:11
… publish and other fixes (#258)

* updating version to major version and few plan file fixes

Signed-off-by: nikhil2611 <[email protected]>

* added HAB_BLDR_CHANNEL env as the build pipeline still using old hab version and updated config for a symantec version promote and publish and reverting back version and release branch changes

Signed-off-by: nikhil2611 <[email protected]>

* fixing the quotes

Signed-off-by: nikhil2611 <[email protected]>

* chefstyle fix

Signed-off-by: nikhil2611 <[email protected]>

* fixing spec failure

Signed-off-by: nikhil2611 <[email protected]>

* fixing typo in gemspec

Signed-off-by: nikhil2611 <[email protected]>

* updated back to omnibus_env

Signed-off-by: nikhil2611 <[email protected]>

---------

Signed-off-by: nikhil2611 <[email protected]>
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 <[email protected]>
Signed-off-by: Ashique Saidalavi <[email protected]>
Signed-off-by: Ashique Saidalavi <[email protected]>
Signed-off-by: Ashique Saidalavi <[email protected]>
Signed-off-by: nikhil2611 <[email protected]>
…mmand

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

sonarqubecloud bot commented Feb 5, 2025

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
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.

6 participants