-
Notifications
You must be signed in to change notification settings - Fork 966
Remove automatic execution of test that require LLM inputs from merge… #184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,10 +1,12 @@ | ||||||||||||||||||||||||
| name: test | notebook | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| on: | ||||||||||||||||||||||||
| workflow_dispatch: | ||||||||||||||||||||||||
| pull_request: | ||||||||||||||||||||||||
| branches: | ||||||||||||||||||||||||
| - main | ||||||||||||||||||||||||
| workflow_dispatch: | ||||||||||||||||||||||||
| types: [labeled] | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
|
Comment on lines
+4
to
+9
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Enhance trigger conditions to prevent unnecessary workflow runs. While the changes align with the goal of preventing automatic test execution, the current trigger configuration could be improved to be more precise. Apply this diff to handle both label addition and removal, and specifically filter for the 'run-checks' label: workflow_dispatch:
pull_request:
branches:
- main
- types: [labeled]
+ types: [labeled, unlabeled]This ensures the workflow:
|
||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| concurrency: | ||||||||||||||||||||||||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||||||||||||||||||||||||
|
|
@@ -14,6 +16,8 @@ env: | |||||||||||||||||||||||
| RUNTIME__LOG_LEVEL: ERROR | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||
| if: ${{ github.event.label.name == 'run-checks' }} | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
|
||||||||||||||||||||||||
| if: ${{ github.event.label.name == 'run-checks' }} | |
| jobs: | |
| get_docs_changes: | |
| name: docs changes | |
| if: github.event.label.name == 'run-checks' || github.event_name == 'workflow_dispatch' | |
| uses: ./.github/workflows/get_docs_changes.yml | |
| run_notebook_test: | |
| name: test | |
| needs: get_docs_changes | |
| if: (github.event.label.name == 'run-checks' || github.event_name == 'workflow_dispatch') && needs.get_docs_changes.outputs.changes_outside_docs == 'true' |
🧰 Tools
🪛 actionlint
19-19: "steps" section is missing in job "if"
(syntax-check)
19-19: "runs-on" section is missing in job "if"
(syntax-check)
19-19: "if" job is scalar node but mapping node is expected
(syntax-check)
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,10 +1,12 @@ | ||||||||||||||||||||||||||||
| name: test | pgvector | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| on: | ||||||||||||||||||||||||||||
| workflow_dispatch: | ||||||||||||||||||||||||||||
| pull_request: | ||||||||||||||||||||||||||||
| branches: | ||||||||||||||||||||||||||||
| - main | ||||||||||||||||||||||||||||
| workflow_dispatch: | ||||||||||||||||||||||||||||
| types: [labeled] | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| concurrency: | ||||||||||||||||||||||||||||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||||||||||||||||||||||||||||
|
|
@@ -14,6 +16,8 @@ env: | |||||||||||||||||||||||||||
| RUNTIME__LOG_LEVEL: ERROR | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||||||
| if: ${{ github.event.label.name == 'run-checks' }} | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
| if: ${{ github.event.label.name == 'run-checks' }} | |
| jobs: | |
| get_docs_changes: | |
| name: docs changes | |
| uses: ./.github/workflows/get_docs_changes.yml | |
| if: ${{ github.event.label.name == 'run-checks' }} | |
| run_pgvector_integration_test: | |
| name: test | |
| needs: get_docs_changes | |
| if: | | |
| needs.get_docs_changes.outputs.changes_outside_docs == 'true' && | |
| github.event.label.name == 'run-checks' |
🧰 Tools
🪛 actionlint
19-19: "steps" section is missing in job "if"
(syntax-check)
19-19: "runs-on" section is missing in job "if"
(syntax-check)
19-19: "if" job is scalar node but mapping node is expected
(syntax-check)
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,10 +1,12 @@ | ||||||||||||||||||||||||||||
| name: test | qdrant | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| on: | ||||||||||||||||||||||||||||
| workflow_dispatch: | ||||||||||||||||||||||||||||
| pull_request: | ||||||||||||||||||||||||||||
| branches: | ||||||||||||||||||||||||||||
| - main | ||||||||||||||||||||||||||||
| workflow_dispatch: | ||||||||||||||||||||||||||||
| types: [labeled] | ||||||||||||||||||||||||||||
|
Comment on lines
+4
to
+8
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove pull_request trigger for main branch to align with PR objectives The current configuration still allows automatic execution on pull requests to main, which contradicts the PR's goal of removing automatic execution of LLM-dependent tests. Apply this diff to fix: on:
workflow_dispatch:
pull_request:
- branches:
- - main
types: [labeled]📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| concurrency: | ||||||||||||||||||||||||||||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||||||||||||||||||||||||||||
|
|
@@ -14,6 +16,8 @@ env: | |||||||||||||||||||||||||||
| RUNTIME__LOG_LEVEL: ERROR | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||||||
| if: ${{ github.event.label.name == 'run-checks' }} | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
| if: ${{ github.event.label.name == 'run-checks' }} | |
| jobs: | |
| get_docs_changes: | |
| name: docs changes | |
| uses: ./.github/workflows/get_docs_changes.yml | |
| run_qdrant_integration_test: | |
| name: test | |
| needs: get_docs_changes | |
| if: | | |
| needs.get_docs_changes.outputs.changes_outside_docs == 'true' && | |
| github.event.label.name == 'run-checks' | |
| runs-on: ubuntu-latest |
🧰 Tools
🪛 actionlint
19-19: "steps" section is missing in job "if"
(syntax-check)
19-19: "runs-on" section is missing in job "if"
(syntax-check)
19-19: "if" job is scalar node but mapping node is expected
(syntax-check)
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,10 +1,12 @@ | ||||||||||||||||||||||||||
| name: test | weaviate | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| on: | ||||||||||||||||||||||||||
| workflow_dispatch: | ||||||||||||||||||||||||||
| pull_request: | ||||||||||||||||||||||||||
| branches: | ||||||||||||||||||||||||||
| - main | ||||||||||||||||||||||||||
| workflow_dispatch: | ||||||||||||||||||||||||||
| types: [labeled] | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
|
Comment on lines
+4
to
+9
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Workflow still triggers automatically on PRs to main branch The current configuration contradicts the PR objective of removing automatic test execution on merge requests to main. While the label condition was added, the workflow will still trigger automatically when PRs are labeled. To align with the PR objective, modify the trigger configuration: on:
workflow_dispatch:
- pull_request:
- branches:
- - main
- types: [labeled]This ensures the workflow only runs when manually triggered via workflow_dispatch. 📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| concurrency: | ||||||||||||||||||||||||||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||||||||||||||||||||||||||
|
|
@@ -14,6 +16,8 @@ env: | |||||||||||||||||||||||||
| RUNTIME__LOG_LEVEL: ERROR | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||||
| if: ${{ github.event.label.name == 'run-checks' }} | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
| if: ${{ github.event.label.name == 'run-checks' }} | |
| get_docs_changes: | |
| name: docs changes | |
| if: ${{ github.event.label.name == 'run-checks' }} | |
| uses: ./.github/workflows/get_docs_changes.yml | |
| run_weaviate_integration_test: | |
| name: test | |
| needs: get_docs_changes | |
| if: | | |
| needs.get_docs_changes.outputs.changes_outside_docs == 'true' && | |
| github.event.label.name == 'run-checks' |
🧰 Tools
🪛 actionlint
19-19: "steps" section is missing in job "if"
(syntax-check)
19-19: "runs-on" section is missing in job "if"
(syntax-check)
19-19: "if" job is scalar node but mapping node is expected
(syntax-check)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix invalid YAML structure.
The current placement of the
ifcondition is incorrect and will cause the workflow to fail. The condition should be moved into each job that needs to be controlled by the label.Apply this change to fix the YAML structure:
📝 Committable suggestion
🧰 Tools
🪛 actionlint
18-18: "steps" section is missing in job "if"
(syntax-check)
18-18: "runs-on" section is missing in job "if"
(syntax-check)
18-18: "if" job is scalar node but mapping node is expected
(syntax-check)