Commit graph

11395 commits

Author SHA1 Message Date
Chef Expeditor
e5c81d5a15 Bump version to 6.7.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-07-23 12:06:29 +00:00
dependabot[bot]
118c944819
Bump omnibus from 82dae89 to 41d5c3b in /omnibus (#7089)
Bumps [omnibus](https://github.com/chef/omnibus) from `82dae89` to `41d5c3b`.
- [Release notes](https://github.com/chef/omnibus/releases)
- [Commits](82dae896a0...41d5c3bcc0)

---
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>
2024-07-23 17:35:25 +05:30
Chef Expeditor
3e88ae4c5d Bump version to 6.7.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-07-23 10:10:34 +00:00
dependabot[bot]
89ec8e2262
Bump omnibus-software from 28c9c9f to 02fa677 in /omnibus (#7099)
Bumps [omnibus-software](https://github.com/chef/omnibus-software) from `28c9c9f` to `02fa677`.
- [Commits](28c9c9f841...02fa67700a)

---
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>
2024-07-23 15:39:27 +05:30
Chef Expeditor
c51ab56ab0 Bump version to 6.7.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-07-22 13:57:29 +00:00
Clinton Wolfe
29242deb7c
Usage Telemetry v3 (#6012)
* Remove unused telemetry v1 code

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

* Sketch out basics of telemetry, with start/stop of invocation telemetry

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

* Data structure for run telemetry - job capture

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

* Add per-control and per-run feature detection

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

* CHEF-4017 Telemetry job api updations (#6965)

* Added initial changes to jobs api

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Feature flag changes for telemetry

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* move base, debug and null to its own file structure

Signed-off-by: Sathish <sbabu@progress.com>

* make HTTP client post requests

Signed-off-by: Sathish <sbabu@progress.com>

* remove old logic

Signed-off-by: Sathish <sbabu@progress.com>

* make backend class as `HTTP`

Signed-off-by: Sathish <sbabu@progress.com>

* CHEF-7258 Fetch and use licensing information for telemetry (#6964)

* Added method to fetch license ids for inspec

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Added free license check for performing telemetry api call

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* move base, debug and null to its own file structure

Signed-off-by: Sathish <sbabu@progress.com>

* make HTTP client post requests

Signed-off-by: Sathish <sbabu@progress.com>

* remove old logic

Signed-off-by: Sathish <sbabu@progress.com>

* make backend class as `HTTP`

Signed-off-by: Sathish <sbabu@progress.com>

---------

Signed-off-by: Nik08 <nikita.mathur@progress.com>
Signed-off-by: Sathish <sbabu@progress.com>
Co-authored-by: Sathish <sbabu@progress.com>

* Updated control tags and desc value to be used in jobs api

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Added checks for automate run context and free license check

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* capture target mode and id

Signed-off-by: Sathish <sbabu@progress.com>

* profile doesn't need ID

Signed-off-by: Sathish <sbabu@progress.com>

* use run context to set environment data

Signed-off-by: Sathish <sbabu@progress.com>

* refactor `create_wrapper` to be localized

Signed-off-by: Sathish <sbabu@progress.com>

* change all timestamps to be UTC

Signed-off-by: Sathish <sbabu@progress.com>

* Null checks for response and corrected job api endpoint

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Fixed tag values to be sent as string in api call

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* make version as float

Signed-off-by: Sathish <sbabu@progress.com>

* add platform name

Signed-off-by: Sathish <sbabu@progress.com>

* Added control result data in jobs api payload

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Debug logs added for telemetry call

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Removed unwanted telemetry debug class

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Payload fix to pass features data only on per control basis

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Added class function to list all invoked features by feature sub system

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Using feature system to get all invoked features list to be used in jobs api

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Unit tests cases updated and fixed

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* License type check downcased

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Lint fix

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* CHEF-7265 Telemetry opt-in for CINC users (#6966)

* Enabled telemtry opt-in

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Removed old comments

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Unit test case added to validate the disabling telemetry behaviour for inspec user

Signed-off-by: Nik08 <nikita.mathur@progress.com>

---------

Signed-off-by: Nik08 <nikita.mathur@progress.com>

---------

Signed-off-by: Nik08 <nikita.mathur@progress.com>
Signed-off-by: Sathish <sbabu@progress.com>
Co-authored-by: Sathish <sbabu@progress.com>

* Product team review changes - only disable telemetry for commercial license users

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Connection failure handling for telemetry http call

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Testing fix - Remove usage of deleted library

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Telemetry test case fix - Issue caused because unit test are run without feature flag env set

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Fixed and replaced tightly coupled semver versioning regex matching test for telemetry data

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Telemery test fix to use license key from env or a dummy value if not set in env

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Added error logs in case the http call is not successful for telemetry

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Error handling for telemetry start and run calls

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Telemetry opt-in changes (#7055)

* Removed usage of feature system to enable telemetry - making it opt-in by default

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Telemetry disable check fix when no option is passed in args

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Fix in test to use license specs defined for testing

Signed-off-by: Nik08 <nikita.mathur@progress.com>

---------

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* (Restoring) CHEF-10392 load default telemetry url conditionally (#7059)

* load default telemetry url conditionally

Signed-off-by: Sathish <sbabu@progress.com>

* remove version base path
version base path is defined in jobs path already

Signed-off-by: Sathish <sbabu@progress.com>

* use `CHEF_` prefix for the ENV

Signed-off-by: Sathish <sbabu@progress.com>

---------

Signed-off-by: Sathish <sbabu@progress.com>
Co-authored-by: Sathish <sbabu@progress.com>

* Typo fix in features list

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Stub added for CI license key

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* License usage telemetry correction - not track control results (#7060)

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Changes to disable telemetry for other InSpec distros (#7065)

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Lint issue fix

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Removing disable telemetry test - breaks on CI because of commercial license usage

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* CHEF-13228 Chef licensing telemetry documentation (#7056)

* WIP chef telemetry env variable usage updated

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* WIP intro added for chef telemetry - requires edit

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Correction in opt in behaviour of telemetry

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Doc update after default opt in changes

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Doc edit from product

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Doc edit

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Edits

Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>

---------

Signed-off-by: Nik08 <nikita.mathur@progress.com>
Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>
Co-authored-by: Ian Maddaus <ian.maddaus@progress.com>

* Updated version pinning of chef licensing to version 1 for chef telemetry

Signed-off-by: Nik08 <nikita.mathur@progress.com>

---------

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Signed-off-by: Nik08 <nikita.mathur@progress.com>
Signed-off-by: Sathish <sbabu@progress.com>
Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>
Co-authored-by: Nikita Mathur <Nik08@users.noreply.github.com>
Co-authored-by: Sathish <sbabu@progress.com>
Co-authored-by: Nik08 <nikita.mathur@progress.com>
Co-authored-by: Ian Maddaus <ian.maddaus@progress.com>
2024-07-22 19:26:24 +05:30
Chef Expeditor
6f4425d06e Update CHANGELOG.md with details from pull request #7083
Obvious fix; these changes are the result of automation not creative thinking.
2024-07-15 10:29:00 +00:00
Sonu Saha
3452d9b4b1
ci: change license server to point to local licensing server (#7083)
* ci: change license server to point to ci

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

* chore: add comment to update license server value on vault

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

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2024-07-15 15:58:06 +05:30
Chef Expeditor
e3312ae49b Bump version to 6.6.30 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-07-15 10:01:35 +00:00
Vasundhara Jagdale
e8b739154d
CHEF-12024 Adds C Shell support to sybase_session resource (#7069)
* Fixes the sybase_session resource was not working with c shell

Signed-off-by: Vasu1105 <vjagdale@progress.com>

* Adds TODO

Signed-off-by: Vasu1105 <vjagdale@progress.com>

---------

Signed-off-by: Vasu1105 <vjagdale@progress.com>
2024-07-15 15:30:22 +05:30
Chef Expeditor
3ef77179d1 Bump version to 6.6.29 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-07-12 08:37:21 +00:00
Sonu Saha
3f50b6a230
CHEF-12172: Incomplete string escaping or encoding (#7078)
* fix: Incomplete string escaping or encoding

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

* fix: Incomplete string escaping or encoding

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

* fix: Incomplete string escaping or encoding

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

* chore: fix lint offense for single quotes

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

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2024-07-12 14:06:14 +05:30
Chef Expeditor
dbfe947035 Bump version to 6.6.28 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-07-10 14:08:21 +00:00
Ian Maddaus
0782361659
Fix gitignore file in docs dir (#7082)
Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>
2024-07-10 10:07:25 -04:00
Chef Expeditor
3b4e112a59 Bump version to 6.6.27 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-07-10 11:16:53 +00:00
Sonu Saha
8ea98d2a18
fix: Missing regular expression anchor (#7077)
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2024-07-10 16:46:12 +05:30
Sonu Saha
0fd3714229
CHEF-12175: Remove use of Kernel.open or IO.read or similar sinks with a non-constant value (#7079)
* fix: update io reads to fix codescanning vuln

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

* fix: remove kernel#open fallback and update open method to handle local files

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

* fix: replace io.readlines to file.readlines

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

* chore: fix lint offense, unnecessary space

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

* fix: raise exception for standard errors as FetcherFailure

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

* chore: update exception message

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

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2024-07-10 16:45:50 +05:30
Vasundhara Jagdale
6c3eb83fd1
Upgrades sonar scanner version (#7072)
Signed-off-by: Vasu1105 <vjagdale@progress.com>
2024-07-01 17:53:31 +05:30
Chef Expeditor
e3f1642983 Bump version to 6.6.26 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-06-28 06:39:19 +00:00
Thomas Heinen
ea7e386028
Configurable backend for Chef Infra in Target Mode (#7058)
* Add configurable InSpec backend for Chef Infra

Signed-off-by: Thomas Heinen <thomasheinen@gmail.com>

* Add changing backend for Chef Infra

Signed-off-by: Thomas Heinen <thomasheinen@gmail.com>

* Add test

* Fix typo on test

Signed-off-by: Thomas Heinen <thomasheinen@gmail.com>

* Fix test

Signed-off-by: Thomas Heinen <thomasheinen@gmail.com>

---------

Signed-off-by: Thomas Heinen <thomasheinen@gmail.com>
2024-06-28 12:08:18 +05:30
Chef Expeditor
9bca50c428 Update CHANGELOG.md with details from pull request #7063
Obvious fix; these changes are the result of automation not creative thinking.
2024-06-19 07:25:48 +00:00
dependabot[bot]
89fc6f4eae
Bump omnibus-software from a32e7ee to 28c9c9f in /omnibus (#7063)
Bumps [omnibus-software](https://github.com/chef/omnibus-software) from `a32e7ee` to `28c9c9f`.
- [Commits](a32e7ee58a...28c9c9f841)

---
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>
2024-06-19 12:54:49 +05:30
Chef Expeditor
f07c232a03 Update CHANGELOG.md with details from pull request #6648
Obvious fix; these changes are the result of automation not creative thinking.
2024-06-14 11:52:24 +00:00
dependabot[bot]
63db7b8a2e
Bump ffi-yajl from 2.4.0 to 2.6.0 in /omnibus (#6648)
* Bump ffi-yajl from 2.4.0 to 2.6.0 in /omnibus

Bumps [ffi-yajl](https://github.com/chef/ffi-yajl) from 2.4.0 to 2.6.0.
- [Changelog](https://github.com/chef/ffi-yajl/blob/main/CHANGELOG.md)
- [Commits](https://github.com/chef/ffi-yajl/commits/2.6.0)

---
updated-dependencies:
- dependency-name: ffi-yajl
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Remove the comments

Signed-off-by: Vasu1105 <vjagdale@progress.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Vasu1105 <vjagdale@progress.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Vasu1105 <vjagdale@progress.com>
2024-06-14 17:21:28 +05:30
Chef Expeditor
c4def5f028 Update CHANGELOG.md with details from pull request #7062
Obvious fix; these changes are the result of automation not creative thinking.
2024-06-14 06:11:50 +00:00
dependabot[bot]
b8845ef6b9
Bump omnibus-software from 88516f3 to a32e7ee in /omnibus (#7062)
Bumps [omnibus-software](https://github.com/chef/omnibus-software) from `88516f3` to `a32e7ee`.
- [Commits](88516f348c...a32e7ee58a)

---
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>
2024-06-14 11:40:53 +05:30
Chef Expeditor
a6e85b9d83 Bump version to 6.6.25 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-06-11 15:15:05 +00:00
Vasundhara Jagdale
26e6cbfb9c
Remove Ruby 3.0 support (#7057)
* Remove Ruby 3.0 support

Signed-off-by: Vasu1105 <vjagdale@progress.com>

* Updates sonarqube coverage file

Signed-off-by: Vasu1105 <vjagdale@progress.com>

* Fix failing test after remmoval of support for ruby 3.0

Signed-off-by: Vasu1105 <vjagdale@progress.com>

---------

Signed-off-by: Vasu1105 <vjagdale@progress.com>
2024-06-11 20:43:59 +05:30
Chef Expeditor
c75c0805b6 Bump version to 6.6.24 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-06-06 07:20:30 +00:00
Vasundhara Jagdale
f061146ec6
Pin the ffi version < 1.17.0 (#7053)
* Pin the ffi version to be less than v1.17.0 as it's breaking the verify pipeline

Signed-off-by: Vasu1105 <vjagdale@progress.com>

* Adds comments for pinning ffi version

Signed-off-by: Vasu1105 <vjagdale@progress.com>

---------

Signed-off-by: Vasu1105 <vjagdale@progress.com>
2024-06-06 12:49:27 +05:30
Chef Expeditor
77969e2f37 Update CHANGELOG.md with details from pull request #7050
Obvious fix; these changes are the result of automation not creative thinking.
2024-06-05 10:41:13 +00:00
Vasundhara Jagdale
db70b693db
Fix for failing verify pipeline due to ffi version update (#7050)
* Fix for failing verify pipeline due to ffi version update

Signed-off-by: Vasu1105 <vjagdale@progress.com>

* upgrade to the latest rubygems version

Signed-off-by: Vasu1105 <vjagdale@progress.com>

---------

Signed-off-by: Vasu1105 <vjagdale@progress.com>
2024-06-05 16:10:16 +05:30
Chef Expeditor
eb28ab71ce Update CHANGELOG.md with details from pull request #7007
Obvious fix; these changes are the result of automation not creative thinking.
2024-05-31 09:02:33 +00:00
Sonu Saha
8f50a2dd7c
CI: Update configuration to pick commercial license to be used during the buildkite test (#7007)
* feat: invoke warning message for non-commercial users if reporter is cli

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

* temp: add reference to dev branch of chef-licensing to verify changes

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

* ci: use commercial license on the CI from vault

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

* revert: remove additional call to the chef licensing

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

* chore: remove dev branch reference from Gemfile

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

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2024-05-31 14:31:32 +05:30
dependabot[bot]
c2ebd4cf8d
Bump artifactory from 3.0.15 to 3.0.17 in /omnibus (#6983)
Bumps [artifactory](https://github.com/opscode/artifactory-client) from 3.0.15 to 3.0.17.
- [Release notes](https://github.com/opscode/artifactory-client/releases)
- [Changelog](https://github.com/chef/artifactory-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opscode/artifactory-client/compare/v3.0.15...v3.0.17)

---
updated-dependencies:
- dependency-name: artifactory
  dependency-type: direct:production
  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>
2024-05-29 16:44:25 +05:30
Chef Expeditor
e636d43a1c Bump version to 6.6.23 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-05-28 11:37:34 +00:00
dependabot[bot]
5cb10dda4a
Update rspec requirement from >= 3.9, <= 3.12 to >= 3.9, <= 3.14 (#6967)
Updates the requirements on [rspec](https://github.com/rspec/rspec-metagem) to permit the latest version.
- [Commits](https://github.com/rspec/rspec-metagem/compare/v3.10.0...v3.13.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-28 17:06:28 +05:30
dependabot[bot]
2fb0201d9f
Bump rack from 2.2.7 to 2.2.9 in /omnibus (#7021)
Bumps [rack](https://github.com/rack/rack) from 2.2.7 to 2.2.9.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rack/rack/compare/v2.2.7...v2.2.9)

---
updated-dependencies:
- dependency-name: rack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-28 11:21:54 +05:30
Chef Expeditor
ce657ab29b Bump version to 6.6.22 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-05-27 11:24:10 +00:00
dependabot[bot]
b33d94b3ba
Bump omnibus-software from f50a2ad to 88516f3 in /omnibus (#7037)
Bumps [omnibus-software](https://github.com/chef/omnibus-software) from `f50a2ad` to `88516f3`.
- [Commits](f50a2ad7ef...88516f348c)

---
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>
2024-05-27 16:53:04 +05:30
Sonu Saha
c8f020cb81
Modify url fetcher to remove --symref flag in git ls-remote command (#7043)
* fix: remove --symref options from git ls-remote
it is causing issue on ubuntu16 and rhel6

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

* spec: update test to match commit-sha.tar.gz instead of master.tar.gz

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

* spec: skip test on windows, works locally on windows

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

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2024-05-21 12:53:03 +05:30
Chef Expeditor
3bd7d5c6c8 Bump version to 6.6.21 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-05-20 09:57:23 +00:00
William Theaker
34f779e7ad
Fix broken link (#7040)
Obvious fix
2024-05-20 15:26:18 +05:30
Chef Expeditor
6bb288a5cd Bump version to 6.6.20 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-05-08 13:27:59 +00:00
Nikita Mathur
c83733bf9e
CHEF-3833 Added delay for InSpec parallel status reporter (#6993)
* Added delay in status reporter for inspec-parallel for clear reporting

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Made chef-licensing warning silent between parallel runs

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Code review changes for setting output config

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* As a safe measure added logic to reset output stream

Signed-off-by: Nik08 <nikita.mathur@progress.com>

---------

Signed-off-by: Nik08 <nikita.mathur@progress.com>
2024-05-08 18:56:53 +05:30
Sonu Saha
9ab6a463d0
CHEF-11996: Move cookstyle as a dependency to inspec-core.gemspec (#7034)
* gem: Add cookstyle as a dependency for inspec-core.gemspec

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

* chore: fix lint of empty newlines

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

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2024-05-06 16:30:05 +05:30
Chef Expeditor
9939b0d220 Bump version to 6.6.19 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-05-02 08:47:45 +00:00
Stan Hu
c9bb58e908
Fix uninitialized constant Parser::AST::Processor::Mixin (#7030)
parser 3.3.1.0 introduced
https://github.com/whitequark/parser/pull/1000, which causes this
failure:

```
% bundle exec ruby -Itest test/unit/profiles/profile_test.rb
inspec/lib/inspec/utils/profile_ast_helpers.rb:7:in `<class:CollectorBase>': uninitialized constant Parser::AST::Processor::Mixin (NameError)

        include Parser::AST::Processor::Mixin
                                      ^^^^^^^
```

Fix this by inherting from `Parser::AST::Processor` instead.

Closes #7029

Signed-off-by: Stan Hu <stanhu@gmail.com>
2024-05-02 14:16:33 +05:30
Chef Expeditor
3478886b56 Bump version to 6.6.18 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-04-30 06:06:04 +00:00
Sonu Saha
65bd83f6ed
CHEF-6000: Fix URL fetcher failure to work when current directory is not a Git repository (#7023)
* fix: use git gem to perform git remote show
this fixes the issue to perform git remote show when dir is not a git dir

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

* test: update test with default_ref stubbing

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

* chore: remove stubs which are not required

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

* chore: remove unused method

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

* test: fix broken test due to changes in url fetcher

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

* chore: improve error message to be user-friendly
this makes the error message as earlier one

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

* chore: change error message:

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

* revert: remove git gem dependency and use shellout

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

* fix: update url fetcher to use ls-remote to make it work in non-git dirs

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

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2024-04-30 11:35:03 +05:30