Skip to content

Commit

Permalink
Merge branch 'flutter:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoamador authored Apr 12, 2024
2 parents 1822d47 + bbfd8e8 commit 30c0e1a
Show file tree
Hide file tree
Showing 22 changed files with 1,002 additions and 6 deletions.
2 changes: 0 additions & 2 deletions app_dart/lib/src/service/config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,6 @@ class Config {
'[email protected]',
};

int get maxTaskRetries => 2;

/// Max retries for Luci builder with infra failure.
int get maxLuciTaskRetries => 2;

Expand Down
3 changes: 0 additions & 3 deletions app_dart/test/src/datastore/fake_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,6 @@ class FakeConfig implements Config {
@override
Duration get githubRequestDelay => githubRequestDelayValue ?? Duration.zero;

@override
int get maxTaskRetries => maxTaskRetriesValue!;

/// Size of the shards to send to buildBucket when scheduling builds.
@override
int get schedulingShardSize => 5;
Expand Down
192 changes: 192 additions & 0 deletions dashboard/lib/model/commit_firestore.pb.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
//
// Generated code. Do not modify.
// source: lib/model/commit_firestore.proto
//
// @dart = 2.12

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import

import 'dart:core' as $core;

import 'package:fixnum/fixnum.dart' as $fixnum;
import 'package:protobuf/protobuf.dart' as $pb;

class CommitDocument extends $pb.GeneratedMessage {
factory CommitDocument({
$core.String? documentName,
$fixnum.Int64? createTimestamp,
$core.String? sha,
$core.String? author,
$core.String? avatar,
$core.String? repositoryPath,
$core.String? branch,
$core.String? message,
}) {
final $result = create();
if (documentName != null) {
$result.documentName = documentName;
}
if (createTimestamp != null) {
$result.createTimestamp = createTimestamp;
}
if (sha != null) {
$result.sha = sha;
}
if (author != null) {
$result.author = author;
}
if (avatar != null) {
$result.avatar = avatar;
}
if (repositoryPath != null) {
$result.repositoryPath = repositoryPath;
}
if (branch != null) {
$result.branch = branch;
}
if (message != null) {
$result.message = message;
}
return $result;
}
CommitDocument._() : super();
factory CommitDocument.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory CommitDocument.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CommitDocument',
package: const $pb.PackageName(_omitMessageNames ? '' : 'dashboard'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'documentName', protoName: 'documentName')
..aInt64(2, _omitFieldNames ? '' : 'createTimestamp', protoName: 'createTimestamp')
..aOS(3, _omitFieldNames ? '' : 'sha')
..aOS(4, _omitFieldNames ? '' : 'author')
..aOS(5, _omitFieldNames ? '' : 'avatar')
..aOS(6, _omitFieldNames ? '' : 'repositoryPath', protoName: 'repositoryPath')
..aOS(7, _omitFieldNames ? '' : 'branch')
..aOS(8, _omitFieldNames ? '' : 'message')
..hasRequiredFields = false;

@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
CommitDocument clone() => CommitDocument()..mergeFromMessage(this);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
CommitDocument copyWith(void Function(CommitDocument) updates) =>
super.copyWith((message) => updates(message as CommitDocument)) as CommitDocument;

$pb.BuilderInfo get info_ => _i;

@$core.pragma('dart2js:noInline')
static CommitDocument create() => CommitDocument._();
CommitDocument createEmptyInstance() => create();
static $pb.PbList<CommitDocument> createRepeated() => $pb.PbList<CommitDocument>();
@$core.pragma('dart2js:noInline')
static CommitDocument getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<CommitDocument>(create);
static CommitDocument? _defaultInstance;

/// Next ID: 9
@$pb.TagNumber(1)
$core.String get documentName => $_getSZ(0);
@$pb.TagNumber(1)
set documentName($core.String v) {
$_setString(0, v);
}

@$pb.TagNumber(1)
$core.bool hasDocumentName() => $_has(0);
@$pb.TagNumber(1)
void clearDocumentName() => clearField(1);

@$pb.TagNumber(2)
$fixnum.Int64 get createTimestamp => $_getI64(1);
@$pb.TagNumber(2)
set createTimestamp($fixnum.Int64 v) {
$_setInt64(1, v);
}

@$pb.TagNumber(2)
$core.bool hasCreateTimestamp() => $_has(1);
@$pb.TagNumber(2)
void clearCreateTimestamp() => clearField(2);

@$pb.TagNumber(3)
$core.String get sha => $_getSZ(2);
@$pb.TagNumber(3)
set sha($core.String v) {
$_setString(2, v);
}

@$pb.TagNumber(3)
$core.bool hasSha() => $_has(2);
@$pb.TagNumber(3)
void clearSha() => clearField(3);

@$pb.TagNumber(4)
$core.String get author => $_getSZ(3);
@$pb.TagNumber(4)
set author($core.String v) {
$_setString(3, v);
}

@$pb.TagNumber(4)
$core.bool hasAuthor() => $_has(3);
@$pb.TagNumber(4)
void clearAuthor() => clearField(4);

@$pb.TagNumber(5)
$core.String get avatar => $_getSZ(4);
@$pb.TagNumber(5)
set avatar($core.String v) {
$_setString(4, v);
}

@$pb.TagNumber(5)
$core.bool hasAvatar() => $_has(4);
@$pb.TagNumber(5)
void clearAvatar() => clearField(5);

@$pb.TagNumber(6)
$core.String get repositoryPath => $_getSZ(5);
@$pb.TagNumber(6)
set repositoryPath($core.String v) {
$_setString(5, v);
}

@$pb.TagNumber(6)
$core.bool hasRepositoryPath() => $_has(5);
@$pb.TagNumber(6)
void clearRepositoryPath() => clearField(6);

@$pb.TagNumber(7)
$core.String get branch => $_getSZ(6);
@$pb.TagNumber(7)
set branch($core.String v) {
$_setString(6, v);
}

@$pb.TagNumber(7)
$core.bool hasBranch() => $_has(6);
@$pb.TagNumber(7)
void clearBranch() => clearField(7);

@$pb.TagNumber(8)
$core.String get message => $_getSZ(7);
@$pb.TagNumber(8)
set message($core.String v) {
$_setString(7, v);
}

@$pb.TagNumber(8)
$core.bool hasMessage() => $_has(7);
@$pb.TagNumber(8)
void clearMessage() => clearField(8);
}

const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
10 changes: 10 additions & 0 deletions dashboard/lib/model/commit_firestore.pbenum.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//
// Generated code. Do not modify.
// source: lib/model/commit_firestore.proto
//
// @dart = 2.12

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
37 changes: 37 additions & 0 deletions dashboard/lib/model/commit_firestore.pbjson.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
//
// Generated code. Do not modify.
// source: lib/model/commit_firestore.proto
//
// @dart = 2.12

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import

import 'dart:convert' as $convert;
import 'dart:core' as $core;
import 'dart:typed_data' as $typed_data;

@$core.Deprecated('Use commitDocumentDescriptor instead')
const CommitDocument$json = {
'1': 'CommitDocument',
'2': [
{'1': 'documentName', '3': 1, '4': 1, '5': 9, '10': 'documentName'},
{'1': 'createTimestamp', '3': 2, '4': 1, '5': 3, '10': 'createTimestamp'},
{'1': 'sha', '3': 3, '4': 1, '5': 9, '10': 'sha'},
{'1': 'author', '3': 4, '4': 1, '5': 9, '10': 'author'},
{'1': 'avatar', '3': 5, '4': 1, '5': 9, '10': 'avatar'},
{'1': 'repositoryPath', '3': 6, '4': 1, '5': 9, '10': 'repositoryPath'},
{'1': 'branch', '3': 7, '4': 1, '5': 9, '10': 'branch'},
{'1': 'message', '3': 8, '4': 1, '5': 9, '10': 'message'},
],
};

/// Descriptor for `CommitDocument`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List commitDocumentDescriptor =
$convert.base64Decode('Cg5Db21taXREb2N1bWVudBIiCgxkb2N1bWVudE5hbWUYASABKAlSDGRvY3VtZW50TmFtZRIoCg'
'9jcmVhdGVUaW1lc3RhbXAYAiABKANSD2NyZWF0ZVRpbWVzdGFtcBIQCgNzaGEYAyABKAlSA3No'
'YRIWCgZhdXRob3IYBCABKAlSBmF1dGhvchIWCgZhdmF0YXIYBSABKAlSBmF2YXRhchImCg5yZX'
'Bvc2l0b3J5UGF0aBgGIAEoCVIOcmVwb3NpdG9yeVBhdGgSFgoGYnJhbmNoGAcgASgJUgZicmFu'
'Y2gSGAoHbWVzc2FnZRgIIAEoCVIHbWVzc2FnZQ==');
13 changes: 13 additions & 0 deletions dashboard/lib/model/commit_firestore.pbserver.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// Generated code. Do not modify.
// source: lib/model/commit_firestore.proto
//
// @dart = 2.12

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import

export 'commit_firestore.pb.dart';
19 changes: 19 additions & 0 deletions dashboard/lib/model/commit_firestore.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Copyright 2019 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

syntax = "proto2";

package dashboard;

message CommitDocument {
// Next ID: 9
optional string documentName = 1;
optional int64 createTimestamp = 2;
optional string sha = 3;
optional string author = 4;
optional string avatar = 5;
optional string repositoryPath = 6;
optional string branch = 7;
optional string message = 8;
}
103 changes: 103 additions & 0 deletions dashboard/lib/model/commit_tasks_status.pb.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
//
// Generated code. Do not modify.
// source: lib/model/commit_tasks_status.proto
//
// @dart = 2.12

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import

import 'dart:core' as $core;

import 'package:protobuf/protobuf.dart' as $pb;

import 'commit_firestore.pb.dart' as $0;
import 'task_firestore.pb.dart' as $1;

class CommitTasksStatus extends $pb.GeneratedMessage {
factory CommitTasksStatus({
$0.CommitDocument? commit,
$core.Iterable<$1.TaskDocument>? tasks,
$core.String? branch,
}) {
final $result = create();
if (commit != null) {
$result.commit = commit;
}
if (tasks != null) {
$result.tasks.addAll(tasks);
}
if (branch != null) {
$result.branch = branch;
}
return $result;
}
CommitTasksStatus._() : super();
factory CommitTasksStatus.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory CommitTasksStatus.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CommitTasksStatus',
package: const $pb.PackageName(_omitMessageNames ? '' : 'dashboard'), createEmptyInstance: create)
..aOM<$0.CommitDocument>(1, _omitFieldNames ? '' : 'commit', subBuilder: $0.CommitDocument.create)
..pc<$1.TaskDocument>(2, _omitFieldNames ? '' : 'tasks', $pb.PbFieldType.PM, subBuilder: $1.TaskDocument.create)
..aOS(3, _omitFieldNames ? '' : 'branch')
..hasRequiredFields = false;

@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
CommitTasksStatus clone() => CommitTasksStatus()..mergeFromMessage(this);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
CommitTasksStatus copyWith(void Function(CommitTasksStatus) updates) =>
super.copyWith((message) => updates(message as CommitTasksStatus)) as CommitTasksStatus;

$pb.BuilderInfo get info_ => _i;

@$core.pragma('dart2js:noInline')
static CommitTasksStatus create() => CommitTasksStatus._();
CommitTasksStatus createEmptyInstance() => create();
static $pb.PbList<CommitTasksStatus> createRepeated() => $pb.PbList<CommitTasksStatus>();
@$core.pragma('dart2js:noInline')
static CommitTasksStatus getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<CommitTasksStatus>(create);
static CommitTasksStatus? _defaultInstance;

@$pb.TagNumber(1)
$0.CommitDocument get commit => $_getN(0);
@$pb.TagNumber(1)
set commit($0.CommitDocument v) {
setField(1, v);
}

@$pb.TagNumber(1)
$core.bool hasCommit() => $_has(0);
@$pb.TagNumber(1)
void clearCommit() => clearField(1);
@$pb.TagNumber(1)
$0.CommitDocument ensureCommit() => $_ensure(0);

@$pb.TagNumber(2)
$core.List<$1.TaskDocument> get tasks => $_getList(1);

@$pb.TagNumber(3)
$core.String get branch => $_getSZ(2);
@$pb.TagNumber(3)
set branch($core.String v) {
$_setString(2, v);
}

@$pb.TagNumber(3)
$core.bool hasBranch() => $_has(2);
@$pb.TagNumber(3)
void clearBranch() => clearField(3);
}

const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
Loading

0 comments on commit 30c0e1a

Please sign in to comment.