Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
72400bd
Update vendored dependencies
bosh-admin-bot Jul 11, 2026
75cf807
Bump gems
bosh-admin-bot Jul 11, 2026
c56d0a8
bump bosh-blobstore-dav/0.0.489
bosh-admin-bot Jul 11, 2026
5835cf6
bump bosh-blobstore-s3/0.0.417
bosh-admin-bot Jul 11, 2026
bac2449
Bump os-image tgz
bosh-admin-bot Jul 11, 2026
6bc05db
bump bosh-blobstore-gcs/0.0.397
bosh-admin-bot Jul 11, 2026
54fb200
Bump os-image tgz
bosh-admin-bot Jul 11, 2026
73abce1
Bump os-image tgz
bosh-admin-bot Jul 11, 2026
2a29a58
bump bosh-blobstore-azure-storage/0.0.246
bosh-admin-bot Jul 11, 2026
e30abe4
Bump os-image tgz
bosh-admin-bot Jul 11, 2026
5731108
bump bosh-agent/2.864.0
bosh-admin-bot Jul 13, 2026
87e0157
Bump os-image tgz
bosh-admin-bot Jul 13, 2026
fb217a5
Fix GCE terraform region/zone for light stemcell CI pipeline
Alphasite Jul 14, 2026
f89b3d1
Use e2-standard-2 instead of n1-standard-2 for light-google skeletal VM
Alphasite Jul 14, 2026
f1b8122
Merge pull request #690 from cloudfoundry/tnz-116382-fix-gce-region-e…
Alphasite Jul 14, 2026
5424b7e
Bump os-image tgz
bosh-admin-bot Jul 14, 2026
ce4a2c2
bump bosh-blobstore-s3/0.0.418
bosh-admin-bot Jul 14, 2026
248069f
Bump os-image tgz
bosh-admin-bot Jul 14, 2026
0b84da4
Bump os-image tgz
bosh-admin-bot Jul 15, 2026
1411ea6
Bump os-image tgz
bosh-admin-bot Jul 16, 2026
46d6bc3
Bump os-image tgz
bosh-admin-bot Jul 16, 2026
23bd324
Bump actions/setup-go from 6 to 7
dependabot[bot] Jul 16, 2026
88b41ff
Bump os-image tgz
bosh-admin-bot Jul 16, 2026
dd8b141
bump bosh-blobstore-azure-storage/0.0.247
bosh-admin-bot Jul 16, 2026
46793ce
bump bosh-blobstore-s3/0.0.419
bosh-admin-bot Jul 16, 2026
3d6462f
Bump os-image tgz
bosh-admin-bot Jul 16, 2026
dc0c8ae
Bump os-image tgz
bosh-admin-bot Jul 16, 2026
2687290
bump bosh-blobstore-dav/0.0.490
bosh-admin-bot Jul 16, 2026
06dd641
Bump os-image tgz
bosh-admin-bot Jul 16, 2026
df329dd
Bump os-image tgz
bosh-admin-bot Jul 17, 2026
7f44a82
Update vendored dependencies
bosh-admin-bot Jul 18, 2026
8912cd7
Bump gems
bosh-admin-bot Jul 18, 2026
e0320ce
bump bosh-blobstore-dav/0.0.491
bosh-admin-bot Jul 18, 2026
d1c8fcd
bump bosh-blobstore-s3/0.0.420
bosh-admin-bot Jul 18, 2026
44e3a63
Bump os-image tgz
bosh-admin-bot Jul 18, 2026
6f59a74
Bump os-image tgz
bosh-admin-bot Jul 18, 2026
db4db75
bump bosh-agent/2.865.0
bosh-admin-bot Jul 21, 2026
b3b61c5
Bump os-image tgz
bosh-admin-bot Jul 21, 2026
b510c7e
bump bosh-agent/2.866.0
bosh-admin-bot Jul 21, 2026
656f53c
Bump os-image tgz
bosh-admin-bot Jul 21, 2026
8ff9576
Bump os-image tgz
bosh-admin-bot Jul 24, 2026
183e939
Update vendored dependencies
bosh-admin-bot Jul 25, 2026
b1b8ca1
Update vendored dependencies
bosh-admin-bot Jul 25, 2026
484599d
bump bosh-blobstore-s3/0.0.421
bosh-admin-bot Jul 25, 2026
92b945e
bump bosh-blobstore-s3/0.0.421
bosh-admin-bot Jul 25, 2026
8ce3b13
Bump os-image tgz
bosh-admin-bot Jul 25, 2026
9944770
Bump os-image tgz
bosh-admin-bot Jul 25, 2026
4a65ec3
bump bosh-blobstore-dav/0.0.492
bosh-admin-bot Jul 25, 2026
78db0a9
Bump os-image tgz
bosh-admin-bot Jul 25, 2026
761f626
bump bosh-blobstore-dav/0.0.492
bosh-admin-bot Jul 25, 2026
7680fa6
Bump os-image tgz
bosh-admin-bot Jul 25, 2026
12b7b8d
Bump os-image tgz
bosh-admin-bot Jul 25, 2026
9a0648a
Bump os-image tgz
bosh-admin-bot Jul 25, 2026
8b2717d
bump bosh-blobstore-azure-storage/0.0.248
bosh-admin-bot Jul 25, 2026
50fcf43
bump bosh-blobstore-azure-storage/0.0.248
bosh-admin-bot Jul 25, 2026
824c4a4
Bump os-image tgz
bosh-admin-bot Jul 25, 2026
0adf572
Bump os-image tgz
bosh-admin-bot Jul 25, 2026
f59d0c6
ci: Remove unused snapshot_id from AMI cleanup
ystros Jul 27, 2026
fc8fd45
bump bosh-blobstore-gcs/0.0.398
bosh-admin-bot Jul 30, 2026
82f6e7d
bump bosh-blobstore-gcs/0.0.398
bosh-admin-bot Jul 30, 2026
212d02c
Bump os-image tgz
bosh-admin-bot Jul 30, 2026
a7200e6
Bump os-image tgz
bosh-admin-bot Jul 30, 2026
a0fe2ec
bump bosh-blobstore-s3/0.0.422
bosh-admin-bot Jul 30, 2026
4726438
bump bosh-blobstore-s3/0.0.422
bosh-admin-bot Jul 30, 2026
6008fc5
Bump os-image tgz
bosh-admin-bot Jul 30, 2026
b7e3e43
Bump os-image tgz
bosh-admin-bot Jul 30, 2026
148df08
ci: Handle deletion if AMI is missing
ystros Jul 27, 2026
3b50641
Merge pull request #696 from cloudfoundry/update-cleanup-scripts
ystros Jul 30, 2026
b11dfa2
Merge pull request #698 from cloudfoundry/ubuntu-jammy
ystros Jul 30, 2026
93497c7
Bump os-image tgz
bosh-admin-bot Jul 30, 2026
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
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v6
- uses: actions/setup-go@v7
with:
go-version-file: acceptance-tests/go.mod
- uses: golangci/golangci-lint-action@v9
Expand Down
2 changes: 1 addition & 1 deletion acceptance-tests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/cloudfoundry/bosh-linux-stemcell-builder/acceptance-tests
go 1.25.0

