Skip to content

Commit

Permalink
DCM workflow no longer needs the run-dcm-workflow label (#2283)
Browse files Browse the repository at this point in the history
  • Loading branch information
elliette authored Nov 8, 2023
1 parent 927c70e commit 148aaaa
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 29 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/dcm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@
name: Dart Code Metrics

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

jobs:
dcm:
if: contains(github.event.pull_request.labels.*.name, 'run-dcm-workflow')
name: Dart Code Metrics
runs-on: ubuntu-latest
steps:
Expand All @@ -39,5 +36,5 @@ jobs:
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: dwds
- name: Run DCM on DWDS
run: dcm analyze --ci-key="${{ secrets.DCM_CI_KEY }}" --email="${{ secrets.DCM_EMAIL }}" lib
run: dcm analyze lib
working-directory: dwds
20 changes: 0 additions & 20 deletions .github/workflows/dcm_label.yml

This file was deleted.

2 changes: 1 addition & 1 deletion dwds/lib/src/debugging/inspector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ class AppInspector implements AppInspectorInterface {
Future<RemoteObject> callFunction(
String function,
Iterable<String> argumentIds,
) async {
) {
final arguments = argumentIds.map(remoteObjectFor).toList();
return _jsCallFunction(function, arguments);
}
Expand Down
5 changes: 4 additions & 1 deletion dwds/lib/src/loaders/strategy.dart
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,12 @@ abstract class LoadStrategy {

/// Initializes a [MetadataProvider] for the application located at the
/// provided [entrypoint].
Future<void> trackEntrypoint(String entrypoint) async {
Future<void> trackEntrypoint(String entrypoint) {
final metadataProvider = MetadataProvider(entrypoint, _assetReader);
_providers[metadataProvider.entrypoint] = metadataProvider;
// Returns a Future so that the asynchronous g3-implementation can override
// this method:
return Future.value();
}
}

Expand Down
2 changes: 1 addition & 1 deletion dwds/lib/src/services/chrome_proxy_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ class ChromeProxyService implements VmServiceInterface {
String scriptId,
int line, {
int? column,
}) async {
}) {
return wrapInErrorHandlerAsync(
'addBreakpoint',
() => _addBreakpoint(isolateId, scriptId, line),
Expand Down

0 comments on commit 148aaaa

Please sign in to comment.