def METHOD_NAME(args):
    if args.force_rebuild:
        expect(
            args.test_id != [],
            "Cannot force a rebuild without 'test-id'",
        )
    expect(
        not (args.summary and args.count_fails),
        "--count-fails cannot be specified with --summary",
    )
    expect(
        not (args.summary and args.count_performance_fails),
        "--count-performance-fails cannot be specified with --summary",
    )
    _validate_phases(args.count_fails, "--count-fails")