Commit graph

10978 commits

Author SHA1 Message Date
Clinton Wolfe
eff13369f1
CHEF-4115 Added ability to merge reporter configurations from both CLI and config (#6568) (#6579)
* Added ability to merge cli and config reporter options



* Test cases to validate working of reporter configuration using cli and config



* Documentation change to add information on reporter configurations usage with both



* Added Doc review changes and text fixture for config json



* Verify fix



* Verify pipeline test fixes for reporter options to be read successfully



* Test changes in both cli and config reporter usage scenarios to fix verify pipeline



* Review comments to improvise



* Renamed testing fixture file for reporter cli config file



---------

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
Co-authored-by: Nikita Mathur <Nik08@users.noreply.github.com>
2023-07-25 08:45:42 -04:00
Chef Expeditor
3146906c3e Bump version to 6.4.35 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-07-25 12:30:42 +00:00
Sonu Saha
5c44cb41aa
EULA: Update installer license text (#6580)
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2023-07-25 08:29:09 -04:00
Chef Expeditor
c314310457 Bump version to 6.4.34 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-07-07 21:36:25 +00:00
Vasundhara Jagdale
8e8dc7631e
CHEF-3832: Fix for InSpec Parallel fails to fetch remote profiles due to cache contention. (#6546)
* CHEF-3832: Fix for InSpec Parallel fails to fetch remote profiles due to cache contention.
This fix creates the write exclusive lock on the cache directory of profile till write operation is finished for git fetcher

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Refactored to have locking and unlocking logic inside cache. Cache directory is not required for archived directories and this is currently only required by git fetcher

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* REFACTOR: adds method in fetcher to return true if requires cache locking mechanism to avoid cache contention

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Adds exception handling

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Handles interruption in cache creation process to avoid empty cache directory creation or currupted data

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Refactored to handle interruption through SystemExit

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Fixed the failing test. While creating lock cache_key need to be extracted from the respective fetcher.

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

---------

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2023-07-07 17:35:19 -04:00
Chef Expeditor
6472f27831 Update CHANGELOG.md with details from pull request #6559
Obvious fix; these changes are the result of automation not creative thinking.
2023-07-07 21:14:27 +00:00
Clinton Wolfe
d64488f333
Merge pull request #6559 from inspec/inspec-6-from-prime-2
Add chef-licensing, syncing from inspec-prime repo inspec-6 branch
2023-07-07 17:13:26 -04:00
Clinton Wolfe
cef9b792c2 Fix changelog tag
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2023-07-07 15:52:31 -04:00
Clinton Wolfe
e2ed009467
Merge branch 'inspec-6' into inspec-6-from-prime-2 2023-07-07 15:46:10 -04:00
Clinton Wolfe
1d8a2fcaa2 Sync changes from inspec-6 CI adjustments
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2023-07-07 15:39:51 -04:00
Chef Expeditor
69d0320e1a Update CHANGELOG.md with details from pull request #6558
Obvious fix; these changes are the result of automation not creative thinking.
2023-07-07 19:02:58 +00:00
Clinton Wolfe
425c635202
Add secrets: true to private verify pipeline, delete ruby 2.,7 config (#6558)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2023-07-07 15:01:56 -04:00
Chef Expeditor
8b5d95e182 Update CHANGELOG.md with details from pull request #6556
Obvious fix; these changes are the result of automation not creative thinking.
2023-07-07 15:06:04 +00:00
sean-simmons-progress
51671ce775
forcing private in the configuration file (#6556)
* test github action

Signed-off-by: Sean Simmons <ssimmons@progress.com>

* adding verify private to this pipeline

Signed-off-by: Sean Simmons <ssimmons@progress.com>

* adding private pipeline definition file

Signed-off-by: Sean Simmons <ssimmons@progress.com>

* testing workflow

Signed-off-by: Sean Simmons <ssimmons@progress.com>

* forcing public false

Signed-off-by: Sean Simmons <ssimmons@progress.com>

---------

Signed-off-by: Sean Simmons <ssimmons@progress.com>
2023-07-07 11:05:03 -04:00
Chef Expeditor
a6576d7834 Bump version to 6.2.46 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-07-07 13:52:14 +00:00
sean-simmons-progress
104d3a76f6
test github action (#6555)
* test github action

Signed-off-by: Sean Simmons <ssimmons@progress.com>

* adding verify private to this pipeline

Signed-off-by: Sean Simmons <ssimmons@progress.com>

* adding private pipeline definition file

Signed-off-by: Sean Simmons <ssimmons@progress.com>

---------

Signed-off-by: Sean Simmons <ssimmons@progress.com>
2023-07-07 09:50:59 -04:00
Chef Expeditor
e149bdfb4c Bump version to 6.2.45 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-07-07 13:17:10 +00:00
Clinton Wolfe
5d615fea45
Prep CI system for inspec-prime merge (#6553)
* Import simplified expeditor config from inspec-prime inspec-6 branch. Significantly, privatize the verify pipeline.

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Import verify scripts from inspec-prime inspec-6 branch

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Remove public: false per sean

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

---------

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2023-07-07 09:16:02 -04:00
Sonu Saha
50aabd06d3
CHEF-3895: Prevent Stacktrace in STDOUT by handling Invalid License exception during license add (#77)
* FIX: Handle invalid license exception as handled in base_cli:57

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* Use 174 error code when exiting with license subsystem error from license add

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2023-07-06 23:23:43 -04:00
Chef Expeditor
c4ba48b36f Bump version to 6.4.33 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-07-07 01:25:07 +00:00
Vasundhara Jagdale
dfb0172992
Adds test for licensing_config (#57)
* Adds test for licensing_config

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

Fix lint

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

Read the value of license server url from env for test

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Spell InSpec corrrectly in test

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Linting

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

---------

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2023-07-06 21:24:05 -04:00
Chef Expeditor
efdfc6f390 Bump version to 6.4.32 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-07-06 23:57:27 +00:00
Sonu Saha
20a4586ae8
LOGGER: Configure chef-licensing to use InSpec Logger (#67)
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2023-07-06 19:56:33 -04:00
Chef Expeditor
b15da2312d Bump version to 6.4.31 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-07-06 23:30:46 +00:00
Chef Expeditor
c1d5d326a2 Bump version to 6.4.30 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-07-06 23:29:22 +00:00
Clinton Wolfe
e998658b7b
Drop testing on EOL ruby 2.7, and run linter on Ruby 3.1 (#76)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2023-07-06 19:29:16 -04:00
Sonu Saha
8323ecd5c5
CHORE: Casing correction of product name from Inspec to InSpec (#78)
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2023-07-06 19:28:23 -04:00
Chef Expeditor
427fab3f6c Bump version to 6.4.29 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-07-04 20:06:27 +00:00
Clinton Wolfe
a3028b1fc8
For #6493 : Add postgres_session support for custom port with a socket connection (#6494) (#40)
* Add support for custom port with a socket connection



* Add tests for the postgres_session with custom port



---------

Signed-off-by: Pg <pg.developper.fr@gmail.com>
Co-authored-by: Pg <pg.developper.fr@gmail.com>
2023-07-04 16:05:25 -04:00
Chef Expeditor
40c5b91677 Bump version to 6.4.28 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-07-04 20:00:49 +00:00
dependabot[bot]
28150d632c
Bump omnibus-software from 88169e3 to 4b08f0b in /omnibus (#73)
Bumps [omnibus-software](https://github.com/chef/omnibus-software) from `88169e3` to `4b08f0b`.
- [Commits](88169e3905...4b08f0bc06)

---
updated-dependencies:
- dependency-name: omnibus-software
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-04 15:59:46 -04:00
Chef Expeditor
07776239a6 Bump version to 6.4.27 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-07-04 19:59:03 +00:00
Clinton Wolfe
1ecf6bdae0
CHEF-3759 Crossport public 6540 Fix for inspec parallel on windows crashing due to error log rename (#74)
* Error logging changes to fix renaming of files in windows

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Parallel rename, delete and logging fix for windows

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Log path changes reverted after testing with static logs directory

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Fix lint

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Logic to rename error log files on interrupt

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* An attempt to reduce the delay on control c interrupt by killing child process instantly

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Only rename existing file of the child process to avoid conficts in renaming

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Fix in renaming with control-c interrupt by invoking from command library itself

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Added logic to wait for processes to die after process kill, to fix error on interrupt

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Removed idle inititation on status super reporter for parallel - needs future improvements

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Fileutils Mkdir usage refactoring

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

---------

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Co-authored-by: Nikita Mathur <nikita.mathur@chef.io>
Co-authored-by: Vasu1105 <vasundhara.jagdale@chef.io>
2023-07-04 15:58:04 -04:00
Chef Expeditor
781642cbe7 Update CHANGELOG.md with details from pull request #64
Obvious fix; these changes are the result of automation not creative thinking.
2023-06-28 02:11:31 +00:00
Sonu Saha
cbea295028
Foreports #6526 and #6541: Update Docker base image to be ubuntu 22.04 (#64)
* Update Docker base image to be ubuntu 22.04

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* SUPPORT: Update dockerfile for m1 support

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

---------

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2023-06-27 22:10:31 -04:00
Chef Expeditor
a07c15e6a8 Bump version to 6.4.26 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-06-28 02:09:37 +00:00
Chef Expeditor
227ea5c3c6 Bump version to 6.4.25 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-06-28 02:08:04 +00:00
Clinton Wolfe
b9bc201ced
CHEF-3806 Fix for InSpec Parallel hangs for cetain CIS profile on Windows. (#71)
Sending EOF Marker at the end of of the whole suit run here instead of depending on the controls count

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
Co-authored-by: Vasu1105 <vasundhara.jagdale@progress.com>
2023-06-27 22:07:39 -04:00
dependabot[bot]
28031ae7ff
Bump omnibus from 15122f2 to 9c0643a in /omnibus (#70)
Bumps [omnibus](https://github.com/chef/omnibus) from `15122f2` to `9c0643a`.
- [Release notes](https://github.com/chef/omnibus/releases)
- [Commits](15122f2565...9c0643a3a4)

---
updated-dependencies:
- dependency-name: omnibus
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-27 22:07:02 -04:00
Chef Expeditor
a68c0f5760 Bump version to 6.4.24 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-06-28 02:03:14 +00:00
Chef Expeditor
095e7ef247 Bump version to 6.4.23 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-06-28 02:01:40 +00:00
dependabot[bot]
cb8d6994f1
Bump berkshelf from 8.0.2 to 8.0.7 in /omnibus (#63)
Bumps [berkshelf](https://github.com/chef/berkshelf) from 8.0.2 to 8.0.7.
- [Changelog](https://github.com/chef/berkshelf/blob/main/CHANGELOG.md)
- [Commits](https://github.com/chef/berkshelf/compare/v8.0.2...v8.0.7)

---
updated-dependencies:
- dependency-name: berkshelf
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-27 22:00:37 -04:00
Sonu Saha
e6d5dc2b9a
Update rspec to 3.12 (#6523) (#65)
Update RSpec dependency. There are some fixes and no breaking changes in 3.12

Signed-off-by: Phil Pirozhkov <hello@fili.pp.ru>
Co-authored-by: Phil Pirozhkov <pirj@users.noreply.github.com>
2023-06-27 22:00:04 -04:00
Chef Expeditor
38c4346da6 Bump version to 6.4.22 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-06-23 15:54:37 +00:00
dependabot[bot]
58db4fccaa
Bump omnibus from cf97613 to 15122f2 in /omnibus (#62)
Bumps [omnibus](https://github.com/chef/omnibus) from `cf97613` to `15122f2`.
- [Release notes](https://github.com/chef/omnibus/releases)
- [Commits](cf97613115...15122f2565)

---
updated-dependencies:
- dependency-name: omnibus
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-23 11:53:37 -04:00
Chef Expeditor
a2e0baafe6 Bump version to 6.4.21 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-06-23 15:51:31 +00:00
dependabot[bot]
c02150e246
Bump omnibus-software from 225e357 to 88169e3 in /omnibus (#61)
Bumps [omnibus-software](https://github.com/chef/omnibus-software) from `225e357` to `88169e3`.
- [Commits](225e3576c4...88169e3905)

---
updated-dependencies:
- dependency-name: omnibus-software
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-23 11:50:26 -04:00
Chef Expeditor
a4ea6578c7 Bump version to 6.4.20 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-06-22 15:02:58 +00:00
Nikita Mathur
f031999218
CHEF-3704 Modify help for local licensing service mode and other distros (#59)
* Update license commands description to be updated for local mode

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* To hide licensing information in help for CINC & other distros

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

---------

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2023-06-22 11:01:46 -04:00
Chef Expeditor
6d122efcbf Bump version to 6.4.19 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-06-21 13:09:00 +00:00