require (
github.com/cloudfoundry/bosh-utils v0.0.628
github.com/cloudfoundry/bosh-utils v0.0.629
github.com/onsi/ginkgo/v2 v2.32.0
github.com/onsi/gomega v1.42.1
gopkg.in/yaml.v2 v2.4.0
Expand Down
4 changes: 2 additions & 2 deletions acceptance-tests/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ github.com/Masterminds/semver/v3 v3.5.0 h1:kQceYJfbupGfZOKZQg0kou0DgAKhzDg2NZPAw
github.com/Masterminds/semver/v3 v3.5.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM=
github.com/bmatcuk/doublestar v1.3.4 h1:gPypJ5xD31uhX6Tf54sDPUOBXTqKH4c9aPY66CyQrS0=
github.com/bmatcuk/doublestar v1.3.4/go.mod h1:wiQtGV+rzVYxB7WIlirSN++5HPtPlXEo9MEoZQC/PmE=
github.com/cloudfoundry/bosh-utils v0.0.628 h1:mBkEytkq1aUx1Dq31utvchtVLeUngsIcV9QHgxjMttk=
github.com/cloudfoundry/bosh-utils v0.0.628/go.mod h1:Oi1Or7wk6TljEEfyomf6xdKhkuvTpkrnEvdDd04/2Tc=
github.com/cloudfoundry/bosh-utils v0.0.629 h1:6wubE+dKZ7Poo0OwEjXtidDY73rMBT/3mzNMyMaqSuY=
github.com/cloudfoundry/bosh-utils v0.0.629/go.mod h1:Xn5ynPVGqJX/mKQSqcAYCVF6XlCEpcWu2rkC/kGxq+4=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/gkampitakis/ciinfo v0.3.2 h1:JcuOPk8ZU7nZQjdUhctuhQofk7BGHuIy0c9Ez8BNhXs=
Expand Down
2 changes: 1 addition & 1 deletion acceptance-tests/vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ github.com/Masterminds/semver/v3
# github.com/bmatcuk/doublestar v1.3.4
## explicit; go 1.12
github.com/bmatcuk/doublestar
# github.com/cloudfoundry/bosh-utils v0.0.628
# github.com/cloudfoundry/bosh-utils v0.0.629
## explicit; go 1.25.0
github.com/cloudfoundry/bosh-utils/errors
github.com/cloudfoundry/bosh-utils/logger
Expand Down
2 changes: 2 additions & 0 deletions ci/pipeline-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1453,6 +1453,8 @@ resources:
vars:
gce_credentials_json: ((gcp_json_key))
gce_project_id: ((gcp_project_id))
gce_region: europe-north2
gce_zone: europe-north2-a
type: terraform_type

- name: base-oss-google-ubuntu-stemcell
Expand Down
42 changes: 26 additions & 16 deletions ci/tasks/light-aws/cleanup-ami.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,28 @@ if [ -n "${ami_role_arn:-}" ]; then
export AWS_PROFILE=resource_account
fi

# Every stemcell pipeline runs the published sweep against the same account, so two
# pipelines can select the same AMI before either has deleted it. This handles
# expected potential errors that could occur on a collision.
run_tolerating_missing() {
local output
if output="$("$@" 2>&1)"; then
[ -n "${output}" ] && printf "%s\n" "${output}"
return 0
fi

case "${output}" in
*InvalidAMIID.Unavailable*|*InvalidAMIID.NotFound*|*InvalidSnapshot.NotFound*|*InvalidSnapshot.InUse*)
echo " already deleted by another run, skipping"
return 0
;;
*)
printf "%s\n" "${output}" >&2
return 1
;;
esac
}

