Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
e38f0b1
Support for ruby 3.1 and CI run on main branch (#1)
sanjain-progress Jun 6, 2022
a99a9b0
Publish gem via expeditor
Jun 6, 2022
791c349
Merge pull request #2 from chef/sanjain/INFCT-91-publish-gem-via-expe…
sanjain-progress Jun 13, 2022
317313d
Fix readme URL
Jun 13, 2022
eeb5db3
Merge pull request #3 from chef/feat/bump_version
sanjain-progress Jun 13, 2022
86a143d
Change correct file name
Jun 13, 2022
ba4b1c2
Merge pull request #4 from chef/fix/gemspec_config
sanjain-progress Jun 13, 2022
a6dd1c1
Change chefspec url to chef org
Jun 13, 2022
85d343b
Merge pull request #5 from chef/feat/version_bump
sanjain-progress Jun 13, 2022
77cfa79
Dummy
mimaslanka Jun 13, 2022
1dddea2
Dummy
mimaslanka Jun 13, 2022
0c3ed85
Merge branch 'mimaslanka/dummy' of https://github.com/chef/fauxhai in…
mimaslanka Jun 13, 2022
0020de9
Merge pull request #6 from chef/mimaslanka/dummy
mimaslanka Jun 13, 2022
05f0921
Bump version to 9.3.1 by Chef Expeditor
chef-ci Jun 13, 2022
c766a43
Force action
mimaslanka Jun 13, 2022
c08b704
Merge pull request #7 from chef/mimaslanka/force-action
mimaslanka Jun 13, 2022
fbc06fb
Bump version to 9.3.2 by Chef Expeditor
chef-ci Jun 13, 2022
8f95069
Update CHANGELOG.md to reflect the promotion of 9.3.2
chef-ci Jun 13, 2022
05fd672
Add AlmaLinux 9 data (#8)
vkarve-chef Feb 3, 2023
9238d06
Bump version to 9.3.3 by Chef Expeditor
chef-ci Feb 3, 2023
ced240b
CentOS Stream 8 & 9 data (#10)
ramereth Feb 3, 2023
bf49a98
Bump version to 9.3.4 by Chef Expeditor
chef-ci Feb 3, 2023
a3d2cf2
added oracle platforms (#12)
davidjkling Feb 3, 2023
72dccb5
Bump version to 9.3.5 by Chef Expeditor
chef-ci Feb 3, 2023
93ce373
Update CHANGELOG.md to reflect the promotion of 9.3.5
chef-ci Feb 3, 2023
a7fd92f
Add Rocky Linux 9 data (#9)
vkarve-chef Feb 6, 2023
f02b40c
Bump version to 9.3.6 by Chef Expeditor
chef-ci Feb 6, 2023
5328e18
added sonarqube configuration (#13)
nikhil2611 Mar 31, 2023
d39c2da
Bump version to 9.3.7 by Chef Expeditor
chef-ci Mar 31, 2023
30e3ab7
Update fetcher to pull from correct repository (#14)
ramereth May 5, 2023
af4a454
Bump version to 9.3.8 by Chef Expeditor
chef-ci May 5, 2023
028b392
Update CHANGELOG.md to reflect the promotion of 9.3.8
chef-ci May 5, 2023
1f4b4eb
Add Ubuntu 22.04 (jammy) support
dtseiler Jun 2, 2023
d2093d9
Add platform support for Debian 12
justinswe Jul 17, 2023
720a917
Add Debian 12 to platforms.json
justinswe Jul 17, 2023
26db36e
Add Debian 12 to PLATFORMS.md
justinswe Jul 17, 2023
62ba3de
Add Ubuntu 22.04 (jammy) support
dtseiler Jun 2, 2023
77dd97c
Merge branch 'add_ubuntu_22_04' of github.com:dtseiler/fauxhai into a…
dtseiler Jul 18, 2023
57375fb
Merge pull request #17 from Justin-Fernbaugh/add_debian_12
tpowell-progress Jul 27, 2023
9c95325
Bump version to 9.3.9 by Chef Expeditor
chef-ci Jul 27, 2023
19f104a
Add .buildkite folder to make pipeline_protection happy
tpowell-progress Aug 4, 2023
838d305
Merge pull request #18 from chef/tp/appease-pipeline-protection
tpowell-progress Aug 4, 2023
149dd8b
Bump version to 9.3.10 by Chef Expeditor
chef-ci Aug 4, 2023
7a99aff
Merge branch 'chef:main' into add_ubuntu_22_04
dtseiler Aug 4, 2023
e10557e
Add Ubuntu 22.04 (jammy) support
dtseiler Jun 2, 2023
1669d15
Merge branch 'add_ubuntu_22_04' of github.com:dtseiler/fauxhai into a…
dtseiler Aug 4, 2023
897d4d5
Merge pull request #16 from dtseiler/add_ubuntu_22_04
tpowell-progress Aug 7, 2023
c733ac0
Bump version to 9.3.11 by Chef Expeditor
chef-ci Aug 7, 2023
d99e687
Added WIndows 2022
Nov 15, 2023
6b36264
Added RedHat 9
Nov 15, 2023
77b423e
Merge pull request #21 from jjperry/add_redhat_9
tpowell-progress Nov 21, 2023
ea8d118
Bump version to 9.3.12 by Chef Expeditor
chef-ci Nov 21, 2023
5fba118
Merge remote-tracking branch 'origin/main' into add_windows_2022
Nov 27, 2023
3ddec62
Updated the mocker spec from 2019 to 2022
Nov 27, 2023
be38616
Reverted typo about the correct fauxhai repo.
Nov 27, 2023
1f395f5
Merge pull request #24 from jjperry/add_windows_2022
tpowell-progress Dec 5, 2023
2d85a44
Bump version to 9.3.13 by Chef Expeditor
chef-ci Dec 5, 2023
04ff93d
add_amazon_2023
Dec 6, 2023
04beab8
Add Ubuntu 24.04
nickpegg Mar 21, 2024
953610d
Add code owners for reviews
tpowell-progress Mar 25, 2024
f5a4c67
fix copy and paste error
nickpegg Mar 25, 2024
2dfe1eb
Merge pull request #28 from chef/tp/add-codeowners
tpowell-progress Mar 26, 2024
52c5f4b
Bump version to 9.3.14 by Chef Expeditor
chef-ci Mar 26, 2024
ac25a61
Merge pull request #26 from jjperry/add_amazon_2023
tpowell-progress Mar 26, 2024
abd777c
Bump version to 9.3.15 by Chef Expeditor
chef-ci Mar 26, 2024
5818dc3
Merge pull request #27 from nickpegg/add_ubuntu_24_04
tpowell-progress Mar 26, 2024
983bbe2
Bump version to 9.3.16 by Chef Expeditor
chef-ci Mar 26, 2024
b46fcdc
Update CHANGELOG.md to reflect the promotion of 9.3.16
chef-ci Mar 27, 2024
2b6eb94
plan file for linux and window
Sep 3, 2024
062fed7
plan file for windows
Sep 9, 2024
239d1fd
[CI] Drop EOL rubies
dafyddcrosby Nov 19, 2024
822548d
Update pkg_version dynamically before build phases
Nov 21, 2024
9f4e18c
Merge pull request #33 from dafyddcrosby/rm27rubyci
jaymzh Nov 26, 2024
4cc86c4
Bump version to 9.3.17 by Chef Expeditor
chef-ci Nov 26, 2024
17b584b
Merge pull request #31 from chef/sanjain/chef-14470/hab_package
jaymzh Nov 26, 2024
78dd2b8
Bump version to 9.3.18 by Chef Expeditor
chef-ci Nov 26, 2024
9c96065
Pick version from Version file instead of Hardcoded
Nov 28, 2024
e339b06
Merge pull request #34 from chef/sanjain/fix_window_hab_version
sanjain-progress Dec 2, 2024
e940dcc
add pipleline for build, publish
Dec 4, 2024
b8a410c
fix habitat build for linux
Dec 4, 2024
36b3cc6
Change pipeline to expeditor
sanghinitin Dec 6, 2024
6b1b90a
Fix pipeline name
sanghinitin Dec 6, 2024
36a3a12
Change pipeline to expeditor
sanghinitin Dec 6, 2024
0a29508
remove pipeline create config
sanghinitin Dec 6, 2024
d798e4e
pkg indent fix
sanghinitin Dec 6, 2024
bcb33de
Merge pull request #35 from chef/sanjain/chef-17476/github_action
nikhil2611 Dec 11, 2024
595d0ec
Experditor trigger for promoting pkg
sanghinitin Dec 19, 2024
0f13092
Merge pull request #36 from chef/hab_pkg_promote
nikhil2611 Dec 19, 2024
2b10469
adding echo to check bash file is running or not
nikhil2611 Dec 19, 2024
67f89fc
added the release branch
nikhil2611 Dec 19, 2024
e9d742d
Merge pull request #40 from chef/add_release_branch
nikhil2611 Dec 19, 2024
b7f9cf5
testing release branch
nikhil2611 Dec 19, 2024
614b050
testing agents creating
nikhil2611 Dec 19, 2024
ce9a5d1
Merge pull request #41 from chef/nikhil/test-release_branch
nikhil2611 Dec 19, 2024
c65d298
Merge branch 'workstation-LTS' into backup/workstation-LTS
nikhil2611 Dec 19, 2024
8a98ba3
Merge pull request #39 from chef/backup/workstation-LTS
nikhil2611 Dec 19, 2024
0d93053
adding artifact channel
nikhil2611 Dec 20, 2024
80dd1bf
added the channel variable
nikhil2611 Dec 23, 2024
5001383
Merge pull request #42 from chef/nikhil/adding_bldr_channel
nikhil2611 Dec 23, 2024
18d6b0e
Bump version to 9.3.19 by Chef Expeditor
chef-ci Dec 23, 2024
782c9cf
Bump version to 9.3.20 by Chef Expeditor
chef-ci Dec 23, 2024
7c16c79
re-working expeditor config
sean-sype-simmons Dec 23, 2024
29c9729
updating do_before just to add the channels once
sean-sype-simmons Dec 23, 2024
1fd9515
fixing expeditor error config
sean-sype-simmons Dec 23, 2024
b9a3e21
fixing expeditor error config
sean-sype-simmons Dec 23, 2024
8315ceb
fixing expeditor error config
sean-sype-simmons Dec 23, 2024
138827e
fixing expeditor error config
sean-sype-simmons Dec 23, 2024
290f12a
fixing expeditor error config
sean-sype-simmons Dec 23, 2024
0e721f3
fixing expeditor error config
sean-sype-simmons Dec 23, 2024
f9d8d23
fixing expeditor error config
sean-sype-simmons Dec 23, 2024
2100e16
updtaing workflow for expeditor config
sean-sype-simmons Dec 31, 2024
7b49340
updating comments
sean-sype-simmons Dec 31, 2024
371c383
removing for a test
sean-sype-simmons Jan 2, 2025
db77ec2
moving this value back as requested
sean-sype-simmons Jan 2, 2025
99e8426
moving this value back as requested
sean-sype-simmons Jan 2, 2025
2e56935
updated the channel from workstation-LTS to LTS-2024
nikhil2611 Jan 3, 2025
68aef6d
Merge pull request #43 from chef/sean-simmons-progress/CHEF-18267-Wor…
nikhil2611 Jan 3, 2025
3d05dd4
Bump version to 9.3.21 by Chef Expeditor
chef-ci Jan 3, 2025
64922fd
updated the version to 0.1
nikhil2611 Jan 3, 2025
61d7fd3
removed the rollover changes
nikhil2611 Jan 3, 2025
61ebe6c
Merge pull request #44 from chef/updated_version_0.1
sanghinitin Jan 3, 2025
e2dade3
Bump version to 0.1.0 by Chef Expeditor
chef-ci Jan 3, 2025
b9d5af2
Update CHANGELOG.md to reflect the promotion of 9.3.21
chef-ci Jan 3, 2025
6a386e9
Updating the promote-hab script to grab the correct values out of run…
sean-sype-simmons Jan 3, 2025
59c9711
Merge pull request #45 from chef/sean-simmons-progress/CHEF-18267-Fix…
nikhil2611 Jan 3, 2025
0c82c86
Bump version to 0.1.1 by Chef Expeditor
chef-ci Jan 3, 2025
f7b1497
Bump version to 0.1.2 by Chef Expeditor
chef-ci Jan 3, 2025
a554b4e
testing env vars
sean-sype-simmons Jan 3, 2025
886b8db
Merge pull request #46 from chef/sean-simmons-progress/promoteHabIssue
sean-sype-simmons Jan 3, 2025
87827a4
removing pipelines to rebuild the agent and pipelines
sean-sype-simmons Jan 3, 2025
f15579a
Merge pull request #47 from chef/sean-simmons-progress/FixPipelineDef…
sean-sype-simmons Jan 3, 2025
cd310b8
re-adding pipelines
sean-sype-simmons Jan 3, 2025
9812f0e
Merge pull request #48 from chef/sean-simmons-progress/FixPipelineDef…
sean-sype-simmons Jan 3, 2025
6d29f32
empty commit
sean-sype-simmons Jan 3, 2025
5fc84a7
Merge pull request #49 from chef/sean-simmons-progress/CHEF-18267-Wor…
sean-sype-simmons Jan 3, 2025
a96d4ac
Bump version to 0.1.3 by Chef Expeditor
chef-ci Jan 3, 2025
7553b24
updating script
sean-sype-simmons Jan 3, 2025
d98341b
had the wrong name in the expeditor config, an extra s
sean-sype-simmons Jan 3, 2025
73f681d
Merge pull request #50 from chef/sean-simmons-progress/CHEF-18267-Wor…
sean-sype-simmons Jan 3, 2025
8df69f5
pathing.
sean-sype-simmons Jan 3, 2025
e01555b
Merge pull request #51 from chef/sean-simmons-progress/CHEF-18267-Wor…
sean-sype-simmons Jan 3, 2025
51960e8
test pr
muthuja Jan 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .buildkite/.keep
Empty file.
9 changes: 9 additions & 0 deletions .expeditor/build.habitat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
origin: chef

expeditor:
defaults:
buildkite:
retry:
automatic:
limit: 1
86 changes: 86 additions & 0 deletions .expeditor/buildkite/artifact.habitat.test.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
#!/usr/bin/env powershell

#Requires -Version 5
# https://stackoverflow.com/questions/9948517
# TODO: Set-StrictMode -Version Latest
$PSDefaultParameterValues['*:ErrorAction']='Stop'
$ErrorActionPreference = 'Stop'
$env:HAB_BLDR_CHANNEL = "LTS-2024"
$env:HAB_ORIGIN = 'ci'
$env:CHEF_LICENSE = 'accept-no-persist'
$env:HAB_LICENSE = 'accept-no-persist'
$Plan = 'fauxhai'

Write-Host "--- system details"
$Properties = 'Caption', 'CSName', 'Version', 'BuildType', 'OSArchitecture'
Get-CimInstance Win32_OperatingSystem | Select-Object $Properties | Format-Table -AutoSize

Write-Host "--- Installing the version of Habitat required"

function Stop-HabProcess {
$habProcess = Get-Process hab -ErrorAction SilentlyContinue
if ($habProcess) {
Write-Host "Stopping hab process..."
Stop-Process -Name hab -Force
}
}

# Installing Habitat
function Install-Habitat {
Write-Host "Downloading and installing Habitat..."
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/habitat-sh/habitat/main/components/hab/install.ps1'))
}

try {
hab --version
}
catch {
Set-ExecutionPolicy Bypass -Scope Process -Force

Stop-HabProcess

# Remove the existing hab.exe if it exists and if you have permissions
$habPath = "C:\ProgramData\Habitat\hab.exe"
if (Test-Path $habPath) {
Write-Host "Attempting to remove existing hab.exe..."
Remove-Item $habPath -Force -ErrorAction SilentlyContinue
if (Test-Path $habPath) {
Write-Host "Failed to remove hab.exe, re-running script with elevated permissions."
Start-Process powershell -Verb runAs -ArgumentList "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`""
exit
}
}

Install-Habitat
}
finally {
Write-Host ":habicat: I think I have the version I need to build."
}


Write-Host "--- Generating fake origin key"
hab origin key generate $env:HAB_ORIGIN

Write-Host "--- Building $Plan"
$project_root = "$(git rev-parse --show-toplevel)"
Set-Location $project_root

$env:DO_CHECK=$true; hab pkg build .

. $project_root/results/last_build.ps1

Write-Host "--- Installing $pkg_ident/$pkg_artifact"
hab pkg install -b $project_root/results/$pkg_artifact

Write-Host "+++ Testing $Plan"

Push-Location $project_root

try {
Write-Host "Running unit tests..."
habitat/tests/test.ps1 $pkg_ident
}
finally {
# Ensure we always return to the original directory
Pop-Location
}
70 changes: 70 additions & 0 deletions .expeditor/buildkite/artifact.habitat.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
#!/usr/bin/env bash

set -eo pipefail

export HAB_ORIGIN='ci'
export PLAN='fauxhai'
export CHEF_LICENSE="accept-no-persist"
export HAB_LICENSE="accept-no-persist"
export HAB_BLDR_CHANNEL="LTS-2024"

echo "--- checking if git is installed"
if ! command -v git &> /dev/null; then
echo "Git is not installed. Installing Git..."
sudo yum install -y git
else
echo "Git is already installed."
git --version
fi

echo "--- add an exception for this directory since detected dubious ownership in repository at /workdir"
git config --global --add safe.directory /workdir

echo "--- git status for this workdir"
git status

echo "--- ruby version"
ruby -v

export project_root="$(git rev-parse --show-toplevel)"
echo "The value for project_root is: $project_root"

export HAB_NONINTERACTIVE=true
export HAB_NOCOLORING=true
export HAB_STUDIO_SECRET_HAB_NONINTERACTIVE=true

echo "--- system details"
uname -a

echo "--- Installing Habitat"
id -a
curl https://raw.githubusercontent.com/habitat-sh/habitat/main/components/hab/install.sh | bash

echo "--- :key: Generating fake origin key"
hab origin key generate "$HAB_ORIGIN"


echo "--- Building $PLAN"
cd "$project_root"
DO_CHECK=true hab pkg build .

echo "--- Sourcing 'results/last_build.sh'"
if [ -f ./results/last_build.env ]; then
cat ./results/last_build.env
. ./results/last_build.env
export pkg_artifact
fi
echo "+++ Installing ${pkg_ident:?is undefined}"
echo "++++"
echo $project_root
echo "+++"
hab pkg install -b "${project_root:?is undefined}/results/${pkg_artifact:?is undefined}"

echo "+++ Testing $PLAN"

PATH="$(hab pkg path ci/fauxhai)/bin:$PATH"
export PATH
echo "PATH is $PATH"

echo "--- :mag_right: Testing $PLAN"
${project_root}/habitat/tests/test.sh "$pkg_ident" || error 'failures during test of executables'
89 changes: 89 additions & 0 deletions .expeditor/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Documentation available at https://expeditor.chef.io/docs/getting-started/
---

# Slack channel in Chef Software slack to send notifications about build failures, etc
slack:
notify_channel: chef-ws-notify

# This publish is triggered by the `built_in:publish_rubygems` artifact_action.
rubygems:
- fauxhai-chef

artifact_channels:
- workstation-build
- stable
- LTS-2024

pipelines:
- verify:
description: Pull Request validation tests
public: true
- habitat/build:
description: Build the Habitat packages for faixhai
- habitat/test:
definition: .expeditor/habitat-test.pipeline.yml
trigger: pull_request

release_branches:
- workstation-LTS:
version_constraint: 0.*
- main:
version_constraint: 9.*

github:
# This deletes the GitHub PR branch after successfully merged into the release branch
delete_branch_on_merge: true
# The tag format to use (e.g. v1.0.0)
version_tag_format: "v{{version}}"
# allow bumping the minor release via label
minor_bump_labels:
- "Expeditor: Bump Version Minor"
# allow bumping the major release via label
major_bump_labels:
- "Expeditor: Bump Version Major"

changelog:
rollup_header: Changes not yet released to rubygems.org

subscriptions:
# These actions are taken, in order they are specified, anytime a Pull Request is merged.
- workload: pull_request_merged:{{github_repo}}:{{release_branch}}:*
actions:
- built_in:bump_version:
ignore_labels:
- "Expeditor: Skip Version Bump"
- "Expeditor: Skip All"
- bash:.expeditor/update_version.sh:
only_if: built_in:bump_version
- built_in:update_changelog:
ignore_labels:
- "Expeditor: Skip Changelog"
- "Expeditor: Skip All"
- trigger_pipeline:habitat/build:
ignore_labels:
- "Expeditor: Skip Habitat"
- "Expeditor: Skip All"
only_if: built_in:bump_version
- built_in:build_gem:
only_if: built_in:bump_version

# Automatically promote the Habitat packages from unstable to dev upon successful build
- workload: buildkite_hab_build_group_published:{{agent_id}}:*
actions:
- built_in:promote_habitat_packages


# this is the only way currently to promote built-in rubygems publish
- workload: project_promoted:{{agent_id}}:*
actions:
- built_in:promote_habitat_packages

# subscription to fire off any other promotions that you may need for an additional channnel like LTS or something.
- workload: staged_workload_released:{{agent_id}}:workstation_build_promote:*
actions:
- bash:.expeditor/promote-hab-pkg.sh:
post_commit: true

staging_areas:
- workstation_build_promote:
workload: hab_package_published:stable:chef/fauxhai/{{version_constraint}}
36 changes: 36 additions & 0 deletions .expeditor/habitat-test.pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
expeditor:
defaults:
buildkite:
timeout_in_minutes: 30
retry:
automatic:
limit: 1


steps:

- label: ":linux: Validate Habitat Builds of fauxhai"
commands:
- .expeditor/buildkite/artifact.habitat.test.sh
expeditor:
executor:
docker:
image: ruby:3.1
privileged: true

- label: ":windows: Validate Habitat Builds of fauxhai"
commands:
- .expeditor/buildkite/artifact.habitat.test.ps1
expeditor:
executor:
docker:
host_os: windows
shell: ["powershell", "-Command"]
image: rubydistros/windows-2019:3.1
user: 'NT AUTHORITY\SYSTEM'
environment:
- FORCE_FFI_YAJL=ext
- EXPIRE_CACHE=true
- CHEF_LICENSE=accept-no-persist
- CHEF_LICENSE_SERVER=http://hosted-license-service-lb-8000-606952349.us-west-2.elb.amazonaws.com:8000/
41 changes: 41 additions & 0 deletions .expeditor/promote-hab-pkg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/bash

#
# The following standard Expeditor artifact_actions environment variables
# are automatically set by the calling process:
#
# PROMOTABLE - in promotion artifact actions this is a reference to the
# source channel.
# TARGET_CHANNEL - the channel which we are promoting to
# HAB_AUTH_TOKEN - GitHub Auth token used to communicate with the
# Habitat depot and private repos in Chef's GitHub org
#
set -eou pipefail

# printenv | grep EXPEDITOR

# Export the HAB_AUTH_TOKEN for use of promoting habitat packages to {{EXPEDITOR_TARGET_CHANNEL}}
HAB_AUTH_TOKEN=$(vault kv get -field auth_token account/static/habitat/chef-ci)
export HAB_AUTH_TOKEN

# # Export the HAB_AUTH_TOKEN for use of promoting habitat packages to {{TARGET_CHANNEL}}
# HAB_AUTH_TOKEN=$(vault kv get -field auth_token account/static/habitat/chef-ci)
# export HAB_AUTH_TOKEN
# when this workflow runs, there are env vars that are available to us in the running pod, we are grabbing the source ENV, then assigning it to our next channel
if [[ "${EXPEDITOR_CHANNEL}" == "unstable" ]]; then
echo "This file does not support actions for artifacts promoted to unstable"
exit 1
elif [[ "${EXPEDITOR_CHANNEL}" == "stable" ]]; then
export EXPEDITOR_TARGET_CHANNEL="LTS-2024"
else
echo "Unknown EXPEDITOR_CHANNEL: ${EXPEDITOR_CHANNEL}"
exit 1
fi

# Promote the artifacts in Habitat Depot
if [[ "${EXPEDITOR_PKG_ORIGIN}" == "core" ]]; then
echo "Skipping promotion of core origin package ${EXPEDITOR_PKG_ORIGIN}"
else
echo "Promoting ${EXPEDITOR_PKG_IDENT} to the ${EXPEDITOR_TARGET_CHANNEL} channel"
hab pkg promote "${EXPEDITOR_PKG_IDENT}" "${EXPEDITOR_TARGET_CHANNEL}"
fi
16 changes: 16 additions & 0 deletions .expeditor/run_linux_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash
#
# setups up the bundler to caching, then run the script

set -ue

export USER="root"
export LANG=C.UTF-8 LANGUAGE=C.UTF-8

echo "--- bundle install"

bundle config --local path vendor/bundle
bundle install --jobs=7 --retry=3

echo "+++ bundle exec task"
bundle exec $@
12 changes: 12 additions & 0 deletions .expeditor/update_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh
#
# After a PR merge, Chef Expeditor will bump the PATCH version in the VERSION file.
# It then executes this file to update any other files/components with that new version.
#

set -evx

sed -i -r "s/^(\s*)VERSION = \".+\"/\1VERSION = \"$(cat VERSION)\"/" lib/fauxhai/version.rb

# Once Expeditor finishes executing this script, it will commit the changes and push
# the commit as a new tag corresponding to the value in the VERSION file.
10 changes: 10 additions & 0 deletions .expeditor/verify.pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
expeditor:
cached_folders:
- vendor
defaults:
buildkite:
retry:
automatic:
limit: 1
timeout_in_minutes: 30
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#Order is important. The last matching pattern has the most precedence.

* @chef/chef-infra-reviewers @chef/chef-infra-approvers @chef/chef-infra-owners
.expeditor/ @chef/releng-ops
*.md @chef/docs-team
Loading