From a4fa1ad12b1876c4e02c981b7caa0e279892cb1c Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Thu, 26 Oct 2023 13:34:59 +0000 Subject: [PATCH 01/11] Updating github-config --- scripts/integration.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/integration.sh b/scripts/integration.sh index 07f6f0e..13a5635 100755 --- a/scripts/integration.sh +++ b/scripts/integration.sh @@ -153,7 +153,6 @@ function tests::run() { util::print::title "Run Buildpack Runtime Integration Tests" util::print::info "Using ${1} as builder..." - pack config experimental true export CGO_ENABLED=0 pushd "${BUILDPACKDIR}" > /dev/null if GOMAXPROCS="${GOMAXPROCS:-4}" go test -count=1 -timeout 0 ./integration/... -v -run Integration | tee "${2}"; then From a48d8315a81b12c8f9b9025d6ba1f6e125a37ce9 Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Fri, 27 Oct 2023 13:38:26 +0000 Subject: [PATCH 02/11] Updating github-config --- .github/workflows/create-draft-release.yml | 10 +++++----- .github/workflows/lint.yml | 2 +- .github/workflows/test-pull-request.yml | 6 ++---- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/create-draft-release.yml b/.github/workflows/create-draft-release.yml index 281809f..481e28d 100644 --- a/.github/workflows/create-draft-release.yml +++ b/.github/workflows/create-draft-release.yml @@ -24,7 +24,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v3 with: - go-version: 1.20.x + go-version: 'stable' - name: Checkout uses: actions/checkout@v3 - name: Run Unit Tests @@ -49,10 +49,9 @@ jobs: - name: Setup Go uses: actions/setup-go@v3 with: - go-version: 1.20.x + go-version: 'stable' - name: Checkout uses: actions/checkout@v3 - - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* || true - name: Run Integration Tests run: ./scripts/integration.sh --use-token --builder ${{ matrix.builder }} env: @@ -67,10 +66,11 @@ jobs: - name: Setup Go uses: actions/setup-go@v3 with: - go-version: 1.20.x + go-version: 'stable' - name: Checkout uses: actions/checkout@v3 - - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* || true + with: + fetch-tags: true - name: Reset Draft Release id: reset uses: paketo-buildpacks/github-config/actions/release/reset-draft@main diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 130481f..d100818 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,7 +16,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v3 with: - go-version: 1.20.x + go-version: 'stable' - name: Checkout uses: actions/checkout@v3 diff --git a/.github/workflows/test-pull-request.yml b/.github/workflows/test-pull-request.yml index b41bd1e..487e1a2 100644 --- a/.github/workflows/test-pull-request.yml +++ b/.github/workflows/test-pull-request.yml @@ -20,7 +20,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v3 with: - go-version: 1.20.x + go-version: 'stable' - name: Checkout uses: actions/checkout@v3 @@ -49,13 +49,11 @@ jobs: - name: Setup Go uses: actions/setup-go@v3 with: - go-version: 1.20.x + go-version: 'stable' - name: Checkout uses: actions/checkout@v3 - - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* || true - - name: Run Integration Tests run: ./scripts/integration.sh --use-token --builder ${{ matrix.builder }} env: From 1a7cb0e4fd84610f11cb51364f04fecab727ac18 Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Wed, 8 Nov 2023 13:37:35 +0000 Subject: [PATCH 03/11] Updating github-config --- .github/workflows/create-draft-release.yml | 3 +-- .github/workflows/test-pull-request.yml | 3 +-- scripts/.util/git.sh | 21 -------------------- scripts/integration.sh | 23 ++++++++++------------ 4 files changed, 12 insertions(+), 38 deletions(-) delete mode 100644 scripts/.util/git.sh diff --git a/.github/workflows/create-draft-release.yml b/.github/workflows/create-draft-release.yml index 481e28d..8474cab 100644 --- a/.github/workflows/create-draft-release.yml +++ b/.github/workflows/create-draft-release.yml @@ -53,9 +53,8 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Run Integration Tests - run: ./scripts/integration.sh --use-token --builder ${{ matrix.builder }} + run: ./scripts/integration.sh --builder ${{ matrix.builder }} --token ${{ github.token }} env: - GIT_TOKEN: ${{ github.token }} TMPDIR: "${{ runner.temp }}" release: diff --git a/.github/workflows/test-pull-request.yml b/.github/workflows/test-pull-request.yml index 487e1a2..6574ff7 100644 --- a/.github/workflows/test-pull-request.yml +++ b/.github/workflows/test-pull-request.yml @@ -55,9 +55,8 @@ jobs: uses: actions/checkout@v3 - name: Run Integration Tests - run: ./scripts/integration.sh --use-token --builder ${{ matrix.builder }} + run: ./scripts/integration.sh --builder ${{ matrix.builder }} --token ${{ github.token }} env: - GIT_TOKEN: ${{ github.token }} TMPDIR: "${{ runner.temp }}" roundup: diff --git a/scripts/.util/git.sh b/scripts/.util/git.sh deleted file mode 100644 index 71965bc..0000000 --- a/scripts/.util/git.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env bash - -set -eu -set -o pipefail - -# shellcheck source=SCRIPTDIR/print.sh -source "$(dirname "${BASH_SOURCE[0]}")/print.sh" - -function util::git::token::fetch() { - if [[ -z "${GIT_TOKEN:-""}" ]]; then - util::print::title "Fetching GIT_TOKEN" - - GIT_TOKEN="$( - lpass show Shared-CF\ Buildpacks/concourse-private.yml \ - | grep buildpacks-github-token \ - | cut -d ' ' -f 2 - )" - fi - - printf "%s" "${GIT_TOKEN}" -} diff --git a/scripts/integration.sh b/scripts/integration.sh index 13a5635..8e98b15 100755 --- a/scripts/integration.sh +++ b/scripts/integration.sh @@ -19,15 +19,12 @@ source "${PROGDIR}/.util/git.sh" source "${PROGDIR}/.util/builders.sh" function main() { - local builderArray + local builderArray token builderArray=() + token="" + while [[ "${#}" != 0 ]]; do case "${1}" in - --use-token|-t) - shift 1 - token::fetch - ;; - --help|-h) shift 1 usage @@ -39,6 +36,11 @@ function main() { shift 2 ;; + --token|-t) + token="${2}" + shift 2 + ;; + "") # skip if the argument is empty shift 1 @@ -53,7 +55,7 @@ function main() { util::print::warn "** WARNING No Integration tests **" fi - tools::install "${GIT_TOKEN:-}" + tools::install "${token}" if [ ${#builderArray[@]} -eq 0 ]; then util::print::title "No builders provided. Finding builders in integration.json..." @@ -93,9 +95,9 @@ Runs the integration test suite. OPTIONS --help -h prints the command usage - --use-token -t use GIT_TOKEN from lastpass --builder -b sets the name of the builder(s) that are pulled / used for testing. Defaults to "builders" array in integration.json, if present. + --token Token used to download assets from GitHub (e.g. jam, pack, etc) (optional) USAGE } @@ -144,11 +146,6 @@ function builder_images::pull() { docker pull "${lifecycle_image}" } -function token::fetch() { - GIT_TOKEN="$(util::git::token::fetch)" - export GIT_TOKEN -} - function tests::run() { util::print::title "Run Buildpack Runtime Integration Tests" util::print::info "Using ${1} as builder..." From f2dfcb5da03e1643c05b3b38e6453e4f26c092d2 Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Thu, 9 Nov 2023 13:38:00 +0000 Subject: [PATCH 04/11] Updating github-config --- scripts/.util/tools.json | 2 +- scripts/integration.sh | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/.util/tools.json b/scripts/.util/tools.json index bce6071..46bdfc0 100644 --- a/scripts/.util/tools.json +++ b/scripts/.util/tools.json @@ -1,5 +1,5 @@ { "createpackage": "v1.67.2", "jam": "v2.6.0", - "pack": "v0.31.0" + "pack": "v0.32.0" } diff --git a/scripts/integration.sh b/scripts/integration.sh index 8e98b15..46ffbdb 100755 --- a/scripts/integration.sh +++ b/scripts/integration.sh @@ -12,9 +12,6 @@ source "${PROGDIR}/.util/tools.sh" # shellcheck source=SCRIPTDIR/.util/print.sh source "${PROGDIR}/.util/print.sh" -# shellcheck source=SCRIPTDIR/.util/git.sh -source "${PROGDIR}/.util/git.sh" - # shellcheck source=SCRIPTDIR/.util/builders.sh source "${PROGDIR}/.util/builders.sh" From d89b70aa272d96ced0a9680cf4546222a7d2e58b Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Tue, 14 Nov 2023 13:38:07 +0000 Subject: [PATCH 05/11] Updating github-config --- scripts/.util/tools.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/.util/tools.json b/scripts/.util/tools.json index 46bdfc0..7dc13f1 100644 --- a/scripts/.util/tools.json +++ b/scripts/.util/tools.json @@ -1,5 +1,5 @@ { "createpackage": "v1.67.2", - "jam": "v2.6.0", + "jam": "v2.7.0", "pack": "v0.32.0" } From 47d18520ec38d31c6aa0b7a489ab13d790fdcbed Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Thu, 16 Nov 2023 13:38:43 +0000 Subject: [PATCH 06/11] Updating github-config --- scripts/.util/tools.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/.util/tools.json b/scripts/.util/tools.json index 7dc13f1..082d016 100644 --- a/scripts/.util/tools.json +++ b/scripts/.util/tools.json @@ -1,5 +1,5 @@ { "createpackage": "v1.67.2", "jam": "v2.7.0", - "pack": "v0.32.0" + "pack": "v0.32.1" } From 55d4af3546c44810187e6388c2d8dbcdfd47095c Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Tue, 21 Nov 2023 13:38:23 +0000 Subject: [PATCH 07/11] Updating github-config --- scripts/.util/tools.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/.util/tools.json b/scripts/.util/tools.json index 082d016..c9ad9c5 100644 --- a/scripts/.util/tools.json +++ b/scripts/.util/tools.json @@ -1,5 +1,5 @@ { - "createpackage": "v1.67.2", + "createpackage": "v1.68.0", "jam": "v2.7.0", "pack": "v0.32.1" } From dd5425337bffe96c87240f616d74be2718b17293 Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Sat, 20 Jan 2024 13:38:13 +0000 Subject: [PATCH 08/11] Updating github-config --- scripts/.util/tools.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/.util/tools.json b/scripts/.util/tools.json index c9ad9c5..d0bb37a 100644 --- a/scripts/.util/tools.json +++ b/scripts/.util/tools.json @@ -1,5 +1,5 @@ { - "createpackage": "v1.68.0", + "createpackage": "v1.68.1", "jam": "v2.7.0", "pack": "v0.32.1" } From a44463ba301e0dec3097b1b074e068858012d51d Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Wed, 7 Feb 2024 13:40:46 +0000 Subject: [PATCH 09/11] Updating github-config --- scripts/.util/tools.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/.util/tools.json b/scripts/.util/tools.json index d0bb37a..f6d36ce 100644 --- a/scripts/.util/tools.json +++ b/scripts/.util/tools.json @@ -1,5 +1,5 @@ { "createpackage": "v1.68.1", "jam": "v2.7.0", - "pack": "v0.32.1" + "pack": "v0.33.0" } From 1d14994a351a3044d811d2f58eb57b6dd7bd9de7 Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Thu, 8 Feb 2024 13:38:45 +0000 Subject: [PATCH 10/11] Updating github-config --- scripts/.util/tools.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/.util/tools.json b/scripts/.util/tools.json index f6d36ce..27bf5a5 100644 --- a/scripts/.util/tools.json +++ b/scripts/.util/tools.json @@ -1,5 +1,5 @@ { "createpackage": "v1.68.1", "jam": "v2.7.0", - "pack": "v0.33.0" + "pack": "v0.33.1" } From 8ce512af6e336bb13091d5ba7dc7e0efd40db426 Mon Sep 17 00:00:00 2001 From: Tim Hitchener Date: Mon, 12 Feb 2024 15:10:42 +0000 Subject: [PATCH 11/11] Add experimental flag --- scripts/integration.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/integration.sh b/scripts/integration.sh index 46ffbdb..4836392 100755 --- a/scripts/integration.sh +++ b/scripts/integration.sh @@ -147,6 +147,7 @@ function tests::run() { util::print::title "Run Buildpack Runtime Integration Tests" util::print::info "Using ${1} as builder..." + pack config experimental true export CGO_ENABLED=0 pushd "${BUILDPACKDIR}" > /dev/null if GOMAXPROCS="${GOMAXPROCS:-4}" go test -count=1 -timeout 0 ./integration/... -v -run Integration | tee "${2}"; then