Skip to content
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
6 changes: 6 additions & 0 deletions .github/actions/check-artifact-exists/check_artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ def check_artifact_exists(artifact_name: str, token: str, repo: str, head_sha: s
while max_iterations > 0:
params['page'] = page
response = requests.get(url, headers=headers, params=params)

if response.status_code == requests.codes.forbidden:
print(f"::warning::GitHub API returned 403 when listing artifacts "
f"(name={artifact_name}, page={page}); treating as not found.")
return False

response.raise_for_status()

artifacts_data = response.json()
Expand Down
4 changes: 4 additions & 0 deletions .github/actions/create-cluster/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ inputs:
runs:
using: "composite"
steps:
- name: Free up disk space on runner
shell: bash
run: ./.github/resources/scripts/free-disk-space.sh

- name: Create k8s Kind Cluster
uses: helm/[email protected]
id: cluster-create
Expand Down
12 changes: 8 additions & 4 deletions .github/resources/scripts/collect-logs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ fi

function check_namespace {
if ! kubectl get namespace "$1" &>/dev/null; then
echo "Namespace '$1' does not exist."
exit 1
echo "Namespace '$1' does not exist. Skipping log collection."
return 1
fi
return 0
}

function display_pod_info {
Expand Down Expand Up @@ -61,5 +62,8 @@ function display_pod_info {
echo "Pod information stored in $OUTPUT_FILE"
}

check_namespace "$NS"
display_pod_info "$NS"
if check_namespace "$NS"; then
display_pod_info "$NS"
else
exit 0
fi
4 changes: 3 additions & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ RUN echo "Building for architecture: ${TARGETARCH}"

# Downloading Argo CLI so that the samples are validated
ENV ARGO_VERSION=v3.7.3
RUN curl -sLO https://github.com/argoproj/argo-workflows/releases/download/${ARGO_VERSION}/argo-linux-$TARGETARCH.gz && \
RUN curl -sL -H "Accept: application/octet-stream" \
https://github.com/argoproj/argo-workflows/releases/download/${ARGO_VERSION}/argo-linux-$TARGETARCH.gz \
-o argo-linux-$TARGETARCH.gz && \
gunzip argo-linux-$TARGETARCH.gz && \
chmod +x argo-linux-$TARGETARCH && \
mv ./argo-linux-$TARGETARCH /usr/local/bin/argo
Expand Down
3 changes: 2 additions & 1 deletion test/release/Dockerfile.release
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@ RUN chmod -R 777 $NVM_DIR && \
# Configure npm cache location
RUN npm config set cache /tmp/.npm --global

RUN curl -L https://github.com/orhun/git-cliff/releases/download/v${GIT_CLIFF_VERSION}/git-cliff-${GIT_CLIFF_VERSION}-x86_64-unknown-linux-gnu.tar.gz \
RUN curl -L -H "Accept: application/octet-stream" \
https://github.com/orhun/git-cliff/releases/download/v${GIT_CLIFF_VERSION}/git-cliff-${GIT_CLIFF_VERSION}-x86_64-unknown-linux-gnu.tar.gz \
| tar -xz --strip-components=1 -C /usr/local/bin git-cliff-${GIT_CLIFF_VERSION}/git-cliff
Loading