Skip to content

Commit

Permalink
Merge branch 'chef:main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Stromweld committed Jan 11, 2022
2 parents 8f82ea2 + f064c4c commit a75cbdb
Show file tree
Hide file tree
Showing 27 changed files with 107 additions and 97 deletions.
2 changes: 2 additions & 0 deletions .expeditor/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ github:
# for building.
release_branches:
- main:
version_constraint: 18*
- chef-17:
version_constraint: 17*
- chef-16:
version_constraint: 16*
Expand Down
2 changes: 2 additions & 0 deletions .expeditor/release.omnibus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ builder-to-testers-map:
aix-7.1-powerpc:
- aix-7.1-powerpc
- aix-7.2-powerpc
amazon-2022-x86_64:
- amazon-2022-x86_64
debian-9-x86_64:
- debian-9-x86_64
- debian-10-x86_64
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: unit_specs
pull_request:
push:
branches:
- master
- main

jobs:
unit:
Expand Down
10 changes: 7 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
<!-- usage documentation: http://expeditor-docs.es.chef.io/configuration/changelog/ -->
This changelog lists individual merged pull requests to Chef Infra Client and geared towards developers. For a list of significant changes per release see the [Chef Infra Client Release Notes](https://docs.chef.io/release_notes_client/).

<!-- latest_release 17.9.30 -->
## [v17.9.30](https://github.com/chef/chef/tree/v17.9.30) (2022-01-04)
<!-- latest_release 18.0.1 -->
## [v18.0.1](https://github.com/chef/chef/tree/v18.0.1) (2022-01-11)

#### Merged Pull Requests
- Simplify file reads [#12386](https://github.com/chef/chef/pull/12386) ([tas50](https://github.com/tas50))
- Add Amazon 2022 to our pipeline [#12437](https://github.com/chef/chef/pull/12437) ([tas50](https://github.com/tas50))
<!-- latest_release -->

<!-- release_rollup since=17.9.26 -->
### Changes not yet released to stable

#### Merged Pull Requests
- Add Amazon 2022 to our pipeline [#12437](https://github.com/chef/chef/pull/12437) ([tas50](https://github.com/tas50)) <!-- 18.0.1 -->
- Bump version to 18.0 and fix master references [#12432](https://github.com/chef/chef/pull/12432) ([tas50](https://github.com/tas50)) <!-- 18.0.0 -->
- Bump omnibus-software from `b6dd27a` to `94ef29b` in /omnibus [#12429](https://github.com/chef/chef/pull/12429) ([dependabot[bot]](https://github.com/dependabot[bot])) <!-- 17.9.32 -->
- Bump chef/ohai to fc48360746fa102f1c46ed1aee82896d94a3d4a3 [#12427](https://github.com/chef/chef/pull/12427) ([chef-expeditor[bot]](https://github.com/chef-expeditor[bot])) <!-- 17.9.31 -->
- Resolve Performance/RegexpMatch warnings [#12411](https://github.com/chef/chef/pull/12411) ([tas50](https://github.com/tas50)) <!-- 17.9.27 -->
- Resolve Performance/Count warning [#12410](https://github.com/chef/chef/pull/12410) ([tas50](https://github.com/tas50)) <!-- 17.9.28 -->
- Reduce 213 requires from each knife call [#12409](https://github.com/chef/chef/pull/12409) ([tas50](https://github.com/tas50)) <!-- 17.9.29 -->
Expand Down
2 changes: 1 addition & 1 deletion CLA_ARCHIVE.md
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ Many organizations signed the CCLA again in Supermarket.
The list of allowed contributors from 2009 through 3 October, 2016 prior to Chef
projects [moving to a Developer Certificate of Origin
process](https://blog.chef.io/2016/09/19/introducing-developer-certificate-of-origin/).
See [CONTRIBUTING](https://github.com/chef/chef/blob/master/CONTRIBUTING.md) for
See [CONTRIBUTING](https://github.com/chef/chef/blob/main/CONTRIBUTING.md) for
how to contribute to Chef today.

Persons listed as associated with a company may also be individual contributors
Expand Down
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ Code review takes place in GitHub pull requests. See [this article](https://help

Once you open a pull request, project maintainers will review your code and respond to your pull request with any feedback they might have. The process at this point is as follows:

1. Two or more members of the owners, approvers, or reviewers groups must approve your PR. See the [Chef Infra OSS Project](https://github.com/chef/chef-oss-practices/blob/master/projects/chef-infra.md) for a list of all members.
2. Your change will be merged into the project's `master` branch
1. Two or more members of the owners, approvers, or reviewers groups must approve your PR. See the [Chef Infra OSS Project](https://github.com/chef/chef-oss-practices/blob/main/projects/chef-infra.md) for a list of all members.
2. Your change will be merged into the project's `main` branch
3. Our Expeditor bot will automatically increment the version and update the project's changelog with your contribution. For projects that ship as a package, Expeditor will kick off a build which will publish the package to the project's `current` channel.

If you would like to learn about when your code will be available in a release of Chef, read more about [Chef Release Cycles](#release-cycles).
Expand All @@ -43,7 +43,7 @@ If you would like to learn about when your code will be available in a release o

Licensing is very important to open source projects. It helps ensure the software continues to be available under the terms that the author desired.

Chef uses [the Apache 2.0 license](https://github.com/chef/chef/blob/master/LICENSE) to strike a balance between open contribution and allowing you to use the software however you would like to.
Chef uses [the Apache 2.0 license](https://github.com/chef/chef/blob/main/LICENSE) to strike a balance between open contribution and allowing you to use the software however you would like to.

The license tells you what rights you have that are provided by the copyright holder. It is important that the contributor fully understands what rights they are licensing and agrees to them. Sometimes the copyright holder isn't the contributor, such as when the contributor is doing work on behalf of a company.

Expand Down Expand Up @@ -133,7 +133,7 @@ Our version numbering roughly follows [Semantic Versioning](http://semver.org/)
- Y is a minor release, which adds both new features and bug fixes
- Z is a patch release, which adds just bug fixes

After shipping a release of Chef we bump the `Minor` version by one to start development of the next minor release. All merges to master trigger an increment of the `Patch` version, and a build through our internal testing pipeline. We do a `Minor` release approximately every month, which consist of shipping one of the already auto-incremented and tested `Patch` versions. For example after shipping 12.10.24, we incremented Chef to 12.11.0\. From there 18 commits where merged bringing the version to 12.11.18, which we shipped as an omnibus package.
After shipping a release of Chef we bump the `Minor` version by one to start development of the next minor release. All merges to `main` trigger an increment of the `Patch` version, and a build through our internal testing pipeline. We do a `Minor` release approximately every month, which consist of shipping one of the already auto-incremented and tested `Patch` versions. For example after shipping 12.10.24, we incremented Chef to 12.11.0\. From there 18 commits where merged bringing the version to 12.11.18, which we shipped as an omnibus package.

Announcements of releases are made to the [chef mailing list](https://discourse.chef.io/c/chef-release) when they are available and are mirrored to the #announcements channel on the [Chef Community Slack](https://community-slack.chef.io/).

Expand Down
48 changes: 24 additions & 24 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
GIT
remote: https://github.com/chef/chefstyle.git
revision: d3050865f4c7b4be668397007d9964ce2d54e6ee
revision: de278c0906b397de4b67bbb6d1cf19ab29f9c190
branch: main
specs:
chefstyle (2.2.0)
rubocop (= 1.24.1)

GIT
remote: https://github.com/chef/ohai.git
revision: e86d186661a599703fe929497b33c5f7a3257d49
revision: d3767223cc4c236967550c16d3e519bbfcb8ea4c
branch: main
specs:
ohai (17.9.1)
chef-config (>= 14.12, < 18)
chef-utils (>= 16.0, < 18)
ohai (18.0.1)
chef-config (>= 14.12, < 19)
chef-utils (>= 16.0, < 19)
ffi (~> 1.9)
ffi-yajl (~> 2.2)
ipaddress
Expand All @@ -35,12 +35,12 @@ GIT
PATH
remote: .
specs:
chef (17.9.30)
chef (18.0.1)
addressable
aws-sdk-s3 (~> 1.91)
aws-sdk-secretsmanager (~> 1.46)
chef-config (= 17.9.30)
chef-utils (= 17.9.30)
chef-config (= 18.0.1)
chef-utils (= 18.0.1)
chef-vault
chef-zero (>= 14.0.11)
corefoundation (~> 0.3.4)
Expand All @@ -58,20 +58,20 @@ PATH
mixlib-log (>= 2.0.3, < 4.0)
mixlib-shellout (>= 3.1.1, < 4.0)
net-sftp (>= 2.1.2, < 4.0)
ohai (~> 17.0)
ohai (~> 18.0)
plist (~> 3.2)
proxifier (~> 1.0)
syslog-logger (~> 1.6)
train-core (~> 3.2, >= 3.2.28)
train-winrm (>= 0.2.5)
uuidtools (>= 2.1.5, < 3.0)
vault (~> 0.16)
chef (17.9.30-universal-mingw32)
chef (18.0.1-universal-mingw32)
addressable
aws-sdk-s3 (~> 1.91)
aws-sdk-secretsmanager (~> 1.46)
chef-config (= 17.9.30)
chef-utils (= 17.9.30)
chef-config (= 18.0.1)
chef-utils (= 18.0.1)
chef-vault
chef-zero (>= 14.0.11)
corefoundation (~> 0.3.4)
Expand All @@ -90,7 +90,7 @@ PATH
mixlib-log (>= 2.0.3, < 4.0)
mixlib-shellout (>= 3.1.1, < 4.0)
net-sftp (>= 2.1.2, < 4.0)
ohai (~> 17.0)
ohai (~> 18.0)
plist (~> 3.2)
proxifier (~> 1.0)
syslog-logger (~> 1.6)
Expand All @@ -112,15 +112,15 @@ PATH
PATH
remote: chef-bin
specs:
chef-bin (17.9.30)
chef (= 17.9.30)
chef-bin (18.0.1)
chef (= 18.0.1)

PATH
remote: chef-config
specs:
chef-config (17.9.30)
chef-config (18.0.1)
addressable
chef-utils (= 17.9.30)
chef-utils (= 18.0.1)
fuzzyurl
mixlib-config (>= 2.2.12, < 4.0)
mixlib-shellout (>= 2.0, < 4.0)
Expand All @@ -129,7 +129,7 @@ PATH
PATH
remote: chef-utils
specs:
chef-utils (17.9.30)
chef-utils (18.0.1)
concurrent-ruby

GEM
Expand All @@ -142,16 +142,16 @@ GEM
mixlib-shellout (>= 2.0, < 4.0)
ast (2.4.2)
aws-eventstream (1.2.0)
aws-partitions (1.544.0)
aws-sdk-core (3.125.1)
aws-partitions (1.547.0)
aws-sdk-core (3.125.2)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.525.0)
aws-sigv4 (~> 1.1)
jmespath (~> 1.0)
aws-sdk-kms (1.53.0)
aws-sdk-core (~> 3, >= 3.125.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.111.0)
aws-sdk-s3 (1.111.1)
aws-sdk-core (~> 3, >= 3.125.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.4)
Expand Down Expand Up @@ -252,7 +252,7 @@ GEM
inspec-core (= 4.52.9)
ipaddress (0.8.3)
iso8601 (0.13.0)
jmespath (1.4.0)
jmespath (1.5.0)
json (2.6.1)
libyajl2 (2.1.0)
license-acceptance (2.1.13)
Expand Down Expand Up @@ -290,7 +290,7 @@ GEM
net-ssh (6.1.0)
nori (2.6.0)
parallel (1.21.0)
parser (3.0.3.2)
parser (3.1.0.0)
ast (~> 2.4.1)
parslet (1.8.2)
pastel (0.8.0)
Expand Down Expand Up @@ -353,7 +353,7 @@ GEM
strings-ansi (0.2.0)
structured_warnings (0.4.0)
syslog-logger (1.6.8)
thor (1.1.0)
thor (1.2.1)
tomlrb (1.3.0)
train-core (3.8.6)
addressable (~> 2.5)
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Chef Infra
[![Code Climate](https://codeclimate.com/github/chef/chef.svg)](https://codeclimate.com/github/chef/chef)
[![Build Status](https://badge.buildkite.com/c82093430ceec7d27af05febb9dcafe3aa331fff9d74c0ab9d.svg?branch=master)](https://buildkite.com/chef-oss/chef-chef-master-verify)
[![Build Status](https://badge.buildkite.com/c82093430ceec7d27af05febb9dcafe3aa331fff9d74c0ab9d.svg?branch=main)](https://buildkite.com/chef-oss/chef-chef-main-verify)
[![Gem Version](https://badge.fury.io/rb/chef.svg)](https://badge.fury.io/rb/chef)
[![](https://img.shields.io/badge/Release%20Policy-Cadence%20Release-brightgreen.svg)](https://github.com/chef/chef/blob/master/docs/dev/design_documents/client_release_cadence.md)
[![](https://img.shields.io/badge/Release%20Policy-Cadence%20Release-brightgreen.svg)](https://github.com/chef/chef/blob/main/docs/dev/design_documents/client_release_cadence.md)

**Umbrella Project**: [Chef Infra](https://github.com/chef/chef-oss-practices/blob/master/projects/chef-infra.md)
**Umbrella Project**: [Chef Infra](https://github.com/chef/chef-oss-practices/blob/main/projects/chef-infra.md)

**Project State**: [Active](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md#active)
**Project State**: [Active](https://github.com/chef/chef-oss-practices/blob/main/repo-management/repo-states.md#active)

**Issues [Response Time Maximum](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md)**: 14 days
**Issues [Response Time Maximum](https://github.com/chef/chef-oss-practices/blob/main/repo-management/repo-states.md)**: 14 days

**Pull Request [Response Time Maximum](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md)**: 14 days
**Pull Request [Response Time Maximum](https://github.com/chef/chef-oss-practices/blob/main/repo-management/repo-states.md)**: 14 days

## Getting Started

Expand All @@ -23,7 +23,7 @@ For Chef Infra usage, please refer to [Learn Chef](https://learn.chef.io/), our
Other useful resources for Chef Infra users:

- Documentation: <https://docs.chef.io/>
- Source: <https://github.com/chef/chef/tree/master>
- Source: <https://github.com/chef/chef/tree/main>
- Tickets/Issues: <https://github.com/chef/chef/issues>
- Slack: [Chef Community Slack](https://community-slack.chef.io/)
- Mailing list/Forum: <https://discourse.chef.io>
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
17.9.30
18.0.1
2 changes: 1 addition & 1 deletion chef-bin/lib/chef-bin/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

module ChefBin
CHEFBIN_ROOT = File.expand_path("..", __dir__)
VERSION = "17.9.30".freeze
VERSION = "18.0.1".freeze
end

#
Expand Down
2 changes: 1 addition & 1 deletion chef-config/lib/chef-config/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@

module ChefConfig
CHEFCONFIG_ROOT = File.expand_path("..", __dir__)
VERSION = "17.9.30".freeze
VERSION = "18.0.1".freeze
end
2 changes: 1 addition & 1 deletion chef-utils/lib/chef-utils/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@

module ChefUtils
CHEFUTILS_ROOT = File.expand_path("..", __dir__)
VERSION = "17.9.30"
VERSION = "18.0.1"
end
4 changes: 2 additions & 2 deletions chef.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Gem::Specification.new do |s|
s.add_dependency "mixlib-authentication", ">= 2.1", "< 4"
s.add_dependency "mixlib-shellout", ">= 3.1.1", "< 4.0"
s.add_dependency "mixlib-archive", ">= 0.4", "< 2.0"
s.add_dependency "ohai", "~> 17.0"
s.add_dependency "ohai", "~> 18.0"
s.add_dependency "inspec-core", "~> 4.23"

s.add_dependency "ffi", ">= 1.5.0"
Expand Down Expand Up @@ -70,7 +70,7 @@ Gem::Specification.new do |s|

s.metadata = {
"bug_tracker_uri" => "https://github.com/chef/chef/issues",
"changelog_uri" => "https://github.com/chef/chef/blob/master/CHANGELOG.md",
"changelog_uri" => "https://github.com/chef/chef/blob/main/CHANGELOG.md",
"documentation_uri" => "https://docs.chef.io/",
"homepage_uri" => "https://www.chef.io",
"mailing_list_uri" => "https://discourse.chef.io/",
Expand Down
2 changes: 1 addition & 1 deletion docs/dev/design_documents/event_handler_recipe_dsl.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Allow cookbook authors to easily add custom logic on Chef events.

## Motivation

Chef has an extensive [event dispatch mechanism](https://github.com/chef/chef/blob/master/lib/chef/event_dispatch/base.rb).
Chef has an extensive [event dispatch mechanism](https://github.com/chef/chef/blob/main/lib/chef/event_dispatch/base.rb).
But incorporating some custom logic against any of the events is an onerous process, which involves
subclassing the based event handler and adding it via the config. This RFC
proposes a recipe DSL method to ease this. For new Chef users, this will reduce
Expand Down
6 changes: 3 additions & 3 deletions docs/dev/design_documents/how_chef_is_tested_and_built.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ We can't just merge any old change, so we run various checks against your submit
- Unit, functional, and integration tests on all supported Ruby releases. These run on Ubuntu, CentOS and openSUSE so we can make sure our functional / integration tests run on the platforms where users consume Chef Infra.
- Chefstyle Ruby linting
- Unit tests from chef-sugar, chef-zero, cheffish, chefspec, and knife-windows against the chef code in your PR
- Full Test Kitchen integration tests that covers common Chef usage on various different Linux Distros. Those integration tests run using the kitchen-dokken plugin and the dokken-images Docker containers, which do their best to replicate a real Linux system. You can see exactly what we test here: https://github.com/chef/chef/blob/master/kitchen-tests/cookbooks/end_to_end/recipes/default.rb
- Full Test Kitchen integration tests that covers common Chef usage on various different Linux Distros. Those integration tests run using the kitchen-dokken plugin and the dokken-images Docker containers, which do their best to replicate a real Linux system. You can see exactly what we test here: https://github.com/chef/chef/blob/main/kitchen-tests/cookbooks/end_to_end/recipes/default.rb
- **Appveyor**: Buildkite does a great job of testing PRs against Linux hosts, but many rspec tests require a Windows system to run, and for this, we test in Appveyor. In Appveyor, we run our unit, integration, and functional specs against our supported Ruby releases, but this time, we do it on Windows.

## PR is Reviewed and Merged

Once your pull request passes the above tests, it will need to be reviewed by at least two members of the Chef Infra project owners, approvers, or reviewers groups. For a list of owners, approvers, and reviewers, see https://github.com/chef/chef-oss-practices/blob/master/projects/chef-infra.md. GitHub will automatically assign these groups as reviewers. Reviews will happen ad hoc as members in those groups have time, or during our weekly issue triage. Check the above team doc link for information on when that review takes place.
Once your pull request passes the above tests, it will need to be reviewed by at least two members of the Chef Infra project owners, approvers, or reviewers groups. For a list of owners, approvers, and reviewers, see https://github.com/chef/chef-oss-practices/blob/main/projects/chef-infra.md. GitHub will automatically assign these groups as reviewers. Reviews will happen ad hoc as members in those groups have time, or during our weekly issue triage. Check the above team doc link for information on when that review takes place.

Your PR will be reviewed for Chef and Ruby correctness, overall design, and likelihood of impact on the community. We do our best to make sure all the changes made to Chef are high quality and easy to maintain going forward, while also having the lowest chance of negatively impacting our end users. If your PR meets that criteria, we'll merge the change into our master branch.
Your PR will be reviewed for Chef and Ruby correctness, overall design, and likelihood of impact on the community. We do our best to make sure all the changes made to Chef are high quality and easy to maintain going forward, while also having the lowest chance of negatively impacting our end users. If your PR meets that criteria, we'll merge the change into our main branch.

## Version Bump and Changelog Update

Expand Down

0 comments on commit a75cbdb

Please sign in to comment.