Failing test: Serverless Observability - Deployment-agnostic API Integration Tests.x-pack/solutions/observability/test/api_integration_deployment_agnostic/apis/ai_assistant/complete/functions/visualize_query·spec·ts - Serverless Observability - Deployment-agnostic AI Assistant API integration tests observability AI Assistant tool: visualize_query "after all" hook for "should contain expected document data in response" #11165
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| issue_comment: | |
| types: | |
| - created | |
| jobs: | |
| trigger_flaky: | |
| name: Trigger flaky test runner on /flaky comment | |
| if: | | |
| github.event.issue.pull_request | |
| && contains(fromJSON('["MEMBER","OWNER"]'), github.event.comment.author_association) | |
| && startsWith(github.event.comment.body, '/flaky ') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout kibana-operations | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| repository: 'elastic/kibana-operations' | |
| ref: main | |
| path: ./kibana-operations | |
| token: ${{secrets.KIBANAMACHINE_TOKEN}} | |
| persist-credentials: false | |
| - name: Trigger flaky test runner | |
| working-directory: ./kibana-operations/triage | |
| env: | |
| GITHUB_TOKEN: ${{secrets.KIBANAMACHINE_TOKEN}} | |
| BUILDKITE_TOKEN: ${{secrets.OPS_BUILDKITE_TOKEN}} | |
| COMMENT_BODY: ${{github.event.comment.body}} | |
| ISSUE_NUMBER: ${{github.event.issue.number}} | |
| run: | | |
| # Extract configs (everything after '/flaky ') | |
| configs="${COMMENT_BODY#/flaky }" | |
| # Validate comment body format | |
| # Pattern: type:path[:count] where path cannot contain .., start with ./ or /, or end with / | |
| if [[ ! "$configs" =~ ^[[:space:]]*(ftrConfig|scoutConfig|config):[a-zA-Z0-9_-]+([/.][a-zA-Z0-9_-]+)*(:[0-9]+)?([[:space:]]+(ftrConfig|scoutConfig|config):[a-zA-Z0-9_-]+([/.][a-zA-Z0-9_-]+)*(:[0-9]+)?)*[[:space:]]*$ ]]; then | |
| echo "::error::Invalid comment format. Use: /flaky <type>:<config>[:count] [<type>:<config>[:count] ...]" | |
| echo "::error::Where <type> is one of: ftrConfig, scoutConfig, config" | |
| echo "::error::And <count> is an optional positive integer" | |
| echo "::error::Path cannot contain .., start with ./ or /, or end with /" | |
| echo "::error::Example: /flaky config:x-pack/test:5 ftrConfig:functional/apps" | |
| exit 1 | |
| fi | |
| npm ci --omit=dev | |
| node trigger-flaky-test-runner $ISSUE_NUMBER "$configs" |