past_due=$(date --date="${ami_older_than_days} days ago" +"%Y-%m-%d")
# shellcheck disable=SC2016
past_due_query='sort_by(Images,&CreationDate)[?CreationDate<`'"${past_due}"'`].{ImageId: ImageId, date:CreationDate, SnapshotId: BlockDeviceMappings[0].Ebs.SnapshotId,Version: Tags[?Key==`name`]|[0].Value}'
Expand Down Expand Up @@ -59,16 +81,6 @@ for region in ${ami_destinations}; do
ami_list=$(jq -s '.[0] + .[1]' <(echo "${ami_list}") <(echo "${results}"))
fi

if [ -n "${snapshot_id:-}" ]; then
results=$(aws ec2 describe-images \
--owners self \
--output json \
--region "${region}" \
--filters "Name=block-device-mapping.snapshot-id,Values=${snapshot_id}" \
--query "${past_due_query}" | jq 'reverse | del(.[range(env.ami_keep_latest|tonumber)])')
ami_list=$(jq -s '.[0] + .[1]' <(echo "${ami_list}") <(echo "${results}"))
fi

# 'ami_list' is a json array of objects, each object is an ami and its snapshot
for row in $(echo "${ami_list}" | jq -r '.[] | @base64'); do
_jq() {
Expand All @@ -83,14 +95,12 @@ for region in ${ami_destinations}; do
Snapshot id: $(_jq '.SnapshotId')
"

aws ec2 deregister-image \
run_tolerating_missing aws ec2 deregister-image \
--image-id "$(_jq '.ImageId')" \
--region "${region}"

if [ "${snapshot_id:-}" != "$(_jq '.SnapshotId')" ]; then
aws ec2 delete-snapshot \
--snapshot-id "$(_jq '.SnapshotId')" \
--region "${region}"
fi
run_tolerating_missing aws ec2 delete-snapshot \
--snapshot-id "$(_jq '.SnapshotId')" \
--region "${region}"
done
done
1 change: 0 additions & 1 deletion ci/tasks/light-aws/cleanup-ami.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ params:
ami_older_than_days: "60" # Number of days AMI to keep excluding those currently being running
ami_keep_latest: "5" # Number of previous AMI to keep excluding those currently being running
os_name: "" # e.g ubuntu-jammy
snapshot_id: "" # Snapshot id to delete
remove_public_images: "false"
2 changes: 1 addition & 1 deletion ci/tasks/light-google/skeletal-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ resource_pools:
stemcell:
url: file://assets/stemcell.tgz
cloud_properties:
machine_type: n1-standard-2
machine_type: e2-standard-2
root_disk_type: pd-standard
zone: ((gce_zone))
tags:
Expand Down
26 changes: 13 additions & 13 deletions image-metalinks/ubuntu-jammy/ubuntu-jammy.meta4
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<metalink xmlns="urn:ietf:params:xml:ns:metalink">
<file name="ubuntu-jammy.tgz">
<hash type="sha-512">951011bb01835a4ac40d63fe13538ff6243f6b8d7c8bff98f1a8e62ada0300e79b84555c4190bad29d99f7394ca233f69e3bae404c26240e5e07fe6efa973b48</hash>
<hash type="sha-256">9f3b56e8de841095f5dd09a92ef5c1c7f4ce4d16c5da0e95cdd0affd437eb745</hash>
<hash type="sha-1">d823cd967b22449c556913b8932d89f3b7419ded</hash>
<hash type="md5">c7578439290a5bd18fb3255deb7c5ada</hash>
<size>435388237</size>
<hash type="sha-512">fc540c5bfb1273925a6a1531386e38171ec56788ff92f428948ca928b051c26d1a0904ebe7d27eb7b0aa5b07dedd38a08f671462162b511e388108e0b3d31c7e</hash>
<hash type="sha-256">6584f2bdb264fd6bd515df3d42733fcee167f56c5586dd47bd3d17aa56df7429</hash>
<hash type="sha-1">79b3a508e86c2ba3c93a2ec1e4660db1a9a56a22</hash>
<hash type="md5">dd274eb02ba069d3e17588b51df72be7</hash>
<size>437750690</size>
<url>https://storage.googleapis.com/bosh-os-images/ubuntu-jammy/ubuntu-jammy.tgz</url>
<version>1126.0.0</version>
<version>1151.0.0</version>
</file>
<file name="usn-log.json">
<hash type="sha-512">55d505cb22a62c4636b9d2912b3bd8f7683d5b68ac17ec22c0a2b5d71775113edfc0a4041de49dd78fc2251260f850404d43533e5f8a7ae614e1a3d869ea0239</hash>
<hash type="sha-256">70100cafaa448fc3c4c9a7e47574325e2eb79b0e4d0ae5d4b7cc10b57eeb9ea6</hash>
<hash type="sha-1">68d551392fb8407b6cca61445fa9cdad289a4c42</hash>
<hash type="md5">428bf554042b2610eb2e5bbe0ea92865</hash>
<size>52717</size>
<hash type="sha-512">cae949878e6edcc1dcf9933ccf0e3cb3fa720b325f78f1e0d1b8fb7139401b25204b5c3fea731d99a233cd85e9f2f32a115e858b3da1234bb7316fb4e42c4c6f</hash>
<hash type="sha-256">3d3767c9c22fdb909908e24d147e4fd950e2182e440dd14837a9e0f5ad49cd22</hash>
<hash type="sha-1">8b3ae300f323b9df29a97bc23720267fbb127e1f</hash>
<hash type="md5">2ddbcaf20cac862372c7ea7e122eeb6b</hash>
<size>7421</size>
<url>https://storage.googleapis.com/bosh-os-images/ubuntu-jammy/usn-log.json</url>
<version>1126.0.0</version>
<version>1151.0.0</version>
</file>
<generator>metalink-repository-resource/0.0.0</generator>
<published>2026-07-10T22:40:36.805978443Z</published>
<published>2026-07-30T08:22:16.074064248Z</published>
</metalink>
16 changes: 8 additions & 8 deletions image-metalinks/ubuntu-noble/ubuntu-noble.meta4
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<metalink xmlns="urn:ietf:params:xml:ns:metalink">
<file name="ubuntu-noble.tgz">
<hash type="sha-512">a7ab0d00508d2fb74d16c78ead5e67be34979372373c4d822ce5f5149daf30d659959301e4dc9911f6dcd451b7d681647254b63462098df38ec0c5f6f806f19c</hash>
<hash type="sha-256">d123de2ca4a08279abfd7d15ca7f3a6aba6976a56de2cd4a9470ea40a65389c9</hash>
<hash type="sha-1">ba4a5cca7b05b289814dba4e917173f30bf6220e</hash>
<hash type="md5">0cd2853795808e3db74afc20094e381d</hash>
<size>376920548</size>
<hash type="sha-512">60d798769ff7b26c2cdccd919a1bb9fa30dfa1a82723a11ba2377ab4d9c3c45a68ca5aff3dccd89bbe2cccf0397e26665da71928df9f1475e63e1ceb9f5697fd</hash>
<hash type="sha-256">5e852fb3dc0d24aae6801802f2be518e5d0cf5ab5f2172d7edf412c34ddcc498</hash>
<hash type="sha-1">14c6a917fc4200d1cc1cd2ecd8cd65f0e820f7b7</hash>
<hash type="md5">526d2f7acc41bf4a48d29416fe6a7c6b</hash>
<size>377014189</size>
<url>https://storage.googleapis.com/bosh-os-images/ubuntu-noble/ubuntu-noble.tgz</url>
<version>183.0.0</version>
<version>191.0.0</version>
</file>
<file name="usn-log.json">
<hash type="sha-512">894a1a9a4b8c2aa7519d63d2986206d3d81e6ba75384231ade8a43c2b1a9eeb6974588270186e2420780eccbfa831eedfd7232dc3fba0bb434c821945135406f</hash>
Expand All @@ -15,8 +15,8 @@
<hash type="md5">eaf6da3f1a78a7f5cec3809adbc652aa</hash>
<size>68528</size>
<url>https://storage.googleapis.com/bosh-os-images/ubuntu-noble/usn-log.json</url>
<version>183.0.0</version>
<version>191.0.0</version>
</file>
<generator>metalink-repository-resource/0.0.0</generator>
<published>2026-07-23T14:57:50.107392277Z</published>
<published>2026-07-30T16:42:02.240365569Z</published>
</metalink>
Original file line number Diff line number Diff line change
@@ -1 +1 @@
42f3618c873af372212be3e839bb18d828153bcf75ab36f4a3c4e79f7fa27922
1e842139ef6eee303c5a30486f352fc510fe732f2dc5446c5d2403ca47cbf88a
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://bosh-azure-storage-cli-artifacts.s3.us-east-1.amazonaws.com/azure-storage-cli-0.0.247-linux-amd64
https://bosh-azure-storage-cli-artifacts.s3.us-east-1.amazonaws.com/azure-storage-cli-0.0.248-linux-amd64
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.247
0.0.248
Original file line number Diff line number Diff line change
@@ -1 +1 @@
368ec6c088228d10447cf50cb79843d1cae32f2e7955dea50306902a722217ea
2b1b3ff893bee47d61b456128b42d667d797a4ed978b0b7d22687cbd6ee2ab8e
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://bosh-davcli-artifacts.s3.us-east-1.amazonaws.com/davcli-0.0.491-linux-amd64
https://bosh-davcli-artifacts.s3.us-east-1.amazonaws.com/davcli-0.0.492-linux-amd64
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.491
0.0.492
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9b51524789ac9964d83c45dfbb1fc5ae3cf242f7406367be0b86b2b00df121df
d4a0848cb12770dd4689365d68a931f4ace95c31e7029cc521f3cffe1454b368
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://bosh-gcscli-artifacts.s3.us-east-1.amazonaws.com/bosh-gcscli-0.0.397-linux-amd64
https://bosh-gcscli-artifacts.s3.us-east-1.amazonaws.com/bosh-gcscli-0.0.398-linux-amd64
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.397
0.0.398
Original file line number Diff line number Diff line change
@@ -1 +1 @@
eaf3d1d2834e67e8dc012e19224dcc159de521316cf5f6fdb5eb597c23d5bc8f
acecf97845c65fee0bd20cf7e4bc8e89ce35e85f1833bed4d87ba192daa5e240
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://bosh-s3cli-artifacts.s3.us-east-1.amazonaws.com/s3cli-0.0.420-linux-amd64
https://bosh-s3cli-artifacts.s3.us-east-1.amazonaws.com/s3cli-0.0.422-linux-amd64
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.420
0.0.422
Loading