flutter / flutter/devtools

`analytics_test.dart` failing on the Flutter customer test registry

Aperta
#8,761 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
P3 testing
Lingua principale
Dart
Stelle
1.7k
Fork
404
Merge medio
6g 17h
PR unite (30g)
18

Descrizione

Example failure:

```
00:04 +33 -1: /b/s/w/ir/x/t/flutter_customer_testing.flutter_devtools.TYUQGO/tests/packages/devtools_app/test/shared/analytics/analytics_test.dart: createStackTraceForAnalytics for stack trace with DevTools stack frames near the top [E]
| Expected: '/b/s/w/ir/x/w/rc/tmp6qd7qvz0/hosted/pub.dev/vm_service-14.3.0/lib/src/vm_service.dart 95:18 | 28240\n'
| '/b/s/w/ir/x/w/rc/tmp6qd7qvz0/hosted/pub.dev/vm_service-14.3.0/lib/src/dart_io_extensions.dart 63:12 | 28301\n'
| '/b/s/w/ir/x/w/rc/tmp6qd7qvz0/hosted/pub.dev/vm_service-14.3.0/lib/src/dart_io_extensions.dart 61:25 | 28300\n'
| '/b/s/w/ir/x/w/devtools/packages/devtools_app/lib/src/screens/network/network_service.dart 104:34 | 28297\n'
| '/b/s/w/ir/x/w/devtools/packages/devtools_app_shared/lib/src/service/service_utils.dart 82:25 | 9696\n'
| 'org-dartlang-sdk:///dart-sdk/lib/_internal/wasm/lib/async_patch.dart 103:30 | 2140'
| Actual: '../../../../../w/rc/tmp6qd7qvz0/hosted/pub.dev/vm_service-14.3.0/lib/src/vm_service.dart 95:18 | 28240\n'
| '../../../../../w/rc/tmp6qd7qvz0/hosted/pub.dev/vm_service-14.3.0/lib/src/dart_io_extensions.dart 63:12 | 28301\n'
| '../../../../../w/rc/tmp6qd7qvz0/hosted/pub.dev/vm_service-14.3.0/lib/src/dart_io_extensions.dart 61:25 | 28300\n'
| '../../../../../w/devtools/packages/devtools_app/lib/src/screens/network/network_service.dart 104:34 | 28297\n'
| '../../../../../w/devtools/packages/devtools_app_shared/lib/src/service/service_utils.dart 82:25 | 9696\n'
| 'org-dartlang-sdk:///dart-sdk/lib/_internal/wasm/lib/async_patch.dart 103:30 | 2140'
| Which: is different.
| Expected: /b/s/w/ir/ ...
| Actual: ../../../. ...
| ^
| Differ at offset 0
|
| package:matcher expect
| test/shared/analytics/analytics_test.dart 21:7 main..
```

Something must be different with how `Trace.parse` is behaving in the DevTools CI test environment and the Flutter Customer Test environment.

The devtools customer tests were disabled in https://github.com/flutter/tests/pull/442.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia da packages/devtools_app/test/shared/analytics/analytics_test.dart e dal comportamento di Trace.parse utilizzato da createStackTraceForAnalytics; confronta il test che fallisce in DevTools CI e nell'ambiente Flutter Customer Test. Il lavoro è completato quando il test passa nel registro dei clienti con la formattazione prevista del percorso dello stack trace, così da poter rivalutare i test dei clienti disabilitati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
dart
Ambito
ci-cd, testing
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.