Skip to content

Commit 148aaaa

Browse files
authored
DCM workflow no longer needs the run-dcm-workflow label (#2283)
1 parent 927c70e commit 148aaaa

File tree

5 files changed

+9
-29
lines changed

5 files changed

+9
-29
lines changed

.github/workflows/dcm.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,13 @@
33
name: Dart Code Metrics
44

55
on:
6-
pull_request_target:
7-
# labeled and unlabeled are required along with open to re-run
8-
# workflow when the run-dcm-workflow label is added or removed.
9-
types: [opened, labeled, unlabeled]
6+
pull_request:
7+
types: [synchronize, opened, reopened]
108
branches:
119
- master
1210

1311
jobs:
1412
dcm:
15-
if: contains(github.event.pull_request.labels.*.name, 'run-dcm-workflow')
1613
name: Dart Code Metrics
1714
runs-on: ubuntu-latest
1815
steps:
@@ -39,5 +36,5 @@ jobs:
3936
if: "always() && steps.checkout.conclusion == 'success'"
4037
working-directory: dwds
4138
- name: Run DCM on DWDS
42-
run: dcm analyze --ci-key="${{ secrets.DCM_CI_KEY }}" --email="${{ secrets.DCM_EMAIL }}" lib
39+
run: dcm analyze lib
4340
working-directory: dwds

.github/workflows/dcm_label.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

dwds/lib/src/debugging/inspector.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ class AppInspector implements AppInspectorInterface {
366366
Future<RemoteObject> callFunction(
367367
String function,
368368
Iterable<String> argumentIds,
369-
) async {
369+
) {
370370
final arguments = argumentIds.map(remoteObjectFor).toList();
371371
return _jsCallFunction(function, arguments);
372372
}

dwds/lib/src/loaders/strategy.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,12 @@ abstract class LoadStrategy {
131131

132132
/// Initializes a [MetadataProvider] for the application located at the
133133
/// provided [entrypoint].
134-
Future<void> trackEntrypoint(String entrypoint) async {
134+
Future<void> trackEntrypoint(String entrypoint) {
135135
final metadataProvider = MetadataProvider(entrypoint, _assetReader);
136136
_providers[metadataProvider.entrypoint] = metadataProvider;
137+
// Returns a Future so that the asynchronous g3-implementation can override
138+
// this method:
139+
return Future.value();
137140
}
138141
}
139142

dwds/lib/src/services/chrome_proxy_service.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ class ChromeProxyService implements VmServiceInterface {
392392
String scriptId,
393393
int line, {
394394
int? column,
395-
}) async {
395+
}) {
396396
return wrapInErrorHandlerAsync(
397397
'addBreakpoint',
398398
() => _addBreakpoint(isolateId, scriptId, line),

0 commit comments

Comments
 (0)