Skip to content

Misc github actions improve#1253

Open
hzxuzhonghu wants to merge 6 commits into
volcano-sh:mainfrom
hzxuzhonghu:workflow-improve
Open

Misc github actions improve#1253
hzxuzhonghu wants to merge 6 commits into
volcano-sh:mainfrom
hzxuzhonghu:workflow-improve

Conversation

@hzxuzhonghu

@hzxuzhonghu hzxuzhonghu commented Jun 25, 2026

Copy link
Copy Markdown
Member

What type of PR is this?

/kind test

What this PR does / why we need it:

  1. Make all the workflow filter run with action, so we can change the github setting to make the check a must, currently we donot have a required check for all the tests. Even test failed, a pr can be merged.
  2. Added trigger for pull request torward release branch
  3. removed some tests after push to main branch, we donot allow directly push.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


Copilot AI review requested due to automatic review settings June 25, 2026 06:37
@volcano-sh-bot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from hzxuzhonghu. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates GitHub Actions workflows to better support release-branch pull requests and introduces a workflow-level gating pattern (via paths-filter) to avoid running E2E jobs when unrelated files change, while still producing a passing check.

Changes:

  • Extend multiple CI workflows to trigger on pull requests targeting release-* branches.
  • Update the E2E workflow to always run a lightweight “changes” job and conditionally run the E2E matrix only when relevant files changed.
  • Minor YAML normalization (quoting / formatting) across several workflows.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
.github/workflows/python-tests.yml Adds release-branch PR triggering for Python tests.
.github/workflows/python-lint.yml Adds release-branch PR triggering for Python lint.
.github/workflows/go-tests.yml Adds release-branch PR triggering for Go unit tests; minor quoting changes.
.github/workflows/go-check.yml Adds release-branch PR triggering for Go checks.
.github/workflows/e2e-tests.yml Introduces paths-filter gating to skip E2E matrix when irrelevant, while keeping a passing workflow run.
.github/workflows/docs-tests.yml Adds release-branch PR triggering for docs tests; minor quoting changes.
.github/workflows/codespell.yaml Adds release-branch PR triggering for codespell.
.github/workflows/build-push-release.yml Adds release-branch PR triggering; minor formatting/quoting changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/python-tests.yml Outdated
Comment thread .github/workflows/python-lint.yml Outdated
Comment thread .github/workflows/go-tests.yml Outdated
Comment on lines 3 to 7
pull_request:
branches:
- main
- "release-**"
paths:
Comment thread .github/workflows/go-check.yml Outdated
Comment on lines 4 to 8
pull_request:
branches:
- main
- "release-**"
paths-ignore:
Comment on lines 5 to +9
pull_request:
branches:
- main
paths:
- "pkg/**"
- "cmd/**"
- "test/**"
- "config/**"
- "charts/**"
- "docker/**"
- "hack/**"
- "go.mod"
- "go.sum"
- "Makefile"
- ".github/workflows/e2e-tests.yml"
- "release-**"

Comment thread .github/workflows/e2e-tests.yml
Comment thread .github/workflows/docs-tests.yml Outdated
Comment thread .github/workflows/codespell.yaml
Comment thread .github/workflows/build-push-release.yml Outdated
Copilot AI review requested due to automatic review settings June 25, 2026 07:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Comment thread .github/workflows/go-tests.yml Outdated
Comment on lines 7 to 10
paths:
- '**.go'
- "**.go"
- "pkg/**"
- "cmd/**"
Comment thread .github/workflows/go-tests.yml Outdated
Comment on lines 17 to 20
paths:
- '**.go'
- "**.go"
- "pkg/**"
- "cmd/**"
Comment thread .github/workflows/build-push-release.yml
Copilot AI review requested due to automatic review settings June 25, 2026 08:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

Comment on lines +23 to +32
predicate-quantifier: every
filters: |
go_check:
- "**"
- "!**.md"
- "!**.svg"
- "!**.png"
- "!docs/**"
- "!.github/**"

Comment thread .github/workflows/licenses-lint.yaml Outdated
with:
predicate-quantifier: every
filters: |
go_check:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I modify both the Go file and these files, will this workflow be triggered?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

either one matches, it will be triggered

@hzxuzhonghu

Copy link
Copy Markdown
Member Author

/hold

Lets do this after release-1.0

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.

Comment thread .github/workflows/licenses-lint.yaml Outdated
Comment on lines +22 to +24
with:
predicate-quantifier: every
filters: |
Comment on lines 81 to +86
build_images:
needs: setup
runs-on: ${{ matrix.os }}
permissions:
contents: read
packages: write
Signed-off-by: Zhonghu Xu <xuzhonghu@huawei.com>
Signed-off-by: Zhonghu Xu <xuzhonghu@huawei.com>
Signed-off-by: Zhonghu Xu <xuzhonghu@huawei.com>
Signed-off-by: Zhonghu Xu <xuzhonghu@huawei.com>
Signed-off-by: Zhonghu Xu <xuzhonghu@huawei.com>
Signed-off-by: Zhonghu Xu <xuzhonghu@huawei.com>
@hzxuzhonghu

Copy link
Copy Markdown
Member Author

@LiZhenCheng9527 Ready to review

@hzxuzhonghu

Copy link
Copy Markdown
Member Author

@LiZhenCheng9527

@nXtCyberNet

Copy link
Copy Markdown
Contributor

Hi I also have a small question, currently if any user do /retest even if it's not the member in the org the e2e cycles restarted so I just want to know if it's intentional or not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants