mirror of
				https://github.com/esphome/esphome.git
				synced 2025-11-04 00:51:49 +00:00 
			
		
		
		
	docs
This commit is contained in:
		
							
								
								
									
										4
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							@@ -392,7 +392,7 @@ jobs:
 | 
			
		||||
          python3 script/test_build_components.py -e compile -c ${{ matrix.file }}
 | 
			
		||||
 | 
			
		||||
  test-build-components-splitter:
 | 
			
		||||
    name: Split components for intelligent grouping (20 per batch)
 | 
			
		||||
    name: Split components for intelligent grouping (30 per batch)
 | 
			
		||||
    runs-on: ubuntu-24.04
 | 
			
		||||
    needs:
 | 
			
		||||
      - common
 | 
			
		||||
@@ -417,7 +417,7 @@ jobs:
 | 
			
		||||
          components='${{ needs.determine-jobs.outputs.changed-components }}'
 | 
			
		||||
 | 
			
		||||
          echo "Splitting components intelligently..."
 | 
			
		||||
          output=$(python3 script/split_components_for_ci.py --components "$components" --batch-size 20 --output github)
 | 
			
		||||
          output=$(python3 script/split_components_for_ci.py --components "$components" --batch-size 30 --output github)
 | 
			
		||||
 | 
			
		||||
          echo "$output" >> $GITHUB_OUTPUT
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -49,7 +49,7 @@ def has_test_files(component_name: str, tests_dir: Path) -> bool:
 | 
			
		||||
def create_intelligent_batches(
 | 
			
		||||
    components: list[str],
 | 
			
		||||
    tests_dir: Path,
 | 
			
		||||
    batch_size: int = 20,
 | 
			
		||||
    batch_size: int = 30,
 | 
			
		||||
) -> list[list[str]]:
 | 
			
		||||
    """Create batches optimized for component grouping.
 | 
			
		||||
 | 
			
		||||
@@ -161,8 +161,8 @@ def main() -> int:
 | 
			
		||||
        "--batch-size",
 | 
			
		||||
        "-b",
 | 
			
		||||
        type=int,
 | 
			
		||||
        default=20,
 | 
			
		||||
        help="Target batch size (default: 20)",
 | 
			
		||||
        default=30,
 | 
			
		||||
        help="Target batch size (default: 30)",
 | 
			
		||||
    )
 | 
			
		||||
    parser.add_argument(
 | 
			
		||||
        "--tests-dir",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user