-
Notifications
You must be signed in to change notification settings - Fork 960
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 all 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 | 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 }} | ||||||||||||||||||||
|
|
@@ -21,7 +23,7 @@ jobs: | |||||||||||||||||||
| run_qdrant_integration_test: | ||||||||||||||||||||
| name: test | ||||||||||||||||||||
| needs: get_docs_changes | ||||||||||||||||||||
| if: needs.get_docs_changes.outputs.changes_outside_docs == 'true' | ||||||||||||||||||||
| if: needs.get_docs_changes.outputs.changes_outside_docs == 'true' | ${{ github.event.label.name == 'run-checks' }} | ||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||
|
|
||||||||||||||||||||
| defaults: | ||||||||||||||||||||
|
|
||||||||||||||||||||
| 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 }} | ||||||||||||||||
|
|
@@ -21,7 +23,7 @@ jobs: | |||||||||||||||
| run_weaviate_integration_test: | ||||||||||||||||
| name: test | ||||||||||||||||
| needs: get_docs_changes | ||||||||||||||||
| if: needs.get_docs_changes.outputs.changes_outside_docs == 'true' | ||||||||||||||||
| if: needs.get_docs_changes.outputs.changes_outside_docs == 'true' | ${{ github.event.label.name == 'run-checks' }} | ||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||
|
|
||||||||||||||||
| defaults: | ||||||||||||||||
|
|
||||||||||||||||
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.
🛠️ 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: