From 8064f238641388afedc410d77dbbd20da56862e9 Mon Sep 17 00:00:00 2001 From: Justin Kolberg Date: Fri, 25 Oct 2024 12:06:38 -0700 Subject: [PATCH] wait for packages to be indexed before testing Signed-off-by: Justin Kolberg --- .github/workflows/_reusable_build_package.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_reusable_build_package.yml b/.github/workflows/_reusable_build_package.yml index c7b71034..25a8bb04 100644 --- a/.github/workflows/_reusable_build_package.yml +++ b/.github/workflows/_reusable_build_package.yml @@ -80,7 +80,7 @@ jobs: - name: Download packagecloud-go tool run: | baseURL="https://github.com/amdprophet/packagecloud-go/releases/download" - version="0.1.5" + version="0.2.0" file="packagecloud-go_${version}_linux_amd64.tar.gz" curl -Lo /tmp/packagecloud-go.tar.gz $baseURL/$version/$file @@ -235,6 +235,15 @@ jobs: target: publish-package packagecloud-token: ${{ secrets.PACKAGECLOUD_TOKEN }} + - name: Wait for Packagecloud packages to be indexed + if: runner.os == 'Linux' + run: > + packagecloud-go search sumologic/ci-builds + --query ${{ inputs.otc_version }}-${{ inputs.otc_build_number }} + --wait-for-indexing + --wait-seconds 5 + --wait-max-retries 12 + test_package: runs-on: ${{ inputs.runs_on }} name: Test (CMake)