-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build_runner_run_in_isolation_test failing on pkg-win-release-arm64 #186
Comments
When running it on my windows-arm64 machine, it works well with dart included with latest flutter version:
By looking at the log file you attached, error seems to be:
I would suggest to try on another machine than the one that reported this failure. |
That is a weird temp location indeed.
I don't have a Windows arm64 machine, so I cannot be of much help here unfortunately. |
The test is testing that the compilers run correctly when none of the environment vars is passed in. In order to test this, it looks for This test doesn't run on the GitHub CI or locally, because we don't control the environment variables. The fact that we don't skip the test with the if guard, means the Maybe the MSVC in depot_tools is tool old and doesn't contain working arm64 tools? Could you give 14.29.30133 a spin @pbo-linaro? |
I spent 2 hours trying to reproduce this, without a direct success. The envscript needed in test is Using this run.bat script:
It fails with Instead, I dumped a full working environment in a .bat, and set all env variables. It's hard for me to debug google CI machines remotely, but what @rmacnak-google could do to progress is dump all env variables when the build step is run. Please check the |
The test is explicitly unsetting all environment variables. Maybe unsetting We already have an exception for native/pkgs/native_assets_builder/lib/src/utils/run_process.dart Lines 28 to 37 in c72ed16
|
The specific VS files ( |
Could you make a PR, I'll hit the merge button. |
P.S. Thanks for bringing this up. I think we'd like to clamp down the environment variables to avoid having external variables influencing builds (#32), but we need to know which env vars we need to keep. |
If that's the right problem, I would still not understand why it works with x64 version of the test. |
It seems like dart CI is back to green for windows-arm64. Is that correct? |
It was green because the failure was approved. We had a roll of your commit to the SDK: https://dart-review.googlesource.com/c/sdk/+/334083 The current results are green: https://dart-current-results.web.app/#/filter=native_assets_builder/test/build_runner/build_runner_run_in_isolation_test&showAll Thanks @pbo-linaro for the trouble shooting! 🚀 |
Good to see this. Thanks @dcharkes for your help on reproduction and details in code and commits involved, that's really appreciated 👍. |
The tests
are failing on configurations
Initial results for a new builder.
Builder
Log
Seems related to setting up the MSVC toolchain.
cc @dcharkes @pbo-linaro
The text was updated successfully, but these errors were encountered: