Skip to content

job_runs: include resource key in deploy progress lines - #6227

Open
radakam wants to merge 4 commits into
mainfrom
deco-28009-job-run-cmdio-resource-key
Open

job_runs: include resource key in deploy progress lines#6227
radakam wants to merge 4 commits into
mainfrom
deco-28009-job-run-cmdio-resource-key

Conversation

@radakam

@radakam radakam commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Attach the bundle resource key on the deploy/destroy context in the direct engine
  • Format job_runs cmdio progress as Output from job_runs.foo: id=…: … so concurrent runs are distinguishable

Why

Follow-up from review on wait-for-completion: multi-run deploys only showed a numeric run id (job run 123: …), which is hard to map back to config.

Tests

  • Unit: TestReportRunLineIncludesResourceKey, TestResourceKeyRoundTrip
  • Acceptance: go test ./acceptance -run TestAccept/bundle/resources/job_runs/

Make concurrent job_runs deploys easier to tell apart by attaching the
bundle resource key in the direct engine and formatting cmdio lines as
"Output from job_runs.foo: id=…: …".
Satisfy testifylint so CI lint passes on the resource key round-trip test.
@radakam
radakam marked this pull request as ready for review August 11, 2026 11:30
@github-actions

github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Approval status: pending

/acceptance/bundle/ - needs approval

7 files changed
Suggested: @denik
Also eligible: @pietern, @janniklasrose, @andrewnester, @shreyas-goenka, @lennartkats-db, @anton-107

/bundle/ - needs approval

5 files changed
Suggested: @denik
Also eligible: @pietern, @janniklasrose, @andrewnester, @shreyas-goenka, @lennartkats-db, @anton-107

General files (require maintainer)

Files: .nextchanges/bundles/job-runs-cmdio-resource-key.md
Based on git history:

  • @denik -- recent work in bundle/direct/dresources/, bundle/direct/, .nextchanges/bundles/

Any maintainer (@andrewnester, @anton-107, @denik, @pietern, @shreyas-goenka, @simonfaltum, @renaudhartert-db, @janniklasrose, @lennartkats-db, @rugpanov, @rclarey) can approve all areas.
See OWNERS for ownership rules.

@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 2f4aaca

Run: 31487942667

Env 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
💚​ aws linux 4 4 298 1126 9:04
💚​ aws windows 4 4 300 1124 9:25
💚​ azure linux 4 4 297 1126 8:56
💚​ azure windows 4 4 299 1124 9:29
💚​ gcp linux 1 5 298 1126 9:32
💚​ gcp windows 1 5 300 1124 11:04
8 interesting tests: 4 RECOVERED, 4 SKIP
Test Name aws linux aws windows azure linux azure windows gcp linux gcp windows
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
🙈​ TestAccept/bundle/invariant/no_drift 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_endpoints/drift/recreated_same_name 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_indexes/recreate/embedding_dimension 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/ssh/connection 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
💚​ TestFetchRepositoryInfoAPI_FromRepo 💚​R 💚​R 💚​R 💚​R 🙈​S 🙈​S
💚​ TestFetchRepositoryInfoAPI_FromRepo/root 💚​R 💚​R 💚​R 💚​R
💚​ TestFetchRepositoryInfoAPI_FromRepo/subdir 💚​R 💚​R 💚​R 💚​R
Top 14 slowest tests (at least 2 minutes):
duration env testname
8:38 gcp windows TestAccept
6:38 azure windows TestAccept
6:31 aws windows TestAccept
3:18 azure linux TestAccept/bundle/resources/job_runs/failed_run/DATABRICKS_BUNDLE_ENGINE=direct
3:05 aws linux TestAccept/bundle/resources/job_runs/failed_run/DATABRICKS_BUNDLE_ENGINE=direct
3:05 gcp linux TestAccept
3:01 aws linux TestAccept
3:00 azure linux TestAccept
2:44 aws windows TestAccept/bundle/resources/job_runs/failed_run/DATABRICKS_BUNDLE_ENGINE=direct
2:43 azure windows TestAccept/bundle/resources/job_runs/failed_run/DATABRICKS_BUNDLE_ENGINE=direct
2:37 gcp linux TestAccept/bundle/resources/job_runs/failed_run/DATABRICKS_BUNDLE_ENGINE=direct
2:16 gcp windows TestAccept/bundle/resources/job_runs/failed_run/DATABRICKS_BUNDLE_ENGINE=direct
2:13 aws windows TestAccept/bundle/resources/job_runs/wait/DATABRICKS_BUNDLE_ENGINE=direct
2:07 azure windows TestAccept/bundle/resources/job_runs/wait/DATABRICKS_BUNDLE_ENGINE=direct

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.

2 participants