You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suddenly, GitHub–hosted runners have started to set environment variables with the RUNNER_ prefix, clashing with the ones we're using on cml runner to let users specify command–line options through the environment:
Among others, GitHub–hosted runners are setting RUNNER_NAME to esoteric values with uppercase and spaces like GitHub Actions 3, causing some cloud vendors to break in unexpected ways.
For example, Google Cloud complains loudly and refuses to create any resources with names containing whitespace:
Error: Failed creating the machine: googleapi: Error 400: Invalid value for field 'resource.name': 'GitHub Actions 2-egress'. Must be a match of regex '(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)'More details: Reason: invalid, Message: Invalid value for field 'resource.name': 'GitHub Actions 2-egress'. Must be a match ofregex '(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)' Reason: invalid, Message: Invalid value for field 'resource.targetTags[0]': 'GitHub Actions 2'. Must be a match of regex '(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)'
Suddenly, GitHub–hosted runners have started to set environment variables with the
RUNNER_
prefix, clashing with the ones we're using oncml runner
to let users specify command–line options through the environment:cml/bin/cml/runner.js
Line 12 in 7d664ae
cml/bin/cml/runner.js
Lines 17 to 28 in 7d664ae
Among others, GitHub–hosted runners are setting
RUNNER_NAME
to esoteric values with uppercase and spaces likeGitHub Actions 3
, causing some cloud vendors to break in unexpected ways.For example, Google Cloud complains loudly and refuses to create any resources with names containing whitespace:
AWS also fails because of this, as per #741
Minimal working example
Workflow
Output
The text was updated successfully, but these errors were encountered: