Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add experimental-jobs-as-code template #2177

Merged

Conversation

kanterov
Copy link
Contributor

@kanterov kanterov commented Jan 17, 2025

Changes

Add experimental-jobs-as-code template allowing defining jobs using Python instead of YAML through the databricks-bundles PyPI package.

Tests

Manually and acceptance tests.

Copy link
Contributor

@pietern pietern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kanterov Can you make the title + summary a bit more descriptive? This is too terse.

@kanterov kanterov changed the title Add a new template Add experimental-jobs-as-code template Jan 17, 2025
@pietern pietern enabled auto-merge January 17, 2025 14:34
@pietern pietern disabled auto-merge January 17, 2025 15:02
@kanterov kanterov force-pushed the kanterov/experimental-jobs-as-code-template branch from 29fff27 to 5fa0e99 Compare January 17, 2025 15:54
@@ -0,0 +1 @@
rm -fr my_jobs_as_code
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No effect, this file can be removed.

Copy link

An authorized user can trigger integration tests manually by following the instructions below:

Trigger:
go/deco-tests-run/cli

Inputs:

  • PR number: 2177
  • Commit SHA: ef556e24d59358f69b30997a83c934b18ba34a0b

Checks will be approved automatically on success.

@pietern pietern enabled auto-merge January 20, 2025 09:56
@pietern pietern added this pull request to the merge queue Jan 20, 2025
Merged via the queue into databricks:main with commit 31c10c1 Jan 20, 2025
9 checks passed
// depends on uv version
"uv.lock",
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The approach we use is to clean up unnecessary files at the end of script.

In general, it is interesting to know which test case create which files.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep these test-scoped: #2215

denik added a commit that referenced this pull request Jan 23, 2025
denik added a commit that referenced this pull request Jan 23, 2025
Revert changes to acceptance_test.go added in #2177 and add
test-specific fix.
andrewnester added a commit that referenced this pull request Jan 23, 2025
CLI:
 * Added text output templates for apps list and list-deployments ([#2175](#2175)).
 * Fix duplicate "apps" entry in help output ([#2191](#2191)).

Bundles:
 * Allow yaml-anchors in schema ([#2200](#2200)).
 * Show an error when non-yaml files used in include section ([#2201](#2201)).
 * Set WorktreeRoot to sync root outside git repo ([#2197](#2197)).
 * fix: Detailed message for using source-linked deployment with file_path specified ([#2119](#2119)).
 * Allow using variables in enum fields ([#2199](#2199)).
 * Add experimental-jobs-as-code template ([#2177](#2177)).
 * Reading variables from file ([#2171](#2171)).
 * Fixed an apps message order and added output test ([#2174](#2174)).
 * Default to forward slash-separated paths for path translation ([#2145](#2145)).
 * Include a materialized copy of built-in templates ([#2146](#2146)).
github-merge-queue bot pushed a commit that referenced this pull request Jan 23, 2025
CLI:
* Added text output templates for apps list and list-deployments
([#2175](#2175)).
* Fix duplicate "apps" entry in help output
([#2191](#2191)).

Bundles:
* Allow yaml-anchors in schema
([#2200](#2200)).
* Show an error when non-yaml files used in include section
([#2201](#2201)).
* Set WorktreeRoot to sync root outside git repo
([#2197](#2197)).
* fix: Detailed message for using source-linked deployment with
file_path specified
([#2119](#2119)).
* Allow using variables in enum fields
([#2199](#2199)).
* Add experimental-jobs-as-code template
([#2177](#2177)).
* Reading variables from file
([#2171](#2171)).
* Fixed an apps message order and added output test
([#2174](#2174)).
* Default to forward slash-separated paths for path translation
([#2145](#2145)).
* Include a materialized copy of built-in templates
([#2146](#2146)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants