Skip to content

build with hab base-2025 channel #310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
9 changes: 9 additions & 0 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

if [[ $BUILDKITE_ORGANIZATION_SLUG = 'chef-canary' ]]; then
AWS_REGION='us-west-1'
elif [[ $BUILDKITE_ORGANIZATION_SLUG = 'chef' ]] || [[ $BUILDKITE_ORGANIZATION_SLUG = 'chef-oss' ]]; then
AWS_REGION='us-west-2'
fi

export HAB_AUTH_TOKEN=$(aws ssm get-parameter --name 'habitat-prod-auth-token' --with-decryption --query Parameter.Value --output text --region ${AWS_REGION})
6 changes: 3 additions & 3 deletions .expeditor/build_gems.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ $env:MSBuildEnableWorkloadResolver = "false"

# setting the channel in this way gets access to the LTS channel and falls back to stable if the plan doesn't live there.
Write-Output "--- :shovel: Setting the BLDR and REFRESH Channels to LTS"
$env:HAB_BLDR_CHANNEL="LTS-2024"
$env:HAB_REFRESH_CHANNEL = "LTS-2024"
$env:HAB_BLDR_CHANNEL="base-2025"
$env:HAB_REFRESH_CHANNEL = "base-2025"
Write-Output "`r"

Write-Output "--- :screwdriver: Installing Habitat via Choco"
Expand Down Expand Up @@ -74,7 +74,7 @@ Write-Output "`r"


Write-Output "--- :construction: Building 64-bit PowerShell DLLs"
hab pkg build Habitat --refresh-channel LTS-2024
hab pkg build Habitat --refresh-channel base-2025
if (-not $?) { throw "unable to build"}
Write-Output "`r"

Expand Down
6 changes: 5 additions & 1 deletion .expeditor/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ subscriptions:
- "Expeditor: Skip Changelog"
- "Expeditor: Skip All"
- built_in:build_gem:
only_if: built_in:bump_version
only_if: built_in:bump_version
- trigger_pipeline:habitat/build:
ignore_labels:
- "Expeditor: Skip Habitat"
- "Expeditor: Skip All"

# - workload: project_promoted:{{agent_id}}:*
# actions:
Expand Down
2 changes: 1 addition & 1 deletion .expeditor/manual_gem_release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ else {
Write-Output "`r"

Write-Output "--- :construction: Building 64-bit PowerShell DLL's"
hab pkg build Habitat --refresh-channel LTS-2024
hab pkg build Habitat --refresh-channel base-2025
if (-not $?) { throw "unable to build" }
Write-Output "`r"

Expand Down
9 changes: 6 additions & 3 deletions .expeditor/test_plan.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ param (
)

$env:HAB_LICENSE = "accept-no-persist"
$env:HAB_ORIGIN = 'ci'
$env:HAB_BLDR_CHANNEL = 'LTS-2024'
$env:HAB_REFRESH_CHANNEL = 'LTS-2024'
$env:HAB_BLDR_CHANNEL = 'base-2025'
$env:HAB_REFRESH_CHANNEL = 'base-2025'

Write-Host "--- :8ball: :windows: Verifying $Plan"

Write-Host "Using Habitat version $(hab --version)"

# Set HAB_ORIGIN after Habitat installation
Write-Host "HAB_ORIGIN set to 'ci' after installation."
$env:HAB_ORIGIN = 'ci'

if (Test-Path -PathType leaf "/hab/cache/keys/ci-*.sig.key") {
Write-Host "--- :key: Using existing fake '$env:HAB_ORIGIN' origin key"
} else {
Expand Down
6 changes: 5 additions & 1 deletion .expeditor/verify.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expeditor:
retry:
automatic:
limit: 1
timeout_in_minutes: 30
timeout_in_minutes: 60

steps:

Expand All @@ -18,6 +18,8 @@ steps:
host_os: windows
image: rubydistros/windows-2019:3.1
shell: [ "powershell", "-Command" ]
environment:
- HAB_AUTH_TOKEN

- label: ":windows: pre-build-verify-windows-gem - Ruby 3.4"
commands:
Expand All @@ -28,6 +30,8 @@ steps:
host_os: windows
image: rubydistros/windows-2019:3.4
shell: [ "powershell", "-Command" ]
environment:
- HAB_AUTH_TOKEN

- label: ":windows: What version of Ruby are we using?"
command:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Then set these envuironment variables:

```
$env:MSBuildEnableWorkloadResolver = "false";
$env:HAB_BLDR_CHANNEL = "LTS-2024";
$env:HAB_BLDR_CHANNEL = "base-2025";
$env:MSBuildSdksPath = "C:\Program Files\dotnet\sdk";
$env:HAB_ORIGIN = "chef";
```
Expand Down
4 changes: 2 additions & 2 deletions habitat/plan.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$env:HAB_BLDR_CHANNEL = "LTS-2024"
$env:HAB_BLDR_CHANNEL = "base-2025"
$env:MSBuildEnableWorkloadResolver = $false
$pkg_name="chef-powershell-shim"
$pkg_origin="chef"
Expand Down Expand Up @@ -36,7 +36,7 @@ function Invoke-Build {
}

function Invoke-Install {
$VCToolsInstallDir_170 = "$(Get-HabPackagePath visual-build-tools-2022)\Contents\VC\Redist\MSVC\14.40.33807"
$VCToolsInstallDir_170 = "$(Get-HabPackagePath visual-build-tools-2022)\Contents\VC\Redist\MSVC\14.44.35112"
Copy-Item $HAB_CACHE_SRC_PATH/$pkg_dirname/Chef.Powershell.Wrapper/x64/release/*.dll "$pkg_prefix/bin"
Copy-Item "$VCToolsInstallDir_170\x64\Microsoft.VC143.CRT\*.dll" "$pkg_prefix/bin"

Expand Down
Loading