Asset bundles sync don't follow .gitignore pattern syntax for root folders
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
示されているツリーで databricks.yml と .gitignore を使用してケースを再現し、その後 Databricks CLI v0.260.0 で databricks bundle deploy を実行します。同期時の include の処理を追跡し、先頭スラッシュの動作を .gitignore のパターンに関する文書化されたルールと比較します。完了条件は、ルートの my_folder のみがアップロードされることです。
索引モデルが issue の本文から書いたものです。
説明
Describe the issue
The sync: include: configuration of asset bundles don't respect leading slash / as .gitignore does:
From git docs (my highlight):
- The slash "/" is used as the directory separator. Separators may occur at the beginning, middle or end of the .gitignore search pattern.
- If there is a separator at the beginning or middle (or both) of the pattern, then the pattern is relative to the directory level of the particular .gitignore file itself. Otherwise the pattern may also match at any level below the .gitignore level.
I wanted to force an include a folder present in the root of my repo, but all folders named the same (inside other .gitignored folders) were included in the sync.
Configuration
File tree
.
├── ignored
│ └── my_folder
└── my_folder
databricks.yml
sync:
include:
- /my_folder/
.gitignore
/ignored
/my_folder
Result: both my_folder gets uploaded to Databricks workspace
Steps to reproduce the behavior
- Prepare files as above
- Run
databricks bundle deploy - See error
Expected Behavior
Only the my_folder in the root of the repo should be synced.
Actual Behavior
All folders named my_folder are synced.
OS and CLI version
Linux 6.6.87.2-microsoft-standard-WSL2
Databricks CLI v0.260.0
Is this a regression?
I haven't tested
Debug Logs
–
- 主要言語
- Go
- スター
- 427
- フォーク
- 267
- 平均マージ
- 2日 1時間
- マージ済み PR(30日)
- 233
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
databricks/cli のほかの issue
-
Apps commands only accept relative path to app.yml対応中かも @yuri-rod が 38 日前に担当しました。 オープンCLI
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
databricks/cli#6910 ·
メンテナーはふだん 1 日以内に返信
-
DABs
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
databricks/cli#6670 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Bump vulnerable dependencies workflow is failing対応中かも @shreyas-goenka が今日担当しました。 オープンbump-vuln-deps-failure
databricks/cli#7531 · コメント 1 件 · 担当者 7 名 ·
メンテナーはふだん 1 日以内に返信
-
bundle run on an app fails with "not in RUNNING state" when the app's compute is UPDATING対応中かも @andrewnester が 1 日前に担当しました。 オープンBug DABs
難易度 3/5 1〜2日 初心者へのやさしさ 76/100
databricks/cli#7451 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Bundle deploy of an AI/BI dashboard breaks viewers' private bookmarks (UI save + publish does not)オープン
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
databricks/cli#7419 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
prime-radiant-inc/evener#6241 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
coder/openstorage#807 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
NVIDIA/kubectl-nv#100 ·
メンテナーはふだん 1 日以内に返信
-
TestNoEagerPackageRegexps red on main: internal/gui/feedback.go:19 compiles a package-level regexpオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信