Skip to content

acc: fix flaky timestamp replacement in default-python/classic - #7253

Draft
denik wants to merge 1 commit into
mainfrom
denik/acc-default-python-root-dir-repl
Draft

denik wants to merge 1 commit into
mainfrom
denik/acc-default-python-root-dir-repl

Conversation

@denik

@denik denik commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Changes

Register the prod root directory id as directories/<id> instead of the bare id.

Why

Locally the testserver gives workspace nodes ids of 1000 + a counter, so the id is a 4-digit number. User replacements are applied before the harness's timestamp patterns, so when those 4 digits occurred inside a wheel's +<nanos> version or created_time, the timestamp was cut up and no longer matched [UNIX_TIME_NANOS] / [UNIX_TIME_MILLIS]:

-  "whl": ".../my_default_python-0.0.1+[UNIX_TIME_NANOS][0]-py3-none-any.whl"
+  "whl": ".../my_default_python-0.0.1+1[PROD_ROOT_DIR_ID]23385490265124-py3-none-any.whl"

Seen on macOS for TestAccept/bundle/templates/default-python/classic/DMS=/READPLAN=1. The bundle/dms/* tests register short deployment ids the same way, but their outputs have no timestamps, so they are not affected.

Tests

Regenerated; the test passes locally.

This pull request and its description were written by Isaac.

Locally the root dir id is 1000 + a counter, and the bare literal could match
inside a timestamp, which then no longer matched [UNIX_TIME_NANOS].

Co-authored-by: Isaac <no-reply@databricks.com>
@github-actions github-actions Bot added the DABs DABs related issues label Oct 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Commit: 9f38514b1 | Workflow run

Regression test report

Selected 1 changed tests (limit=20, 0 not selected)

2 tests: regression=0 unreleased=0 coverage=2 failing=0

test branch main (aed6702) latest (v1.23.0)
TestAccept/bundle/templates/default-python/classic/DMS=/READPLAN= ✅ ✅ ✅
TestAccept/bundle/templates/default-python/classic/DMS=/READPLAN=1 ✅ ✅ ✅

@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 9f38514

Run: 40912930261

Env ✅​pass 🙈​skip Time
✅​ aws linux-2core-8gb 281 16 5:22
✅​ aws-windows-latest-4core-16gb 283 14 4:56
✅​ azure linux-2core-8gb 280 16 5:08
✅​ azure-windows-latest-4core-16gb 282 14 4:06
✅​ gcp linux-2core-8gb 281 16 5:23
✅​ gcp-windows-latest-4core-16gb 283 14 4:00
Top 6 slowest tests (at least 2 minutes):
duration env testname
4:52 aws-windows-latest-4core-16gb TestAccept
4:02 azure-windows-latest-4core-16gb TestAccept
3:56 gcp-windows-latest-4core-16gb TestAccept
3:44 aws linux-2core-8gb TestAccept
3:37 gcp linux-2core-8gb TestAccept
3:30 azure linux-2core-8gb TestAccept

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DABs DABs related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants