mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-11-04 01:46:28 +00:00 
			
		
		
		
	CI: Add bench workflows
This commit is contained in:
		
							
								
								
									
										30
									
								
								.github/workflows/bench-manual.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								.github/workflows/bench-manual.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,30 @@
 | 
			
		||||
name: Bench (manual)
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
    workflow_dispatch:
 | 
			
		||||
        inputs:
 | 
			
		||||
            workload:
 | 
			
		||||
                description: 'The path to the workloads to execute (workloads/...)'
 | 
			
		||||
                required: true
 | 
			
		||||
                default: 'workloads/movies.json'
 | 
			
		||||
 | 
			
		||||
env:
 | 
			
		||||
    WORKLOAD_NAME: ${{ github.event.inputs.workload }}
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
    benchmarks:
 | 
			
		||||
        name: Run and upload benchmarks
 | 
			
		||||
        runs-on: benchmarks
 | 
			
		||||
        timeout-minutes: 180 # 3h
 | 
			
		||||
        steps:
 | 
			
		||||
            - uses: actions/checkout@v3
 | 
			
		||||
            - uses: actions-rs/toolchain@v1
 | 
			
		||||
              with:
 | 
			
		||||
                profile: minimal
 | 
			
		||||
                toolchain: stable
 | 
			
		||||
                override: true
 | 
			
		||||
 | 
			
		||||
            - name: Run benchmarks - workload ${WORKLOAD_NAME} - branch ${{ github.ref }} - commit ${{ github.sha }}
 | 
			
		||||
              run: |
 | 
			
		||||
               cargo xtask bench --api-key "${{ secrets.BENCHMARK_API_KEY }}" --dashboard-url "${{ vars.BENCHMARK_DASHBOARD_URL }}" --reason "Manual [Run #${{ github.run_id }}](https://github.com/meilisearch/meilisearch/actions/runs/${{ github.run_id }})" -- ${WORKLOAD_NAME}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user