sdk icon indicating copy to clipboard operation
sdk copied to clipboard

pkg/_macros/test/executor/executor_test is failing

Open a-siva opened this issue 1 year ago • 10 comments
trafficstars

The tests

pkg/_macros/test/executor/executor_test RuntimeError (expected Pass)

are failing on configurations

unittest-asserts-release-win-arm64
unittest-asserts-release-win-x64

a-siva avatar Jun 13 '24 22:06 a-siva

//cc @jakemac53

a-siva avatar Jun 13 '24 22:06 a-siva

area-test, type-bug

The pkg/_macros/test/executor/executor_test tests are failing on Windows ARM64 and x64 configurations, resulting in a RuntimeError instead of the expected Pass.

dart-github-bot avatar Jun 13 '24 22:06 dart-github-bot

around area-test might need to be made more explicit that it should prefer the affected functional area, or otherwise weighted down

I agree with that (and thanks for the feedback on the meta / triaging bot issue). Here, is it area-vm tests that are failing? We don't have a specific area for macros.; we're using area-language for non-implementation discussion issues.

We could improve the prompt for these 'test' cases. We're also not using the tuned model yet, just explicit directions in a prompt; switching to the tuned model should also improve accuracy here.

devoncarew avatar Jun 14 '24 00:06 devoncarew

The area should be area-pkg afaik (the tests in question are in pkg/_macros).

jakemac53 avatar Jun 14 '24 14:06 jakemac53

@a-siva do you have a failure you can link me? I did recently land a fix for this test, and I am not sure how to validate if it was the same error or something different etc.

jakemac53 avatar Jun 14 '24 16:06 jakemac53

Here is the first time the failure showed up logs (I believe it was a Timeout initially and then turned into a RuntimeError later).

a-siva avatar Jun 14 '24 16:06 a-siva

The area should be area-pkg afaik (the tests in question are in pkg/_macros).

Yes, but area-pkg is not a great area- itself. It's not triaged - there's no team that does secondary triage on it or ultimately has responsibility for items in that area.

devoncarew avatar Jun 14 '24 17:06 devoncarew

Ok yeah looking at the log, that is the one that should be fixed. Is this still failing?

jakemac53 avatar Jun 14 '24 18:06 jakemac53

It was failing on the windows bots until I created this issue and approved the failure

a-siva avatar Jun 14 '24 21:06 a-siva

Moved this to the "no milestone/release" bucket. It isn't directly tied to any release and I haven't discovered any reasonable way to try and investigate the failure. I intend to just leave this as open tech debt for some time. There are no actual affected users, just a failing test in an environment that I can't reproduce.

jakemac53 avatar Jun 28 '24 17:06 jakemac53

This failure was seen again here https://ci.chromium.org/ui/p/dart/builders/ci.sandbox/pkg-win-release/29263/overview

a-siva avatar Jul 23 '24 23:07 a-siva

and again https://dart-ci.appspot.com/log/pkg-win-release/unittest-asserts-release-win-x64/29419/pkg/_macros/test/executor/executor_test

aam avatar Aug 06 '24 18:08 aam

My assumption was that this test can just be marked failing/flaky and not cause people friction. Is that not the case? If you chimed in here, is that because you were blocked or otherwise affected by the failure?

jakemac53 avatar Aug 06 '24 19:08 jakemac53

Yes, the test failure causes friction as it turns the bot on go/darto dart waterfall red image

If the test is doomed to flaky failures such that test deflaker can't handle it, it could be marked as Skip in the status file or even deleted altogether.

aam avatar Aug 06 '24 20:08 aam

It is only doing this on windows (that I have seen) - we do want the coverage on other platforms. So possibly marking it as skipped on windows is best?

jakemac53 avatar Aug 06 '24 20:08 jakemac53

It is only doing this on windows (that I have seen) - we do want the coverage on other platforms. So possibly marking it as skipped on windows is best?

Yeah, something like the following should do that

diff --git a/pkg/pkg.status b/pkg/pkg.status
index f129396f35c..daf26bf3345 100644
--- a/pkg/pkg.status
+++ b/pkg/pkg.status
@@ -243,6 +243,7 @@ vm_snapshot_analysis/test/*: SkipByDesign # Only meant to run on vm
 [ $system == windows ]
 front_end/test/fasta/bootstrap_test: Skip # Issue 31902
 front_end/test/incremental_dart2js_load_from_dill_test: Pass, Slow
+_macros/test/executor/executor_test: Skip # dartbug.com/56002
 vm_service/test/private_rpcs/dev_fs_http_put_test: Skip # Windows disallows "?" in paths
 vm_service/test/private_rpcs/dev_fs_http_put_weird_char_test: Skip # Windows disallows "\r" in paths
 vm_service/test/private_rpcs/dev_fs_weird_char_test: Skip # Windows disallows "\r" in paths

aam avatar Aug 06 '24 20:08 aam

https://dart-review.googlesource.com/c/sdk/+/379240

jakemac53 avatar Aug 06 '24 21:08 jakemac53

Closing as package:macros and package:json are discontinued

jakemac53 avatar Feb 25 '25 16:02 jakemac53