4ebdb077b5
Bumps the github-actions group with 7 updates in the / directory: | Package | From | To | | --- | --- | --- | | [github/codeql-action](https://github.com/github/codeql-action) | `3.30.3` | `4.31.0` | | [actions/dependency-review-action](https://github.com/actions/dependency-review-action) | `4.7.3` | `4.8.1` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `4.6.2` | `5.0.0` | | [docker/login-action](https://github.com/docker/login-action) | `3.5.0` | `3.6.0` | | [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) | `3.10.0` | `4.0.0` | | [anchore/sbom-action](https://github.com/anchore/sbom-action) | `0.20.5` | `0.20.9` | | [ossf/scorecard-action](https://github.com/ossf/scorecard-action) | `2.4.2` | `2.4.3` | Updates `github/codeql-action` from 3.30.3 to 4.31.0 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/192325c86100d080feab897ff886c34abd4c83a3...4e94bd11f71e507f7f87df81788dff88d1dacbfb) Updates `actions/dependency-review-action` from 4.7.3 to 4.8.1 - [Release notes](https://github.com/actions/dependency-review-action/releases) - [Commits](https://github.com/actions/dependency-review-action/compare/595b5aeba73380359d98a5e087f648dbb0edce1b...40c09b7dc99638e5ddb0bfd91c1673effc064d8a) Updates `actions/upload-artifact` from 4.6.2 to 5.0.0 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/ea165f8d65b6e75b540449e92b4886f43607fa02...330a01c490aca151604b8cf639adc76d48f6c5d4) Updates `docker/login-action` from 3.5.0 to 3.6.0 - [Release notes](https://github.com/docker/login-action/releases) - [Commits](https://github.com/docker/login-action/compare/184bdaa0721073962dff0199f1fb9940f07167d1...5e57cd118135c172c3672efd75eb46360885c0ef) Updates `sigstore/cosign-installer` from 3.10.0 to 4.0.0 - [Release notes](https://github.com/sigstore/cosign-installer/releases) - [Commits](https://github.com/sigstore/cosign-installer/compare/d7543c93d881b35a8faa02e8e3605f69b7a1ce62...faadad0cce49287aee09b3a48701e75088a2c6ad) Updates `anchore/sbom-action` from 0.20.5 to 0.20.9 - [Release notes](https://github.com/anchore/sbom-action/releases) - [Changelog](https://github.com/anchore/sbom-action/blob/main/RELEASE.md) - [Commits](https://github.com/anchore/sbom-action/compare/da167eac915b4e86f08b264dbdbc867b61be6f0c...8e94d75ddd33f69f691467e42275782e4bfefe84) Updates `ossf/scorecard-action` from 2.4.2 to 2.4.3 - [Release notes](https://github.com/ossf/scorecard-action/releases) - [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md) - [Commits](https://github.com/ossf/scorecard-action/compare/05b42c624433fc40578a4040d5cf5e36ddca8cde...4eaacf0543bb3f2c246792bd56e8cdeffafb205a) --- updated-dependencies: - dependency-name: github/codeql-action dependency-version: 4.31.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/dependency-review-action dependency-version: 4.8.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/upload-artifact dependency-version: 5.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: docker/login-action dependency-version: 3.6.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: sigstore/cosign-installer dependency-version: 4.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: anchore/sbom-action dependency-version: 0.20.9 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: ossf/scorecard-action dependency-version: 2.4.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
333 lines
10 KiB
YAML
333 lines
10 KiB
YAML
name: Fission CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- '!dependabot/**'
|
|
paths:
|
|
- "**.go"
|
|
- "charts/**"
|
|
- "test/**"
|
|
- go.mod
|
|
- go.sum
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "**.go"
|
|
- "charts/**"
|
|
- "test/**"
|
|
- go.mod
|
|
- go.sum
|
|
|
|
env:
|
|
HELM_VERSION: v3.16.4
|
|
KIND_VERSION: v0.26.0
|
|
KIND_CLUSTER_NAME: kind
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: fission-ci-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
# Job to run change detection
|
|
integration-test:
|
|
runs-on: ${{ matrix.os }}
|
|
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-ci') }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
kindversion: ["v1.28.15", "v1.30.8", "v1.32.0"]
|
|
os: [ubuntu-24.04]
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
|
|
with:
|
|
egress-policy: audit
|
|
|
|
- name: Checkout sources
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
|
|
- name: setup go
|
|
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
|
|
with:
|
|
go-version-file: "go.mod"
|
|
cache: true
|
|
|
|
- name: Checkout sources
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
with:
|
|
repository: fission/examples
|
|
path: examples
|
|
|
|
- name: Helm installation
|
|
uses: Azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1
|
|
with:
|
|
version: ${{ env.HELM_VERSION }}
|
|
|
|
- name: Kind Cluster
|
|
uses: helm/kind-action@a1b0e391336a6ee6713a0583f8c6240d70863de3 # v1.12.0
|
|
with:
|
|
node_image: kindest/node:${{ matrix.kindversion }}
|
|
version: ${{ env.KIND_VERSION }}
|
|
cluster_name: ${{ env.KIND_CLUSTER_NAME }}
|
|
config: kind.yaml
|
|
|
|
- name: Configuring and testing the Installation
|
|
run: |
|
|
kubectl cluster-info --context kind-${{ env.KIND_CLUSTER_NAME }}
|
|
kubectl get nodes
|
|
sudo apt-get install -y apache2-utils
|
|
kubectl config use-context kind-${{ env.KIND_CLUSTER_NAME }}
|
|
kubectl config view
|
|
|
|
- name: Helm chart lint
|
|
run: |
|
|
helm lint charts/fission-all/
|
|
|
|
- name: Install Skaffold
|
|
run: |
|
|
curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/v2.14.0/skaffold-linux-amd64
|
|
sudo install skaffold /usr/local/bin/
|
|
skaffold version
|
|
|
|
- name: Install GoReleaser
|
|
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
|
|
with:
|
|
install-only: true
|
|
version: "~> v2"
|
|
|
|
- name: Setup Prometheus Stack
|
|
run: |
|
|
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
|
|
helm repo update
|
|
kubectl create ns monitoring
|
|
helm install prometheus prometheus-community/kube-prometheus-stack -n monitoring \
|
|
--version 45.28.0 --set grafana.enabled=false --set alertmanager.enabled=false
|
|
|
|
- name: Build and Install Fission CLI
|
|
run: |
|
|
make debug-vars
|
|
make build-fission-cli
|
|
sudo make install-fission-cli
|
|
sudo chmod +x /usr/local/bin/fission
|
|
|
|
- name: Build and Install Fission
|
|
timeout-minutes: 10
|
|
run: |
|
|
kubectl create ns fission
|
|
make create-crds
|
|
SKAFFOLD_PROFILE=kind-ci make skaffold-deploy
|
|
|
|
- name: Port-forward fission components
|
|
run: |
|
|
kubectl port-forward svc/router 8888:80 -nfission &
|
|
|
|
- name: Get fission version
|
|
timeout-minutes: 10
|
|
run: |
|
|
fission version
|
|
|
|
- name: Integration tests
|
|
timeout-minutes: 90
|
|
run: ./test/kind_CI.sh
|
|
|
|
- name: Collect Fission Dump
|
|
timeout-minutes: 5
|
|
if: ${{ always() }}
|
|
run: |
|
|
command -v fission && fission support dump
|
|
|
|
- name: Kind export logs
|
|
timeout-minutes: 10
|
|
if: ${{ always() }}
|
|
run: |
|
|
kind export logs --name ${{ env.KIND_CLUSTER_NAME }} kind-logs
|
|
|
|
- name: Backup prometheus data
|
|
timeout-minutes: 10
|
|
if: ${{ always() }}
|
|
run: |
|
|
TRACE=1 ./hack/backup-prometheus.sh
|
|
|
|
- name: Archive fission dump
|
|
timeout-minutes: 10
|
|
if: ${{ failure() || cancelled() }}
|
|
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
|
with:
|
|
name: fission-dump-${{ github.run_id }}-${{ matrix.kindversion }}
|
|
path: fission-dump/*.zip
|
|
retention-days: 5
|
|
|
|
- name: Archive prometheus dump
|
|
timeout-minutes: 10
|
|
if: ${{ always() }}
|
|
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
|
with:
|
|
name: prom-dump-${{ github.run_id }}-${{ matrix.kindversion }}
|
|
path: /tmp/prometheus/*
|
|
retention-days: 5
|
|
|
|
- name: Archive kind logs
|
|
timeout-minutes: 10
|
|
if: ${{ always() }}
|
|
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
|
with:
|
|
name: kind-logs-${{ github.run_id }}-${{ matrix.kindversion }}
|
|
path: kind-logs/*
|
|
retention-days: 5
|
|
|
|
# Job to ensure backward compatibility if function and builder pods are created
|
|
# inside functionNamespace and builderNamespace
|
|
integration-test-old:
|
|
runs-on: ${{ matrix.os }}
|
|
if: ${{ contains(github.event.pull_request.labels.*.name, 'run-old-ci') }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
kindversion: ["v1.19.16"]
|
|
os: [ubuntu-24.04]
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
|
|
with:
|
|
egress-policy: audit
|
|
|
|
- name: Checkout sources
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
|
|
- name: setup go
|
|
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
|
|
with:
|
|
go-version-file: "go.mod"
|
|
cache: true
|
|
|
|
- name: Checkout sources
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
with:
|
|
repository: fission/examples
|
|
path: examples
|
|
|
|
- name: Helm installation
|
|
uses: Azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1
|
|
with:
|
|
version: ${{ env.HELM_VERSION }}
|
|
|
|
- name: Kind Cluster
|
|
uses: helm/kind-action@a1b0e391336a6ee6713a0583f8c6240d70863de3 # v1.12.0
|
|
with:
|
|
node_image: kindest/node:${{ matrix.kindversion }}
|
|
version: ${{ env.KIND_VERSION }}
|
|
cluster_name: ${{ env.KIND_CLUSTER_NAME }}
|
|
config: kind.yaml
|
|
|
|
- name: Configuring and testing the Installation
|
|
run: |
|
|
kubectl cluster-info --context kind-${{ env.KIND_CLUSTER_NAME }}
|
|
kubectl get nodes
|
|
sudo apt-get install -y apache2-utils
|
|
kubectl config use-context kind-${{ env.KIND_CLUSTER_NAME }}
|
|
kubectl config view
|
|
|
|
- name: Helm chart lint
|
|
run: |
|
|
helm lint charts/fission-all/
|
|
|
|
- name: Install Skaffold
|
|
run: |
|
|
curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/v2.14.0/skaffold-linux-amd64
|
|
sudo install skaffold /usr/local/bin/
|
|
skaffold version
|
|
|
|
- name: Install GoReleaser
|
|
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
|
|
with:
|
|
install-only: true
|
|
version: "~> v2"
|
|
|
|
- name: Setup Prometheus Stack
|
|
run: |
|
|
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
|
|
helm repo update
|
|
kubectl create ns monitoring
|
|
helm install prometheus prometheus-community/kube-prometheus-stack -n monitoring \
|
|
--version 45.28.0 --set grafana.enabled=false --set alertmanager.enabled=false
|
|
|
|
- name: Build and Install Fission CLI
|
|
run: |
|
|
make debug-vars
|
|
make build-fission-cli
|
|
sudo make install-fission-cli
|
|
sudo chmod +x /usr/local/bin/fission
|
|
|
|
- name: Build and Install Fission
|
|
timeout-minutes: 10
|
|
run: |
|
|
kubectl create ns fission
|
|
make create-crds
|
|
SKAFFOLD_PROFILE=kind-ci-old make skaffold-deploy
|
|
|
|
- name: Port-forward fission components
|
|
run: |
|
|
kubectl port-forward svc/router 8888:80 -nfission &
|
|
|
|
- name: Get fission version
|
|
timeout-minutes: 10
|
|
run: |
|
|
fission version
|
|
|
|
- name: Integration tests
|
|
timeout-minutes: 90
|
|
run: |
|
|
export FUNCTION_NAMESPACE=fission-function
|
|
export BUILDER_NAMESPACE=fission-builder
|
|
./test/kind_CI.sh
|
|
|
|
- name: Collect Fission Dump
|
|
timeout-minutes: 5
|
|
if: ${{ always() }}
|
|
run: |
|
|
command -v fission && fission support dump
|
|
|
|
- name: Kind export logs
|
|
timeout-minutes: 10
|
|
if: ${{ always() }}
|
|
run: |
|
|
kind export logs --name kind kind-logs
|
|
|
|
- name: Backup prometheus data
|
|
timeout-minutes: 10
|
|
if: ${{ always() }}
|
|
run: |
|
|
TRACE=1 ./hack/backup-prometheus.sh
|
|
|
|
- name: Archive fission dump
|
|
timeout-minutes: 10
|
|
if: ${{ failure() || cancelled() }}
|
|
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
|
with:
|
|
name: fission-dump-${{ github.run_id }}-${{ matrix.kindversion }}
|
|
path: fission-dump/*.zip
|
|
retention-days: 5
|
|
|
|
- name: Archive prometheus dump
|
|
timeout-minutes: 10
|
|
if: ${{ always() }}
|
|
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
|
with:
|
|
name: prom-dump-${{ github.run_id }}-${{ matrix.kindversion }}
|
|
path: /tmp/prometheus/*
|
|
retention-days: 5
|
|
|
|
- name: Archive kind logs
|
|
timeout-minutes: 10
|
|
if: ${{ always() }}
|
|
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
|
with:
|
|
name: kind-logs-${{ github.run_id }}-${{ matrix.kindversion }}
|
|
path: kind-logs/*
|
|
retention-days: 5 |