-
Notifications
You must be signed in to change notification settings - Fork 132
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
CI release builds fail when the release message is too long #1218
Comments
Sub-issues:
|
Also we should fix Bazel on Windows to not crash when receiving large environment variables. I'll file an issue to the Bazel repo. |
It turned out it's a Windows API limitation: So we probably couldn't do much on the Bazel side, let's make sure our CI doesn't pass large env var. |
@meteorcloudy Mhm, if this were an unavoidable Windows API limitation, shouldn't our Python script already crash much earlier? Because the Buildkite Agent sets the environment variable and then calls Python to run our bazelci.py, it seems like Python itself and other programs we call during the script work fine, except Bazel (which crashes). (But maybe I'm missing something here.) |
Since Windows Vista there is apparently no technical limitation anymore, just a "practical limit" because some APIs like
from https://docs.microsoft.com/en-us/windows/win32/procthread/environment-variables |
@philwo That is a good point! I think it's an interesting Windows issue that our 20% contributor could look into ;) |
Bazel release 4.2.1 failed during release on Windows hosts only. The issue was eventually traced to being that the release message, when copied into the BUILDKITE_MESSAGE environment variable, was too long and was causing the crash.
Original failure: https://buildkite.com/bazel-trusted/bazel-release/builds/305#4397c7bb-e13f-4268-85b6-7d37fee966bb
We eventually worked around this by manually setting the BUILDKITE_MESSAGE flag: https://buildkite.com/bazel-trusted/bazel-release/builds/306
The text was updated successfully, but these errors were encountered: