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
[air] Remove yaml dependencies requirement when environment.version is specified (#6718)
## Changes
- Allow `environment.version` without requiring
`environment.dependencies`.
- Cover omitted, empty, and non-empty dependency lists and submission
payload behavior.
- Update the environment version help text.
## Why
`environment.version` is submitted independently from dependencies.
Requiring `dependencies: []` adds no-op YAML because omitted and empty
dependencies produce the same payload.
## Tests
- Focused AIR config and payload unit tests.
- AIR config-help and submit acceptance tests.
- Live AIR version 5 workload without dependencies completed
successfully.
_This PR was written with Codex._
Co-authored-by: Caroline Chen <324939130+caroline-db@users.noreply.github.com>
Dependenciesdependencies`yaml:"dependencies" help:"Inline list of packages to install. Not allowed alongside unity_catalog_image."`
256
-
VersionstringOrInt`yaml:"version" help:"Client image version to pin. Only valid alongside inline dependencies."`
256
+
VersionstringOrInt`yaml:"version" help:"Client image version to pin."`
257
257
UnityCatalogImagestring`yaml:"unity_catalog_image" help:"Unity Catalog custom image to run the workload on, as <catalog>.<schema>.<image>:<tag>. Not allowed alongside dependencies or version."`
258
258
}
259
259
@@ -279,11 +279,6 @@ func (e *environmentConfig) validate() error {
279
279
returnnil
280
280
}
281
281
282
-
// version pins the client image version, which is only meaningful alongside an
283
-
// inline dependency set.
284
-
ife.Version.set&&!e.Dependencies.set {
285
-
returnerrors.New("'environment.version' requires inline 'dependencies' (a list of packages)")
0 commit comments