Commit graph

304 commits

Author SHA1 Message Date
Nikita Mathur
fa1d9354e7
Use Ruby 3.1 for InSpec 4; Drop EOL 2.7 (#6713)
* Verify pipeline tests upgraded to ruby 3.1

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

* Removed unused test fixtures of older ruby version

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

* Updates test fixtures from ruby 2.7 to ruby 3.0 & 3.1

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

* Habitat package upgrade to ruby 31

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

* Upgraded omnibus ruby version to ruby 3.1

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

* Update ruby gem version in expeditor verify

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

* Update ruby gem version to ruby 3.3.3 in expeditor verify

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

* add ruby test 3.1 in verify pipeline (#5892)

* add ruby test 3.1 in verify pipeline

Signed-off-by: jayashri garud <jgarud@msystechnologies.com>

* updating rubygem to 3.3.3

Signed-off-by: jayashri garud <jgarud@msystechnologies.com>

* Test fixture plugin files for ABI 3.1.0

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

* Use kwargs to match new calling style for ERB in ruby 2.7 and 3.0

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

* Allow Date and Time data types, needed for waivers, since safe load is now the default for YAML

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

* Use Time.parse, not Time.new since the rules tightened for what you can pass the constructor for waiver dates

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

* Add ruby platform debug message to test parallel output

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

* Conditionalize permitted_classes in inputs yaml_load for <= 3.1.x only

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

* In ruby 3.1.0 net/pop3 is no more a default gem and that will require us to add it in Gemfile so trying with the byebug gem which we are bundling already

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

* CFINSPEC-166 Updated url fetcher to handle Net::OpenTimeout Exception on Windows

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

Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Inputs test fix as fixed in vasundhara/ruby-3-support

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

---------

Signed-off-by: Nik08 <nikita.mathur@progress.com>
Co-authored-by: jayashrig158 <61735743+jayashrig158@users.noreply.github.com>
Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Vasu1105 <vasundhara.jagdale@chef.io>
2023-09-29 19:14:27 -04:00
Sonu Saha
9f84da5053
Backport-6381 (#6450)
* Adds the ucrt platform support for Windows

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

* Adds the environment variable to ignore artifactory proxy as some gem are getting 500 error when tries to download from artifactory

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

---------

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Co-authored-by: Vasu1105 <vasundhara.jagdale@chef.io>
2023-07-06 23:14:47 -04:00
Vasundhara Jagdale
41a90b8909 CFINSPEC-553: Fix failing verify pipeline builds on ruby 3.0 (#6378)
* bundle install without kitchen group from Gemfile as verify pipeline is breaking for ruby 3.0 as Chef 18 requires to be work with ruby 3.1. In future we will be removing the support for ruby 3.0 as Chef 18 never released with ruby 3.0

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

* Removes all excluded groups from the bundle config set which was removed from the Gemfile.

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

* Exclude the gem dependencies for kitchen for omnibus builds

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

* Exclude the kitchen dependencies on windows platform too

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

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2023-04-05 12:30:37 +05:30
Clinton Wolfe
2425ed0b33 Re-enable habitat builds on inspec-4 branch
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-04-22 08:56:32 -04:00
Clinton Wolfe
1e5a68999d Delete unused coverage pipeline def
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-04 17:08:40 -05:00
Clinton Wolfe
19ae676c4c Also disable hab build pipeline defs
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-04 17:05:57 -05:00
Clinton Wolfe
bdf0203fba Temporarily disable habitat builds to unbreak the pipeline
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-04 17:00:54 -05:00
Clinton Wolfe
f52d7d6ec0 Disable resource integration tests, which always fail
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-03 11:38:48 -05:00
Clinton Wolfe
72ba50faeb Only test Ruby 2.7 on InSpec 4
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-02-27 20:09:57 -05:00
Clinton Wolfe
4e14f31b26 fixed missing colon
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-02-20 19:30:51 -05:00
Clinton Wolfe
5ee3f8376a Always expire the git cache when running omnibus jobs
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-02-20 19:22:53 -05:00
Clinton Wolfe
950b886535 Removes some cruft from the expeditor config
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-02-20 17:18:55 -05:00
Vasu1105
d1d5058896 CFINSPEC-38 Rename the stable branch to Inspec-4
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-02-11 17:56:45 +05:30
Vasu1105
67bb4b2f0c CFINSPEC-38 Remove the branches that we are not going to maintain.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-02-10 12:14:36 +05:30
Vasu1105
76089bc599 CFINSPEC-38 Adds new release branch for InSpec 5 release.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-02-10 11:34:13 +05:30
Clinton Wolfe
969c7de712 Set enable coverage flag for 2.7 tests
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-02-06 22:23:08 -05:00
Clinton Wolfe
ec1e49ff4a
Merge pull request #5773 from inspec/im/downloads_links
Fix downloads links
2022-01-09 20:14:45 -05:00
Tim Smith
48ff852289 Remove support for EOL Ruby 2.5
With the release of Ruby 3.1, Ruby 2.5 is now EOL. We should not be supporting an EOL release of Ruby.

Signed-off-by: Tim Smith <tsmith@chef.io>
2021-12-31 22:54:53 -05:00
Ian Maddaus
5ac9c9ea7f Fix downloads links
Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>
2021-12-20 17:53:29 -05:00
Clinton Wolfe
8a778e7f5c
Merge pull request #5716 from inspec/10.14
Stop producing packages for macOS 10.14
2021-12-01 11:27:13 -05:00
Collin McNeese
7b5b5db3ab
Updates habitat test for windows to match install logic for linux
Signed-off-by: Collin McNeese <cmcneese@chef.io>
2021-11-11 12:03:42 -06:00
Tim Smith
7ce98491cd Stop producing packages for macOS 10.14
We support N-2 macOS releases which is now 12, 11, and 10.15

Signed-off-by: Tim Smith <tsmith@chef.io>
2021-11-09 12:32:24 -08:00
Tim Smith
8c0d6b0ef0 Add back Ubuntu 16.04 packages + testing
Ubuntu 16.04 is no longer EOL. They've extended support for a full 10 years so it goes EOL in 2026 now.

Signed-off-by: Tim Smith <tsmith@chef.io>
2021-10-02 16:56:53 -07:00
Clinton Wolfe
eb9a12d501
Merge pull request #5673 from inspec/tduffield/4-promotion-fix
Specify promotion actions in .expeditor/config.yml
2021-09-28 00:42:32 -04:00
Tim Smith
c3587512b7 Build packages for debian 11, macos 12, windows 11/2022
Get closer to the same platform suppport as infra client.

Signed-off-by: Tim Smith <tsmith@chef.io>
2021-09-25 20:14:43 -07:00
Tom Duffield
2c7b72b1ba
Specify promotion actions in .expeditor/config.yml
Signed-off-by: Tom Duffield <github@tomduffield.com>
2021-09-22 09:12:13 -05:00
kagarmoe
fb2319f499 Fix main in expeditor script
Signed-off-by: kagarmoe <kgarmoe@chef.io>
2021-09-20 11:12:29 -07:00
jayashri garud
aa72a9be6b Replace deprecated --without flag with bundle config
Signed-off-by: jayashri garud <jgarud@msystechnologies.com>
2021-09-02 16:17:15 +05:30
chef-expeditor[bot]
7415fc11d0
Updating references of master to main as part of Expeditor agent rename. 2021-08-24 15:38:04 +00:00
jayashri garud
5528315d28 Updating expeditor configuration
Signed-off-by: jayashri garud <jgarud@msystechnologies.com>
2021-06-28 17:55:21 +05:30
Clinton Wolfe
2812f18438
Merge pull request #5533 from inspec/cw/add-ubuntu-to-fips
Add Ubuntu to list of FIPS platforms
2021-05-31 18:48:02 -04:00
Clinton Wolfe
23e1bd2de0 Add Ubunutu to list of FIPS platforms
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-05-19 20:59:08 -04:00
Clinton Wolfe
d79cec41a9 Drop EOL Ubuntu 16.04, build on 18.04
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-05-19 20:55:19 -04:00
Clinton Wolfe
25f0099ca0 Add explicit RHEL8 builders
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-05-16 18:05:31 -04:00
Clinton Wolfe
6b4a55aa35 Remove coverage testing from CI
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-05-03 20:58:48 -04:00
Clinton Wolfe
eb5615dd43 Add remaining platforms as separate steps
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-05-03 20:00:38 -04:00
Clinton Wolfe
f8c71cf212 Add docker=1 flag
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-05-03 19:43:31 -04:00
Clinton Wolfe
cf8bcfb9fa Borrow docker setup script from chef/chef and try a single suite
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-05-03 19:30:01 -04:00
Clinton Wolfe
e290877e33 Inline env vars in invocation
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-05-03 18:15:41 -04:00
Clinton Wolfe
e9c82c62de Correct configuration for pull request trigger for integreation/resources pipeline
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-05-03 16:52:29 -04:00
Clinton Wolfe
3178569290 Run resource integration pipeline when opening PRs
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-05-02 22:39:25 -04:00
Clinton Wolfe
a8298b42b7 Rename test:integration to test:kitchen for clarity in Rakefile
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-05-02 21:00:05 -04:00
Clinton Wolfe
099060e38d Seems more stable with concurrency 3, may increase later
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-05-02 21:00:05 -04:00
Clinton Wolfe
531abc0f30 Set Kitchenfile path for resource testing
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-05-02 21:00:05 -04:00
Clinton Wolfe
e8572d96e0 Add buildkite definition for Dokken kitchen jobs
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-05-02 21:00:05 -04:00
Clinton Wolfe
06b81925f5 Add m1 to builder map
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-03-04 10:17:55 -05:00
Clinton Wolfe
1b2d8bdfdb
Merge pull request #5413 from inspec/cw/update-macos-builder-name 2021-03-01 15:54:13 -05:00
Clinton Wolfe
4ce55fc0ab Switch to MacOS 10.14 builder
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-02-22 15:46:07 -05:00
Clinton Wolfe
cb54fea794 Revert "Use MacOS 10.14 builder"
This reverts commit ed14ab4690.
2021-02-22 15:43:47 -05:00
Clinton Wolfe
ed14ab4690 Use MacOS 10.14 builder
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2021-02-21 15:19:55 -05:00