Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
yanhb-nil committed Dec 27, 2024
2 parents a47b079 + 26d67ed commit 7948418
Show file tree
Hide file tree
Showing 151 changed files with 4,163 additions and 1,247 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/ci-failure.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CI failure
description: Report continuously failing tests or jobs in CI
labels: ["kind/ci-bug"]
assignees: ["ty-dc"]
assignees: ["cyclinder"]
body:
- type: textarea
id: jobs
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/usage.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Support
description: Support request or question relating to Spiderpool
labels: ["kind/support"]
assignees: ['ty-dc']
assignees: ['cyclinder']
body:
- type: markdown
attributes:
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/auto-diff-k8s-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ env:
CLUSTER_NAME: spider
E2E_TIME_OUT: 60m
PR_LABEL: pr/dependabot/github-actions, release/none
PR_REVIWER: weizhoublue, ty-dc
PR_REVIWER: weizhoublue, cyclinder
# The range of K8s versions that matrix tests expect to run. All distributions larger than it will be picked to run.
MINIMUM_K8S_VERSION: v1.21
# TODO(ty-dc), refer: https://github.com/spidernet-io/spiderpool/issues/3937
# Currently using kind/node v1.31, it is not possible to setup kind cluster
PENDING_K8S_VERSION: v1.31
K8S_MATRIX_FILE_PATH: .github/workflows/auto-diff-k8s-ci.yaml
Expand Down Expand Up @@ -170,7 +169,7 @@ jobs:
title: "robot updates kind node version in k8s matrix test"
commit-message: "robot updates kind node version in k8s matrix test"
branch-suffix: timestamp
committer: ty-dc <tao.yang@daocloud.io>
committer: weizhoublue<weizhou.lan@daocloud.io>
branch: robot/update_doc
delete-branch: true
signoff: true
Expand Down Expand Up @@ -217,7 +216,7 @@ jobs:
body: |
action url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
labels: "kind/ci-bug"
assignees: "ty-dc"
assignees: "weizhoublue"

call_inputs_k8s:
# workflow_dispatch event flow triggered by running the input k8s version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-nightly-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,4 +206,4 @@ jobs:
body: |
action url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
labels: "kind/ci-bug"
assignees: "ty-dc"
assignees: "weizhoublue"
2 changes: 1 addition & 1 deletion .github/workflows/auto-update-authors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
title: "robot updates Spiderpool authors on tag: ${{ env.REF }}"
commit-message: "robot updates Spiderpool authors on tag: ${{ env.REF }}"
branch-suffix: timestamp
committer: ty-dc <tao.yang@daocloud.io>
committer: weizhoublue<weizhou.lan@daocloud.io>
branch: robot/update_doc
delete-branch: true
signoff: true
Expand Down
33 changes: 11 additions & 22 deletions .github/workflows/auto-upgrade-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,19 +208,13 @@ jobs:
run: |
bash ./test/scripts/install-tools.sh
- name: Download old spiderpool-agent image with tag ${{ needs.call_build_old_ci_image.outputs.imageTag }}
- name: Download old spiderpool-agent and spiderpool-controller image with tag ${{ needs.call_build_old_ci_image.outputs.imageTag }}
if: ${{ needs.get_ref.outputs.build_old_image_tag == 'true' }}
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.8
with:
name: old-image-tar-spiderpool-agent
path: test/.download

- name: Download old spiderpool-controller image with tag ${{ needs.call_build_old_ci_image.outputs.imageTag }}
if: ${{ needs.get_ref.outputs.build_old_image_tag == 'true' }}
uses: actions/download-artifact@v3
with:
name: old-image-tar-spiderpool-controller
path: test/.download
merge-multiple: true
pattern: old-image-tar-spiderpool-*-${{ needs.call_build_old_ci_image.outputs.imageTag }}

- name: Load Images
if: ${{ needs.get_ref.outputs.build_old_image_tag == 'true' }}
Expand Down Expand Up @@ -303,17 +297,12 @@ jobs:
mkdir -p ${{ env.KUBECONFIG_PATH }}/${{ env.E2E_CLUSTER_NAME }}/.kube/
cp -r /tmp/config ${{ env.KUBECONFIG_PATH }}/${{ env.E2E_CLUSTER_NAME }}/.kube/config
- name: Download new spiderpool-agent image with tag ${{ needs.call_build_new_ci_image.outputs.imageTag }}
uses: actions/download-artifact@v3
with:
name: new-image-tar-spiderpool-agent
path: test/.download

