Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion acceptance/bundle/validate/strict/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Warning: invalid value "INVALID_TYPE" for enum field. Valid values are [complex]
at variables.my_variable.type
in databricks.yml:6:11

Warning: invalid value "INVALID_TYPE" for enum field. Valid values are [whl jar]
Warning: invalid value "INVALID_TYPE" for enum field. Valid values are [whl jar tgz]
at artifacts.my_artifact.type
in databricks.yml:16:15

Expand Down
7 changes: 7 additions & 0 deletions bundle/config/artifact.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,18 @@ const ArtifactPythonWheel ArtifactType = `whl`

const ArtifactJar ArtifactType = `jar`

// ArtifactTarball is a gzipped tar of source files. Unlike `whl`/`jar` it carries
// no language-specific build defaults or wheel/jar semantics: the user's `build`
// command produces the tarball, which is then uploaded and referenced like any
// other artifact file (e.g. as an AI Runtime task's code_source_path).
const ArtifactTarball ArtifactType = `tgz`

// Values returns all valid ArtifactType values
func (ArtifactType) Values() []ArtifactType {
return []ArtifactType{
ArtifactPythonWheel,
ArtifactJar,
ArtifactTarball,
}
}

Expand Down
4 changes: 2 additions & 2 deletions bundle/internal/schema/annotations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ artifacts:
The local path of the directory for the artifact.
"type":
"description": |-
Required if the artifact is a Python wheel. The type of the artifact. Valid values are `whl` and `jar`.
Required if the artifact is a Python wheel. The type of the artifact. Valid values are `whl`, `jar`, and `tgz`.
"markdown_description": |-
Required if the artifact is a Python wheel. The type of the artifact. Valid values are `whl` and `jar`.
Required if the artifact is a Python wheel. The type of the artifact. Valid values are `whl`, `jar`, and `tgz`.
bundle:
"description": |-
The bundle attributes when deploying to this target.
Expand Down
2 changes: 1 addition & 1 deletion bundle/internal/validation/generated/enum_fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions bundle/schema/jsonschema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading