Skip to content
Draft
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
3 changes: 3 additions & 0 deletions acceptance/bundle/includes/nested_include_section/a.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# An included file with its own include section.
include:
- c.yml
3 changes: 3 additions & 0 deletions acceptance/bundle/includes/nested_include_section/c.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
variables:
from_c:
default: loaded
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
bundle:
name: test-bundle

include:
- a.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Cloud = false
EnvMatrix.DMS = ["", "true"]
13 changes: 13 additions & 0 deletions acceptance/bundle/includes/nested_include_section/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

>>> [CLI] bundle validate -o json
Warning: Include section is defined outside root file
at include
in a.yml:3:3

An include section is defined in a file that is not databricks.yml.
Only includes defined in databricks.yml are applied.

[
"a.yml",
"c.yml"
]
2 changes: 2 additions & 0 deletions acceptance/bundle/includes/nested_include_section/script
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# The include list keeps the include section of an included file, which is not loaded.
trace $CLI bundle validate -o json | jq .include
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
bundle:
name: test-bundle

resources:
pipelines:
p:
name: p
libraries:
- notebook:
path: ./nbs/*.py
maven:
repo: https://repo.example.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Databricks notebook source
print(1)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Databricks notebook source
print(1)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Databricks notebook source
print(1)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Cloud = false
EnvMatrix.DMS = ["", "true"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

>>> [CLI] bundle validate
Warning: required field "coordinates" is not set
at resources.pipelines.p.libraries[0].maven
in databricks.yml:12:13

Warning: required field "coordinates" is not set
at resources.pipelines.p.libraries[1].maven

Warning: required field "coordinates" is not set
at resources.pipelines.p.libraries[2].maven

Name: test-bundle
Target: default
Workspace:
User: [USERNAME]
Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default

Found 3 warnings
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# The glob expands to three libraries. The warning of each one points at the line of the glob.
trace $CLI bundle validate
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Badness = "The libraries that a glob expands to lose the location of the glob: only the first warning has a location."
Loading