- name: Download new spiderpool-controller image with tag ${{ needs.call_build_new_ci_image.outputs.imageTag }}
uses: actions/download-artifact@v3
- name: Download new spiderpool-agent and spiderpool-controller image with tag ${{ needs.call_build_new_ci_image.outputs.imageTag }}
uses: actions/[email protected]
with:
name: new-image-tar-spiderpool-controller
path: test/.download
pattern: new-image-tar-spiderpool-*-${{ needs.call_build_new_ci_image.outputs.imageTag }}
merge-multiple: true

- name: Load Images with tag ${{ needs.call_build_new_ci_image.outputs.imageTag }}
run: |
Expand Down Expand Up @@ -382,15 +371,15 @@ jobs:
- name: Upload e2e log
if: ${{ needs.get_ref.outputs.e2e_enabled == 'true' }}
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4.5.0
with:
name: ${{ needs.get_ref.outputs.old_version }}-to-${{ needs.get_ref.outputs.new_version }}-debuglog.txt
path: test/e2edebugLog.txt
retention-days: 7

- name: Upload e2e report
if: ${{ env.UPLOAD_E2E_REPORT == 'true' }}
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4.5.0
with:
name: ${{ needs.get_ref.outputs.old_version }}-to-${{ needs.get_ref.outputs.new_version }}-e2ereport.json
path: e2ereport.json
Expand Down Expand Up @@ -424,4 +413,4 @@ jobs:
body: |
action url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
labels: "kind/ci-bug"
assignees: "ty-dc"
assignees: "cyclinder"
4 changes: 2 additions & 2 deletions .github/workflows/auto-version-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download Chart Artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.8
with:
name: ${{ needs.release-chart.outputs.artifact }}
path: chart-package/

- name: Download Changelog Artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.8
with:
name: ${{ needs.release-changelog.outputs.artifact }}
path: changelog-result/
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/build-image-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.7.1
uses: docker/setup-buildx-action@v3.8.0

- name: Inspect builder
run: |
Expand Down Expand Up @@ -131,9 +131,9 @@ jobs:
- name: Upload artifact digests
if: ${{ env.exists == 'false' }}
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4.5.0
with:
name: image-digest ${{ env.IMAGE_NAME }}
name: image-digest-${{ env.IMAGE_NAME }}-${{ env.tag }}
path: image-digest
retention-days: 1

Expand All @@ -148,9 +148,11 @@ jobs:
mkdir -p image-digest/
- name: Download digests of all images built
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.8
with:
path: image-digest/
pattern: image-digest-${{ env.IMAGE_NAME }}-${{ env.tag }}
merge-multiple: true

- name: Image Digests Output
shell: bash
Expand Down
21 changes: 8 additions & 13 deletions .github/workflows/build-image-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:

steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.7.1
uses: docker/setup-buildx-action@v3.8.0

# commit sha is used for image tag
- name: Getting image tag
Expand Down Expand Up @@ -250,17 +250,17 @@ jobs:
# Upload artifact digests
- name: Upload artifact digests
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4.5.0
with:
name: image-digest-${{ matrix.name }}
name: image-digest-${{ matrix.name }}-${{ env.tag }}
path: image-digest
retention-days: 1

# Upload artifact race images tar
- name: Upload artifact race image tar
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4.5.0
with:
name: ${{ inputs.imageTarName }}-${{ matrix.name }}
name: ${{ inputs.imageTarName }}-${{ matrix.name }}-${{ env.tag }}
path: /tmp/${{ matrix.name }}-race.tar
retention-days: 1

Expand Down Expand Up @@ -301,16 +301,11 @@ jobs:
mkdir -p image-digest/
- name: Download digests of all images built
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.8
with:
pattern: image-digest-spiderpool-*-${{ needs.build_and_push_prs.outputs.imageTag }}
path: image-digest/
name: image-digest-spiderpool-agent

- name: Download digests of all images built
uses: actions/download-artifact@v3
with:
path: image-digest/
name: image-digest-spiderpool-controller
merge-multiple: true

- name: Image Digests Output
shell: bash
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/build-image-plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.7.1
uses: docker/setup-buildx-action@v3.8.0

- name: Inspect builder
run: |
Expand Down Expand Up @@ -131,9 +131,9 @@ jobs:
- name: Upload artifact digests
if: ${{ env == 'false' }}
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4.5.0
with:
name: image-digest ${{ env.IMAGE_NAME }}
name: image-digest-${{ env.IMAGE_NAME }}-${{ steps.arg.outputs.image_tag }}
path: image-digest
retention-days: 1

