<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Asset Bundles - path is not contained in bundle root path in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/asset-bundles-path-is-not-contained-in-bundle-root-path/m-p/112258#M44151</link>
    <description>&lt;P&gt;Have you ever found a solution for this? I'm looking for this use case of having certain excluded per target.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Mar 2025 09:26:12 GMT</pubDate>
    <dc:creator>hiryucodes</dc:creator>
    <dc:date>2025-03-11T09:26:12Z</dc:date>
    <item>
      <title>Asset Bundles - path is not contained in bundle root path</title>
      <link>https://community.databricks.com/t5/data-engineering/asset-bundles-path-is-not-contained-in-bundle-root-path/m-p/62747#M32059</link>
      <description>&lt;P&gt;I'm trying to adopt a code base to use asset bundles. I was trying to come up with folder structure that will work for our bundles and came up with layout as below:&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;common/ (source code)&lt;BR /&gt;services/ (source code)&lt;BR /&gt;dist/ (here artifacts from monorepo are built; I can't change this)&lt;BR /&gt;db-asset-bundles/&lt;BR /&gt;  data-pipeline/&lt;BR /&gt;    integration/&lt;BR /&gt;      databricks.yaml &lt;BR /&gt;    production/&lt;BR /&gt;      databricks.yaml&lt;BR /&gt;    resources/&lt;BR /&gt;      variables.yaml&lt;BR /&gt;      artifacts.yaml&lt;/PRE&gt;&lt;P&gt;I'd like for integration and production bundles to share some common configuration. I've discovered that I can include '../resources/variables.yaml' from both integration/databricks.yaml and production/databricks.yaml, but including artifacts result in:&lt;/P&gt;&lt;PRE&gt;Error: path (...redacted...)/db-asset-bundles/data-pipeline/resources is not contained in bundle root path&lt;/PRE&gt;&lt;P&gt;Are there any rules of what can be included from databricks.yaml - does it have to be a folder on the same level, or below the file?&lt;/P&gt;&lt;P&gt;The same problem happens when I try to include wheels built into /dist directory in the root of monorepo - I can't reference to them from databricks.yaml as it would require a path like '../../../dist/[wheel-name]', and that results in the same error about wheel not being contained in bundle root. So far I've worked around this by defining artifact in production/databricks.yaml as:&lt;/P&gt;&lt;PRE&gt;artifacts:&lt;BR /&gt;pipeline-wheel:&lt;BR /&gt;type: whl&lt;BR /&gt;build: "pants package &amp;lt;path to wheel definition inside services&amp;gt; &amp;amp;&amp;amp; mkdir dist &amp;amp;&amp;amp; cp ../../../dist/&amp;lt;wheel file&amp;gt; dist/&amp;lt;wheel file&amp;gt;"&lt;BR /&gt;# we use pantsbuild.org buildsystem for python that manages wheel packaging, but all artifacts end up in /dist dir at root level...&lt;/PRE&gt;&lt;P&gt;Are there any ways around this that I'm missing?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 11:14:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/asset-bundles-path-is-not-contained-in-bundle-root-path/m-p/62747#M32059</guid>
      <dc:creator>kamilmuszynski</dc:creator>
      <dc:date>2024-03-06T11:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Asset Bundles - path is not contained in bundle root path</title>
      <link>https://community.databricks.com/t5/data-engineering/asset-bundles-path-is-not-contained-in-bundle-root-path/m-p/94277#M38852</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/101789"&gt;@kamilmuszynski&lt;/a&gt;&amp;nbsp;– Did you figure it out already?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 11:41:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/asset-bundles-path-is-not-contained-in-bundle-root-path/m-p/94277#M38852</guid>
      <dc:creator>AlbertoLogs</dc:creator>
      <dc:date>2024-10-16T11:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Asset Bundles - path is not contained in bundle root path</title>
      <link>https://community.databricks.com/t5/data-engineering/asset-bundles-path-is-not-contained-in-bundle-root-path/m-p/94291#M38857</link>
      <description>&lt;P&gt;When I have worked with Databricks Asset Bundles (DAB), I left the &lt;STRONG&gt;databricks.yaml file in the root&lt;/STRONG&gt;, and &lt;STRONG&gt;just one databricks.yaml file&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I also made a simple functional DAB project, the file system structure is like this, if it helps you:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;dab_test_repo/
├── conf/
│   └── tasks/
│       ├── input_task_config.yml
│       ├── process_task_config.yml
│       └── output_task_config.yml
├── dab_test_repo/
│   ├── tasks/
│   │   ├── __init__.py
│   │   ├── input.py
│   │   ├── process.py
│   │   └── output.py
│   ├── __init__.py
│   ├── common.py
├── tests/
│   ├── unit/
│   │   ├── tasks/
│   │   │   ├── __init__.py
│   │   │   ├── test_input.py
│   │   │   ├── test_process.py
│   │   │   └── test_output.py
│   │   ├── __init__.py
│   │   └── conftest.py
│   ├── __init__.py
├── dist/
│   └── dab_test_repo-0.1.0-py3-none-any.whl
├── .gitignore
├── .pre-commit-config.yaml
├── README.md
├── databricks.yml
└── pyproject.toml&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I haven't tried with many databricks.yml file, but in the databricks.yml I have configurations for integration and production pipelines for deploying them.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 13:08:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/asset-bundles-path-is-not-contained-in-bundle-root-path/m-p/94291#M38857</guid>
      <dc:creator>PabloCSD</dc:creator>
      <dc:date>2024-10-16T13:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Asset Bundles - path is not contained in bundle root path</title>
      <link>https://community.databricks.com/t5/data-engineering/asset-bundles-path-is-not-contained-in-bundle-root-path/m-p/94741#M38965</link>
      <description>&lt;P&gt;Thanks for the suggestion.&lt;/P&gt;&lt;P&gt;What I ended up doing was to have a separate directory with databricks.yaml per each pipeline, but the file was including all targets (dev, int, prod). I think having a top level databricks.yaml is something that would also work, with proper excludes per target - I need to give it a try at some point &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 07:28:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/asset-bundles-path-is-not-contained-in-bundle-root-path/m-p/94741#M38965</guid>
      <dc:creator>kamilmuszynski</dc:creator>
      <dc:date>2024-10-18T07:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Asset Bundles - path is not contained in bundle root path</title>
      <link>https://community.databricks.com/t5/data-engineering/asset-bundles-path-is-not-contained-in-bundle-root-path/m-p/112258#M44151</link>
      <description>&lt;P&gt;Have you ever found a solution for this? I'm looking for this use case of having certain excluded per target.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 09:26:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/asset-bundles-path-is-not-contained-in-bundle-root-path/m-p/112258#M44151</guid>
      <dc:creator>hiryucodes</dc:creator>
      <dc:date>2025-03-11T09:26:12Z</dc:date>
    </item>
  </channel>
</rss>