Expand All @@ -148,9 +148,11 @@ jobs:
mkdir -p image-digest/
- name: Download digests of all images built
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.8
with:
path: image-digest/
pattern: image-digest-${{ env.IMAGE_NAME }}-*
merge-multiple: true

- name: Image Digests Output
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/call-lint-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
# https://github.com/helm/kind-action
- name: Create Kind cluster
if: ${{ env.changed == 'true' }}
uses: helm/kind-action@v1.10.0
uses: helm/kind-action@v1.12.0
with:
wait: 120s

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/call-release-changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ jobs:
cat ${FILE_PATH}
- name: Upload Changelog
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4.5.0
with:
name: changelog_artifact
name: changelog_artifact_${{ env.RUN_dest_tag }}
path: ${{ env.FILE_PATH }}
retention-days: 1
if-no-files-found: error
Expand All @@ -126,9 +126,9 @@ jobs:
ref: ${{ env.DEST_BRANCH }}

- name: Download Artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.8
with:
name: changelog_artifact
pattern: changelog_artifact_${{ needs.generate_changelog.outputs.dest_tag }}
path: ${{ env.DEST_DIRECTORY }}

- uses: crazy-max/ghaction-import-gpg@v6
Expand All @@ -144,7 +144,7 @@ jobs:
with:
title: "robot update changelog with tag ${{ needs.generate_changelog.outputs.dest_tag }} to branch ${{ env.DEST_BRANCH }} "
commit-message: "robot update changelog from tag ${{ needs.generate_changelog.outputs.begin_tag }} to tag ${{ needs.generate_changelog.outputs.dest_tag }} "
committer: ty-dc <tao.yang@daocloud.io>
committer: weizhoublue<weizhou.lan@daocloud.io>
branch-suffix: timestamp
branch: robot/update_changelog
delete-branch: true
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/call-release-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ jobs:
mv charts/*.tgz tmp
- name: Upload Artifact
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4.5.0
with:
name: chart_package_artifact
name: chart_package_artifact_${{ needs.get_ref.outputs.ref }}
path: tmp/*
retention-days: 1
if-no-files-found: error
Expand All @@ -115,9 +115,9 @@ jobs:
persist-credentials: "true"

- name: Download Artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.8
with:
name: chart_package_artifact
pattern: chart_package_artifact_${{ needs.get_ref.outputs.ref }}
path: charts/

- name: Update Chart Yaml
Expand All @@ -139,7 +139,7 @@ jobs:
commit-message: "robot Update chart from ${{ needs.get_ref.outputs.ref }} to branch ${{ env.MERGE_BRANCH }} "
branch-suffix: timestamp
branch: robot/update_chart
committer: ty-dc <tao.yang@daocloud.io>
committer: weizhoublue<weizhou.lan@daocloud.io>
delete-branch: true
base: ${{ env.MERGE_BRANCH }}
signoff: true
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/call-release-doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ env:
MERGE_BRANCH: github_pages
DEV_DOC_DIRECTORY: dev
PR_LABEL: pr/release/robot_update_githubpage
PR_REVIWER: ty-dc
PR_REVIWER: weizhoublue

jobs:
release_doc:
Expand Down Expand Up @@ -133,9 +133,9 @@ jobs:
echo "Push a doc version: ${{ env.DOCS_TAG }} from branch: ${{ env.REF }}, update it to latest: ${{ env.SET_LATEST }} "
- name: Upload Artifact
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4.5.0
with:
name: website_package_artifact
name: website_package_artifact_${{ env.REF }}
path: site.tar.gz
retention-days: 0
if-no-files-found: error
Expand All @@ -152,9 +152,11 @@ jobs:
fetch-depth: 0

- name: Download Artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.8
with:
name: website_package_artifact
pattern: website_package_artifact_${{ needs.release_doc.outputs.ref }}
path: ./
merge-multiple: true

- name: Untar Doc
run: |
Expand All @@ -176,7 +178,7 @@ jobs:
title: "robot update website from ${{ needs.release_doc.outputs.ref }} to branch ${{ env.MERGE_BRANCH }} with tag ${{ needs.release_doc.outputs.doc_tag }}"
commit-message: "robot update website from ${{ needs.release_doc.outputs.ref }} to branch ${{ env.MERGE_BRANCH }} with tag ${{ needs.release_doc.outputs.doc_tag }}"
branch-suffix: timestamp
committer: ty-dc <tao.yang@daocloud.io>
committer: weizhoublue<weizhou.lan@daocloud.io>
branch: robot/update_doc
delete-branch: true
base: ${{ env.MERGE_BRANCH }}
Expand Down
Loading

0 comments on commit 7948418

Please sign in to comment.